reactnative-plugin-appice 1.4.0 → 1.4.3

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 (207) hide show
  1. package/README.md +1 -59
  2. package/android/build.gradle +14 -54
  3. package/android/libs/logutility.jar +0 -0
  4. package/android/local.properties +2 -2
  5. package/android/src/main/AndroidManifest.xml +21 -124
  6. package/android/src/main/java/com/reactlibrary/AppICEUtils.java +38 -0
  7. package/android/src/main/java/com/reactlibrary/AppIceReactPluginModule.java +330 -78
  8. package/android/src/main/java/com/reactlibrary/CampaignCampsReceiver.java +20 -3
  9. package/android/src/main/java/com/reactlibrary/InAppWebView.java +68 -0
  10. package/android/src/main/java/com/reactlibrary/NotificationEventService.java +0 -0
  11. package/android/src/main/java/com/reactlibrary/React-Native workspace.code-workspace +29 -0
  12. package/example/App.js +126 -0
  13. package/example/Gemfile +6 -0
  14. package/example/__tests__/App-test.js +14 -0
  15. package/example/android/.gradle/7.3.3/checksums/checksums.lock +0 -0
  16. package/{android/.gradle/5.4.1/fileHashes/fileHashes.bin → example/android/.gradle/7.3.3/checksums/md5-checksums.bin} +0 -0
  17. package/example/android/.gradle/7.3.3/checksums/sha1-checksums.bin +0 -0
  18. package/example/android/.gradle/7.3.3/dependencies-accessors/dependencies-accessors.lock +0 -0
  19. package/{android/.gradle/5.4.1 → example/android/.gradle/7.3.3/dependencies-accessors}/gc.properties +0 -0
  20. package/example/android/.gradle/7.3.3/executionHistory/executionHistory.lock +0 -0
  21. package/{android/.gradle/5.4.1 → example/android/.gradle/7.3.3}/fileChanges/last-build.bin +0 -0
  22. package/example/android/.gradle/7.3.3/fileHashes/fileHashes.bin +0 -0
  23. package/example/android/.gradle/7.3.3/fileHashes/fileHashes.lock +0 -0
  24. package/example/android/.gradle/7.3.3/fileHashes/resourceHashesCache.bin +0 -0
  25. package/{android/.gradle/vcs-1 → example/android/.gradle/7.3.3}/gc.properties +0 -0
  26. package/example/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  27. package/example/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  28. package/example/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  29. package/example/android/.gradle/vcs-1/gc.properties +0 -0
  30. package/example/android/.idea/.name +1 -0
  31. package/example/android/.idea/compiler.xml +6 -0
  32. package/example/android/.idea/gradle.xml +34 -0
  33. package/example/android/.idea/jarRepositories.xml +55 -0
  34. package/example/android/.idea/misc.xml +10 -0
  35. package/example/android/.idea/vcs.xml +6 -0
  36. package/example/android/app/_BUCK +55 -0
  37. package/example/android/app/build.gradle +321 -0
  38. package/example/android/app/build_defs.bzl +19 -0
  39. package/example/android/app/debug.keystore +0 -0
  40. package/example/android/app/google-services.json +275 -0
  41. package/example/android/app/proguard-rules.pro +10 -0
  42. package/example/android/app/src/debug/AndroidManifest.xml +13 -0
  43. package/example/android/app/src/debug/java/com/example/ReactNativeFlipper.java +73 -0
  44. package/example/android/app/src/main/AndroidManifest.xml +72 -0
  45. package/example/android/app/src/main/java/com/example/MainActivity.java +48 -0
  46. package/example/android/app/src/main/java/com/example/MainApplication.java +91 -0
  47. package/example/android/app/src/main/java/com/example/newarchitecture/MainApplicationReactNativeHost.java +116 -0
  48. package/example/android/app/src/main/java/com/example/newarchitecture/components/MainComponentsRegistry.java +36 -0
  49. package/example/android/app/src/main/java/com/example/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +48 -0
  50. package/example/android/app/src/main/jni/Android.mk +48 -0
  51. package/example/android/app/src/main/jni/MainApplicationModuleProvider.cpp +24 -0
  52. package/example/android/app/src/main/jni/MainApplicationModuleProvider.h +16 -0
  53. package/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +45 -0
  54. package/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +38 -0
  55. package/example/android/app/src/main/jni/MainComponentsRegistry.cpp +61 -0
  56. package/example/android/app/src/main/jni/MainComponentsRegistry.h +32 -0
  57. package/example/android/app/src/main/jni/OnLoad.cpp +11 -0
  58. package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -0
  59. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  60. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  61. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  62. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  63. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  64. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  65. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  66. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  67. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  68. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  69. package/example/android/app/src/main/res/values/strings.xml +3 -0
  70. package/example/android/app/src/main/res/values/styles.xml +9 -0
  71. package/example/android/build.gradle +54 -0
  72. package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  73. package/example/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  74. package/example/android/gradle.properties +40 -0
  75. package/example/android/gradlew +234 -0
  76. package/example/android/gradlew.bat +89 -0
  77. package/example/android/local.properties +8 -0
  78. package/example/android/settings.gradle +11 -0
  79. package/example/app.json +4 -0
  80. package/example/babel.config.js +3 -0
  81. package/example/index.js +9 -0
  82. package/example/ios/Podfile +44 -0
  83. package/example/ios/Podfile.lock +561 -0
  84. package/example/ios/_xcode.env +11 -0
  85. package/example/ios/example/AppDelegate.h +8 -0
  86. package/example/ios/example/AppDelegate.mm +174 -0
  87. package/example/ios/example/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
  88. package/example/ios/example/Images.xcassets/Contents.json +6 -0
  89. package/example/ios/example/Info.plist +62 -0
  90. package/example/ios/example/LaunchScreen.storyboard +47 -0
  91. package/example/ios/example/example.entitlements +8 -0
  92. package/example/ios/example/main.m +10 -0
  93. package/example/ios/example.xcodeproj/project.pbxproj +712 -0
  94. package/example/ios/example.xcodeproj/xcshareddata/xcschemes/example.xcscheme +88 -0
  95. package/example/ios/example.xcworkspace/contents.xcworkspacedata +10 -0
  96. package/example/ios/example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  97. package/example/ios/exampleTests/Info.plist +24 -0
  98. package/example/ios/exampleTests/exampleTests.m +66 -0
  99. package/example/metro.config.js +17 -0
  100. package/example/package-lock.json +22484 -0
  101. package/example/package.json +34 -0
  102. package/example/yarn.lock +7604 -0
  103. package/index.js +107 -3
  104. package/ios/AppICEReactEvent.h +22 -0
  105. package/ios/AppICEReactEvent.m +65 -0
  106. package/ios/AppICESDK/appICE.momd/VersionInfo.plist +0 -0
  107. package/ios/AppICESDK/appICE.momd/appICE 4.mom +0 -0
  108. package/ios/AppICESDK/appICE.momd/appICE 4.omo +0 -0
  109. package/ios/AppICESDK/appICEBundle.bundle/APPChildViewController.nib +0 -0
  110. package/ios/AppICESDK/appICEBundle.bundle/HAlfFooterNOTINAppViewController.nib +0 -0
  111. package/ios/AppICESDK/appICEBundle.bundle/HAlfHeaderINAppViewController.nib +0 -0
  112. package/ios/AppICESDK/appICEBundle.bundle/HAlfINAppViewController.nib +0 -0
  113. package/ios/AppICESDK/appICEBundle.bundle/INAppViewController.nib/objects-11.0+.nib +0 -0
  114. package/ios/AppICESDK/appICEBundle.bundle/INAppViewController.nib/runtime.nib +0 -0
  115. package/ios/AppICESDK/appICEBundle.bundle/Info.plist +0 -0
  116. package/ios/AppICESDK/appICEBundle.bundle/RatingViewController.nib +0 -0
  117. package/ios/AppICESDK/appICEBundle.bundle/SurveyViewController.nib +0 -0
  118. package/ios/AppICESDK/include/iosAppiceSDK/AppICEHelper.h +77 -0
  119. package/ios/AppICESDK/include/iosAppiceSDK/AppICEInboxMessage.h +1 -0
  120. package/ios/AppICESDK/include/iosAppiceSDK/AppICEJSInterface.h +21 -0
  121. package/ios/AppICESDK/include/iosAppiceSDK/appICE.h +68 -22
  122. package/ios/AppICESDK/include/iosAppiceSDK/appICEUserDetails.h +6 -0
  123. package/ios/AppICESDK/include/iosAppiceSDK/isrgrootx1.der +0 -0
  124. package/ios/AppICESDK/include/iosAppiceSDK/lets-encrypt-r3.der +0 -0
  125. package/ios/AppICESDK/{libiosAppiceSDK_v1.7.15.a → libiosAppiceSDK_v1.7.37.a} +0 -0
  126. package/ios/AppIceReactPlugin.h +16 -2
  127. package/ios/AppIceReactPlugin.m +96 -13
  128. package/ios/AppIceReactPlugin.xcodeproj/project.pbxproj +67 -55
  129. package/package.json +3 -2
  130. package/android/.gradle/5.4.1/executionHistory/executionHistory.bin +0 -0
  131. package/android/.gradle/5.4.1/executionHistory/executionHistory.lock +0 -0
  132. package/android/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
  133. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  134. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  135. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  136. package/android/.idea/caches/build_file_checksums.ser +0 -0
  137. package/android/.idea/caches/gradle_models.ser +0 -0
  138. package/android/.idea/codeStyles/Project.xml +0 -116
  139. package/android/.idea/dictionaries/Adi.xml +0 -3
  140. package/android/.idea/gradle.xml +0 -16
  141. package/android/.idea/libraries/Gradle____local_aars____Users_Adi_ReactModule_AppICEReactLibrary_android_libs_AppICE_SDK_v2_4_18_jar_unspecified_jar.xml +0 -9
  142. package/android/.idea/libraries/Gradle____local_aars____Users_Adi_ReactModule_AppICEReactLibrary_android_libs_logutility_jar_unspecified_jar.xml +0 -9
  143. package/android/.idea/libraries/Gradle__android_arch_core_common_1_0_0_jar.xml +0 -11
  144. package/android/.idea/libraries/Gradle__android_arch_lifecycle_common_1_0_0_jar.xml +0 -11
  145. package/android/.idea/libraries/Gradle__android_arch_lifecycle_runtime_1_0_0_aar.xml +0 -12
  146. package/android/.idea/libraries/Gradle__com_android_support_appcompat_v7_23_0_1_aar.xml +0 -15
  147. package/android/.idea/libraries/Gradle__com_android_support_customtabs_26_1_0_aar.xml +0 -12
  148. package/android/.idea/libraries/Gradle__com_android_support_recyclerview_v7_23_0_1_aar.xml +0 -12
  149. package/android/.idea/libraries/Gradle__com_android_support_support_annotations_23_0_1_jar.xml +0 -11
  150. package/android/.idea/libraries/Gradle__com_android_support_support_annotations_26_1_0_jar.xml +0 -11
  151. package/android/.idea/libraries/Gradle__com_android_support_support_compat_26_1_0_aar.xml +0 -12
  152. package/android/.idea/libraries/Gradle__com_android_support_support_core_ui_26_1_0_aar.xml +0 -12
  153. package/android/.idea/libraries/Gradle__com_android_support_support_core_utils_26_1_0_aar.xml +0 -12
  154. package/android/.idea/libraries/Gradle__com_android_support_support_fragment_26_1_0_aar.xml +0 -12
  155. package/android/.idea/libraries/Gradle__com_android_support_support_media_compat_26_1_0_aar.xml +0 -12
  156. package/android/.idea/libraries/Gradle__com_android_support_support_v4_23_0_1_aar.xml +0 -16
  157. package/android/.idea/libraries/Gradle__com_android_support_support_v4_26_1_0_aar.xml +0 -12
  158. package/android/.idea/libraries/Gradle__com_facebook_fresco_drawee_0_8_1_aar.xml +0 -12
  159. package/android/.idea/libraries/Gradle__com_facebook_fresco_fbcore_0_8_1_aar.xml +0 -12
  160. package/android/.idea/libraries/Gradle__com_facebook_fresco_fresco_0_8_1_aar.xml +0 -12
  161. package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_0_8_1_aar.xml +0 -12
  162. package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_okhttp_0_8_1_aar.xml +0 -12
  163. package/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_20_1_aar.xml +0 -16
  164. package/android/.idea/libraries/Gradle__com_facebook_stetho_stetho_1_2_0_jar.xml +0 -11
  165. package/android/.idea/libraries/Gradle__com_facebook_stetho_stetho_okhttp_1_2_0_jar.xml +0 -11
  166. package/android/.idea/libraries/Gradle__com_fasterxml_jackson_core_jackson_core_2_2_3_jar.xml +0 -11
  167. package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_ads_16_0_0_aar.xml +0 -10
  168. package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_ads_base_16_0_0_aar.xml +0 -10
  169. package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_ads_identifier_16_0_0_aar.xml +0 -10
  170. package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_ads_lite_16_0_0_aar.xml +0 -10
  171. package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_base_16_0_1_aar.xml +0 -10
  172. package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_basement_16_2_0_aar.xml +0 -12
  173. package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_gass_16_0_0_aar.xml +0 -10
  174. package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_location_16_0_0_aar.xml +0 -10
  175. package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_measurement_16_5_0_aar.xml +0 -12
  176. package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_measurement_api_16_5_0_aar.xml +0 -12
  177. package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_measurement_base_16_5_0_aar.xml +0 -12
  178. package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_measurement_impl_16_5_0_aar.xml +0 -12
  179. package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_measurement_sdk_16_5_0_aar.xml +0 -12
  180. package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_measurement_sdk_api_16_5_0_aar.xml +0 -12
  181. package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_places_placereport_16_0_0_aar.xml +0 -10
  182. package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_stats_16_0_1_aar.xml +0 -10
  183. package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_tasks_16_0_1_aar.xml +0 -10
  184. package/android/.idea/libraries/Gradle__com_google_auto_value_auto_value_annotations_1_6_3_jar.xml +0 -13
  185. package/android/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_3_0_0_jar.xml +0 -11
  186. package/android/.idea/libraries/Gradle__com_google_firebase_firebase_analytics_16_5_0_aar.xml +0 -12
  187. package/android/.idea/libraries/Gradle__com_google_firebase_firebase_common_17_0_0_aar.xml +0 -12
  188. package/android/.idea/libraries/Gradle__com_google_firebase_firebase_core_16_0_9_aar.xml +0 -12
  189. package/android/.idea/libraries/Gradle__com_google_firebase_firebase_iid_18_0_0_aar.xml +0 -12
  190. package/android/.idea/libraries/Gradle__com_google_firebase_firebase_iid_interop_16_0_1_aar.xml +0 -10
  191. package/android/.idea/libraries/Gradle__com_google_firebase_firebase_measurement_connector_17_0_1_aar.xml +0 -10
  192. package/android/.idea/libraries/Gradle__com_google_firebase_firebase_messaging_18_0_0_aar.xml +0 -12
  193. package/android/.idea/libraries/Gradle__com_nineoldandroids_library_2_4_0_jar.xml +0 -11
  194. package/android/.idea/libraries/Gradle__com_parse_bolts_bolts_android_1_1_4_jar.xml +0 -11
  195. package/android/.idea/libraries/Gradle__com_squareup_okhttp_okhttp_2_5_0_jar.xml +0 -11
  196. package/android/.idea/libraries/Gradle__com_squareup_okhttp_okhttp_ws_2_5_0_jar.xml +0 -11
  197. package/android/.idea/libraries/Gradle__com_squareup_okio_okio_1_6_0_jar.xml +0 -11
  198. package/android/.idea/libraries/Gradle__commons_cli_commons_cli_1_2_jar.xml +0 -11
  199. package/android/.idea/libraries/Gradle__org_webkit_android_jsc_r174650_aar.xml +0 -10
  200. package/android/.idea/misc.xml +0 -23
  201. package/android/.idea/modules.xml +0 -8
  202. package/android/.idea/runConfigurations.xml +0 -12
  203. package/android/.idea/workspace.xml +0 -322
  204. package/android/libs/AppICE_SDK_v2.4.18.jar +0 -0
  205. package/ios/.DS_Store +0 -0
  206. package/ios/AppICESDK/appICEBundle.bundle/INAppViewController.nib +0 -0
  207. package/ios/AppICESDK/include/iosAppiceSDK/appICEDB.h +0 -52
