forked from CleverTap/clevertap-cordova
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
111 lines (91 loc) · 4.54 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="com.clevertap.cordova.CleverTapPlugin" version="2.0.1">
<name>CleverTap</name>
<description>CleverTap Plugin for Cordova/PhoneGap</description>
<license>Commercial</license>
<keywords>CleverTap</keywords>
<js-module src="www/CleverTap.js" name="CleverTap">
<clobbers target="CleverTap" />
</js-module>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<preference name="CLEVERTAP_ACCOUNT_ID" />
<preference name="CLEVERTAP_TOKEN" />
<platform name="ios">
<config-file>
<access origin="*.clevertap.com" />
</config-file>
<config-file target="*-Info.plist" parent="CleverTapAccountID">
<string>$CLEVERTAP_ACCOUNT_ID</string>
</config-file>
<config-file target="*-Info.plist" parent="CleverTapToken">
<string>$CLEVERTAP_TOKEN</string>
</config-file>
<config-file parent="aps-environment" target="*/Entitlements-Debug.plist">
<string>development</string>
</config-file>
<config-file parent="aps-environment" target="*/Entitlements-Release.plist">
<string>production</string>
</config-file>
<config-file target="config.xml" parent="/*">
<feature name="CleverTapPlugin">
<param name="ios-package" value="CleverTapPlugin"/>
</feature>
</config-file>
<header-file src="src/ios/AppDelegate+CleverTapPlugin.h" />
<source-file src="src/ios/AppDelegate+CleverTapPlugin.m" />
<header-file src="src/ios/CleverTapPlugin.h" />
<source-file src="src/ios/CleverTapPlugin.m" />
<framework src="src/ios/CleverTapSDK.framework" custom="true"/>
<framework src="SystemConfiguration.framework" />
<framework src="CoreTelephony.framework" />
<framework src="UIKit.framework" />
<framework src="CoreLocation.framework" />
</platform>
<platform name="android">
<config-file>
<access origin="*.clevertap.com" />
</config-file>
<config-file target="config.xml" parent="/*">
<feature name="CleverTapPlugin" >
<param name="android-package" value="com.clevertap.cordova.CleverTapPlugin"/>
</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.WAKE_LOCK" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<service
android:name="com.clevertap.android.sdk.FcmTokenListenerService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
</intent-filter>
</service>
<service
android:name="com.clevertap.android.sdk.FcmMessageListenerService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>
<meta-data android:name="CLEVERTAP_ACCOUNT_ID" android:value="$CLEVERTAP_ACCOUNT_ID" />
<meta-data android:name="CLEVERTAP_TOKEN" android:value="$CLEVERTAP_TOKEN" />
<activity android:configChanges="orientation|keyboardHidden" android:name="com.clevertap.android.sdk.InAppNotificationActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<receiver android:exported="true" android:name="com.clevertap.android.sdk.InstallReferrerBroadcastReceiver">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
</config-file>
<source-file src="src/android/google-services.json" target-dir="." />
<source-file src="src/android/CleverTapAndroidSDK.jar" target-dir="libs/" />
<source-file src="src/android/CleverTapPlugin.java" target-dir="src/com/clevertap/cordova/" />
<framework src="com.google.firebase:firebase-core:+" />
<framework src="com.google.firebase:firebase-messaging:+" />
<framework src="com.google.android.gms:play-services-base:+" />
<framework src="com.android.support:support-v4:+" />
<hook type="after_plugin_add" src="scripts/androidAfterPluginAdd.js" />
</platform>
</plugin>