forked from OpenInstall/cordova-plugin-openinstall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
82 lines (65 loc) · 3.36 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
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-openinstall" version="2.1.0"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>openinstall</name>
<preference name="OPENINSTALL_APPKEY"/>
<preference name="OPENINSTALL_SCHEME"/>
<js-module name="openinstall" src="www/cordova-plugin-openinstall.js">
<clobbers target="openinstall" />
</js-module>
<!-- android -->
<platform name="android">
<js-module name="openinstall" src="www/cordova-plugin-openinstall.js">
<clobbers target="openinstall" />
</js-module>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="OpenInstallPlugin">
<param name="android-package" value="io.openinstall.cordova.OpenInstallPlugin"/>
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<meta-data android:name="com.openinstall.APP_KEY" android:value="$OPENINSTALL_APPKEY"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application/activity[@android:name='MainActivity']">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="$OPENINSTALL_SCHEME" />
</intent-filter>
</config-file>
<edit-config file="AndroidManifest.xml" target="/manifest/application/activity[@android:name='MainActivity']" mode="merge">
<activity android:launchMode="singleTask"/>
</edit-config>
<source-file src="src/android/OpenInstallPlugin.java" target-dir="src/io/openinstall/cordova" />
<lib-file src="src/android/lib/OpenInstall_v2.6.1.jar" target-dir="libs" />
</platform>
<!-- ios -->
<platform name="ios">
<js-module name="openinstall" src="www/cordova-plugin-openinstall.js">
<clobbers target="openinstall" />
</js-module>
<config-file target="config.xml" parent="/*">
<feature name="OpenInstallPlugin">
<param name="ios-package" value="CDVOpenInstall"/>
<param name="onload" value="true" />
</feature>
<preference name="com.openinstall.app_key" value="$OPENINSTALL_APPKEY"/>
</config-file>
<!-- Plugin source code -->
<header-file src="src/ios/CDVOpenInstall.h" />
<source-file src="src/ios/CDVOpenInstall.m" />
<source-file src="src/ios/AppDelegate+OpenInstallSDK.m" />
<header-file src="src/ios/CDVOpenInstallStorage.h" />
<source-file src="src/ios/CDVOpenInstallStorage.m" />
<header-file src="src/ios/libs/OpenInstallSDK.h" />
<header-file src="src/ios/libs/OpenInstallData.h" />
<source-file src="src/ios/libs/libOpenInstallSDK.a" framework="true" />
</platform>
</plugin>