-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy pathplugin.xml
113 lines (94 loc) · 4.35 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?xml version="1.0" encoding="utf-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-alipay"
version="0.10.0">
<name>AlipayPlugin</name>
<license>MIT license</license>
<description>支付宝支付插件,alipay payment</description>
<keywords>alipay, payment</keywords>
<repo>https://github.com/charleyw/cordova-plugin-alipay</repo>
<issue>https://github.com/charleyw/cordova-plugin-alipay/issues</issue>
<engines>
<engine name="cordova" version=">=3.4.0"/>
</engines>
<preference name="PARTNER_ID"/>
<preference name="SELLER_ACCOUNT"/>
<preference name="PRIVATE_KEY"/>
<asset src="www/alipay.js" target="js/alipay.js"/>
<js-module src="www/alipay.js" name="alipay">
<clobbers target="alipay" />
</js-module>
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<preference name="partner" value="$PARTNER_ID" />
<preference name="seller" value="$SELLER_ACCOUNT" />
<preference name="privatekey" value="$PRIVATE_KEY" />
<feature name="AliPay">
<param name="android-package" value="wang.imchao.plugin.alipay.AliPayPlugin"/>
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<!-- alipay sdk begin -->
<activity android:name="com.alipay.sdk.app.H5PayActivity"
android:configChanges="orientation|keyboardHidden|navigation"
android:exported="false" android:screenOrientation="behind"
android:windowSoftInputMode="adjustResize|stateHidden">
</activity>
<!-- alipay sdk end -->
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</config-file>
<source-file src="src/android/libs/alipaySDK-20150724.jar" target-dir="libs"/>
<source-file src="src/android/AliPayPlugin.java" target-dir="src/wang/imchao/plugin/alipay"/>
<source-file src="src/android/PayResult.java" target-dir="src/wang/imchao/plugin/alipay"/>
<source-file src="src/android/Base64.java" target-dir="src/wang/imchao/plugin/alipay"/>
<source-file src="src/android/SignUtils.java" target-dir="src/wang/imchao/plugin/alipay"/>
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/widget">
<preference name="partner" value="$PARTNER_ID" />
<preference name="seller" value="$SELLER_ACCOUNT" />
<preference name="privatekey" value="$PRIVATE_KEY" />
<feature name="AliPay">
<param name="ios-package" value="AlipayPlugin" />
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
<dict>
<key>CFBundleURLName</key>
<string>alipay</string>
<key>CFBundleURLSchemes</key>
<array>
<string>a$PARTNER_ID</string>
</array>
</dict>
</array>
</config-file>
<framework src="CoreTelephony.framework" weak="true" />
<framework src="Security.framework" weak="true" />
<framework src="SystemConfiguration.framework" weak="true" />
<framework src="src/ios/lib/AlipaySDK.framework" custom="true" />
<framework src="src/ios/lib/openssl.framework" custom="true" />
<header-file src="src/ios/AlipayPlugin.h"/>
<source-file src="src/ios/AlipayPlugin.m"/>
<header-file src="src/ios/Order.h"/>
<source-file src="src/ios/Order.m"/>
<header-file src="src/ios/Util/DataSigner.h"/>
<header-file src="src/ios/Util/NSDataEx.h"/>
<header-file src="src/ios/Util/RSADataSigner.h"/>
<header-file src="src/ios/Util/openssl_wrapper.h"/>
<source-file src="src/ios/Util/DataSigner.m"/>
<source-file src="src/ios/Util/NSDataEx.m"/>
<source-file src="src/ios/Util/RSADataSigner.m"/>
<source-file src="src/ios/Util/openssl_wrapper.m"/>
</platform>
</plugin>