reactnative-plugin-appice 1.7.25 → 1.7.26

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 (107) hide show
  1. package/README.md +37 -37
  2. package/android/.idea/workspace.xml +103 -0
  3. package/android/README.md +14 -14
  4. package/android/build.gradle +158 -158
  5. package/android/gitignore +47 -47
  6. package/android/gradle/wrapper/gradle-wrapper.properties +5 -5
  7. package/android/gradlew +234 -234
  8. package/android/local.properties +8 -8
  9. package/android/src/main/AndroidManifest.xml +128 -164
  10. package/android/src/main/java/com/reactlibrary/AppICEUtils.java +274 -274
  11. package/android/src/main/java/com/reactlibrary/AppIceReactPluginModule.java +778 -778
  12. package/android/src/main/java/com/reactlibrary/AppIceReactPluginPackage.java +28 -28
  13. package/android/src/main/java/com/reactlibrary/CampaignCampsReceiver.java +56 -56
  14. package/android/src/main/java/com/reactlibrary/EnumConstants.java +282 -282
  15. package/android/src/main/java/com/reactlibrary/NotificationEventService.java +59 -59
  16. package/android/src/main/java/com/reactlibrary/StringConstants.java +24 -24
  17. package/campaign.js +25 -25
  18. package/example/App.js +332 -332
  19. package/example/Gemfile +6 -6
  20. package/example/PageA.tsx +15 -15
  21. package/example/__tests__/App-test.js +14 -14
  22. package/example/ancilliary.js +486 -486
  23. package/example/android/app/_BUCK +55 -55
  24. package/example/android/app/build.gradle +320 -320
  25. package/example/android/app/build_defs.bzl +19 -19
  26. package/example/android/app/proguard-rules.pro +10 -10
  27. package/example/android/app/src/debug/AndroidManifest.xml +13 -13
  28. package/example/android/app/src/debug/java/com/example/ReactNativeFlipper.java +73 -73
  29. package/example/android/app/src/main/AndroidManifest.xml +72 -72
  30. package/example/android/app/src/main/java/com/example/MainActivity.java +48 -48
  31. package/example/android/app/src/main/java/com/example/MainApplication.java +91 -91
  32. package/example/android/app/src/main/java/com/example/newarchitecture/MainApplicationReactNativeHost.java +116 -116
  33. package/example/android/app/src/main/java/com/example/newarchitecture/components/MainComponentsRegistry.java +36 -36
  34. package/example/android/app/src/main/java/com/example/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +48 -48
  35. package/example/android/app/src/main/jni/Android.mk +48 -48
  36. package/example/android/app/src/main/jni/MainApplicationModuleProvider.cpp +24 -24
  37. package/example/android/app/src/main/jni/MainApplicationModuleProvider.h +16 -16
  38. package/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +45 -45
  39. package/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +38 -38
  40. package/example/android/app/src/main/jni/MainComponentsRegistry.cpp +61 -61
  41. package/example/android/app/src/main/jni/MainComponentsRegistry.h +32 -32
  42. package/example/android/app/src/main/jni/OnLoad.cpp +11 -11
  43. package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -36
  44. package/example/android/app/src/main/res/values/strings.xml +3 -3
  45. package/example/android/app/src/main/res/values/styles.xml +9 -9
  46. package/example/android/build.gradle +73 -73
  47. package/example/android/gradle/wrapper/gradle-wrapper.properties +5 -5
  48. package/example/android/gradle.properties +40 -40
  49. package/example/android/gradlew +234 -234
  50. package/example/android/settings.gradle +11 -11
  51. package/example/app.json +3 -3
  52. package/example/babel.config.js +3 -3
  53. package/example/index.js +9 -9
  54. package/example/ios/Podfile +44 -44
  55. package/example/ios/Podfile.lock +561 -561
  56. package/example/ios/_xcode.env +11 -11
  57. package/example/ios/example/AppDelegate.h +8 -8
  58. package/example/ios/example/AppDelegate.mm +174 -174
  59. package/example/ios/example/Images.xcassets/AppIcon.appiconset/Contents.json +53 -53
  60. package/example/ios/example/Images.xcassets/Contents.json +6 -6
  61. package/example/ios/example/Info.plist +62 -62
  62. package/example/ios/example/LaunchScreen.storyboard +47 -47
  63. package/example/ios/example/example.entitlements +8 -8
  64. package/example/ios/example/main.m +10 -10
  65. package/example/ios/example.xcodeproj/project.pbxproj +712 -712
  66. package/example/ios/example.xcodeproj/xcshareddata/xcschemes/example.xcscheme +88 -88
  67. package/example/ios/example.xcworkspace/contents.xcworkspacedata +10 -10
  68. package/example/ios/example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -8
  69. package/example/ios/exampleTests/Info.plist +24 -24
  70. package/example/ios/exampleTests/exampleTests.m +66 -66
  71. package/example/metro.config.js +17 -17
  72. package/example/package.json +36 -36
  73. package/example/yarn.lock +7176 -7176
  74. package/index.js +590 -590
  75. package/ios/AppICEReactEvent.h +23 -23
  76. package/ios/AppICEReactEvent.m +86 -86
  77. package/ios/AppIceReactPlugin.h +65 -65
  78. package/ios/AppIceReactPlugin.m +683 -683
  79. package/ios/AppIceReactPlugin.xcodeproj/project.pbxproj +364 -364
  80. package/ios/AppIceReactPlugin.xcodeproj/project.xcworkspace/contents.xcworkspacedata +4 -4
  81. package/ios/AppIceReactPlugin.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -8
  82. package/ios/AppIceReactPlugin.xcodeproj/xcuserdata/Adi.xcuserdatad/xcschemes/xcschememanagement.plist +14 -14
  83. package/ios/AppIceReactPlugin.xcodeproj/xcuserdata/artherajesh.xcuserdatad/xcschemes/xcschememanagement.plist +14 -14
  84. package/ios/AppIceReactPlugin.xcworkspace/contents.xcworkspacedata +10 -10
  85. package/ios/AppIceReactPlugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -8
  86. package/ios/Podfile +10 -10
  87. package/ios/Podfile.lock +3 -3
  88. package/ios/Pods/Manifest.lock +3 -3
  89. package/ios/Pods/Pods.xcodeproj/project.pbxproj +395 -395
  90. package/ios/Pods/Pods.xcodeproj/xcuserdata/Adi.xcuserdatad/xcschemes/Pods-AppIceReactPlugin.xcscheme +58 -58
  91. package/ios/Pods/Pods.xcodeproj/xcuserdata/Adi.xcuserdatad/xcschemes/xcschememanagement.plist +18 -18
  92. package/ios/Pods/Pods.xcodeproj/xcuserdata/artherajesh.xcuserdatad/xcschemes/xcschememanagement.plist +14 -14
  93. package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-Info.plist +26 -26
  94. package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-acknowledgements.markdown +3 -3
  95. package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-acknowledgements.plist +29 -29
  96. package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-dummy.m +5 -5
  97. package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-umbrella.h +16 -16
  98. package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin.debug.xcconfig +6 -6
  99. package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin.modulemap +6 -6
  100. package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin.release.xcconfig +6 -6
  101. package/package.json +42 -42
  102. package/reactnative-plugin-appice.podspec +30 -30
  103. package/example/android/.gradle/7.3.3/checksums/checksums.lock +0 -0
  104. package/example/android/.gradle/7.3.3/fileChanges/last-build.bin +0 -0
  105. package/example/android/.gradle/7.3.3/fileHashes/fileHashes.lock +0 -0
  106. package/example/android/.gradle/7.3.3/gc.properties +0 -0
  107. package/example/android/.gradle/vcs-1/gc.properties +0 -0
