cordova-plugin-appice 2.0.7 → 2.0.8

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.
Files changed (35) hide show
  1. package/README.md +122 -122
  2. package/example/config.xml +59 -59
  3. package/example/package.json +38 -38
  4. package/example/res/ai_android.pem +40 -40
  5. package/example/www/css/index.css +116 -116
  6. package/example/www/index.html +62 -62
  7. package/example/www/js/index.js +102 -102
  8. package/libcordova/android-release-aar.gradle +62 -62
  9. package/libcordova/build.gradle +50 -50
  10. package/libcordova/proguard-rules.pro +21 -21
  11. package/libcordova/src/main/AndroidManifest.xml +24 -24
  12. package/libcordova/src/main/java/com/appice/cordova/AppICEPlugin.java +968 -968
  13. package/libcordova/src/main/java/com/appice/cordova/CampaignCampsReceiver.java +95 -95
  14. package/libcordova/src/main/java/com/appice/cordova/NotificationEventService.java +55 -55
  15. package/libcordova/src/main/res/values/strings.xml +3 -3
  16. package/package.json +26 -26
  17. package/plugin.xml +128 -129
  18. package/scripts/BeforeAndroidBuilt.js +126 -112
  19. package/scripts/BeforeIosBuilt.js +38 -38
  20. package/scripts/androidAfterPluginAdd.js +159 -159
  21. package/scripts/androidAfterPluginRm.js +195 -195
  22. package/scripts/iOSAfterPluginAdd.js +98 -98
  23. package/scripts/iOSAfterPluginRm.js +74 -74
  24. package/src/build.gradle +14 -5
  25. package/src/firebase/modified/android/FirebasePluginMessagingService.java +356 -356
  26. package/src/firebase/modified/ios/AppDelegate+FirebasePlugin.m +529 -529
  27. package/src/firebase/modified/modified.iml +10 -10
  28. package/src/firebase/original/android/FirebasePluginMessagingService.java +348 -348
  29. package/src/firebase/original/ios/AppDelegate+FirebasePlugin.m +519 -519
  30. package/src/firebase/original/original.iml +10 -10
  31. package/src/ios/AppDelegate+AppICEPlugin.h +8 -8
  32. package/src/ios/AppDelegate+AppICEPlugin.m +191 -259
  33. package/src/ios/AppICEPlugin.h +90 -90
  34. package/src/ios/AppICEPlugin.m +1062 -1087
  35. package/www/AppICE.js +283 -283
