-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.xml
52 lines (46 loc) · 2.27 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="cordova-plugin-bugly"
version="1.0.0">
<name>bugly</name>
<description>Cordova Crash Reporter</description>
<license>Apache 2.0</license>
<keywords>cordova, crash reporter, bugly</keywords>
<repo>https://github.com/baidan4855/cordova-plugin-bugly.git</repo>
<issue>https://github.com/baidan4855/cordova-plugin-bugly/issues</issue>
<preference name="BUGLY_APPID_ANDROID" />
<preference name="BUGLY_APPID_IOS" />
<preference name="BUGLY_ENABLE_DEBUG" />
<hook type="after_plugin_install" src="src/hooks/after_plugin_install.js" />
<hook type="before_plugin_uninstall" src="src/hooks/before_plugin_uninstall.js" />
<!-- android -->
<platform name="android">
<lib-file src="src/android/libs/bugly_crash_release.jar" />
<source-file src="src/android/BuglyApp.java" target-dir="src/com/ihealthlabs/plugins" />
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission>
<uses-permission android:name="android.permission.READ_LOGS"></uses-permission>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<meta-data android:name="BUGLY_APPID" android:value="$BUGLY_APPID_ANDROID" />
<meta-data android:name="BUGLY_ENABLE_DEBUG" android:value="$BUGLY_ENABLE_DEBUG" />
</config-file>
</platform>
<!-- ios -->
<platform name="ios">
<framework src="SystemConfiguration.framework" />
<framework src="Security.framework" />
<framework src="libz.tbd" />
<framework src="libc++.tbd" />
<framework src="src/ios/libs/Bugly.framework" custom="true" />
<config-file target="*-Info.plist" parent="BuglyAppIDString">
<string>$BUGLY_APPID_IOS</string>
</config-file>
<config-file target="*-Info.plist" parent="BuglyDebugEnable">
<string>$BUGLY_ENABLE_DEBUG</string>
</config-file>
</platform>
</plugin>