reactnative-plugin-appice 1.7.14 → 1.7.16

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 (105) hide show
  1. package/README.md +37 -37
  2. package/android/README.md +14 -14
  3. package/android/build.gradle +153 -151
  4. package/android/gitignore +47 -47
  5. package/android/gradle/wrapper/gradle-wrapper.properties +5 -5
  6. package/android/gradlew +234 -234
  7. package/android/local.properties +8 -8
  8. package/android/src/main/AndroidManifest.xml +153 -153
  9. package/android/src/main/java/com/reactlibrary/AppICEUtils.java +241 -241
  10. package/android/src/main/java/com/reactlibrary/AppIceReactPluginModule.java +748 -748
  11. package/android/src/main/java/com/reactlibrary/AppIceReactPluginPackage.java +28 -28
  12. package/android/src/main/java/com/reactlibrary/CampaignCampsReceiver.java +56 -56
  13. package/android/src/main/java/com/reactlibrary/EnumConstants.java +256 -256
  14. package/android/src/main/java/com/reactlibrary/NotificationEventService.java +59 -59
  15. package/android/src/main/java/com/reactlibrary/StringConstants.java +9 -9
  16. package/example/App.js +292 -292
  17. package/example/Gemfile +6 -6
  18. package/example/__tests__/App-test.js +14 -14
  19. package/example/ancilliary.js +484 -474
  20. package/example/android/app/_BUCK +55 -55
  21. package/example/android/app/build.gradle +320 -320
  22. package/example/android/app/build_defs.bzl +19 -19
  23. package/example/android/app/proguard-rules.pro +10 -10
  24. package/example/android/app/src/debug/AndroidManifest.xml +13 -13
  25. package/example/android/app/src/debug/java/com/example/ReactNativeFlipper.java +73 -73
  26. package/example/android/app/src/main/AndroidManifest.xml +72 -72
  27. package/example/android/app/src/main/java/com/example/MainActivity.java +48 -48
  28. package/example/android/app/src/main/java/com/example/MainApplication.java +91 -91
  29. package/example/android/app/src/main/java/com/example/newarchitecture/MainApplicationReactNativeHost.java +116 -116
  30. package/example/android/app/src/main/java/com/example/newarchitecture/components/MainComponentsRegistry.java +36 -36
  31. package/example/android/app/src/main/java/com/example/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +48 -48
  32. package/example/android/app/src/main/jni/Android.mk +48 -48
  33. package/example/android/app/src/main/jni/MainApplicationModuleProvider.cpp +24 -24
  34. package/example/android/app/src/main/jni/MainApplicationModuleProvider.h +16 -16
  35. package/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +45 -45
  36. package/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +38 -38
  37. package/example/android/app/src/main/jni/MainComponentsRegistry.cpp +61 -61
  38. package/example/android/app/src/main/jni/MainComponentsRegistry.h +32 -32
  39. package/example/android/app/src/main/jni/OnLoad.cpp +11 -11
  40. package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -36
  41. package/example/android/app/src/main/res/values/strings.xml +3 -3
  42. package/example/android/app/src/main/res/values/styles.xml +9 -9
  43. package/example/android/build.gradle +73 -73
  44. package/example/android/gradle/wrapper/gradle-wrapper.properties +5 -5
  45. package/example/android/gradle.properties +40 -40
  46. package/example/android/gradlew +234 -234
  47. package/example/android/local.properties +8 -0
  48. package/example/android/settings.gradle +11 -11
  49. package/example/app.json +3 -3
  50. package/example/babel.config.js +3 -3
  51. package/example/index.js +9 -9
  52. package/example/ios/Podfile +44 -44
  53. package/example/ios/Podfile.lock +561 -561
  54. package/example/ios/_xcode.env +11 -11
  55. package/example/ios/example/AppDelegate.h +8 -8
  56. package/example/ios/example/AppDelegate.mm +174 -174
  57. package/example/ios/example/Images.xcassets/AppIcon.appiconset/Contents.json +53 -53
  58. package/example/ios/example/Images.xcassets/Contents.json +6 -6
  59. package/example/ios/example/Info.plist +62 -62
  60. package/example/ios/example/LaunchScreen.storyboard +47 -47
  61. package/example/ios/example/example.entitlements +8 -8
  62. package/example/ios/example/main.m +10 -10
  63. package/example/ios/example.xcodeproj/project.pbxproj +712 -712
  64. package/example/ios/example.xcodeproj/xcshareddata/xcschemes/example.xcscheme +88 -88
  65. package/example/ios/example.xcworkspace/contents.xcworkspacedata +10 -10
  66. package/example/ios/example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -8
  67. package/example/ios/exampleTests/Info.plist +24 -24
  68. package/example/ios/exampleTests/exampleTests.m +66 -66
  69. package/example/metro.config.js +17 -17
  70. package/example/package.json +36 -36
  71. package/example/yarn.lock +7713 -7176
  72. package/index.js +520 -485
  73. package/ios/AppICEReactEvent.h +23 -23
  74. package/ios/AppICEReactEvent.m +86 -86
  75. package/ios/AppIceReactPlugin.h +59 -59
  76. package/ios/AppIceReactPlugin.m +641 -641
  77. package/ios/AppIceReactPlugin.xcodeproj/project.pbxproj +364 -364
  78. package/ios/AppIceReactPlugin.xcodeproj/project.xcworkspace/contents.xcworkspacedata +4 -4
  79. package/ios/AppIceReactPlugin.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -8
  80. package/ios/AppIceReactPlugin.xcodeproj/xcuserdata/Adi.xcuserdatad/xcschemes/xcschememanagement.plist +14 -14
  81. package/ios/AppIceReactPlugin.xcodeproj/xcuserdata/artherajesh.xcuserdatad/xcschemes/xcschememanagement.plist +14 -14
  82. package/ios/AppIceReactPlugin.xcworkspace/contents.xcworkspacedata +10 -10
  83. package/ios/AppIceReactPlugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -8
  84. package/ios/Podfile +10 -10
  85. package/ios/Podfile.lock +3 -3
  86. package/ios/Pods/Manifest.lock +3 -3
  87. package/ios/Pods/Pods.xcodeproj/project.pbxproj +395 -395
  88. package/ios/Pods/Pods.xcodeproj/xcuserdata/Adi.xcuserdatad/xcschemes/Pods-AppIceReactPlugin.xcscheme +58 -58
  89. package/ios/Pods/Pods.xcodeproj/xcuserdata/Adi.xcuserdatad/xcschemes/xcschememanagement.plist +18 -18
  90. package/ios/Pods/Pods.xcodeproj/xcuserdata/artherajesh.xcuserdatad/xcschemes/xcschememanagement.plist +14 -14
  91. package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-Info.plist +26 -26
  92. package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-acknowledgements.markdown +3 -3
  93. package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-acknowledgements.plist +29 -29
  94. package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-dummy.m +5 -5
  95. package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-umbrella.h +16 -16
  96. package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin.debug.xcconfig +6 -6
  97. package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin.modulemap +6 -6
  98. package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin.release.xcconfig +6 -6
  99. package/package.json +41 -41
  100. package/reactnative-plugin-appice.podspec +30 -30
  101. package/example/android/.gradle/7.3.3/checksums/checksums.lock +0 -0
  102. package/example/android/.gradle/7.3.3/fileChanges/last-build.bin +0 -0
  103. package/example/android/.gradle/7.3.3/fileHashes/fileHashes.lock +0 -0
  104. package/example/android/.gradle/vcs-1/gc.properties +0 -0
  105. /package/{example/android/.gradle/7.3.3/gc.properties → android/src/main/test} +0 -0
