forked from CleverTap/clevertap-cordova
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
123 lines (102 loc) · 5.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
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
112
113
114
115
116
117
118
119
120
121
122
123
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="clevertap-cordova" version="3.2.0">
<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="cordova.plugins.CleverTap" />
</js-module>
<preference name="CLEVERTAP_ACCOUNT_ID" />
<preference name="CLEVERTAP_TOKEN" />
<preference name="CLEVERTAP_REGION" default=" "/>
<platform name="ios">
<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 target="*-Info.plist" parent="CleverTapRegion">
<string>$CLEVERTAP_REGION</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>
<podspec>
<config>
<source url="https://github.com/CleverTap/clevertap-ios-sdk.git" />
<source url="https://github.com/CocoaPods/Specs.git"/>
</config>
<pods>
<pod name="CleverTap-iOS-SDK" spec="6.2.1" />
</pods>
</podspec>
<!-- <framework src="CleverTap-iOS-SDK" type="podspec" spec="5.1.2" />-->
<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" />
</platform>
<platform name="android">
<preference name="FIREBASE_MESSAGING_VERSION" default="23.0.6"/>
<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:exported="true"
android:name="com.clevertap.android.sdk.pushnotification.fcm.FcmMessageListenerService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>
<service
android:name="com.clevertap.android.sdk.pushnotification.CTNotificationIntentService"
android:exported="false">
<intent-filter>
<action android:name="com.clevertap.PUSH_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" />
<meta-data android:name="CLEVERTAP_REGION" android:value="$CLEVERTAP_REGION" />
<receiver
android:name="com.clevertap.android.sdk.pushnotification.CTPushNotificationReceiver"
android:exported="false"
android:enabled="true">
</receiver>
</config-file>
<source-file src="src/android/google-services.json" target-dir="." />
<source-file src="src/android/CleverTapPlugin.java" target-dir="src/com/clevertap/cordova/" />
<framework src="com.google.firebase:firebase-messaging:$FIREBASE_MESSAGING_VERSION" />
<framework src="com.clevertap.android:clevertap-android-sdk:6.2.1"/>
<framework src="com.github.bumptech.glide:glide:4.12.0"/>
<framework src="androidx.appcompat:appcompat:1.6.0-rc01"/>
<framework src="androidx.core:core:1.9.0" />
<framework src="androidx.fragment:fragment:1.3.6"/>
<framework src="androidx.recyclerview:recyclerview:1.2.1"/>
<framework src="androidx.viewpager:viewpager:1.0.0" />
<framework src="com.google.android.material:material:1.4.0"/>
<framework src="com.android.installreferrer:installreferrer:2.2"/>
<framework src="com.google.android.exoplayer:exoplayer:2.19.1"/>
<framework src="com.google.android.exoplayer:exoplayer-hls:2.19.1"/>
<framework src="com.google.android.exoplayer:exoplayer-ui:2.19.1"/>
<hook type="after_plugin_add" src="scripts/androidAfterPluginAdd.js" />
</platform>
</plugin>