cordova-plugin-appice 2.0.8 → 2.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +120 -122
- package/package.json +45 -27
- package/plugin.xml +168 -103
- package/scripts/BeforeAndroidBuilt.js +160 -126
- package/scripts/BeforeIosBuilt.js +38 -38
- package/scripts/androidAfterPluginAdd.js +159 -159
- package/scripts/androidAfterPluginRm.js +195 -195
- package/scripts/iOSAfterPluginAdd.js +98 -98
- package/scripts/iOSAfterPluginRm.js +73 -74
- package/src/android/AppICEMFPPush.java +177 -0
- package/{libcordova/src/main/java/com/appice/cordova → src/android}/AppICEPlugin.java +405 -489
- package/{libcordova/src/main/java/com/appice/cordova → src/android}/CampaignCampsReceiver.java +8 -9
- package/{libcordova/src/main/java/com/appice/cordova → src/android}/NotificationEventService.java +16 -7
- package/src/build.gradle +16 -14
- package/src/firebase/modified/android/FirebasePluginMessagingService.java +356 -356
- package/src/firebase/modified/ios/AppDelegate+FirebasePlugin.m +529 -529
- package/src/firebase/original/android/FirebasePluginMessagingService.java +348 -348
- package/src/firebase/original/ios/AppDelegate+FirebasePlugin.m +519 -519
- package/src/ios/AppDelegate+AppICEPlugin.h +8 -8
- package/src/ios/AppDelegate+AppICEPlugin.m +278 -191
- package/src/ios/AppICEPlugin.h +93 -90
- package/src/ios/AppICEPlugin.m +1161 -1062
- package/www/AppICE.js +289 -284
- package/libcordova/android-release-aar.gradle +0 -63
- package/libcordova/build.gradle +0 -50
- package/libcordova/cordova.jar +0 -0
- package/libcordova/proguard-rules.pro +0 -21
- package/libcordova/src/main/AndroidManifest.xml +0 -24
- package/libcordova/src/main/res/values/strings.xml +0 -3
- package/src/firebase/modified/modified.iml +0 -11
- package/src/firebase/original/original.iml +0 -11
package/README.md
CHANGED
|
@@ -1,122 +1,120 @@
|
|
|
1
|
-
```
|
|
2
|
-
// Steps to use plugin
|
|
3
|
-
|
|
4
|
-
// Create sample project or use your own
|
|
5
|
-
if (cordova-plugin) {
|
|
6
|
-
// Use below to create project
|
|
7
|
-
// myfolder : directory under which app to create
|
|
8
|
-
// org.apache.cordova.myApp : app package name
|
|
9
|
-
// myApp : app name
|
|
10
|
-
cordova create myfolder org.apache.cordova.myApp myApp
|
|
11
|
-
}
|
|
12
|
-
else if (ionic-plugin) {
|
|
13
|
-
// Use below to create project
|
|
14
|
-
// myfolder : directory under which app to create
|
|
15
|
-
// sidemenu : ionic framework to use
|
|
16
|
-
ionic start myfolder sidemenu
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// Switch to myfolder
|
|
20
|
-
cd myfolder
|
|
21
|
-
|
|
22
|
-
// Add android platform to project
|
|
23
|
-
if (cordova-plugin) {
|
|
24
|
-
// If you are using plugin as cordova wrapper
|
|
25
|
-
cordova platform add android --save
|
|
26
|
-
}
|
|
27
|
-
else if (ionic-plugin) {
|
|
28
|
-
// If you are using plugin as ionic wrapper
|
|
29
|
-
ionic platform add android
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// Add appice plugin to project
|
|
33
|
-
if (cordova-plugin) {
|
|
34
|
-
// If you are using plugin from npm install
|
|
35
|
-
cordova plugin add cordova-plugin-appice --variable APPICE_APP_ID="appid" --variable APPICE_API_KEY="apikey" --variable APPICE_APP_KEY="appkey"
|
|
36
|
-
|
|
37
|
-
// If you are using plugin from github install
|
|
38
|
-
cordova plugin add https://github.com/AppICEIO/cordova-plugin-appice.git --variable APPICE_APP_ID="appid" --variable APPICE_API_KEY="apikey" --variable APPICE_APP_KEY="appkey"
|
|
39
|
-
|
|
40
|
-
// If you are using plugin from local file system
|
|
41
|
-
cordova plugin add /Volumes/Data/workspace_Appice/cordova-plugin-appice --variable APPICE_APP_ID="appid" --variable APPICE_API_KEY="apikey" --variable APPICE_APP_KEY="appkey"
|
|
42
|
-
}
|
|
43
|
-
else if (ionic-plugin) {
|
|
44
|
-
// If you are using plugin as ionic wrapper
|
|
45
|
-
cordova plugin add https://github.com/AppICEIO/cordova-plugin-appice.git
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// Sync project with plugin and platform
|
|
49
|
-
if (cordova-plugin) {
|
|
50
|
-
// If you are using plugin as cordova wrapper
|
|
51
|
-
cordova prepare
|
|
52
|
-
}
|
|
53
|
-
else if (ionic-plugin) {
|
|
54
|
-
// If you are using plugin as ionic wrapper
|
|
55
|
-
ionic prepare
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// To validation integration process
|
|
59
|
-
AppICE.validateIntegration(function(success) {
|
|
60
|
-
console.log("Integration Success");
|
|
61
|
-
}, function(error) {
|
|
62
|
-
console.error("Ingetration Error : " + error);
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
// To handle notification click handling
|
|
66
|
-
AppICE.onNotificationOpen(function(notification) {
|
|
67
|
-
console.log("Notification Data : " + JSON.stringify(notification));
|
|
68
|
-
}, function(error) {
|
|
69
|
-
console.error("Notification Error : " + error);
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
// To use appice in your project
|
|
73
|
-
// Custom gcm-id for already existing gcm being used
|
|
74
|
-
AppICE.initSdk("<app_id>","<app_key>","<api_key>","<Custom gcm id to use>","region","baseUrl");
|
|
75
|
-
|
|
76
|
-
// To send events via appice - only key
|
|
77
|
-
AppICE.tagEvent("<Key of event>");
|
|
78
|
-
|
|
79
|
-
// To send events via appice - with key and data
|
|
80
|
-
var dataObj = {
|
|
81
|
-
"key1":"val1"
|
|
82
|
-
};
|
|
83
|
-
AppICE.tagEvent("<Key of event>", dataObj);
|
|
84
|
-
|
|
85
|
-
// To set custom variables
|
|
86
|
-
AppICE.setCustomVariable("<variable name>", "<variable value>");
|
|
87
|
-
|
|
88
|
-
// To set user info
|
|
89
|
-
AppICE.setUser("<user-name>", "<user-phone>", "<user-email>");
|
|
90
|
-
|
|
91
|
-
//
|
|
92
|
-
|
|
93
|
-
//
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
<preference name="
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
<preference name="
|
|
113
|
-
<preference name="
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
2.ai_android.pem for android
|
|
122
|
-
```
|
|
1
|
+
```
|
|
2
|
+
// Steps to use plugin
|
|
3
|
+
|
|
4
|
+
// Create sample project or use your own
|
|
5
|
+
if (cordova-plugin) {
|
|
6
|
+
// Use below to create project
|
|
7
|
+
// myfolder : directory under which app to create
|
|
8
|
+
// org.apache.cordova.myApp : app package name
|
|
9
|
+
// myApp : app name
|
|
10
|
+
cordova create myfolder org.apache.cordova.myApp myApp
|
|
11
|
+
}
|
|
12
|
+
else if (ionic-plugin) {
|
|
13
|
+
// Use below to create project
|
|
14
|
+
// myfolder : directory under which app to create
|
|
15
|
+
// sidemenu : ionic framework to use
|
|
16
|
+
ionic start myfolder sidemenu
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Switch to myfolder
|
|
20
|
+
cd myfolder
|
|
21
|
+
|
|
22
|
+
// Add android platform to project
|
|
23
|
+
if (cordova-plugin) {
|
|
24
|
+
// If you are using plugin as cordova wrapper
|
|
25
|
+
cordova platform add android --save
|
|
26
|
+
}
|
|
27
|
+
else if (ionic-plugin) {
|
|
28
|
+
// If you are using plugin as ionic wrapper
|
|
29
|
+
ionic platform add android
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Add appice plugin to project
|
|
33
|
+
if (cordova-plugin) {
|
|
34
|
+
// If you are using plugin from npm install
|
|
35
|
+
cordova plugin add cordova-plugin-appice --variable APPICE_APP_ID="appid" --variable APPICE_API_KEY="apikey" --variable APPICE_APP_KEY="appkey"
|
|
36
|
+
|
|
37
|
+
// If you are using plugin from github install
|
|
38
|
+
cordova plugin add https://github.com/AppICEIO/cordova-plugin-appice.git --variable APPICE_APP_ID="appid" --variable APPICE_API_KEY="apikey" --variable APPICE_APP_KEY="appkey"
|
|
39
|
+
|
|
40
|
+
// If you are using plugin from local file system
|
|
41
|
+
cordova plugin add /Volumes/Data/workspace_Appice/cordova-plugin-appice --variable APPICE_APP_ID="appid" --variable APPICE_API_KEY="apikey" --variable APPICE_APP_KEY="appkey"
|
|
42
|
+
}
|
|
43
|
+
else if (ionic-plugin) {
|
|
44
|
+
// If you are using plugin as ionic wrapper
|
|
45
|
+
cordova plugin add https://github.com/AppICEIO/cordova-plugin-appice.git
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Sync project with plugin and platform
|
|
49
|
+
if (cordova-plugin) {
|
|
50
|
+
// If you are using plugin as cordova wrapper
|
|
51
|
+
cordova prepare
|
|
52
|
+
}
|
|
53
|
+
else if (ionic-plugin) {
|
|
54
|
+
// If you are using plugin as ionic wrapper
|
|
55
|
+
ionic prepare
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// To validation integration process
|
|
59
|
+
AppICE.validateIntegration(function(success) {
|
|
60
|
+
console.log("Integration Success");
|
|
61
|
+
}, function(error) {
|
|
62
|
+
console.error("Ingetration Error : " + error);
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
// To handle notification click handling
|
|
66
|
+
AppICE.onNotificationOpen(function(notification) {
|
|
67
|
+
console.log("Notification Data : " + JSON.stringify(notification));
|
|
68
|
+
}, function(error) {
|
|
69
|
+
console.error("Notification Error : " + error);
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
// To use appice in your project
|
|
73
|
+
// Custom gcm-id for already existing gcm being used
|
|
74
|
+
AppICE.initSdk("<app_id>","<app_key>","<api_key>","<Custom gcm id to use>","region","baseUrl");
|
|
75
|
+
|
|
76
|
+
// To send events via appice - only key
|
|
77
|
+
AppICE.tagEvent("<Key of event>");
|
|
78
|
+
|
|
79
|
+
// To send events via appice - with key and data
|
|
80
|
+
var dataObj = {
|
|
81
|
+
"key1":"val1"
|
|
82
|
+
};
|
|
83
|
+
AppICE.tagEvent("<Key of event>", dataObj);
|
|
84
|
+
|
|
85
|
+
// To set custom variables
|
|
86
|
+
AppICE.setCustomVariable("<variable name>", "<variable value>");
|
|
87
|
+
|
|
88
|
+
// To set user info
|
|
89
|
+
AppICE.setUser("<user-name>", "<user-phone>", "<user-email>");
|
|
90
|
+
|
|
91
|
+
// Build project and run
|
|
92
|
+
if (cordova-plugin) {
|
|
93
|
+
// If you are using plugin as cordova wrapper
|
|
94
|
+
cordova build android
|
|
95
|
+
cordova run android
|
|
96
|
+
}
|
|
97
|
+
else if (ionic-plugin) {
|
|
98
|
+
// If you are using plugin as ionic wrapper
|
|
99
|
+
ionic run android -l -c
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
=========================================
|
|
103
|
+
//using MFP
|
|
104
|
+
<preference name="APPICE_FIREBASE_UPDATE" value="false" />
|
|
105
|
+
<preference name="APPICE_APPLICATIONCLASS_INCLUDE" value="false" />
|
|
106
|
+
<preference name="MFP_PUSH" value="true" />
|
|
107
|
+
<preference name="SSL_PINNING" value="true" />
|
|
108
|
+
|
|
109
|
+
//using FCM
|
|
110
|
+
<preference name="APPICE_FIREBASE_UPDATE" value="true" />
|
|
111
|
+
<preference name="APPICE_APPLICATIONCLASS_INCLUDE" value="true" />
|
|
112
|
+
<preference name="MFP_PUSH" value="false" />
|
|
113
|
+
<preference name="SSL_PINNING" value="false" />
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
//////////////for ssl pinning
|
|
117
|
+
create "res" folder in root and add certs:
|
|
118
|
+
1.ai_ios.der for ios
|
|
119
|
+
2.ai_android.pem for android
|
|
120
|
+
```
|
package/package.json
CHANGED
|
@@ -1,27 +1,45 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "cordova-plugin-appice",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "AppICE Plugin for Cordova/PhoneGap",
|
|
5
|
-
"cordova": {
|
|
6
|
-
"id": "cordova-plugin-appice",
|
|
7
|
-
"platforms": [
|
|
8
|
-
"ios",
|
|
9
|
-
"android"
|
|
10
|
-
]
|
|
11
|
-
},
|
|
12
|
-
"keywords": [
|
|
13
|
-
"AppICE",
|
|
14
|
-
"ecosystem:cordova",
|
|
15
|
-
"cordova-ios",
|
|
16
|
-
"cordova-android"
|
|
17
|
-
],
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "cordova-plugin-appice",
|
|
3
|
+
"version": "2.0.10",
|
|
4
|
+
"description": "AppICE Plugin for Cordova/PhoneGap",
|
|
5
|
+
"cordova": {
|
|
6
|
+
"id": "cordova-plugin-appice",
|
|
7
|
+
"platforms": [
|
|
8
|
+
"ios",
|
|
9
|
+
"android"
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"AppICE",
|
|
14
|
+
"ecosystem:cordova",
|
|
15
|
+
"cordova-ios",
|
|
16
|
+
"cordova-android"
|
|
17
|
+
],
|
|
18
|
+
"engines": {
|
|
19
|
+
"cordovaDependencies": {
|
|
20
|
+
"2.3.2": {
|
|
21
|
+
"cordova-ios": ">=4.3.0",
|
|
22
|
+
"cordova-android": ">6.3.0",
|
|
23
|
+
"cordova": ">=7.0.0"
|
|
24
|
+
},
|
|
25
|
+
"2.6.0": {
|
|
26
|
+
"cordova-ios": ">=4.3.0",
|
|
27
|
+
"cordova-android": ">=11.0.0",
|
|
28
|
+
"cordova": ">=11.0.0"
|
|
29
|
+
},
|
|
30
|
+
"2.7.0": {
|
|
31
|
+
"cordova-android": ">=12.0.0",
|
|
32
|
+
"cordova": ">=12.0.0"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"author": "AppICE",
|
|
37
|
+
"license": "Commercial",
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/AppICEIO/cordova-plugin-appice/issues"
|
|
40
|
+
},
|
|
41
|
+
"homepage": "https://github.com/AppICEIO/cordova-plugin-appice#readme",
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"shelljs": "^0.8.4"
|
|
44
|
+
}
|
|
45
|
+
}
|
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-appice" version="2.0.
|
|
2
|
+
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-appice" version="2.0.10">
|
|
3
3
|
<name>AppICE</name>
|
|
4
4
|
<description>AppICE Plugin for Cordova/PhoneGap</description>
|
|
5
5
|
<license>Commercial</license>
|
|
@@ -19,110 +19,175 @@
|
|
|
19
19
|
|
|
20
20
|
<platform name="ios">
|
|
21
21
|
<config-file target="*-Info.plist" parent="AppICEAppID">
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<config-file parent="aps-environment" target="*/Entitlements-Debug.plist">
|
|
34
|
-
<string>development</string>
|
|
35
|
-
</config-file>
|
|
36
|
-
<config-file parent="aps-environment" target="*/Entitlements-Release.plist">
|
|
37
|
-
<string>production</string>
|
|
38
|
-
</config-file>
|
|
39
|
-
|
|
40
|
-
<podspec>
|
|
41
|
-
<pods>
|
|
22
|
+
<string>$APPICE_APP_ID</string>
|
|
23
|
+
</config-file>
|
|
24
|
+
|
|
25
|
+
<config-file target="*-Info.plist" parent="AppICEAppKey">
|
|
26
|
+
<string>$APPICE_APP_KEY</string>
|
|
27
|
+
</config-file>
|
|
28
|
+
|
|
29
|
+
<config-file target="*-Info.plist" parent="AppICEApiKey">
|
|
30
|
+
<string>$APPICE_API_KEY</string>
|
|
31
|
+
</config-file>
|
|
42
32
|
|
|
43
|
-
|
|
33
|
+
<config-file parent="aps-environment" target="*/Entitlements-Debug.plist">
|
|
34
|
+
<string>development</string>
|
|
35
|
+
</config-file>
|
|
36
|
+
<config-file parent="aps-environment" target="*/Entitlements-Release.plist">
|
|
37
|
+
<string>production</string>
|
|
38
|
+
</config-file>
|
|
39
|
+
|
|
40
|
+
<podspec>
|
|
41
|
+
<pods>
|
|
42
|
+
<pod name="AppICE-IOS-SDK" spec="1.7.65" />
|
|
44
43
|
</pods>
|
|
45
44
|
</podspec>
|
|
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
|
-
|
|
124
|
-
|
|
125
|
-
<!--
|
|
126
|
-
<
|
|
45
|
+
|
|
46
|
+
<config-file target="config.xml" parent="/*">
|
|
47
|
+
<feature name="AppICEPlugin">
|
|
48
|
+
<param name="ios-package" value="AppICEPlugin"/>
|
|
49
|
+
<param name="onload" value="true" />
|
|
50
|
+
</feature>
|
|
51
|
+
</config-file>
|
|
52
|
+
|
|
53
|
+
<header-file src="src/ios/AppDelegate+AppICEPlugin.h" />
|
|
54
|
+
<source-file src="src/ios/AppDelegate+AppICEPlugin.m" />
|
|
55
|
+
<header-file src="src/ios/AppICEPlugin.h" />
|
|
56
|
+
<source-file src="src/ios/AppICEPlugin.m" />
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
<framework src="NotificationCenter.framework" />
|
|
60
|
+
<framework src="UserNotificationsUI.framework" weak="true"/>
|
|
61
|
+
<framework src="UserNotifications.framework" />
|
|
62
|
+
<framework src="Security.framework" />
|
|
63
|
+
<framework src="CoreFoundation.framework" />
|
|
64
|
+
<framework src="CFNetwork.framework" />
|
|
65
|
+
<framework src="AVFoundation.framework" />
|
|
66
|
+
<framework src="QuartzCore.framework" />
|
|
67
|
+
<framework src="ImageIO.framework" />
|
|
68
|
+
<framework src="AssetsLibrary.framework" />
|
|
69
|
+
<framework src="SystemConfiguration.framework" />
|
|
70
|
+
<framework src="CoreData.framework" />
|
|
71
|
+
<framework src="CoreTelephony.framework" />
|
|
72
|
+
<framework src="CoreGraphics.framework" />
|
|
73
|
+
<framework src="UIKit.framework" />
|
|
74
|
+
<framework src="Foundation.framework" />
|
|
75
|
+
<framework src="CoreServices.framework" />
|
|
76
|
+
<framework src="libc++.tbd" />
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
<hook type="after_plugin_install" src="scripts/iOSAfterPluginAdd.js" />
|
|
80
|
+
<hook type="before_plugin_uninstall" src="scripts/iOSAfterPluginRm.js" />
|
|
81
|
+
<hook type="before_build" src="scripts/BeforeIosBuilt.js" />
|
|
82
|
+
</platform>
|
|
83
|
+
|
|
84
|
+
<platform name="android">
|
|
85
|
+
|
|
86
|
+
<config-file target="config.xml" parent="/*">
|
|
87
|
+
<feature name="AppICEPlugin">
|
|
88
|
+
<param name="android-package" value="com.appice.cordova.AppICEPlugin" />
|
|
89
|
+
<param name="onload" value="true" />
|
|
90
|
+
</feature>
|
|
91
|
+
</config-file>
|
|
92
|
+
|
|
93
|
+
<!-- Version list -->
|
|
94
|
+
<!-- FIREBASE MESSAGING VERSION-->
|
|
95
|
+
<preference name="FIREBASE_MESSAGING_VERSION" default="23.0.6"/>
|
|
96
|
+
|
|
97
|
+
<!-- GLIDE IMAGE LOADER VERSION -->
|
|
98
|
+
<preference name="GLIDE_SDK_VERSION" default="4.12.0"/>
|
|
99
|
+
|
|
100
|
+
<!-- LOCATION APIS VERSION-->
|
|
101
|
+
<preference name="GOOGLE_LOCATION_VERSION" default="21.0.1"/>
|
|
102
|
+
|
|
103
|
+
<!-- LEGACY SUPPORT VERSION-->
|
|
104
|
+
<preference name="ANDROIDX_LEGACY_SUPPORT_VERSION" default="1.0.0"/>
|
|
105
|
+
|
|
106
|
+
<!-- ANDROIDX APIS VERSION-->
|
|
107
|
+
<preference name="ANDROIDX_ANNOTATION_VERSION" default="1.2.0"/>
|
|
108
|
+
<preference name="ANDROIDX_CONCURRENT_FUTURE_VERSION" default="1.1.0"/>
|
|
109
|
+
<preference name="ANDROIDX_LIFECYCLE_SDK_VERSION" default="2.0.0"/>
|
|
110
|
+
<preference name="ANDROIDX_LIFECYCLE_EXTENTION_VERSION" default="2.0.0"/>
|
|
111
|
+
|
|
112
|
+
<!-- WORK MANAGER VERSION-->
|
|
113
|
+
<preference name="WORK_MANAGER_VERSION" default="2.7.1"/>
|
|
114
|
+
|
|
115
|
+
<!-- AppICE VERSION-->
|
|
116
|
+
<preference name="APPICE_VERSION" default="2.5.67"/>
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
<!-- USES PERMISSION -->
|
|
120
|
+
<config-file target="AndroidManifest.xml" parent="/manifest">
|
|
121
|
+
<uses-permission android:name="android.permission.INTERNET"/>
|
|
122
|
+
</config-file>
|
|
123
|
+
|
|
124
|
+
<!-- MANIFEST ENTRIES -->
|
|
125
|
+
<config-file target="AndroidManifest.xml" parent="/manifest/application">
|
|
126
|
+
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
|
|
127
|
+
<meta-data android:name="com.semusi.analytics.appid" android:value="$APPICE_APP_ID"/>
|
|
128
|
+
<meta-data android:name="com.semusi.analytics.appkey" android:value="$APPICE_APP_KEY"/>
|
|
129
|
+
<meta-data android:name="com.semusi.analytics.apikey" android:value="$APPICE_API_KEY"/>
|
|
130
|
+
|
|
131
|
+
<service android:name="semusi.activitysdk.Api" android:exported="false" android:protectionLevel="signature"/>
|
|
132
|
+
|
|
133
|
+
<receiver android:name="com.appice.cordova.CampaignCampsReceiver" android:exported="false" android:protectionLevel="signature">
|
|
134
|
+
<intent-filter>
|
|
135
|
+
<action android:name="com.appice.campaignEvent" />
|
|
136
|
+
</intent-filter>
|
|
137
|
+
</receiver>
|
|
138
|
+
<service android:name="com.appice.cordova.NotificationEventService" android:exported="false" android:permission="android.permission.BIND_JOB_SERVICE">
|
|
139
|
+
<intent-filter>
|
|
140
|
+
<action android:name="com.appice.campaignEvent" />
|
|
141
|
+
</intent-filter>
|
|
142
|
+
</service>
|
|
143
|
+
|
|
144
|
+
<activity android:name="semusi.context.ui.UIEventsHandler" android:exported="false" android:protectionLevel="signature" android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
|
|
145
|
+
|
|
146
|
+
<activity android:name="semusi.context.ui.AppICENotifUI" android:exported="false">
|
|
147
|
+
<intent-filter>
|
|
148
|
+
<action android:name="AppICE.Notification.FCM_Action"/>
|
|
149
|
+
<category android:name="android.intent.category.DEFAULT"/>
|
|
150
|
+
</intent-filter>
|
|
151
|
+
|
|
152
|
+
<intent-filter>
|
|
153
|
+
<action android:name="android.intent.action.VIEW"/>
|
|
154
|
+
|
|
155
|
+
<category android:name="android.intent.category.DEFAULT"/>
|
|
156
|
+
<category android:name="android.intent.category.BROWSABLE"/>
|
|
157
|
+
|
|
158
|
+
<data android:host="ai.io" android:scheme="https"/>
|
|
159
|
+
</intent-filter>
|
|
160
|
+
</activity>
|
|
161
|
+
|
|
162
|
+
<service android:name="semusi.ruleengine.pushmanager.SdkFcmListenerService" android:exported="false" android:protectionLevel="signature">
|
|
163
|
+
<intent-filter>
|
|
164
|
+
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
|
|
165
|
+
</intent-filter>
|
|
166
|
+
</service>
|
|
167
|
+
|
|
168
|
+
<service android:exported="false" android:name="semusi.ruleengine.pushmanager.NotificationEventService" android:permission="android.permission.BIND_JOB_SERVICE">
|
|
169
|
+
</service>
|
|
170
|
+
</config-file>
|
|
171
|
+
|
|
172
|
+
<!-- CLASSES PATH -->
|
|
173
|
+
<!-- <source-file src="src/android/AppICEMFPPush.java" target-dir="com/appice/cordova/" />-->
|
|
174
|
+
<source-file src="src/android/AppICEPlugin.java" target-dir="com/appice/cordova/" />
|
|
175
|
+
<source-file src="src/android/CampaignCampsReceiver.java" target-dir="com/appice/cordova/" />
|
|
176
|
+
<source-file src="src/android/NotificationEventService.java" target-dir="com/appice/cordova/" />
|
|
177
|
+
|
|
178
|
+
<!-- DEPENDENCIES -->
|
|
179
|
+
<framework src="com.google.firebase:firebase-messaging:$FIREBASE_MESSAGING_VERSION" />
|
|
180
|
+
<framework src="com.github.bumptech.glide:glide:$GLIDE_SDK_VERSION"/>
|
|
181
|
+
<framework src= "com.google.android.gms:play-services-location:$GOOGLE_LOCATION_VERSION"/>
|
|
182
|
+
<framework src= "androidx.legacy:legacy-support-v4:$ANDROIDX_LEGACY_SUPPORT_VERSION"/>
|
|
183
|
+
<framework src= "androidx.annotation:annotation:$ANDROIDX_ANNOTATION_VERSION"/>
|
|
184
|
+
<framework src= "androidx.work:work-runtime:$WORK_MANAGER_VERSION"/>
|
|
185
|
+
<framework src= "androidx.concurrent:concurrent-futures:$ANDROIDX_CONCURRENT_FUTURE_VERSION"/>
|
|
186
|
+
<framework src= "androidx.lifecycle:lifecycle-runtime:$ANDROIDX_LIFECYCLE_SDK_VERSION"/>
|
|
187
|
+
<framework src= "androidx.lifecycle:lifecycle-extensions:$ANDROIDX_LIFECYCLE_EXTENTION_VERSION"/>
|
|
188
|
+
<framework src= "appice.io.android:sdk:$APPICE_VERSION"/>
|
|
189
|
+
|
|
190
|
+
<!-- SCRIPT PATH -->
|
|
191
|
+
<hook type="before_build" src="scripts/BeforeAndroidBuilt.js" />
|
|
127
192
|
</platform>
|
|
128
193
|
</plugin>
|