plugin.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?xml version='1.0' encoding='utf-8'?>
  2. <plugin id="cordova-plugin-alipay-v2" version="2.0.0" xmlns="http://apache.org/cordova/ns/plugins/1.0"
  3. xmlns:android="http://schemas.android.com/apk/res/android">
  4. <name>alipay</name>
  5. <preference name="APP_ID"/>
  6. <js-module name="alipay" src="www/alipay.js">
  7. <clobbers target="cordova.plugins.alipay"/>
  8. </js-module>
  9. <platform name="android">
  10. <config-file parent="/*" target="res/xml/config.xml">
  11. <feature name="alipay">
  12. <param name="android-package" value="cn.hhjjj.alipay.alipay"/>
  13. </feature>
  14. </config-file>
  15. <config-file parent="/*" target="AndroidManifest.xml">
  16. <uses-permission android:name="android.permission.INTERNET"/>
  17. <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
  18. <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
  19. </config-file>
  20. <source-file src="src/android/alipay.java" target-dir="src/cn/hhjjj/alipay"/>
  21. <source-file src="src/android/PayResult.java" target-dir="src/cn/hhjjj/alipay"/>
  22. <lib-file src="src/android/lib/alipaySdk-15.6.5-20190718211148.aar" />
  23. <framework src="src/android/alipay.gradle" custom="true" type="gradleReference"/>
  24. </platform>
  25. <platform name="ios">
  26. <config-file parent="/*" target="config.xml">
  27. <feature name="alipay">
  28. <param name="ios-package" value="alipay"/>
  29. </feature>
  30. <preference name="alipayid" value="$APP_ID"/>
  31. </config-file>
  32. <config-file target="*-Info.plist" parent="CFBundleURLTypes">
  33. <array>
  34. <dict>
  35. <key>CFBundleURLName</key>
  36. <string>alipay</string>
  37. <key>CFBundleURLSchemes</key>
  38. <array>
  39. <string>ali$APP_ID</string>
  40. </array>
  41. </dict>
  42. </array>
  43. </config-file>
  44. <framework src="CoreTelephony.framework" weak="true"/>
  45. <framework src="SystemConfiguration.framework" weak="true"/>
  46. <framework src="CoreMotion.framework" weak="true"/>
  47. <framework src="CFNetwork.framework" weak="true"/>
  48. <framework src="libc++.tbd" weak="true"/>
  49. <framework src="libz.tbd" weak="true"/>
  50. <framework src="CoreText.framework" weak="true"/>
  51. <framework src="CoreGraphics.framework" weak="true"/>
  52. <framework src="UIKit.framework" weak="true"/>
  53. <framework src="QuartzCore.framework" weak="true"/>
  54. <framework src="Foundation.framework" weak="true"/>
  55. <framework src="src/ios/lib/AlipaySDK.framework" custom="true"/>
  56. <resource-file src="src/ios/lib/AlipaySDK.bundle"/>
  57. <source-file src="src/ios/alipay.m"/>
  58. </platform>
  59. </plugin>