@@ -1,19 +1,19 @@
1
- """Helper definitions to glob .aar and .jar targets"""
2
-
3
- def create_aar_targets(aarfiles):
4
- for aarfile in aarfiles:
5
- name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")]
6
- lib_deps.append(":" + name)
7
- android_prebuilt_aar(
8
- name = name,
9
- aar = aarfile,
10
- )
11
-
12
- def create_jar_targets(jarfiles):
13
- for jarfile in jarfiles:
14
- name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")]
15
- lib_deps.append(":" + name)
16
- prebuilt_jar(
17
- name = name,
18
- binary_jar = jarfile,
19
- )
1
+ """Helper definitions to glob .aar and .jar targets"""
2
+
3
+ def create_aar_targets(aarfiles):
4
+ for aarfile in aarfiles:
5
+ name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")]
6
+ lib_deps.append(":" + name)
7
+ android_prebuilt_aar(
8
+ name = name,
9
+ aar = aarfile,
10
+ )
11
+
12
+ def create_jar_targets(jarfiles):
13
+ for jarfile in jarfiles:
14
+ name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")]
15
+ lib_deps.append(":" + name)
16
+ prebuilt_jar(
17
+ name = name,
18
+ binary_jar = jarfile,
19
+ )
@@ -1,10 +1,10 @@
1
- # Add project specific ProGuard rules here.
2
- # By default, the flags in this file are appended to flags specified
3
- # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4
- # You can edit the include path and order by changing the proguardFiles
5
- # directive in build.gradle.
6
- #
7
- # For more details, see
8
- # http://developer.android.com/guide/developing/tools/proguard.html
9
-
10
- # Add any project specific keep options here:
1
+ # Add project specific ProGuard rules here.
2
+ # By default, the flags in this file are appended to flags specified
3
+ # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4
+ # You can edit the include path and order by changing the proguardFiles
5
+ # directive in build.gradle.
6
+ #
7
+ # For more details, see
8
+ # http://developer.android.com/guide/developing/tools/proguard.html
9
+
10
+ # Add any project specific keep options here:
@@ -1,13 +1,13 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- xmlns:tools="http://schemas.android.com/tools">
4
-
5
- <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
6
-
7
- <application
8
- android:usesCleartextTraffic="true"
9
- tools:targetApi="28"
10
- tools:ignore="GoogleAppIndexingWarning">
11
- <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" android:exported="false" />
12
- </application>
13
- </manifest>
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
+ xmlns:tools="http://schemas.android.com/tools">
4
+
5
+ <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
6
+
7
+ <application
8
+ android:usesCleartextTraffic="true"
9
+ tools:targetApi="28"
10
+ tools:ignore="GoogleAppIndexingWarning">
11
+ <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" android:exported="false" />
12
+ </application>
13
+ </manifest>
@@ -1,73 +1,73 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
5
- * directory of this source tree.
6
- */
7
- package com.example;
8
-
9
- import android.content.Context;
10
- import com.facebook.flipper.android.AndroidFlipperClient;
11
- import com.facebook.flipper.android.utils.FlipperUtils;
12
- import com.facebook.flipper.core.FlipperClient;
13
- import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;
14
- import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin;
15
- import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin;
16
- import com.facebook.flipper.plugins.inspector.DescriptorMapping;
17
- import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin;
18
- import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor;
19
- import com.facebook.flipper.plugins.network.NetworkFlipperPlugin;
20
- import com.facebook.flipper.plugins.react.ReactFlipperPlugin;
21
- import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;
22
- import com.facebook.react.ReactInstanceEventListener;
23
- import com.facebook.react.ReactInstanceManager;
24
- import com.facebook.react.bridge.ReactContext;
25
- import com.facebook.react.modules.network.NetworkingModule;
26
- import okhttp3.OkHttpClient;
27
-
28
- public class ReactNativeFlipper {
29
- public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
30
- if (FlipperUtils.shouldEnableFlipper(context)) {
31
- final FlipperClient client = AndroidFlipperClient.getInstance(context);
32
-
33
- client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()));
34
- client.addPlugin(new ReactFlipperPlugin());
35
- client.addPlugin(new DatabasesFlipperPlugin(context));
36
- client.addPlugin(new SharedPreferencesFlipperPlugin(context));
37
- client.addPlugin(CrashReporterPlugin.getInstance());
38
-
39
- NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();
40
- NetworkingModule.setCustomClientBuilder(
41
- new NetworkingModule.CustomClientBuilder() {
42
- @Override
43
- public void apply(OkHttpClient.Builder builder) {
44
- builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin));
45
- }
46
- });
47
- client.addPlugin(networkFlipperPlugin);
48
- client.start();
49
-
50
- // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized
51
- // Hence we run if after all native modules have been initialized
52
- ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
53
- if (reactContext == null) {
54
- reactInstanceManager.addReactInstanceEventListener(
55
- new ReactInstanceEventListener() {
56
- @Override
57
- public void onReactContextInitialized(ReactContext reactContext) {
58
- reactInstanceManager.removeReactInstanceEventListener(this);
59
- reactContext.runOnNativeModulesQueueThread(
60
- new Runnable() {
61
- @Override
62
- public void run() {
63
- client.addPlugin(new FrescoFlipperPlugin());
64
- }
65
- });
66
- }
67
- });
68
- } else {
69
- client.addPlugin(new FrescoFlipperPlugin());
70
- }
71
- }
72
- }
73
- }
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
5
+ * directory of this source tree.
6
+ */
7
+ package com.example;
8
+
9
+ import android.content.Context;
10
+ import com.facebook.flipper.android.AndroidFlipperClient;
11
+ import com.facebook.flipper.android.utils.FlipperUtils;
12
+ import com.facebook.flipper.core.FlipperClient;
13
+ import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;
14
+ import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin;
15
+ import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin;
16
+ import com.facebook.flipper.plugins.inspector.DescriptorMapping;
17
+ import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin;
18
+ import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor;
19
+ import com.facebook.flipper.plugins.network.NetworkFlipperPlugin;
20
+ import com.facebook.flipper.plugins.react.ReactFlipperPlugin;
21
+ import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;
22
+ import com.facebook.react.ReactInstanceEventListener;
23
+ import com.facebook.react.ReactInstanceManager;
24
+ import com.facebook.react.bridge.ReactContext;
25
+ import com.facebook.react.modules.network.NetworkingModule;
26
+ import okhttp3.OkHttpClient;
27
+
28
+ public class ReactNativeFlipper {
29
+ public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
30
+ if (FlipperUtils.shouldEnableFlipper(context)) {
31
+ final FlipperClient client = AndroidFlipperClient.getInstance(context);
32
+
33
+ client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()));
34
+ client.addPlugin(new ReactFlipperPlugin());
35
+ client.addPlugin(new DatabasesFlipperPlugin(context));
36
+ client.addPlugin(new SharedPreferencesFlipperPlugin(context));
37
+ client.addPlugin(CrashReporterPlugin.getInstance());
38
+
39
+ NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();
40
+ NetworkingModule.setCustomClientBuilder(
41
+ new NetworkingModule.CustomClientBuilder() {
42
+ @Override
43
+ public void apply(OkHttpClient.Builder builder) {
44
+ builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin));
45
+ }
46
+ });
47
+ client.addPlugin(networkFlipperPlugin);
48
+ client.start();
49
+
50
+ // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized
51
+ // Hence we run if after all native modules have been initialized
52
+ ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
53
+ if (reactContext == null) {
54
+ reactInstanceManager.addReactInstanceEventListener(
55
+ new ReactInstanceEventListener() {
56
+ @Override
57
+ public void onReactContextInitialized(ReactContext reactContext) {
58
+ reactInstanceManager.removeReactInstanceEventListener(this);
59
+ reactContext.runOnNativeModulesQueueThread(
60
+ new Runnable() {
61
+ @Override
62
+ public void run() {
63
+ client.addPlugin(new FrescoFlipperPlugin());
64
+ }
65
+ });
66
+ }
67
+ });
68
+ } else {
69
+ client.addPlugin(new FrescoFlipperPlugin());
70
+ }
71
+ }
72
+ }
73
+ }
@@ -1,72 +1,72 @@
1
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
- package="com.example">
3
-
4
- <uses-permission android:name="android.permission.INTERNET" />
5
-
6
- <application
7
- android:name=".MainApplication"
8
- android:label="@string/app_name"
9
- android:icon="@mipmap/ic_launcher"
10
- android:roundIcon="@mipmap/ic_launcher_round"
11
- android:allowBackup="false"
12
- android:theme="@style/AppTheme">
13
- <activity
14
- android:name=".MainActivity"
15
- android:label="@string/app_name"
16
- android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
17
- android:launchMode="singleTask"
18
- android:windowSoftInputMode="adjustResize"
19
- android:exported="true">
20
- <intent-filter>
21
- <action android:name="android.intent.action.MAIN" />
22
- <category android:name="android.intent.category.LAUNCHER" />
23
- </intent-filter>
24
- </activity>
25
-
26
- <service
27
- android:name="semusi.ruleengine.pushmanager.SdkFcmListenerService"
28
- android:protectionLevel="signature"
29
- android:exported="false">
30
- <intent-filter>
31
- <action android:name="com.google.firebase.MESSAGING_EVENT" />
32
- </intent-filter>
33
- </service>
34
-
35
- <receiver
36
- android:name="semusi.context.counthandler.NotificationEventReceiver"
37
- android:exported="false"
38
- android:protectionLevel="signature" />
39
-
40
- <activity android:name="semusi.context.ui.AppICENotifUI"
41
- android:exported="false">
42
-
43
- <intent-filter>
44
- <action android:name="android.intent.action.VIEW"/>
45
-
46
- <category android:name="android.intent.category.DEFAULT"/>
47
- <category android:name="android.intent.category.BROWSABLE"/>
48
-
49
- <data
50
- android:host="ai.io"
51
- android:scheme="https"/>
52
- </intent-filter>
53
- </activity>
54
-
55
- <receiver
56
- android:name="com.reactlibrary.CampaignCampsReceiver"
57
- android:protectionLevel="signature"
58
- android:exported="false">
59
- <intent-filter>
60
- <action android:name="com.appice.campaignEvent" />
61
- </intent-filter>
62
- </receiver>
63
- <service
64
- android:name="com.reactlibrary.NotificationEventService"
65
- android:permission="android.permission.BIND_JOB_SERVICE"
66
- android:exported="false">
67
- <intent-filter>
68
- <action android:name="com.appice.campaignEvent" />
69
- </intent-filter>
70
- </service>
71
- </application>
72
- </manifest>
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
+ package="com.example">
3
+
4
+ <uses-permission android:name="android.permission.INTERNET" />
5
+
6
+ <application
7
+ android:name=".MainApplication"
8
+ android:label="@string/app_name"
9
+ android:icon="@mipmap/ic_launcher"
10
+ android:roundIcon="@mipmap/ic_launcher_round"
11
+ android:allowBackup="false"
12
+ android:theme="@style/AppTheme">
13
+ <activity
14
+ android:name=".MainActivity"
15
+ android:label="@string/app_name"
16
+ android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
17
+ android:launchMode="singleTask"
18
+ android:windowSoftInputMode="adjustResize"
19
+ android:exported="true">
20
+ <intent-filter>
21
+ <action android:name="android.intent.action.MAIN" />
22
+ <category android:name="android.intent.category.LAUNCHER" />
23
+ </intent-filter>
24
+ </activity>
25
+
26
+ <service
27
+ android:name="semusi.ruleengine.pushmanager.SdkFcmListenerService"
28
+ android:protectionLevel="signature"
29
+ android:exported="false">
30
+ <intent-filter>
31
+ <action android:name="com.google.firebase.MESSAGING_EVENT" />
32
+ </intent-filter>
33
+ </service>
34
+
35
+ <receiver
36
+ android:name="semusi.context.counthandler.NotificationEventReceiver"
37
+ android:exported="false"
38
+ android:protectionLevel="signature" />
39
+
40
+ <activity android:name="semusi.context.ui.AppICENotifUI"
41
+ android:exported="false">
42
+
43
+ <intent-filter>
44
+ <action android:name="android.intent.action.VIEW"/>
45
+
46
+ <category android:name="android.intent.category.DEFAULT"/>
47
+ <category android:name="android.intent.category.BROWSABLE"/>
48
+
49
+ <data
50
+ android:host="ai.io"
51
+ android:scheme="https"/>
52
+ </intent-filter>
53
+ </activity>
54
+
55
+ <receiver
56
+ android:name="com.reactlibrary.CampaignCampsReceiver"
57
+ android:protectionLevel="signature"
58
+ android:exported="false">
59
+ <intent-filter>
60
+ <action android:name="com.appice.campaignEvent" />
61
+ </intent-filter>
62
+ </receiver>
63
+ <service
64
+ android:name="com.reactlibrary.NotificationEventService"
65
+ android:permission="android.permission.BIND_JOB_SERVICE"
66
+ android:exported="false">
67
+ <intent-filter>
68
+ <action android:name="com.appice.campaignEvent" />
69
+ </intent-filter>
70
+ </service>
71
+ </application>
72
+ </manifest>
@@ -1,48 +1,48 @@
1
- package com.example;
2
-
3
- import com.facebook.react.ReactActivity;
4
- import com.facebook.react.ReactActivityDelegate;
5
- import com.facebook.react.ReactRootView;
6
-
7
- public class MainActivity extends ReactActivity {
8
-
9
- /**
10
- * Returns the name of the main component registered from JavaScript. This is used to schedule
11
- * rendering of the component.
12
- */
13
- @Override
14
- protected String getMainComponentName() {
15
- return "example";
16
- }
17
-
18
- /**
19
- * Returns the instance of the {@link ReactActivityDelegate}. There the RootView is created and
20
- * you can specify the renderer you wish to use - the new renderer (Fabric) or the old renderer
21
- * (Paper).
22
- */
23
- @Override
24
- protected ReactActivityDelegate createReactActivityDelegate() {
25
- return new MainActivityDelegate(this, getMainComponentName());
26
- }
27
-
28
- public static class MainActivityDelegate extends ReactActivityDelegate {
29
- public MainActivityDelegate(ReactActivity activity, String mainComponentName) {
30
- super(activity, mainComponentName);
31
- }
32
-
33
- @Override
34
- protected ReactRootView createRootView() {
35
- ReactRootView reactRootView = new ReactRootView(getContext());
36
- // If you opted-in for the New Architecture, we enable the Fabric Renderer.
37
- reactRootView.setIsFabric(BuildConfig.IS_NEW_ARCHITECTURE_ENABLED);
38
- return reactRootView;
39
- }
40
-
41
- @Override
42
- protected boolean isConcurrentRootEnabled() {
43
- // If you opted-in for the New Architecture, we enable Concurrent Root (i.e. React 18).
44
- // More on this on https://reactjs.org/blog/2022/03/29/react-v18.html
45
- return BuildConfig.IS_NEW_ARCHITECTURE_ENABLED;
46
- }
47
- }
48
- }
1
+ package com.example;
2
+
3
+ import com.facebook.react.ReactActivity;
4
+ import com.facebook.react.ReactActivityDelegate;
5
+ import com.facebook.react.ReactRootView;
6
+
7
+ public class MainActivity extends ReactActivity {
8
+
9
+ /**
10
+ * Returns the name of the main component registered from JavaScript. This is used to schedule
11
+ * rendering of the component.
12
+ */
13
+ @Override
14
+ protected String getMainComponentName() {
15
+ return "example";
16
+ }
17
+
18
+ /**
19
+ * Returns the instance of the {@link ReactActivityDelegate}. There the RootView is created and
20
+ * you can specify the renderer you wish to use - the new renderer (Fabric) or the old renderer
21
+ * (Paper).
22
+ */
23
+ @Override
24
+ protected ReactActivityDelegate createReactActivityDelegate() {
25
+ return new MainActivityDelegate(this, getMainComponentName());
26
+ }
27
+
28
+ public static class MainActivityDelegate extends ReactActivityDelegate {
29
+ public MainActivityDelegate(ReactActivity activity, String mainComponentName) {
30
+ super(activity, mainComponentName);
31
+ }
32
+
33
+ @Override
34
+ protected ReactRootView createRootView() {
35
+ ReactRootView reactRootView = new ReactRootView(getContext());
36
+ // If you opted-in for the New Architecture, we enable the Fabric Renderer.
37
+ reactRootView.setIsFabric(BuildConfig.IS_NEW_ARCHITECTURE_ENABLED);
38
+ return reactRootView;
39
+ }
40
+
41
+ @Override
42
+ protected boolean isConcurrentRootEnabled() {
43
+ // If you opted-in for the New Architecture, we enable Concurrent Root (i.e. React 18).
44
+ // More on this on https://reactjs.org/blog/2022/03/29/react-v18.html
45
+ return BuildConfig.IS_NEW_ARCHITECTURE_ENABLED;
46
+ }
47
+ }
48
+ }