@@ -1,60 +1,60 @@
1
- package com.reactlibrary;
2
-
3
- import android.annotation.TargetApi;
4
- import android.app.job.JobParameters;
5
- import android.app.job.JobService;
6
- import android.os.Build;
7
- import android.os.Bundle;
8
- import android.os.PersistableBundle;
9
- import androidx.annotation.RequiresApi;
10
- import androidx.work.Configuration;
11
-
12
- import java.util.Timer;
13
- import java.util.TimerTask;
14
- import java.util.concurrent.atomic.AtomicReference;
15
-
16
- @TargetApi(Build.VERSION_CODES.LOLLIPOP)
17
- public class NotificationEventService extends JobService {
18
- @Override
19
- public boolean onStartJob(final JobParameters params) {
20
- if (params != null) {
21
- PersistableBundle bundle = params.getExtras();
22
- if (bundle != null) {
23
- final Bundle bundle1 = toBundle(bundle);
24
- if (bundle1 != null) {
25
- new Timer("AppICE-NotifService-Timer").schedule(new TimerTask() {
26
- @Override
27
- public void run() {
28
- CampaignCampsReceiver rc = new CampaignCampsReceiver();
29
- AppICEUtils.printLog("NotificationEventService"," data "+bundle1);
30
- rc.sendCallback(bundle1, getApplicationContext());
31
- jobFinished(params,false);
32
- }
33
- }, 1 * 1000);
34
- }
35
- }
36
- }
37
-
38
- return true;
39
- }
40
-
41
- public static Bundle toBundle(PersistableBundle persistableBundle) {
42
- try {
43
- if (persistableBundle == null) {
44
- return null;
45
- }
46
- Bundle bundle = new Bundle();
47
- if (Build.VERSION.SDK_INT >= 21)
48
- bundle.putAll(persistableBundle);
49
- return bundle;
50
- } catch (Exception e) {
51
- }
52
-
53
- return null;
54
- }
55
-
56
- @Override
57
- public boolean onStopJob(JobParameters params) {
58
- return false;
59
- }
1
+ package com.reactlibrary;
2
+
3
+ import android.annotation.TargetApi;
4
+ import android.app.job.JobParameters;
5
+ import android.app.job.JobService;
6
+ import android.os.Build;
7
+ import android.os.Bundle;
8
+ import android.os.PersistableBundle;
9
+ import androidx.annotation.RequiresApi;
10
+ import androidx.work.Configuration;
11
+
12
+ import java.util.Timer;
13
+ import java.util.TimerTask;
14
+ import java.util.concurrent.atomic.AtomicReference;
15
+
16
+ @TargetApi(Build.VERSION_CODES.LOLLIPOP)
17
+ public class NotificationEventService extends JobService {
18
+ @Override
19
+ public boolean onStartJob(final JobParameters params) {
20
+ if (params != null) {
21
+ PersistableBundle bundle = params.getExtras();
22
+ if (bundle != null) {
23
+ final Bundle bundle1 = toBundle(bundle);
24
+ if (bundle1 != null) {
25
+ new Timer("AppICE-NotifService-Timer").schedule(new TimerTask() {
26
+ @Override
27
+ public void run() {
28
+ CampaignCampsReceiver rc = new CampaignCampsReceiver();
29
+ AppICEUtils.printLog("NotificationEventService"," data "+bundle1);
30
+ rc.sendCallback(bundle1, getApplicationContext());
31
+ jobFinished(params,false);
32
+ }
33
+ }, 1 * 1000);
34
+ }
35
+ }
36
+ }
37
+
38
+ return true;
39
+ }
40
+
41
+ public static Bundle toBundle(PersistableBundle persistableBundle) {
42
+ try {
43
+ if (persistableBundle == null) {
44
+ return null;
45
+ }
46
+ Bundle bundle = new Bundle();
47
+ if (Build.VERSION.SDK_INT >= 21)
48
+ bundle.putAll(persistableBundle);
49
+ return bundle;
50
+ } catch (Exception e) {
51
+ }
52
+
53
+ return null;
54
+ }
55
+
56
+ @Override
57
+ public boolean onStopJob(JobParameters params) {
58
+ return false;
59
+ }
60
60
  }
@@ -1,25 +1,25 @@
1
- package com.reactlibrary;
2
- public interface StringConstants{
3
- String FAILED_RETRIVE_MEDIA_DATA = "Failed to retrieve media data";
4
- String INVALID_INBOX_FORMAT = "Invalid inbox message format";
5
-
6
- String MEDIA_URL = "mediaUrl";
7
- String MEDIA_TYPE = "mediaType";
8
- String MEDIA_THUMBNAIL = "mediaThumbnail";
9
- String MEDIA_DATA = "mediaData";
10
- String APPICE_PUSH_NOTIFICATION_CLICKED = "AppICEPushNotificationClicked";
11
- String APPICE_INAPP_NOTIFICATION_CLICKED = "AppICEInAppClicked";
12
- String INBOX_MESSAGE = "message";
13
- String INBOX_TITLE = "title";
14
- String INBOX_MESSAGE_STATUS = "messageStatus";
15
- String INBOX_CAMPAIGN_TYPE = "campType";
16
- String INBOX_MESSAGE_LANGUAGE = "messageLanguage";
17
- String INBOX_MESSAGE_ID = "id";
18
- String INBOX_CAMPAIGN_ID = "campId";
19
- String INBOX_MESSAGE_CATEGORY = "category";
20
- String INBOX_MESSAGE_ICON = "icon";
21
- String INBOX_CUSTOM_DATA = "cdata";
22
- String FIRST_SEEN = "fsn";
23
- String LAST_SEEN = "lsn";
24
- String CUSTOM_DATA = "cdata";
1
+ package com.reactlibrary;
2
+ public interface StringConstants{
3
+ String FAILED_RETRIVE_MEDIA_DATA = "Failed to retrieve media data";
4
+ String INVALID_INBOX_FORMAT = "Invalid inbox message format";
5
+
6
+ String MEDIA_URL = "mediaUrl";
7
+ String MEDIA_TYPE = "mediaType";
8
+ String MEDIA_THUMBNAIL = "mediaThumbnail";
9
+ String MEDIA_DATA = "mediaData";
10
+ String APPICE_PUSH_NOTIFICATION_CLICKED = "AppICEPushNotificationClicked";
11
+ String APPICE_INAPP_NOTIFICATION_CLICKED = "AppICEInAppClicked";
12
+ String INBOX_MESSAGE = "message";
13
+ String INBOX_TITLE = "title";
14
+ String INBOX_MESSAGE_STATUS = "messageStatus";
15
+ String INBOX_CAMPAIGN_TYPE = "campType";
16
+ String INBOX_MESSAGE_LANGUAGE = "messageLanguage";
17
+ String INBOX_MESSAGE_ID = "id";
18
+ String INBOX_CAMPAIGN_ID = "campId";
19
+ String INBOX_MESSAGE_CATEGORY = "category";
20
+ String INBOX_MESSAGE_ICON = "icon";
21
+ String INBOX_CUSTOM_DATA = "cdata";
22
+ String FIRST_SEEN = "fsn";
23
+ String LAST_SEEN = "lsn";
24
+ String CUSTOM_DATA = "cdata";
25
25
  }
package/campaign.js CHANGED
@@ -1,26 +1,26 @@
1
-
2
- export default class Campaign {
3
- constructor(campId, actionUrl, actionType, customData) {
4
- this._campId = campId;
5
- this._actionUrl = actionUrl;
6
- this._actionType = actionType;
7
- this._customData = customData;
8
- }
9
-
10
- // Getter methods for campaign properties
11
- getCampaignId() {
12
- return this._campId;
13
- }
14
-
15
- getActionUrl() {
16
- return this._actionUrl;
17
- }
18
-
19
- getActionType() {
20
- return this._actionType;
21
- }
22
-
23
- getCustomData() {
24
- return this._customData;
25
- }
1
+
2
+ export default class Campaign {
3
+ constructor(campId, actionUrl, actionType, customData) {
4
+ this._campId = campId;
5
+ this._actionUrl = actionUrl;
6
+ this._actionType = actionType;
7
+ this._customData = customData;
8
+ }
9
+
10
+ // Getter methods for campaign properties
11
+ getCampaignId() {
12
+ return this._campId;
13
+ }
14
+
15
+ getActionUrl() {
16
+ return this._actionUrl;
17
+ }
18
+
19
+ getActionType() {
20
+ return this._actionType;
21
+ }
22
+
23
+ getCustomData() {
24
+ return this._customData;
25
+ }
26
26
  }