reactnative-plugin-appice 1.3.0 → 1.4.2
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 +1 -59
- package/android/build.gradle +14 -54
- package/android/libs/logutility.jar +0 -0
- package/android/local.properties +2 -2
- package/android/src/main/AndroidManifest.xml +21 -124
- package/android/src/main/java/com/reactlibrary/AppICEUtils.java +38 -0
- package/android/src/main/java/com/reactlibrary/AppIceReactPluginModule.java +330 -78
- package/android/src/main/java/com/reactlibrary/CampaignCampsReceiver.java +20 -3
- package/android/src/main/java/com/reactlibrary/InAppWebView.java +68 -0
- package/android/src/main/java/com/reactlibrary/NotificationEventService.java +0 -0
- package/android/src/main/java/com/reactlibrary/React-Native workspace.code-workspace +29 -0
- package/example/App.js +130 -0
- package/example/Gemfile +6 -0
- package/example/__tests__/App-test.js +14 -0
- package/example/android/app/_BUCK +55 -0
- package/example/android/app/build.gradle +320 -0
- package/example/android/app/build_defs.bzl +19 -0
- package/example/android/app/debug.keystore +0 -0
- package/example/android/app/proguard-rules.pro +10 -0
- package/example/android/app/src/debug/AndroidManifest.xml +13 -0
- package/example/android/app/src/debug/java/com/example/ReactNativeFlipper.java +73 -0
- package/example/android/app/src/main/AndroidManifest.xml +72 -0
- package/example/android/app/src/main/java/com/example/MainActivity.java +48 -0
- package/example/android/app/src/main/java/com/example/MainApplication.java +91 -0
- package/example/android/app/src/main/java/com/example/newarchitecture/MainApplicationReactNativeHost.java +116 -0
- package/example/android/app/src/main/java/com/example/newarchitecture/components/MainComponentsRegistry.java +36 -0
- package/example/android/app/src/main/java/com/example/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +48 -0
- package/example/android/app/src/main/jni/Android.mk +48 -0
- package/example/android/app/src/main/jni/MainApplicationModuleProvider.cpp +24 -0
- package/example/android/app/src/main/jni/MainApplicationModuleProvider.h +16 -0
- package/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +45 -0
- package/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +38 -0
- package/example/android/app/src/main/jni/MainComponentsRegistry.cpp +61 -0
- package/example/android/app/src/main/jni/MainComponentsRegistry.h +32 -0
- package/example/android/app/src/main/jni/OnLoad.cpp +11 -0
- package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -0
- package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/example/android/app/src/main/res/values/strings.xml +3 -0
- package/example/android/app/src/main/res/values/styles.xml +9 -0
- package/example/android/build.gradle +53 -0
- package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/example/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/example/android/gradle.properties +40 -0
- package/example/android/gradlew +234 -0
- package/example/android/gradlew.bat +89 -0
- package/example/android/settings.gradle +11 -0
- package/example/app.json +4 -0
- package/example/babel.config.js +3 -0
- package/example/index.js +9 -0
- package/example/ios/Podfile +36 -0
- package/example/ios/Podfile.lock +561 -0
- package/example/ios/_xcode.env +11 -0
- package/example/ios/example/AppDelegate.h +8 -0
- package/example/ios/example/AppDelegate.mm +175 -0
- package/example/ios/example/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
- package/example/ios/example/Images.xcassets/Contents.json +6 -0
- package/example/ios/example/Info.plist +62 -0
- package/example/ios/example/LaunchScreen.storyboard +47 -0
- package/example/ios/example/example.entitlements +8 -0
- package/example/ios/example/main.m +10 -0
- package/example/ios/example.xcodeproj/project.pbxproj +712 -0
- package/example/ios/example.xcodeproj/xcshareddata/xcschemes/example.xcscheme +88 -0
- package/example/ios/example.xcworkspace/contents.xcworkspacedata +10 -0
- package/example/ios/example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/example/ios/exampleTests/Info.plist +24 -0
- package/example/ios/exampleTests/exampleTests.m +66 -0
- package/example/metro.config.js +17 -0
- package/example/package-lock.json +21443 -0
- package/example/package.json +33 -0
- package/example/yarn.lock +7238 -0
- package/index.js +99 -3
- package/ios/AppICEReactEvent.h +22 -0
- package/ios/AppICEReactEvent.m +65 -0
- package/ios/AppICESDK/appICE.momd/VersionInfo.plist +0 -0
- package/ios/AppICESDK/appICE.momd/appICE 4.mom +0 -0
- package/ios/AppICESDK/appICE.momd/appICE 4.omo +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/APPChildViewController.nib +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/HAlfFooterNOTINAppViewController.nib +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/HAlfHeaderINAppViewController.nib +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/HAlfINAppViewController.nib +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/INAppViewController.nib/objects-11.0+.nib +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/INAppViewController.nib/runtime.nib +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/Info.plist +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/RatingViewController.nib +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/SurveyViewController.nib +0 -0
- package/ios/AppICESDK/include/iosAppiceSDK/AppICEHelper.h +77 -0
- package/ios/AppICESDK/include/iosAppiceSDK/AppICEInboxMessage.h +1 -0
- package/ios/AppICESDK/include/iosAppiceSDK/AppICEJSInterface.h +21 -0
- package/ios/AppICESDK/include/iosAppiceSDK/appICE.h +68 -22
- package/ios/AppICESDK/include/iosAppiceSDK/appICEUserDetails.h +6 -0
- package/ios/AppICESDK/include/iosAppiceSDK/isrgrootx1.der +0 -0
- package/ios/AppICESDK/include/iosAppiceSDK/lets-encrypt-r3.der +0 -0
- package/ios/AppICESDK/{libiosAppiceSDK_v1.7.15.a → libiosAppiceSDK_v1.7.37.a} +0 -0
- package/ios/AppIceReactPlugin.h +15 -2
- package/ios/AppIceReactPlugin.m +91 -14
- package/ios/AppIceReactPlugin.xcodeproj/project.pbxproj +67 -55
- package/package.json +3 -2
- package/android/.gradle/5.4.1/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/5.4.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/5.4.1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/5.4.1/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/5.4.1/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/caches/build_file_checksums.ser +0 -0
- package/android/.idea/caches/gradle_models.ser +0 -0
- package/android/.idea/codeStyles/Project.xml +0 -116
- package/android/.idea/dictionaries/Adi.xml +0 -3
- package/android/.idea/gradle.xml +0 -16
- package/android/.idea/libraries/Gradle____local_aars____Users_Adi_ReactModule_AppICEReactLibrary_android_libs_AppICE_SDK_v2_4_18_jar_unspecified_jar.xml +0 -9
- package/android/.idea/libraries/Gradle____local_aars____Users_Adi_ReactModule_AppICEReactLibrary_android_libs_logutility_jar_unspecified_jar.xml +0 -9
- package/android/.idea/libraries/Gradle__android_arch_core_common_1_0_0_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__android_arch_lifecycle_common_1_0_0_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__android_arch_lifecycle_runtime_1_0_0_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_android_support_appcompat_v7_23_0_1_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__com_android_support_customtabs_26_1_0_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_android_support_recyclerview_v7_23_0_1_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_android_support_support_annotations_23_0_1_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_android_support_support_annotations_26_1_0_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_android_support_support_compat_26_1_0_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_android_support_support_core_ui_26_1_0_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_android_support_support_core_utils_26_1_0_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_android_support_support_fragment_26_1_0_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_android_support_support_media_compat_26_1_0_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_android_support_support_v4_23_0_1_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__com_android_support_support_v4_26_1_0_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_facebook_fresco_drawee_0_8_1_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_facebook_fresco_fbcore_0_8_1_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_facebook_fresco_fresco_0_8_1_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_0_8_1_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_okhttp_0_8_1_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_20_1_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__com_facebook_stetho_stetho_1_2_0_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_facebook_stetho_stetho_okhttp_1_2_0_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_fasterxml_jackson_core_jackson_core_2_2_3_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_ads_16_0_0_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_ads_base_16_0_0_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_ads_identifier_16_0_0_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_ads_lite_16_0_0_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_base_16_0_1_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_basement_16_2_0_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_gass_16_0_0_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_location_16_0_0_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_measurement_16_5_0_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_measurement_api_16_5_0_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_measurement_base_16_5_0_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_measurement_impl_16_5_0_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_measurement_sdk_16_5_0_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_measurement_sdk_api_16_5_0_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_places_placereport_16_0_0_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_stats_16_0_1_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_tasks_16_0_1_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_google_auto_value_auto_value_annotations_1_6_3_jar.xml +0 -13
- package/android/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_3_0_0_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_analytics_16_5_0_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_common_17_0_0_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_core_16_0_9_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_iid_18_0_0_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_iid_interop_16_0_1_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_measurement_connector_17_0_1_aar.xml +0 -10
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_messaging_18_0_0_aar.xml +0 -12
- package/android/.idea/libraries/Gradle__com_nineoldandroids_library_2_4_0_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_parse_bolts_bolts_android_1_1_4_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_squareup_okhttp_okhttp_2_5_0_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_squareup_okhttp_okhttp_ws_2_5_0_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_squareup_okio_okio_1_6_0_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__commons_cli_commons_cli_1_2_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__org_webkit_android_jsc_r174650_aar.xml +0 -10
- package/android/.idea/misc.xml +0 -23
- package/android/.idea/modules.xml +0 -8
- package/android/.idea/runConfigurations.xml +0 -12
- package/android/.idea/workspace.xml +0 -322
- package/android/build/generated/source/buildConfig/androidTest/debug/com/reactlibrary/test/BuildConfig.java +0 -13
- package/android/build/generated/source/buildConfig/debug/com/reactlibrary/BuildConfig.java +0 -13
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +0 -170
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output.json +0 -1
- package/android/build/intermediates/library_manifest/debug/AndroidManifest.xml +0 -170
- package/android/build/intermediates/merged_manifests/debug/output.json +0 -1
- package/android/build/intermediates/merged_manifests/debugAndroidTest/AndroidManifest.xml +0 -250
- package/android/build/intermediates/merged_manifests/debugAndroidTest/output.json +0 -1
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -307
- package/android/libs/AppICE_SDK_v2.4.18.jar +0 -0
- package/ios/.DS_Store +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/INAppViewController.nib +0 -0
- package/ios/AppICESDK/include/iosAppiceSDK/appICEDB.h +0 -52
package/README.md
CHANGED
|
@@ -1,60 +1,2 @@
|
|
|
1
|
-
#
|
|
1
|
+
# src_reactnative_appice-sdk
|
|
2
2
|
|
|
3
|
-
## Getting started
|
|
4
|
-
|
|
5
|
-
`$ npm install reactnative-plugin-appice --save`
|
|
6
|
-
|
|
7
|
-
### Mostly automatic installation
|
|
8
|
-
|
|
9
|
-
`$ react-native link reactnative-plugin-appice`
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
#### iOS
|
|
14
|
-
|
|
15
|
-
If your Application has a podfile then skip this step otherwise do the following
|
|
16
|
-
1. Go to terminal and open ios folder from terminal ( cd projectName/ios ) and type the following command:
|
|
17
|
-
2. pod init
|
|
18
|
-
3. This will create a podfile
|
|
19
|
-
|
|
20
|
-
Once you have a podfile, open the podfile add these lines in the target section (used for building the application) of the podfile:
|
|
21
|
-
1. pod 'reactnative-plugin-appice', :path => '../node_modules/reactnative-plugin-appice/reactnative-plugin-appice.podspec'
|
|
22
|
-
|
|
23
|
-
After adding these lines do the following steps:
|
|
24
|
-
1. Go to terminal and open ios folder from terminal ( cd projectName/ios ) and type the following command:
|
|
25
|
-
2. pod install
|
|
26
|
-
3. Go to the Products section and do a clean build
|
|
27
|
-
4. Run your project (`Cmd+R`)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
#### Android
|
|
31
|
-
|
|
32
|
-
1. Append the following lines to `android/settings.gradle`:
|
|
33
|
-
```
|
|
34
|
-
include ':reactnative-plugin-appice'
|
|
35
|
-
project(':reactnative-plugin-appice').projectDir = new File(rootProject.projectDir, '../node_modules/reactnative-plugin-appice/android')
|
|
36
|
-
```
|
|
37
|
-
2. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
|
|
38
|
-
```
|
|
39
|
-
compile project(':reactnative-plugin-appice')
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
### javascript
|
|
44
|
-
import AppIceReactPlugin from 'reactnative-plugin-appice';
|
|
45
|
-
|
|
46
|
-
#### Usage
|
|
47
|
-
|
|
48
|
-
### To start appice SDK
|
|
49
|
-
AppIceReactPlugin.startContext('appID', 'appKey', 'apiKey', 'deviceID');
|
|
50
|
-
|
|
51
|
-
### To send events via appice
|
|
52
|
-
AppIceReactPlugin.tagEvent('EventName', { key>: 'value'});
|
|
53
|
-
|
|
54
|
-
### To set the variable via appice
|
|
55
|
-
AppIceReactPlugin.setCustomVariable('key', 'customValue');
|
|
56
|
-
|
|
57
|
-
### To set userID
|
|
58
|
-
AppIceReactPlugin.setUserId('clientId');
|
|
59
|
-
|
|
60
|
-
```
|
package/android/build.gradle
CHANGED
|
@@ -20,7 +20,6 @@ def safeExtGet(prop, fallback) {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
apply plugin: 'com.android.library'
|
|
23
|
-
apply plugin: 'maven'
|
|
24
23
|
|
|
25
24
|
buildscript {
|
|
26
25
|
// The Android Gradle plugin is only required when opening the android folder stand-alone.
|
|
@@ -39,7 +38,6 @@ buildscript {
|
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
apply plugin: 'com.android.library'
|
|
42
|
-
apply plugin: 'maven'
|
|
43
41
|
|
|
44
42
|
android {
|
|
45
43
|
compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
|
|
@@ -66,6 +64,7 @@ repositories {
|
|
|
66
64
|
// Android JSC is installed from npm
|
|
67
65
|
url "$rootDir/../node_modules/jsc-android/dist"
|
|
68
66
|
}
|
|
67
|
+
maven { url "https://jitpack.io" }
|
|
69
68
|
google()
|
|
70
69
|
jcenter()
|
|
71
70
|
}
|
|
@@ -73,15 +72,20 @@ repositories {
|
|
|
73
72
|
dependencies {
|
|
74
73
|
//noinspection GradleDynamicVersion
|
|
75
74
|
implementation 'com.facebook.react:react-native:+'
|
|
76
|
-
implementation files('libs/AppICE_SDK_v2.4.18.jar')
|
|
77
75
|
implementation files('libs/logutility.jar') // From node_modules
|
|
78
|
-
|
|
79
|
-
implementation
|
|
80
|
-
implementation
|
|
81
|
-
implementation
|
|
82
|
-
|
|
83
|
-
implementation
|
|
84
|
-
implementation
|
|
76
|
+
implementation 'com.gitlab.grp_appice.src_android_appice-sdk:sdk:2.5.29'
|
|
77
|
+
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
|
|
78
|
+
implementation "androidx.legacy:legacy-support-v4:1.0.0"
|
|
79
|
+
implementation "com.google.android.gms:play-services-ads:16.0.0"
|
|
80
|
+
implementation "androidx.annotation:annotation:1.2.0"
|
|
81
|
+
implementation "androidx.work:work-runtime:2.7.0"
|
|
82
|
+
implementation "androidx.concurrent:concurrent-futures:1.1.0"
|
|
83
|
+
implementation "com.android.installreferrer:installreferrer:2.2"
|
|
84
|
+
implementation "com.google.firebase:firebase-iid:[7.8,)"
|
|
85
|
+
implementation "com.google.firebase:firebase-messaging:22.0.0"
|
|
86
|
+
implementation "com.google.android.gms:play-services-maps:18.0.0"
|
|
87
|
+
// Utilities for Maps SDK for Android (requires Google Play Services)
|
|
88
|
+
annotationProcessor "androidx.lifecycle:lifecycle-compiler:2.3.1"
|
|
85
89
|
|
|
86
90
|
}
|
|
87
91
|
|
|
@@ -113,47 +117,3 @@ def configureReactNativePom(def pom) {
|
|
|
113
117
|
}
|
|
114
118
|
}
|
|
115
119
|
|
|
116
|
-
afterEvaluate { project ->
|
|
117
|
-
// some Gradle build hooks ref:
|
|
118
|
-
// https://www.oreilly.com/library/view/gradle-beyond-the/9781449373801/ch03.html
|
|
119
|
-
task androidJavadoc(type: Javadoc) {
|
|
120
|
-
source = android.sourceSets.main.java.srcDirs
|
|
121
|
-
classpath += files(android.bootClasspath)
|
|
122
|
-
classpath += files(project.getConfigurations().getByName('compile').asList())
|
|
123
|
-
include '**/*.java'
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
task androidJavadocJar(type: Jar, dependsOn: androidJavadoc) {
|
|
127
|
-
classifier = 'javadoc'
|
|
128
|
-
from androidJavadoc.destinationDir
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
task androidSourcesJar(type: Jar) {
|
|
132
|
-
classifier = 'sources'
|
|
133
|
-
from android.sourceSets.main.java.srcDirs
|
|
134
|
-
include '**/*.java'
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
android.libraryVariants.all { variant ->
|
|
138
|
-
def name = variant.name.capitalize()
|
|
139
|
-
def javaCompileTask = variant.javaCompileProvider.get()
|
|
140
|
-
|
|
141
|
-
task "jar${name}"(type: Jar, dependsOn: javaCompileTask) {
|
|
142
|
-
from javaCompileTask.destinationDir
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
artifacts {
|
|
147
|
-
archives androidSourcesJar
|
|
148
|
-
archives androidJavadocJar
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
task installArchives(type: Upload) {
|
|
152
|
-
configuration = configurations.archives
|
|
153
|
-
repositories.mavenDeployer {
|
|
154
|
-
// Deploy to react-native-event-bridge/maven, ready to publish to npm
|
|
155
|
-
repository url: "file://${projectDir}/../android/maven"
|
|
156
|
-
configureReactNativePom pom
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
File without changes
|
package/android/local.properties
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
# Location of the SDK. This is only used by Gradle.
|
|
5
5
|
# For customization when using a Version Control System, please read the
|
|
6
6
|
# header note.
|
|
7
|
-
#Tue
|
|
8
|
-
sdk.dir=/Users/
|
|
7
|
+
#Tue Aug 09 14:45:21 IST 2022
|
|
8
|
+
sdk.dir=/Users/amitpandey/Library/Android/sdk
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
-
|
|
2
|
+
package="com.reactlibrary">
|
|
3
3
|
|
|
4
4
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
5
5
|
|
|
@@ -29,155 +29,52 @@
|
|
|
29
29
|
android:protectionLevel="signature"
|
|
30
30
|
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
|
|
31
31
|
|
|
32
|
-
<activity android:name="semusi.context.ui.AppICENotifUI">
|
|
33
|
-
<intent-filter>
|
|
34
|
-
<action android:name="AppICE.Notification.FCM_Action" />
|
|
35
|
-
<category android:name="android.intent.category.DEFAULT" />
|
|
36
|
-
</intent-filter>
|
|
37
|
-
|
|
38
|
-
<intent-filter>
|
|
39
|
-
<action android:name="android.intent.action.VIEW" />
|
|
40
|
-
|
|
41
|
-
<category android:name="android.intent.category.DEFAULT" />
|
|
42
|
-
<category android:name="android.intent.category.BROWSABLE" />
|
|
43
|
-
|
|
44
|
-
<data
|
|
45
|
-
android:host="ai.io"
|
|
46
|
-
android:scheme="https" />
|
|
47
|
-
</intent-filter>
|
|
48
|
-
</activity>
|
|
49
32
|
|
|
50
33
|
<service
|
|
51
34
|
android:name="semusi.ruleengine.pushmanager.SdkFcmListenerService"
|
|
52
|
-
android:protectionLevel="signature"
|
|
35
|
+
android:protectionLevel="signature"
|
|
36
|
+
android:exported="true">
|
|
53
37
|
<intent-filter>
|
|
54
38
|
<action android:name="com.google.firebase.MESSAGING_EVENT" />
|
|
55
39
|
</intent-filter>
|
|
56
40
|
</service>
|
|
57
41
|
|
|
58
|
-
<receiver
|
|
59
|
-
android:name="semusi.context.counthandler.DataBackupReceiver"
|
|
60
|
-
android:enabled="true"
|
|
61
|
-
android:exported="true"
|
|
62
|
-
android:protectionLevel="signature">
|
|
63
|
-
<intent-filter android:priority="9999">
|
|
64
|
-
<action android:name="android.intent.action.PACKAGE_ADDED" />
|
|
65
|
-
<action android:name="android.intent.action.PACKAGE_REMOVED" />
|
|
66
|
-
<action android:name="android.intent.action.PACKAGE_REPLACED" />
|
|
67
|
-
|
|
68
|
-
<data android:scheme="package" />
|
|
69
|
-
</intent-filter>
|
|
70
|
-
</receiver>
|
|
71
|
-
|
|
72
|
-
<receiver
|
|
73
|
-
android:name="semusi.context.counthandler.DataSyncReceiver"
|
|
74
|
-
android:exported="true"
|
|
75
|
-
android:protectionLevel="signature" />
|
|
76
|
-
<receiver
|
|
77
|
-
android:name="semusi.context.counthandler.TimeTickReceiver"
|
|
78
|
-
android:exported="true"
|
|
79
|
-
android:protectionLevel="signature" />
|
|
80
42
|
<receiver
|
|
81
43
|
android:name="semusi.context.counthandler.NotificationEventReceiver"
|
|
82
44
|
android:exported="true"
|
|
83
45
|
android:protectionLevel="signature" />
|
|
84
|
-
<receiver
|
|
85
|
-
android:name="semusi.context.counthandler.ActionEventReceiver"
|
|
86
|
-
android:exported="true"
|
|
87
|
-
android:protectionLevel="signature" />
|
|
88
|
-
<receiver
|
|
89
|
-
android:name="semusi.analytics.handler.SessionReceiver"
|
|
90
|
-
android:exported="true"
|
|
91
|
-
android:protectionLevel="signature" />
|
|
92
46
|
|
|
93
47
|
<receiver
|
|
94
|
-
android:name="
|
|
48
|
+
android:name="com.reactlibrary.CampaignCampsReceiver"
|
|
49
|
+
android:protectionLevel="signature"
|
|
95
50
|
android:exported="true">
|
|
96
51
|
<intent-filter>
|
|
97
|
-
<action android:name="com.
|
|
98
|
-
</intent-filter>
|
|
99
|
-
</receiver>
|
|
100
|
-
|
|
101
|
-
<receiver
|
|
102
|
-
android:name="semusi.context.counthandler.DeviceBootReceiver"
|
|
103
|
-
android:protectionLevel="signature">
|
|
104
|
-
<intent-filter>
|
|
105
|
-
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
|
106
|
-
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
|
|
107
|
-
<action android:name="com.htc.intent.action.QUICKBOOT_POWERON" />
|
|
52
|
+
<action android:name="com.appice.campaignEvent" />
|
|
108
53
|
</intent-filter>
|
|
109
54
|
</receiver>
|
|
110
|
-
|
|
111
|
-
<!--<service-->
|
|
112
|
-
<!--android:name="semusi.ruleengine.pushmanager.NotificationEventService"-->
|
|
113
|
-
<!--android:permission="android.permission.BIND_JOB_SERVICE">-->
|
|
114
|
-
<!--</service>-->
|
|
115
|
-
<!-- Semusi setup end -->
|
|
116
|
-
|
|
117
|
-
<!-- Semusi Job Start-->
|
|
118
|
-
<service
|
|
119
|
-
android:name="semusi.util.job.v21.PlatformJobService"
|
|
120
|
-
android:exported="false"
|
|
121
|
-
android:permission="android.permission.BIND_JOB_SERVICE" />
|
|
122
|
-
|
|
123
55
|
<service
|
|
124
|
-
android:name="
|
|
125
|
-
android:
|
|
126
|
-
android:
|
|
127
|
-
|
|
128
|
-
<service
|
|
129
|
-
android:name="semusi.util.job.v14.PlatformAlarmServiceExact"
|
|
130
|
-
android:exported="false" />
|
|
131
|
-
|
|
132
|
-
<receiver
|
|
133
|
-
android:name="semusi.util.job.v14.PlatformAlarmReceiver"
|
|
134
|
-
android:exported="false">
|
|
135
|
-
<intent-filter>
|
|
136
|
-
<!-- Keep the filter for legacy intents -->
|
|
137
|
-
<action android:name="semusi.util.job.v14.RUN_JOB" />
|
|
138
|
-
<action android:name="net.vrallev.android.job.v14.RUN_JOB" />
|
|
139
|
-
</intent-filter>
|
|
140
|
-
</receiver>
|
|
141
|
-
|
|
142
|
-
<receiver
|
|
143
|
-
android:name="semusi.util.job.JobBootReceiver"
|
|
144
|
-
android:exported="false">
|
|
56
|
+
android:name="com.reactlibrary.NotificationEventService"
|
|
57
|
+
android:permission="android.permission.BIND_JOB_SERVICE"
|
|
58
|
+
android:exported="true">
|
|
145
59
|
<intent-filter>
|
|
146
|
-
<action android:name="
|
|
147
|
-
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
|
|
148
|
-
<action android:name="com.htc.intent.action.QUICKBOOT_POWERON" />
|
|
149
|
-
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
|
|
60
|
+
<action android:name="com.appice.campaignEvent" />
|
|
150
61
|
</intent-filter>
|
|
151
|
-
</
|
|
62
|
+
</service>
|
|
63
|
+
<activity android:name="semusi.context.ui.AppICENotifUI"
|
|
64
|
+
android:exported="true">
|
|
152
65
|
|
|
153
|
-
<receiver android:name="semusi.context.ui.Carousel.CarouselEventReceiver"
|
|
154
|
-
android:exported="false">
|
|
155
66
|
<intent-filter>
|
|
156
|
-
<action android:name="
|
|
157
|
-
</intent-filter>
|
|
158
|
-
</receiver>
|
|
67
|
+
<action android:name="android.intent.action.VIEW"/>
|
|
159
68
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
android:exported="false"
|
|
163
|
-
android:permission="android.permission.BIND_JOB_SERVICE" />
|
|
164
|
-
<!-- Semusi Job End -->
|
|
69
|
+
<category android:name="android.intent.category.DEFAULT"/>
|
|
70
|
+
<category android:name="android.intent.category.BROWSABLE"/>
|
|
165
71
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
<intent-filter>
|
|
170
|
-
<action android:name="com.appice.campaignEvent" />
|
|
171
|
-
</intent-filter>
|
|
172
|
-
</receiver>
|
|
173
|
-
<service
|
|
174
|
-
android:name=".NotificationEventService"
|
|
175
|
-
android:permission="android.permission.BIND_JOB_SERVICE">
|
|
176
|
-
<intent-filter>
|
|
177
|
-
<action android:name="com.appice.campaignEvent" />
|
|
72
|
+
<data
|
|
73
|
+
android:host="ai.io"
|
|
74
|
+
android:scheme="https"/>
|
|
178
75
|
</intent-filter>
|
|
179
|
-
</
|
|
180
|
-
|
|
76
|
+
</activity>
|
|
77
|
+
<meta-data android:name="APPICE_SSL_PINNING" android:value="1" />
|
|
181
78
|
</application>
|
|
182
79
|
|
|
183
80
|
</manifest>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
package com.reactlibrary;
|
|
2
|
+
|
|
3
|
+
import android.util.Log;
|
|
4
|
+
|
|
5
|
+
import com.facebook.react.bridge.Arguments;
|
|
6
|
+
import com.facebook.react.bridge.WritableMap;
|
|
7
|
+
|
|
8
|
+
import org.json.JSONObject;
|
|
9
|
+
|
|
10
|
+
import java.util.Iterator;
|
|
11
|
+
import java.util.Map;
|
|
12
|
+
|
|
13
|
+
public class AppICEUtils {
|
|
14
|
+
private static final String TAG = "AppICEUtils";
|
|
15
|
+
|
|
16
|
+
@SuppressWarnings({"TypeParameterExplicitlyExtendsObject", "rawtypes"})
|
|
17
|
+
public static WritableMap getWritableMapFromMap(Map<String, ? extends Object> var1) {
|
|
18
|
+
JSONObject extras = var1 != null ? new JSONObject(var1) : new JSONObject();
|
|
19
|
+
WritableMap extrasParams = Arguments.createMap();
|
|
20
|
+
Iterator extrasKeys = extras.keys();
|
|
21
|
+
while (extrasKeys.hasNext()) {
|
|
22
|
+
String key = null;
|
|
23
|
+
String value = null;
|
|
24
|
+
try {
|
|
25
|
+
key = extrasKeys.next().toString();
|
|
26
|
+
value = extras.get(key).toString();
|
|
27
|
+
} catch (Throwable t) {
|
|
28
|
+
Log.e(TAG, t.getLocalizedMessage());
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (key != null && value != null) {
|
|
32
|
+
extrasParams.putString(key, value);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return extrasParams;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
}
|