-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathplugin.xml
75 lines (59 loc) · 2.94 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 xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="wang.imchao.plugin.pgyer"
version="0.0.2">
<name>PgyerUpdateCheck</name>
<license>MIT license</license>
<description>蒲公英自动更新插件</description>
<keywords>autoupdate, pgyer</keywords>
<repo>https://github.com/charleyw/cordova-plugin-pgyer</repo>
<issue>https://github.com/charleyw/cordova-plugin-pgyer/issues</issue>
<engines>
<engine name="cordova" version=">=3.4.0"/>
</engines>
<asset src="www/pgyer.js" target="js/pgyer.js"/>
<js-module src="www/pgyer.js" name="pgyer">
<clobbers target="pgyer" />
</js-module>
<platform name="android">
<preference name="ANDROID_APP_ID" />
<config-file target="res/xml/config.xml" parent="/*">
<feature name="Pgyer">
<param name="android-package" value="wang.imchao.plugin.PgyerPlugin"/>
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <!-- 获取网络状态 -->
<uses-permission android:name="android.permission.INTERNET" /> <!-- 网络通信-->
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> <!-- 获取设备信息 -->
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <!-- 获取MAC地址-->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <!-- 读写sdcard,storage等等 -->
<uses-permission android:name="android.permission.RECORD_AUDIO" /> <!-- 允许程序录制音频 -->
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<meta-data android:name="PGYER_APPID" android:value="$ANDROID_APP_ID" />
</config-file>
<source-file src="src/android/pgyer_sdk_2.2.jar" target-dir="libs"/>
<source-file src="src/android/PgyerPlugin.java" target-dir="src/wang/imchao/plugin/"/>
</platform>
<platform name="ios">
<preference name="IOS_APP_ID" />
<config-file target="config.xml" parent="/widget">
<preference name="appid" value="$IOS_APP_ID" />
<feature name="Pgyer">
<param name="ios-package" value="PgyerPlugin" />
<param name="onload" value="true" />
</feature>
</config-file>
<framework src="CoreTelephony.framework" weak="true" />
<framework src="OpenGLES.framework" weak="true" />
<framework src="SceneKit.framework" weak="true" />
<framework src="AudioToolbox.framework" weak="true" />
<framework src="AvFoundation.framework" weak="true" />
<framework src="SystemConfiguration.framework" weak="true" />
<framework src="src/ios/lib/PgyUpdate.framework" custom="true" />
<header-file src="src/ios/PgyerPlugin.h" target-dir="PgyerPlugin"/>
<source-file src="src/ios/PgyerPlugin.m" target-dir="PgyerPlugin"/>
</platform>
</plugin>