-
Notifications
You must be signed in to change notification settings - Fork 5
/
plugin.xml
75 lines (70 loc) · 3.41 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
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova.plugin.alipay.dmcbig" version="1.0.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>Alipay</name>
<js-module name="Alipay" src="www/Alipay.js">
<clobbers target="cordova.plugins.Alipay" />
</js-module>
<preference name="PID"/>
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="AlipayPlugin">
<param name="android-package" value="com.dmc.alipay.AlipayPlugin"/>
</feature>
</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>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<!-- alipay sdk begin -->
<activity
android:name="com.alipay.sdk.app.H5PayActivity"
android:configChanges="orientation|keyboardHidden|navigation|screenSize"
android:exported="false"
android:screenOrientation="behind"
android:windowSoftInputMode="adjustResize|stateHidden" >
</activity>
<!-- alipay sdk end -->
</config-file>
<source-file src="src/android/libs/alipaySdk-20170922.jar" target-dir="libs"/>
<source-file src="src/android/AlipayPlugin.java" target-dir="src/com/dmc/alipay" />
<source-file src="src/android/PayResult.java" target-dir="src/com/dmc/alipay" />
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/widget">
<preference name="alipayPid" value="$PID" />
<feature name="AlipayPlugin">
<param name="ios-package" value="AlipayPlugin" />
</feature>
</config-file>
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
<dict>
<key>CFBundleURLName</key>
<string>alipay</string>
<key>CFBundleURLSchemes</key>
<array>
<string>dmc$PID</string>
</array>
</dict>
</array>
</config-file>
<framework src="CoreTelephony.framework" weak="true"/>
<framework src="SystemConfiguration.framework" weak="true"/>
<framework src="CoreMotion.framework" weak="true"/>
<framework src="CFNetwork.framework" weak="true"/>
<framework src="libc++.tbd" weak="true"/>
<framework src="libz.tbd" weak="true"/>
<framework src="CoreText.framework" weak="true"/>
<framework src="CoreGraphics.framework" weak="true"/>
<framework src="UIKit.framework" weak="true"/>
<framework src="QuartzCore.framework" weak="true"/>
<framework src="Foundation.framework" weak="true"/>
<framework src="src/ios/lib/AlipaySDK.framework" custom="true" />
<resource-file src="src/ios/lib/AlipaySDK.bundle"/>
<source-file src="src/ios/AlipayPlugin.m"/>
</platform>
</plugin>