@@ -0,0 +1,321 @@
1
+ apply plugin: "com.android.application"
2
+ apply plugin: 'com.google.gms.google-services' // <- Add this line
3
+
4
+ import com.android.build.OutputFile
5
+
6
+ /**
7
+ * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
8
+ * and bundleReleaseJsAndAssets).
9
+ * These basically call `react-native bundle` with the correct arguments during the Android build
10
+ * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
11
+ * bundle directly from the development server. Below you can see all the possible configurations
12
+ * and their defaults. If you decide to add a configuration block, make sure to add it before the
13
+ * `apply from: "../../node_modules/react-native/react.gradle"` line.
14
+ *
15
+ * project.ext.react = [
16
+ * // the name of the generated asset file containing your JS bundle
17
+ * bundleAssetName: "index.android.bundle",
18
+ *
19
+ * // the entry file for bundle generation. If none specified and
20
+ * // "index.android.js" exists, it will be used. Otherwise "index.js" is
21
+ * // default. Can be overridden with ENTRY_FILE environment variable.
22
+ * entryFile: "index.android.js",
23
+ *
24
+ * // https://reactnative.dev/docs/performance#enable-the-ram-format
25
+ * bundleCommand: "ram-bundle",
26
+ *
27
+ * // whether to bundle JS and assets in debug mode
28
+ * bundleInDebug: false,
29
+ *
30
+ * // whether to bundle JS and assets in release mode
31
+ * bundleInRelease: true,
32
+ *
33
+ * // whether to bundle JS and assets in another build variant (if configured).
34
+ * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
35
+ * // The configuration property can be in the following formats
36
+ * // 'bundleIn${productFlavor}${buildType}'
37
+ * // 'bundleIn${buildType}'
38
+ * // bundleInFreeDebug: true,
39
+ * // bundleInPaidRelease: true,
40
+ * // bundleInBeta: true,
41
+ *
42
+ * // whether to disable dev mode in custom build variants (by default only disabled in release)
43
+ * // for example: to disable dev mode in the staging build type (if configured)
44
+ * devDisabledInStaging: true,
45
+ * // The configuration property can be in the following formats
46
+ * // 'devDisabledIn${productFlavor}${buildType}'
47
+ * // 'devDisabledIn${buildType}'
48
+ *
49
+ * // the root of your project, i.e. where "package.json" lives
50
+ * root: "../../",
51
+ *
52
+ * // where to put the JS bundle asset in debug mode
53
+ * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
54
+ *
55
+ * // where to put the JS bundle asset in release mode
56
+ * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
57
+ *
58
+ * // where to put drawable resources / React Native assets, e.g. the ones you use via
59
+ * // require('./image.png')), in debug mode
60
+ * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
61
+ *
62
+ * // where to put drawable resources / React Native assets, e.g. the ones you use via
63
+ * // require('./image.png')), in release mode
64
+ * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
65
+ *
66
+ * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
67
+ * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
68
+ * // date; if you have any other folders that you want to ignore for performance reasons (gradle
69
+ * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
70
+ * // for example, you might want to remove it from here.
71
+ * inputExcludes: ["android/**", "ios/**"],
72
+ *
73
+ * // override which node gets called and with what additional arguments
74
+ * nodeExecutableAndArgs: ["node"],
75
+ *
76
+ * // supply additional arguments to the packager
77
+ * extraPackagerArgs: []
78
+ * ]
79
+ */
80
+
81
+ project.ext.react = [
82
+ enableHermes: false, // clean and rebuild if changing
83
+ ]
84
+
85
+ apply from: "../../node_modules/react-native/react.gradle"
86
+
87
+ /**
88
+ * Set this to true to create two separate APKs instead of one:
89
+ * - An APK that only works on ARM devices
90
+ * - An APK that only works on x86 devices
91
+ * The advantage is the size of the APK is reduced by about 4MB.
92
+ * Upload all the APKs to the Play Store and people will download
93
+ * the correct one based on the CPU architecture of their device.
94
+ */
95
+ def enableSeparateBuildPerCPUArchitecture = false
96
+
97
+ /**
98
+ * Run Proguard to shrink the Java bytecode in release builds.
99
+ */
100
+ def enableProguardInReleaseBuilds = false
101
+
102
+ /**
103
+ * The preferred build flavor of JavaScriptCore.
104
+ *
105
+ * For example, to use the international variant, you can use:
106
+ * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
107
+ *
108
+ * The international variant includes ICU i18n library and necessary data
109
+ * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
110
+ * give correct results when using with locales other than en-US. Note that
111
+ * this variant is about 6MiB larger per architecture than default.
112
+ */
113
+ def jscFlavor = 'org.webkit:android-jsc:+'
114
+
115
+ /**
116
+ * Whether to enable the Hermes VM.
117
+ *
118
+ * This should be set on project.ext.react and that value will be read here. If it is not set
119
+ * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode
120
+ * and the benefits of using Hermes will therefore be sharply reduced.
121
+ */
122
+ def enableHermes = project.ext.react.get("enableHermes", false);
123
+
124
+ /**
125
+ * Architectures to build native code for.
126
+ */
127
+ def reactNativeArchitectures() {
128
+ def value = project.getProperties().get("reactNativeArchitectures")
129
+ return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
130
+ }
131
+
132
+ android {
133
+ ndkVersion rootProject.ext.ndkVersion
134
+
135
+ compileSdkVersion rootProject.ext.compileSdkVersion
136
+
137
+ defaultConfig {
138
+ applicationId "com.example"
139
+ minSdkVersion rootProject.ext.minSdkVersion
140
+ targetSdkVersion rootProject.ext.targetSdkVersion
141
+ versionCode 1
142
+ versionName "1.0"
143
+ buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
144
+
145
+ if (isNewArchitectureEnabled()) {
146
+ // We configure the NDK build only if you decide to opt-in for the New Architecture.
147
+ externalNativeBuild {
148
+ ndkBuild {
149
+ arguments "APP_PLATFORM=android-21",
150
+ "APP_STL=c++_shared",
151
+ "NDK_TOOLCHAIN_VERSION=clang",
152
+ "GENERATED_SRC_DIR=$buildDir/generated/source",
153
+ "PROJECT_BUILD_DIR=$buildDir",
154
+ "REACT_ANDROID_DIR=$rootDir/../node_modules/react-native/ReactAndroid",
155
+ "REACT_ANDROID_BUILD_DIR=$rootDir/../node_modules/react-native/ReactAndroid/build",
156
+ "NODE_MODULES_DIR=$rootDir/../node_modules"
157
+ cFlags "-Wall", "-Werror", "-fexceptions", "-frtti", "-DWITH_INSPECTOR=1"
158
+ cppFlags "-std=c++17"
159
+ // Make sure this target name is the same you specify inside the
160
+ // src/main/jni/Android.mk file for the `LOCAL_MODULE` variable.
161
+ targets "example_appmodules"
162
+ }
163
+ }
164
+ if (!enableSeparateBuildPerCPUArchitecture) {
165
+ ndk {
166
+ abiFilters (*reactNativeArchitectures())
167
+ }
168
+ }
169
+ }
170
+ }
171
+
172
+ if (isNewArchitectureEnabled()) {
173
+ // We configure the NDK build only if you decide to opt-in for the New Architecture.
174
+ externalNativeBuild {
175
+ ndkBuild {
176
+ path "$projectDir/src/main/jni/Android.mk"
177
+ }
178
+ }
179
+ def reactAndroidProjectDir = project(':ReactAndroid').projectDir
180
+ def packageReactNdkDebugLibs = tasks.register("packageReactNdkDebugLibs", Copy) {
181
+ dependsOn(":ReactAndroid:packageReactNdkDebugLibsForBuck")
182
+ from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib")
183
+ into("$buildDir/react-ndk/exported")
184
+ }
185
+ def packageReactNdkReleaseLibs = tasks.register("packageReactNdkReleaseLibs", Copy) {
186
+ dependsOn(":ReactAndroid:packageReactNdkReleaseLibsForBuck")
187
+ from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib")
188
+ into("$buildDir/react-ndk/exported")
189
+ }
190
+ afterEvaluate {
191
+ // If you wish to add a custom TurboModule or component locally,
192
+ // you should uncomment this line.
193
+ // preBuild.dependsOn("generateCodegenArtifactsFromSchema")
194
+ preDebugBuild.dependsOn(packageReactNdkDebugLibs)
195
+ preReleaseBuild.dependsOn(packageReactNdkReleaseLibs)
196
+
197
+ // Due to a bug inside AGP, we have to explicitly set a dependency
198
+ // between configureNdkBuild* tasks and the preBuild tasks.
199
+ // This can be removed once this is solved: https://issuetracker.google.com/issues/207403732
200
+ configureNdkBuildRelease.dependsOn(preReleaseBuild)
201
+ configureNdkBuildDebug.dependsOn(preDebugBuild)
202
+ reactNativeArchitectures().each { architecture ->
203
+ tasks.findByName("configureNdkBuildDebug[${architecture}]")?.configure {
204
+ dependsOn("preDebugBuild")
205
+ }
206
+ tasks.findByName("configureNdkBuildRelease[${architecture}]")?.configure {
207
+ dependsOn("preReleaseBuild")
208
+ }
209
+ }
210
+ }
211
+ }
212
+
213
+ splits {
214
+ abi {
215
+ reset()
216
+ enable enableSeparateBuildPerCPUArchitecture
217
+ universalApk false // If true, also generate a universal APK
218
+ include (*reactNativeArchitectures())
219
+ }
220
+ }
221
+ signingConfigs {
222
+ debug {
223
+ storeFile file('debug.keystore')
224
+ storePassword 'android'
225
+ keyAlias 'androiddebugkey'
226
+ keyPassword 'android'
227
+ }
228
+ }
229
+ buildTypes {
230
+ debug {
231
+ signingConfig signingConfigs.debug
232
+ }
233
+ release {
234
+ // Caution! In production, you need to generate your own keystore file.
235
+ // see https://reactnative.dev/docs/signed-apk-android.
236
+ signingConfig signingConfigs.debug
237
+ minifyEnabled enableProguardInReleaseBuilds
238
+ proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
239
+ }
240
+ }
241
+
242
+ // applicationVariants are e.g. debug, release
243
+ applicationVariants.all { variant ->
244
+ variant.outputs.each { output ->
245
+ // For each separate APK per architecture, set a unique version code as described here:
246
+ // https://developer.android.com/studio/build/configure-apk-splits.html
247
+ // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc.
248
+ def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
249
+ def abi = output.getFilter(OutputFile.ABI)
250
+ if (abi != null) { // null for the universal-debug, universal-release variants
251
+ output.versionCodeOverride =
252
+ defaultConfig.versionCode * 1000 + versionCodes.get(abi)
253
+ }
254
+
255
+ }
256
+ }
257
+ }
258
+
259
+ dependencies {
260
+ implementation fileTree(dir: "libs", include: ["*.jar"])
261
+
262
+ //noinspection GradleDynamicVersion
263
+ implementation "com.facebook.react:react-native:+" // From node_modules
264
+
265
+ implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
266
+
267
+ debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
268
+ exclude group:'com.facebook.fbjni'
269
+ }
270
+
271
+ debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
272
+ exclude group:'com.facebook.flipper'
273
+ exclude group:'com.squareup.okhttp3', module:'okhttp'
274
+ }
275
+
276
+ debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") {
277
+ exclude group:'com.facebook.flipper'
278
+ }
279
+
280
+ if (enableHermes) {
281
+ //noinspection GradleDynamicVersion
282
+ implementation("com.facebook.react:hermes-engine:+") { // From node_modules
283
+ exclude group:'com.facebook.fbjni'
284
+ }
285
+ } else {
286
+ implementation jscFlavor
287
+ }
288
+ }
289
+
290
+ if (isNewArchitectureEnabled()) {
291
+ // If new architecture is enabled, we let you build RN from source
292
+ // Otherwise we fallback to a prebuilt .aar bundled in the NPM package.
293
+ // This will be applied to all the imported transtitive dependency.
294
+ configurations.all {
295
+ resolutionStrategy.dependencySubstitution {
296
+ substitute(module("com.facebook.react:react-native"))
297
+ .using(project(":ReactAndroid"))
298
+ .because("On New Architecture we're building React Native from source")
299
+ substitute(module("com.facebook.react:hermes-engine"))
300
+ .using(project(":ReactAndroid:hermes-engine"))
301
+ .because("On New Architecture we're building Hermes from source")
302
+ }
303
+ }
304
+ }
305
+
306
+ // Run this once to be able to run the application with BUCK
307
+ // puts all compile dependencies into folder libs for BUCK to use
308
+ task copyDownloadableDepsToLibs(type: Copy) {
309
+ from configurations.implementation
310
+ into 'libs'
311
+ }
312
+
313
+ apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
314
+
315
+ def isNewArchitectureEnabled() {
316
+ // To opt-in for the New Architecture, you can either:
317
+ // - Set `newArchEnabled` to true inside the `gradle.properties` file
318
+ // - Invoke gradle with `-newArchEnabled=true`
319
+ // - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true`
320
+ return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
321
+ }
@@ -0,0 +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
+ )
@@ -0,0 +1,275 @@
1
+ {
2
+ "project_info": {
3
+ "project_number": "372849797851",
4
+ "firebase_url": "https://appice-77b2f.firebaseio.com",
5
+ "project_id": "appice-77b2f",
6
+ "storage_bucket": "appice-77b2f.appspot.com"
7
+ },
8
+ "client": [
9
+ {
10
+ "client_info": {
11
+ "mobilesdk_app_id": "1:372849797851:android:776d01f156f84911337afe",
12
+ "android_client_info": {
13
+ "package_name": "com.appice.appicekonyapp"
14
+ }
15
+ },
16
+ "oauth_client": [
17
+ {
18
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
19
+ "client_type": 3
20
+ }
21
+ ],
22
+ "api_key": [
23
+ {
24
+ "current_key": "AIzaSyAf6mf5vzNVdBKPlSKAxFCrHULO9NxU_wM"
25
+ }
26
+ ],
27
+ "services": {
28
+ "appinvite_service": {
29
+ "other_platform_oauth_client": [
30
+ {
31
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
32
+ "client_type": 3
33
+ }
34
+ ]
35
+ }
36
+ }
37
+ },
38
+ {
39
+ "client_info": {
40
+ "mobilesdk_app_id": "1:372849797851:android:3ca6b71623dd87b8337afe",
41
+ "android_client_info": {
42
+ "package_name": "com.appice.libkonywrapper"
43
+ }
44
+ },
45
+ "oauth_client": [
46
+ {
47
+ "client_id": "372849797851-rf9dhoh54bkug4eo0mm2bvjm0mvcqi41.apps.googleusercontent.com",
48
+ "client_type": 1,
49
+ "android_info": {
50
+ "package_name": "com.appice.libkonywrapper",
51
+ "certificate_hash": "a73330c6da42d1219e27ca9a1c41d3ab76b18fec"
52
+ }
53
+ },
54
+ {
55
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
56
+ "client_type": 3
57
+ }
58
+ ],
59
+ "api_key": [
60
+ {
61
+ "current_key": "AIzaSyAf6mf5vzNVdBKPlSKAxFCrHULO9NxU_wM"
62
+ }
63
+ ],
64
+ "services": {
65
+ "appinvite_service": {
66
+ "other_platform_oauth_client": [
67
+ {
68
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
69
+ "client_type": 3
70
+ }
71
+ ]
72
+ }
73
+ }
74
+ },
75
+ {
76
+ "client_info": {
77
+ "mobilesdk_app_id": "1:372849797851:android:043dfbf436ee8a8b337afe",
78
+ "android_client_info": {
79
+ "package_name": "com.appice.sample"
80
+ }
81
+ },
82
+ "oauth_client": [
83
+ {
84
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
85
+ "client_type": 3
86
+ }
87
+ ],
88
+ "api_key": [
89
+ {
90
+ "current_key": "AIzaSyAf6mf5vzNVdBKPlSKAxFCrHULO9NxU_wM"
91
+ }
92
+ ],
93
+ "services": {
94
+ "appinvite_service": {
95
+ "other_platform_oauth_client": [
96
+ {
97
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
98
+ "client_type": 3
99
+ }
100
+ ]
101
+ }
102
+ }
103
+ },
104
+ {
105
+ "client_info": {
106
+ "mobilesdk_app_id": "1:372849797851:android:b991be6c3a77e27a337afe",
107
+ "android_client_info": {
108
+ "package_name": "com.appice.simpleapp"
109
+ }
110
+ },
111
+ "oauth_client": [
112
+ {
113
+ "client_id": "372849797851-2g3ujjdnre9eg4t8915t667mci986imc.apps.googleusercontent.com",
114
+ "client_type": 1,
115
+ "android_info": {
116
+ "package_name": "com.appice.simpleapp",
117
+ "certificate_hash": "7a4661ffa5ed1bfa4ec46f7c113e16cf7cbcc2e5"
118
+ }
119
+ },
120
+ {
121
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
122
+ "client_type": 3
123
+ }
124
+ ],
125
+ "api_key": [
126
+ {
127
+ "current_key": "AIzaSyAf6mf5vzNVdBKPlSKAxFCrHULO9NxU_wM"
128
+ }
129
+ ],
130
+ "services": {
131
+ "appinvite_service": {
132
+ "other_platform_oauth_client": [
133
+ {
134
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
135
+ "client_type": 3
136
+ }
137
+ ]
138
+ }
139
+ }
140
+ },
141
+ {
142
+ "client_info": {
143
+ "mobilesdk_app_id": "1:372849797851:android:d83e963ad537f8fb337afe",
144
+ "android_client_info": {
145
+ "package_name": "com.example.abc"
146
+ }
147
+ },
148
+ "oauth_client": [
149
+ {
150
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
151
+ "client_type": 3
152
+ }
153
+ ],
154
+ "api_key": [
155
+ {
156
+ "current_key": "AIzaSyAf6mf5vzNVdBKPlSKAxFCrHULO9NxU_wM"
157
+ }
158
+ ],
159
+ "services": {
160
+ "appinvite_service": {
161
+ "other_platform_oauth_client": [
162
+ {
163
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
164
+ "client_type": 3
165
+ }
166
+ ]
167
+ }
168
+ }
169
+ },
170
+ {
171
+ "client_info": {
172
+ "mobilesdk_app_id": "1:372849797851:android:3cbb0f051cfe9e32337afe",
173
+ "android_client_info": {
174
+ "package_name": "com.example.sdk_onoff"
175
+ }
176
+ },
177
+ "oauth_client": [
178
+ {
179
+ "client_id": "372849797851-lutbfvgtkp9imddhgvnhsogjmn36u0fs.apps.googleusercontent.com",
180
+ "client_type": 1,
181
+ "android_info": {
182
+ "package_name": "com.example.sdk_onoff",
183
+ "certificate_hash": "ce4b16335c5e8623dd2a4f1a5d8a5679960c0f02"
184
+ }
185
+ },
186
+ {
187
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
188
+ "client_type": 3
189
+ }
190
+ ],
191
+ "api_key": [
192
+ {
193
+ "current_key": "AIzaSyAf6mf5vzNVdBKPlSKAxFCrHULO9NxU_wM"
194
+ }
195
+ ],
196
+ "services": {
197
+ "appinvite_service": {
198
+ "other_platform_oauth_client": [
199
+ {
200
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
201
+ "client_type": 3
202
+ }
203
+ ]
204
+ }
205
+ }
206
+ },
207
+ {
208
+ "client_info": {
209
+ "mobilesdk_app_id": "1:372849797851:android:6338a6c717bbff3d337afe",
210
+ "android_client_info": {
211
+ "package_name": "com.ironclad.testfcm"
212
+ }
213
+ },
214
+ "oauth_client": [
215
+ {
216
+ "client_id": "372849797851-fnshq30eqht27m893j14e7msi8jvp56n.apps.googleusercontent.com",
217
+ "client_type": 1,
218
+ "android_info": {
219
+ "package_name": "com.ironclad.testfcm",
220
+ "certificate_hash": "7a4661ffa5ed1bfa4ec46f7c113e16cf7cbcc2e5"
221
+ }
222
+ },
223
+ {
224
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
225
+ "client_type": 3
226
+ }
227
+ ],
228
+ "api_key": [
229
+ {
230
+ "current_key": "AIzaSyAf6mf5vzNVdBKPlSKAxFCrHULO9NxU_wM"
231
+ }
232
+ ],
233
+ "services": {
234
+ "appinvite_service": {
235
+ "other_platform_oauth_client": [
236
+ {
237
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
238
+ "client_type": 3
239
+ }
240
+ ]
241
+ }
242
+ }
243
+ },
244
+ {
245
+ "client_info": {
246
+ "mobilesdk_app_id": "1:372849797851:android:4dffb4450c556236337afe",
247
+ "android_client_info": {
248
+ "package_name": "com.shailesh.xyz"
249
+ }
250
+ },
251
+ "oauth_client": [
252
+ {
253
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
254
+ "client_type": 3
255
+ }
256
+ ],
257
+ "api_key": [
258
+ {
259
+ "current_key": "AIzaSyAf6mf5vzNVdBKPlSKAxFCrHULO9NxU_wM"
260
+ }
261
+ ],
262
+ "services": {
263
+ "appinvite_service": {
264
+ "other_platform_oauth_client": [
265
+ {
266
+ "client_id": "372849797851-klqni1jhqh49tsmaslfutlfg0b065vhb.apps.googleusercontent.com",
267
+ "client_type": 3
268
+ }
269
+ ]
270
+ }
271
+ }
272
+ }
273
+ ],
274
+ "configuration_version": "1"
275
+ }
@@ -0,0 +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:
@@ -0,0 +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>