@@ -1,63 +1,63 @@
1
- // ./gradlew clean build generateRelease
2
- apply plugin: 'maven'
3
-
4
- def groupId = project.PUBLISH_GROUP_ID
5
- def artifactId = project.PUBLISH_ARTIFACT_ID
6
- def version = project.PUBLISH_VERSION
7
-
8
- def localReleaseDest = "${buildDir}/release/${version}"
9
-
10
- task androidJavadocs(type: Javadoc) {
11
- source = android.sourceSets.main.java.srcDirs
12
- ext.androidJar = "${android.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar"
13
- classpath += files(ext.androidJar)
14
- }
15
-
16
- task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {
17
- classifier = 'javadoc'
18
- // from androidJavadocs.destinationDir
19
- }
20
-
21
- task androidSourcesJar(type: Jar) {
22
- classifier = 'sources'
23
- // from android.sourceSets.main.java.srcDirs
24
- }
25
-
26
- uploadArchives {
27
- repositories.mavenDeployer {
28
- pom.groupId = groupId
29
- pom.artifactId = artifactId
30
- pom.version = version
31
- // Add other pom properties here if you want (developer details / licenses)
32
- repository(url: "file://${localReleaseDest}")
33
- }
34
- }
35
-
36
- task zipRelease(type: Zip) {
37
- from localReleaseDest
38
- destinationDir buildDir
39
- archiveName "release-${version}.zip"
40
- }
41
-
42
- task generateRelease {
43
- println "Release ${version} can be found at ${localReleaseDest}/"
44
- println "Release ${version} zipped can be found ${buildDir}/release-${version}.zip"
45
- }
46
-
47
- generateRelease.dependsOn(uploadArchives)
48
- generateRelease.dependsOn(zipRelease)
49
-
50
-
51
- artifacts {
52
- archives androidSourcesJar
53
- archives androidJavadocsJar
54
- }
55
-
56
- //def installer = install.repositories.mavenInstaller
57
- def deployer = uploadArchives.repositories.mavenDeployer
58
-
59
- //[deployer]*.pom*.whenConfigured {
60
- // pom -> pom.dependencies.find {dep -> dep.groupId == 'appice.io.android' && dep.artifactId == 'sdk' }.optional = true
61
- //}
62
-
1
+ // ./gradlew clean build generateRelease
2
+ apply plugin: 'maven'
3
+
4
+ def groupId = project.PUBLISH_GROUP_ID
5
+ def artifactId = project.PUBLISH_ARTIFACT_ID
6
+ def version = project.PUBLISH_VERSION
7
+
8
+ def localReleaseDest = "${buildDir}/release/${version}"
9
+
10
+ task androidJavadocs(type: Javadoc) {
11
+ source = android.sourceSets.main.java.srcDirs
12
+ ext.androidJar = "${android.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar"
13
+ classpath += files(ext.androidJar)
14
+ }
15
+
16
+ task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {
17
+ classifier = 'javadoc'
18
+ // from androidJavadocs.destinationDir
19
+ }
20
+
21
+ task androidSourcesJar(type: Jar) {
22
+ classifier = 'sources'
23
+ // from android.sourceSets.main.java.srcDirs
24
+ }
25
+
26
+ uploadArchives {
27
+ repositories.mavenDeployer {
28
+ pom.groupId = groupId
29
+ pom.artifactId = artifactId
30
+ pom.version = version
31
+ // Add other pom properties here if you want (developer details / licenses)
32
+ repository(url: "file://${localReleaseDest}")
33
+ }
34
+ }
35
+
36
+ task zipRelease(type: Zip) {
37
+ from localReleaseDest
38
+ destinationDir buildDir
39
+ archiveName "release-${version}.zip"
40
+ }
41
+
42
+ task generateRelease {
43
+ println "Release ${version} can be found at ${localReleaseDest}/"
44
+ println "Release ${version} zipped can be found ${buildDir}/release-${version}.zip"
45
+ }
46
+
47
+ generateRelease.dependsOn(uploadArchives)
48
+ generateRelease.dependsOn(zipRelease)
49
+
50
+
51
+ artifacts {
52
+ archives androidSourcesJar
53
+ archives androidJavadocsJar
54
+ }
55
+
56
+ //def installer = install.repositories.mavenInstaller
57
+ def deployer = uploadArchives.repositories.mavenDeployer
58
+
59
+ //[deployer]*.pom*.whenConfigured {
60
+ // pom -> pom.dependencies.find {dep -> dep.groupId == 'appice.io.android' && dep.artifactId == 'sdk' }.optional = true
61
+ //}
62
+
63
63
  tasks.findByPath(":libcordova:androidJavadocs").enabled = false
@@ -1,50 +1,50 @@
1
- apply plugin: 'com.android.library'
2
-
3
- ext {
4
- PUBLISH_GROUP_ID = 'appice.io.android'
5
- PUBLISH_ARTIFACT_ID = 'cordova'
6
- PUBLISH_VERSION = '2.5.47'
7
- }
8
-
9
- android {
10
- compileSdkVersion 31
11
-
12
- defaultConfig {
13
- minSdkVersion 14
14
- targetSdkVersion 31
15
- versionCode 1
16
- versionName "1.0"
17
- consumerProguardFiles 'proguard-rules.pro'
18
- }
19
- buildTypes {
20
- release {
21
- minifyEnabled false
22
- useProguard false
23
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
24
- }
25
- debug {
26
- minifyEnabled false
27
- useProguard false
28
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
29
- }
30
- }
31
- lintOptions {
32
- abortOnError false
33
- }
34
- buildToolsVersion '29.0.3'
35
- compileOptions {
36
- sourceCompatibility JavaVersion.VERSION_1_8
37
- targetCompatibility JavaVersion.VERSION_1_8
38
- }
39
- }
40
-
41
- dependencies {
42
- implementation fileTree(include: ['*.jar'], dir: 'libs')
43
- implementation 'androidx.appcompat:appcompat:1.1.0'
44
-
45
- compileOnly files('cordova.jar')
46
-
47
- implementation 'com.gitlab.grp_appice:src_android_appice-sdk:2.5.50'
48
- }
49
-
50
- apply from: 'android-release-aar.gradle'
1
+ apply plugin: 'com.android.library'
2
+
3
+ ext {
4
+ PUBLISH_GROUP_ID = 'appice.io.android'
5
+ PUBLISH_ARTIFACT_ID = 'cordova'
6
+ PUBLISH_VERSION = '2.5.47'
7
+ }
8
+
9
+ android {
10
+ compileSdkVersion 31
11
+
12
+ defaultConfig {
13
+ minSdkVersion 14
14
+ targetSdkVersion 31
15
+ versionCode 1
16
+ versionName "1.0"
17
+ consumerProguardFiles 'proguard-rules.pro'
18
+ }
19
+ buildTypes {
20
+ release {
21
+ minifyEnabled false
22
+ useProguard false
23
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
24
+ }
25
+ debug {
26
+ minifyEnabled false
27
+ useProguard false
28
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
29
+ }
30
+ }
31
+ lintOptions {
32
+ abortOnError false
33
+ }
34
+ buildToolsVersion '29.0.3'
35
+ compileOptions {
36
+ sourceCompatibility JavaVersion.VERSION_1_8
37
+ targetCompatibility JavaVersion.VERSION_1_8
38
+ }
39
+ }
40
+
41
+ dependencies {
42
+ implementation fileTree(include: ['*.jar'], dir: 'libs')
43
+ implementation 'androidx.appcompat:appcompat:1.1.0'
44
+
45
+ compileOnly files('cordova.jar')
46
+
47
+ implementation 'com.gitlab.grp_appice:src_android_appice-sdk:2.5.50'
48
+ }
49
+
50
+ apply from: 'android-release-aar.gradle'
@@ -1,21 +1,21 @@
1
- # Add project specific ProGuard rules here.
2
- # You can control the set of applied configuration files using the
3
- # proguardFiles setting in build.gradle.
4
- #
5
- # For more details, see
6
- # http://developer.android.com/guide/developing/tools/proguard.html
7
-
8
- # If your project uses WebView with JS, uncomment the following
9
- # and specify the fully qualified class name to the JavaScript interface
10
- # class:
11
- #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12
- # public *;
13
- #}
14
-
15
- # Uncomment this to preserve the line number information for
16
- # debugging stack traces.
17
- #-keepattributes SourceFile,LineNumberTable
18
-
19
- # If you keep the line number information, uncomment this to
20
- # hide the original source file name.
21
- #-renamesourcefileattribute SourceFile
1
+ # Add project specific ProGuard rules here.
2
+ # You can control the set of applied configuration files using the
3
+ # proguardFiles setting in build.gradle.
4
+ #
5
+ # For more details, see
6
+ # http://developer.android.com/guide/developing/tools/proguard.html
7
+
8
+ # If your project uses WebView with JS, uncomment the following
9
+ # and specify the fully qualified class name to the JavaScript interface
10
+ # class:
11
+ #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12
+ # public *;
13
+ #}
14
+
15
+ # Uncomment this to preserve the line number information for
16
+ # debugging stack traces.
17
+ #-keepattributes SourceFile,LineNumberTable
18
+
19
+ # If you keep the line number information, uncomment this to
20
+ # hide the original source file name.
21
+ #-renamesourcefileattribute SourceFile
@@ -1,24 +1,24 @@
1
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
- package="com.motobitinfo.libcordova">
3
-
4
- <application android:allowBackup="false">
5
-
6
- <receiver
7
- android:name="com.appice.cordova.CampaignCampsReceiver"
8
- android:exported="false"
9
- android:protectionLevel="signature">
10
- <intent-filter>
11
- <action android:name="com.appice.campaignEvent" />
12
- </intent-filter>
13
- </receiver>
14
- <service
15
- android:name="com.appice.cordova.NotificationEventService"
16
- android:exported="false"
17
- android:permission="android.permission.BIND_JOB_SERVICE">
18
- <intent-filter>
19
- <action android:name="com.appice.campaignEvent" />
20
- </intent-filter>
21
- </service>
22
- </application>
23
-
24
- </manifest>
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
+ package="com.motobitinfo.libcordova">
3
+
4
+ <application android:allowBackup="false">
5
+
6
+ <receiver
7
+ android:name="com.appice.cordova.CampaignCampsReceiver"
8
+ android:exported="false"
9
+ android:protectionLevel="signature">
10
+ <intent-filter>
11
+ <action android:name="com.appice.campaignEvent" />
12
+ </intent-filter>
13
+ </receiver>
14
+ <service
15
+ android:name="com.appice.cordova.NotificationEventService"
16
+ android:exported="false"
17
+ android:permission="android.permission.BIND_JOB_SERVICE">
18
+ <intent-filter>
19
+ <action android:name="com.appice.campaignEvent" />
20
+ </intent-filter>
21
+ </service>
22
+ </application>
23
+
24
+ </manifest>