reactnative-plugin-appice 1.2.0 → 1.4.1
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 +43 -17
- 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 +2 -0
- 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 +116 -0
- package/android/.idea/dictionaries/Adi.xml +3 -0
- package/android/.idea/gradle.xml +16 -0
- package/android/.idea/libraries/Gradle____local_aars____Users_Adi_ReactModule_AppICEReactLibrary_android_libs_AppICE_SDK_v2_4_18_jar_unspecified_jar.xml +9 -0
- package/android/.idea/libraries/Gradle____local_aars____Users_Adi_ReactModule_AppICEReactLibrary_android_libs_logutility_jar_unspecified_jar.xml +9 -0
- package/android/.idea/libraries/Gradle__android_arch_core_common_1_0_0_jar.xml +11 -0
- package/android/.idea/libraries/Gradle__android_arch_lifecycle_common_1_0_0_jar.xml +11 -0
- package/android/.idea/libraries/Gradle__android_arch_lifecycle_runtime_1_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_android_support_appcompat_v7_23_0_1_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_android_support_customtabs_26_1_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_android_support_recyclerview_v7_23_0_1_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_android_support_support_annotations_23_0_1_jar.xml +11 -0
- package/android/.idea/libraries/Gradle__com_android_support_support_annotations_26_1_0_jar.xml +11 -0
- package/android/.idea/libraries/Gradle__com_android_support_support_compat_26_1_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_android_support_support_core_ui_26_1_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_android_support_support_core_utils_26_1_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_android_support_support_fragment_26_1_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_android_support_support_media_compat_26_1_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_android_support_support_v4_23_0_1_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__com_android_support_support_v4_26_1_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_drawee_0_8_1_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_fbcore_0_8_1_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_fresco_0_8_1_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_0_8_1_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_okhttp_0_8_1_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_20_1_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__com_facebook_stetho_stetho_1_2_0_jar.xml +11 -0
- package/android/.idea/libraries/Gradle__com_facebook_stetho_stetho_okhttp_1_2_0_jar.xml +11 -0
- package/android/.idea/libraries/Gradle__com_fasterxml_jackson_core_jackson_core_2_2_3_jar.xml +11 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_ads_16_0_0_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_ads_base_16_0_0_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_ads_identifier_16_0_0_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_ads_lite_16_0_0_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_base_16_0_1_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_basement_16_2_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_gass_16_0_0_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_location_16_0_0_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_measurement_16_5_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_measurement_api_16_5_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_measurement_base_16_5_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_measurement_impl_16_5_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_measurement_sdk_16_5_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_measurement_sdk_api_16_5_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_places_placereport_16_0_0_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_stats_16_0_1_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_tasks_16_0_1_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_auto_value_auto_value_annotations_1_6_3_jar.xml +13 -0
- package/android/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_3_0_0_jar.xml +11 -0
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_analytics_16_5_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_common_17_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_core_16_0_9_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_iid_18_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_iid_interop_16_0_1_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_measurement_connector_17_0_1_aar.xml +10 -0
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_messaging_18_0_0_aar.xml +12 -0
- package/android/.idea/libraries/Gradle__com_nineoldandroids_library_2_4_0_jar.xml +11 -0
- package/android/.idea/libraries/Gradle__com_parse_bolts_bolts_android_1_1_4_jar.xml +11 -0
- package/android/.idea/libraries/Gradle__com_squareup_okhttp_okhttp_2_5_0_jar.xml +11 -0
- package/android/.idea/libraries/Gradle__com_squareup_okhttp_okhttp_ws_2_5_0_jar.xml +11 -0
- package/android/.idea/libraries/Gradle__com_squareup_okio_okio_1_6_0_jar.xml +11 -0
- package/android/.idea/libraries/Gradle__commons_cli_commons_cli_1_2_jar.xml +11 -0
- package/android/.idea/libraries/Gradle__org_webkit_android_jsc_r174650_aar.xml +10 -0
- package/android/.idea/misc.xml +23 -0
- package/android/.idea/modules.xml +8 -0
- package/android/.idea/runConfigurations.xml +12 -0
- package/android/.idea/workspace.xml +322 -0
- package/android/README.md +14 -0
- package/android/android.iml +151 -0
- package/android/build/.transforms/0fb7fc20a81e8c5e30919b8556df922b/classes/classes.dex +0 -0
- package/android/build/.transforms/0fb7fc20a81e8c5e30919b8556df922b.bin +1 -0
- package/android/build/.transforms/184a86fb83e4fc57ae31353a94048849/classes/classes.dex +0 -0
- package/android/build/.transforms/184a86fb83e4fc57ae31353a94048849.bin +1 -0
- package/android/build/.transforms/1d7033815c0870dfddb8f5813b3011e0/classes/classes.dex +0 -0
- package/android/build/.transforms/1d7033815c0870dfddb8f5813b3011e0.bin +1 -0
- package/android/build/.transforms/8a037f6056383e22d4a8bcea677e34f0/classes/classes.dex +0 -0
- package/android/build/.transforms/8a037f6056383e22d4a8bcea677e34f0.bin +1 -0
- package/android/build/.transforms/a26ffe20fdead2a4e2dd98ea390f8248/classes/classes.dex +0 -0
- package/android/build/.transforms/a26ffe20fdead2a4e2dd98ea390f8248.bin +1 -0
- package/android/build/.transforms/bf07a1d7c27044f37d3c2dd1bc209936/classes/classes.dex +0 -0
- package/android/build/.transforms/bf07a1d7c27044f37d3c2dd1bc209936.bin +1 -0
- package/android/build/.transforms/fa5cc52e69d33c06df5a4f6b52a33150/classes/classes.dex +0 -0
- package/android/build/.transforms/fa5cc52e69d33c06df5a4f6b52a33150.bin +1 -0
- package/android/build/generated/source/buildConfig/debug/com/reactlibrary/BuildConfig.java +1 -4
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +186 -27
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +16 -0
- package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +2 -0
- package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +1 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/R.txt +2050 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
- package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +1 -0
- package/android/build/intermediates/incremental/packageDebugResources/merger.xml +2 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/AppIceReactPluginModule.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/AppIceReactPluginPackage.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/CampaignCampsReceiver.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/InAppWebView.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/NotificationEventService$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/NotificationEventService.class +0 -0
- package/android/build/intermediates/library_manifest/debug/AndroidManifest.xml +187 -27
- package/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +2 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +351 -0
- package/android/build/intermediates/navigation_json/debug/navigation.json +1 -0
- package/android/build/intermediates/packaged_manifests/debug/output-metadata.json +16 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +1567 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +312 -38
- package/android/build/tmp/compileDebugJavaWithJavac/source-classes-mapping.txt +13 -0
- package/android/build.gradle +127 -20
- package/android/gradle/wrapper/gradle-wrapper.properties +2 -2
- package/android/libs/logutility.jar +0 -0
- package/android/local.properties +8 -0
- package/android/src/main/AndroidManifest.xml +17 -8
- package/android/src/main/java/com/reactlibrary/AppIceReactPluginModule.java +258 -0
- package/android/src/main/java/com/reactlibrary/{AppIceReactLibraryPackage.java → AppIceReactPluginPackage.java} +6 -6
- package/android/src/main/java/com/reactlibrary/CampaignCampsReceiver.java +0 -0
- 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/index.js +2 -3
- package/ios/AppICESDK/appICE.momd/VersionInfo.plist +0 -0
- package/ios/AppICESDK/appICE.momd/appICE 2.mom +0 -0
- package/ios/AppICESDK/appICE.momd/appICE 3.mom +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/appICE.momd/appICE.mom +0 -0
- package/ios/AppICESDK/appICE.momd/appICE2.mom +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/APPChildViewController.nib +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/AppICE_btn.png +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/Black button.png +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 +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/appICEBundle.bundle/checked.png +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/close-button.png +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/sound2.caf +0 -0
- package/ios/AppICESDK/appICEBundle.bundle/unchecked.png +0 -0
- package/ios/AppICESDK/include/iosAppiceSDK/AppICEInboxMessage.h +36 -0
- package/ios/AppICESDK/include/iosAppiceSDK/BugfenderSDK.framework/BugfenderSDK +0 -0
- package/ios/AppICESDK/include/iosAppiceSDK/BugfenderSDK.framework/Headers/BFUserFeedbackNavigationController.h +51 -0
- package/ios/AppICESDK/include/iosAppiceSDK/BugfenderSDK.framework/Headers/BFUserFeedbackViewController.h +114 -0
- package/ios/AppICESDK/include/iosAppiceSDK/BugfenderSDK.framework/Headers/BugfenderSDK.h +388 -0
- package/ios/AppICESDK/include/iosAppiceSDK/BugfenderSDK.framework/Modules/module.modulemap +6 -0
- package/ios/AppICESDK/include/iosAppiceSDK/appICE.h +126 -0
- package/ios/AppICESDK/include/iosAppiceSDK/appICEDB.h +52 -0
- package/ios/AppICESDK/include/iosAppiceSDK/appICEUserDetails.h +46 -0
- package/ios/AppIceReactPlugin.h +5 -0
- package/ios/AppIceReactPlugin.m +64 -0
- package/ios/AppIceReactPlugin.xcodeproj/project.pbxproj +422 -0
- package/ios/AppIceReactPlugin.xcodeproj/project.xcworkspace/contents.xcworkspacedata +4 -0
- package/ios/AppIceReactPlugin.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/AppIceReactPlugin.xcodeproj/project.xcworkspace/xcuserdata/Adi.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/AppIceReactPlugin.xcodeproj/xcuserdata/Adi.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/ios/AppIceReactPlugin.xcworkspace/contents.xcworkspacedata +10 -0
- package/ios/AppIceReactPlugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/AppIceReactPlugin.xcworkspace/xcuserdata/Adi.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Podfile +11 -0
- package/ios/Podfile.lock +3 -0
- package/ios/Pods/Manifest.lock +3 -0
- package/ios/Pods/Pods.xcodeproj/project.pbxproj +395 -0
- package/ios/Pods/Pods.xcodeproj/xcuserdata/Adi.xcuserdatad/xcschemes/Pods-AppIceReactPlugin.xcscheme +58 -0
- package/ios/Pods/Pods.xcodeproj/xcuserdata/Adi.xcuserdatad/xcschemes/xcschememanagement.plist +18 -0
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-Info.plist +26 -0
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-acknowledgements.markdown +3 -0
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-acknowledgements.plist +29 -0
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-dummy.m +5 -0
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-umbrella.h +16 -0
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin.debug.xcconfig +6 -0
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin.modulemap +6 -0
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin.release.xcconfig +6 -0
- package/package.json +27 -5
- package/reactnative-plugin-appice.podspec +30 -0
- package/.gitattributes +0 -1
- package/android/build/generated/source/buildConfig/androidTest/debug/com/reactlibrary/test/BuildConfig.java +0 -13
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output.json +0 -1
- package/android/build/intermediates/merged_manifests/debug/output.json +0 -1
- package/android/build/intermediates/merged_manifests/debugAndroidTest/AndroidManifest.xml +0 -126
- package/android/build/intermediates/merged_manifests/debugAndroidTest/output.json +0 -1
- package/android/src/main/java/com/reactlibrary/AppICEReactPlugin.java +0 -230
- package/ios/RNAppIceReactLibrary.h +0 -11
- package/ios/RNAppIceReactLibrary.m +0 -13
- package/ios/RNAppIceReactLibrary.podspec +0 -24
- package/ios/RNAppIceReactLibrary.xcodeproj/project.pbxproj +0 -259
- package/ios/RNAppIceReactLibrary.xcworkspace/contents.xcworkspacedata +0 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
1
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
-
|
|
2
|
+
package="com.reactlibrary">
|
|
3
|
+
|
|
4
4
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
5
5
|
|
|
6
6
|
<uses-permission android:name="android.permission.GET_TASKS" />
|
|
@@ -163,12 +163,21 @@
|
|
|
163
163
|
android:permission="android.permission.BIND_JOB_SERVICE" />
|
|
164
164
|
<!-- Semusi Job End -->
|
|
165
165
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
166
|
+
<receiver
|
|
167
|
+
android:name=".CampaignCampsReceiver"
|
|
168
|
+
android:protectionLevel="signature">
|
|
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" />
|
|
178
|
+
</intent-filter>
|
|
179
|
+
</service>
|
|
180
|
+
<meta-data android:name="APPICE_SSL_PINNING" android:value="1" />
|
|
171
181
|
</application>
|
|
172
182
|
|
|
173
183
|
</manifest>
|
|
174
|
-
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
package com.reactlibrary;
|
|
2
|
+
|
|
3
|
+
import android.content.Context;
|
|
4
|
+
import android.content.Intent;
|
|
5
|
+
import android.content.pm.PackageManager;
|
|
6
|
+
import android.content.pm.ResolveInfo;
|
|
7
|
+
|
|
8
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
9
|
+
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
10
|
+
import com.facebook.react.bridge.ReactMethod;
|
|
11
|
+
import com.facebook.react.bridge.Callback;
|
|
12
|
+
import com.facebook.react.bridge.ReadableMap;
|
|
13
|
+
import com.facebook.react.bridge.ReadableMapKeySetIterator;
|
|
14
|
+
import com.facebook.react.bridge.ReadableType;
|
|
15
|
+
import android.webkit.WebView;
|
|
16
|
+
import android.widget.LinearLayout;
|
|
17
|
+
import java.util.HashMap;
|
|
18
|
+
import java.util.List;
|
|
19
|
+
import java.util.Map;
|
|
20
|
+
import java.util.Arrays;
|
|
21
|
+
import semusi.activitysdk.Api;
|
|
22
|
+
import semusi.activitysdk.ContextSdk;
|
|
23
|
+
import semusi.activitysdk.SdkConfig;
|
|
24
|
+
import semusi.activitysdk.User;
|
|
25
|
+
import java.util.*;
|
|
26
|
+
import android.webkit.WebSettings;
|
|
27
|
+
//import semusi.context.utility.Utility;
|
|
28
|
+
import com.facebook.react.bridge.ReadableArray;
|
|
29
|
+
|
|
30
|
+
public class AppIceReactPluginModule extends ReactContextBaseJavaModule {
|
|
31
|
+
|
|
32
|
+
private final ReactApplicationContext reactContext;
|
|
33
|
+
|
|
34
|
+
public AppIceReactPluginModule(ReactApplicationContext reactContext) {
|
|
35
|
+
super(reactContext);
|
|
36
|
+
this.reactContext = reactContext;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@Override
|
|
40
|
+
public String getName() {
|
|
41
|
+
return "AppIceReactPlugin";
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @param appID
|
|
46
|
+
* @param appKey
|
|
47
|
+
* @param apiKey
|
|
48
|
+
* @param gcmID
|
|
49
|
+
* @param region
|
|
50
|
+
* @param baseUrl
|
|
51
|
+
* @param certs
|
|
52
|
+
*/
|
|
53
|
+
//appID, appKey, apiKey, gcmID, region, baseUrl, certs,success, error
|
|
54
|
+
@ReactMethod
|
|
55
|
+
public void startContext(String appID, String appKey, String apiKey,String deviceID,
|
|
56
|
+
String region,String baseUrl,ReadableArray certs
|
|
57
|
+
){
|
|
58
|
+
Context context = getReactApplicationContext();
|
|
59
|
+
// Utility.loginfo("in startContext : appID : "+appID+", appkey : "+appKey+", apiKey : "+apiKey);
|
|
60
|
+
try {
|
|
61
|
+
SdkConfig config = new SdkConfig();
|
|
62
|
+
config.setAnalyticsTrackingAllowedState(true);
|
|
63
|
+
|
|
64
|
+
System.out.println(certs.toString());
|
|
65
|
+
//readaableArray can not read by java so converting it to list type array
|
|
66
|
+
List<String> certList = new ArrayList<String>(certs.size());
|
|
67
|
+
|
|
68
|
+
for (int i = 0; i <certs.size(); i++) {
|
|
69
|
+
|
|
70
|
+
certList.add(certs.getString(i));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
//as per new upgradation 27 jul 21r
|
|
75
|
+
Api.initSdk(appID, appKey, apiKey, region, baseUrl
|
|
76
|
+
, certList
|
|
77
|
+
,context);
|
|
78
|
+
|
|
79
|
+
Api.startContext(context,config);
|
|
80
|
+
|
|
81
|
+
}catch (Exception e){
|
|
82
|
+
// Utility.loginfo("Exception in startContext : "+e);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @param eventName
|
|
89
|
+
*/
|
|
90
|
+
@ReactMethod
|
|
91
|
+
public void tagEvent(String eventName, ReadableMap props){
|
|
92
|
+
Context context = getReactApplicationContext();
|
|
93
|
+
try {
|
|
94
|
+
HashMap<String,Object> mapData = eventPropsFromReadableMap(props);
|
|
95
|
+
if (eventName != null && eventName.length()>0) {
|
|
96
|
+
ContextSdk.tagEventObj(eventName, mapData, context);
|
|
97
|
+
// Utility.loginfo("recordEvent key : "+eventName);
|
|
98
|
+
}
|
|
99
|
+
} catch (Exception e) {
|
|
100
|
+
// Utility.loginfo("Exception in tagEvent : "+e);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @param props
|
|
106
|
+
*/
|
|
107
|
+
@ReactMethod
|
|
108
|
+
public void setCustomVariable(String eventName, String value){
|
|
109
|
+
Context context = getReactApplicationContext();
|
|
110
|
+
try {
|
|
111
|
+
if (value != null) {
|
|
112
|
+
ContextSdk.setCustomVariable(eventName, (String) value, context);
|
|
113
|
+
}
|
|
114
|
+
}catch (Exception e){
|
|
115
|
+
// Utility.loginfo("Exception in customVar : "+e);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @return
|
|
121
|
+
*/
|
|
122
|
+
@ReactMethod
|
|
123
|
+
private void validateIntegration(){
|
|
124
|
+
try {
|
|
125
|
+
Context ctx = getReactApplicationContext();
|
|
126
|
+
PackageManager pm = ctx.getPackageManager();
|
|
127
|
+
|
|
128
|
+
Intent receiverIntent = new Intent();
|
|
129
|
+
receiverIntent.setClass(ctx, CampaignCampsReceiver.class);
|
|
130
|
+
List<ResolveInfo> receivers = pm.queryBroadcastReceivers(receiverIntent, 0);
|
|
131
|
+
if (receivers == null || receivers.size() <= 0) {
|
|
132
|
+
// Utility.loginfo("Missing Receiver entry in AndroidManifest : CampaignCampsReceiver");
|
|
133
|
+
}
|
|
134
|
+
Intent serviceIntent = new Intent();
|
|
135
|
+
serviceIntent.setClass(ctx, NotificationEventService.class);
|
|
136
|
+
ResolveInfo services = pm.resolveService(serviceIntent, 0);
|
|
137
|
+
if (services == null) {
|
|
138
|
+
// Utility.loginfo("Missing Service entry in AndroidManifest : NotificationEventService");
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
ContextSdk sdk = new ContextSdk(ctx);
|
|
142
|
+
if (sdk.getAppId() == null || sdk.getAppId().length() <= 0 || sdk.getAppId().trim().length() <= 0) {
|
|
143
|
+
// Utility.loginfo("Missing Meta-data entry : AppID");
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
if (sdk.getAppKey() == null || sdk.getAppKey().length() <= 0 || sdk.getAppKey().trim().length() <= 0) {
|
|
147
|
+
// Utility.loginfo("Missing Meta-data entry : AppKey");
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if (sdk.getApiKey() == null || sdk.getApiKey().length() <= 0 || sdk.getApiKey().trim().length() <= 0) {
|
|
151
|
+
// Utility.loginfo("Missing Meta-data entry : ApiKey");
|
|
152
|
+
}
|
|
153
|
+
} catch (Exception e) {
|
|
154
|
+
e.printStackTrace();
|
|
155
|
+
// Utility.loginfo(e.getMessage());
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @return sdk version
|
|
161
|
+
*/
|
|
162
|
+
@ReactMethod
|
|
163
|
+
private void getSdkVersion() {
|
|
164
|
+
// Utility.loginfo("SdkVersion : "+ ContextSdk.getSdkVersion());
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* @return int sdk version
|
|
169
|
+
*/
|
|
170
|
+
@ReactMethod
|
|
171
|
+
private void getSdkIntVersion() {
|
|
172
|
+
// Utility.loginfo("SdkIntVersion: "+ContextSdk.getSdkIntVersion());
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* @param propsMap
|
|
178
|
+
* took data from js and iterate it and store in hashmap
|
|
179
|
+
* @return map of the props data
|
|
180
|
+
*/
|
|
181
|
+
private HashMap<String, Object> eventPropsFromReadableMap(ReadableMap propsMap) {
|
|
182
|
+
if (propsMap == null) return null;
|
|
183
|
+
|
|
184
|
+
HashMap<String, Object> props = new HashMap<>();
|
|
185
|
+
ReadableMapKeySetIterator iterator = propsMap.keySetIterator();
|
|
186
|
+
|
|
187
|
+
while (iterator.hasNextKey()) {
|
|
188
|
+
try {
|
|
189
|
+
String key = iterator.nextKey();
|
|
190
|
+
ReadableType readableType = propsMap.getType(key);
|
|
191
|
+
|
|
192
|
+
if (readableType == ReadableType.String) {
|
|
193
|
+
props.put(key, propsMap.getString(key));
|
|
194
|
+
}
|
|
195
|
+
else if (readableType == ReadableType.Boolean) {
|
|
196
|
+
props.put(key, propsMap.getBoolean(key));
|
|
197
|
+
}
|
|
198
|
+
else if (readableType == ReadableType.Number) {
|
|
199
|
+
try {
|
|
200
|
+
props.put(key, propsMap.getDouble(key));
|
|
201
|
+
} catch (Throwable t) {
|
|
202
|
+
try {
|
|
203
|
+
props.put(key, propsMap.getInt(key));
|
|
204
|
+
} catch (Throwable t1) {
|
|
205
|
+
// Utility.loginfo("Unhandled ReadableType.Number from ReadableMap");
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
// Utility.loginfo("Unhandled event property ReadableType");
|
|
211
|
+
}
|
|
212
|
+
} catch (Throwable t) {
|
|
213
|
+
// Utility.loginfo(t.getLocalizedMessage());
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
return props;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
@ReactMethod
|
|
220
|
+
public void setUser(String name, String phone, String email){
|
|
221
|
+
Context context = getReactApplicationContext();
|
|
222
|
+
|
|
223
|
+
try {
|
|
224
|
+
User user = new User();
|
|
225
|
+
user.setName(name);
|
|
226
|
+
user.setPhone(phone);
|
|
227
|
+
user.setEmail(email);
|
|
228
|
+
|
|
229
|
+
ContextSdk.setUser(user, context);
|
|
230
|
+
}catch (Exception e){
|
|
231
|
+
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
@ReactMethod
|
|
236
|
+
public void setUserId(String userId){
|
|
237
|
+
Context context = getReactApplicationContext();
|
|
238
|
+
try {
|
|
239
|
+
ContextSdk.setCustomVariable("UserId",userId,context);
|
|
240
|
+
}catch (Exception e){}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
@ReactMethod
|
|
245
|
+
public void ShowWeb(){
|
|
246
|
+
Context context = getReactApplicationContext();
|
|
247
|
+
WebView web = new WebView(context);
|
|
248
|
+
// web.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT,
|
|
249
|
+
// LayoutParams.MATCH_PARENT));
|
|
250
|
+
|
|
251
|
+
WebSettings webSettings = web.getSettings();
|
|
252
|
+
webSettings.setJavaScriptEnabled(true);
|
|
253
|
+
// WebViewClientImpl webViewClient = new WebViewClientImpl(this);
|
|
254
|
+
// webView.setWebViewClient(webViewClient);
|
|
255
|
+
|
|
256
|
+
web.loadData("<div>shailesh</div>", "text/html", "UTF-8");
|
|
257
|
+
}
|
|
258
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
package com.reactlibrary;
|
|
3
2
|
|
|
4
3
|
import java.util.Arrays;
|
|
@@ -10,19 +9,20 @@ import com.facebook.react.bridge.NativeModule;
|
|
|
10
9
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
11
10
|
import com.facebook.react.uimanager.ViewManager;
|
|
12
11
|
import com.facebook.react.bridge.JavaScriptModule;
|
|
13
|
-
|
|
12
|
+
|
|
13
|
+
public class AppIceReactPluginPackage implements ReactPackage {
|
|
14
14
|
@Override
|
|
15
15
|
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
|
|
16
|
-
|
|
16
|
+
return Arrays.<NativeModule>asList(new AppIceReactPluginModule(reactContext));
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
// Deprecated from RN 0.47
|
|
20
20
|
public List<Class<? extends JavaScriptModule>> createJSModules() {
|
|
21
|
-
|
|
21
|
+
return Collections.emptyList();
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
@Override
|
|
25
25
|
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
|
|
26
|
-
|
|
26
|
+
return Collections.emptyList();
|
|
27
27
|
}
|
|
28
|
-
}
|
|
28
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
package com.reactlibrary;
|
|
2
|
+
import android.annotation.SuppressLint;
|
|
3
|
+
import android.content.Context;
|
|
4
|
+
import android.graphics.Point;
|
|
5
|
+
import android.util.DisplayMetrics;
|
|
6
|
+
import android.util.TypedValue;
|
|
7
|
+
import android.view.View;
|
|
8
|
+
import android.webkit.WebView;
|
|
9
|
+
|
|
10
|
+
@SuppressLint("ViewConstructor")
|
|
11
|
+
class InAppWebView extends WebView {
|
|
12
|
+
|
|
13
|
+
final Point dim = new Point();
|
|
14
|
+
|
|
15
|
+
private int height;
|
|
16
|
+
|
|
17
|
+
private int heightPercentage;
|
|
18
|
+
|
|
19
|
+
private int width;
|
|
20
|
+
|
|
21
|
+
private int widthPercentage;
|
|
22
|
+
|
|
23
|
+
@SuppressLint("ResourceType")
|
|
24
|
+
public InAppWebView(Context context, int width, int height, int widthPercentage, int heightPercentage) {
|
|
25
|
+
super(context);
|
|
26
|
+
this.width = width;
|
|
27
|
+
this.height = height;
|
|
28
|
+
this.widthPercentage = widthPercentage;
|
|
29
|
+
this.heightPercentage = heightPercentage;
|
|
30
|
+
setHorizontalScrollBarEnabled(false);
|
|
31
|
+
setVerticalScrollBarEnabled(false);
|
|
32
|
+
setHorizontalFadingEdgeEnabled(false);
|
|
33
|
+
setVerticalFadingEdgeEnabled(false);
|
|
34
|
+
setOverScrollMode(View.OVER_SCROLL_NEVER);
|
|
35
|
+
setBackgroundColor(0x00000000);
|
|
36
|
+
//noinspection ResourceType
|
|
37
|
+
setId(188293);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@Override
|
|
41
|
+
public boolean performClick() {
|
|
42
|
+
return super.performClick();
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@Override
|
|
46
|
+
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
|
|
47
|
+
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
|
|
48
|
+
updateDimension();
|
|
49
|
+
setMeasuredDimension(dim.x, dim.y);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
void updateDimension() {
|
|
53
|
+
if (width != 0) {
|
|
54
|
+
dim.x = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
|
|
55
|
+
width, getResources().getDisplayMetrics());
|
|
56
|
+
} else {
|
|
57
|
+
DisplayMetrics metrics = getResources().getDisplayMetrics();
|
|
58
|
+
dim.x = (int) (metrics.widthPixels * widthPercentage / 100f);
|
|
59
|
+
}
|
|
60
|
+
if (height != 0) {
|
|
61
|
+
dim.y = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
|
|
62
|
+
height, getResources().getDisplayMetrics());
|
|
63
|
+
} else {
|
|
64
|
+
DisplayMetrics metrics = getResources().getDisplayMetrics();
|
|
65
|
+
dim.y = (int) (metrics.heightPixels * heightPercentage / 100f);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"folders": [
|
|
3
|
+
{
|
|
4
|
+
"path": "..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\plugin_codelab\\example"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"path": "..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\plugin_appice"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"path": "..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\Cordova samples\\Cordova samples\\cordova-plugin-appice"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"path": "..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\Downloads\\inapp_image_picker-0.0.1"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"path": "..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\Downloads\\firebase_storage-10.2.4"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"path": "..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\clevertap-flutter"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"path": "..\\..\\..\\..\\..\\..\\..\\.."
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"path": "..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\..\\Cordova samples\\Cordova samples"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"settings": {}
|
|
29
|
+
}
|
package/index.js
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
//
|
|
2
|
+
// AppICEInboxMessage.h
|
|
3
|
+
// iosAppiceSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Mac on 12/20/19.
|
|
6
|
+
// Copyright © 2019 Semusi. All rights reserved.
|
|
7
|
+
// Aditya Sharma
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
@interface AppICEInboxMessage : NSObject
|
|
14
|
+
|
|
15
|
+
//extern const int ALL;
|
|
16
|
+
|
|
17
|
+
@property (strong, nonatomic) NSString *messageId;
|
|
18
|
+
@property (strong, nonatomic) NSString *messageImage;
|
|
19
|
+
@property (strong, nonatomic) NSString *messageBody;
|
|
20
|
+
@property (strong, nonatomic) NSString *messageTitle;
|
|
21
|
+
@property (strong, nonatomic) NSString *messageStatus;
|
|
22
|
+
@property (strong, nonatomic) NSString *messageLanguage;
|
|
23
|
+
@property (strong, nonatomic) NSMutableDictionary *customData;
|
|
24
|
+
@property (nonatomic) double messageExpiryTime;
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
+(AppICEInboxMessage*)instanceFromDictionary:(NSDictionary *)aDictionary;
|
|
28
|
+
|
|
29
|
+
//- (void)setAttributesFromDictionary:(NSDictionary *)aDictionary;
|
|
30
|
+
- (void)setAttributesFromDictionary:(NSDictionary *)aDictionary :(AppICEInboxMessage*)instance;
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
@end
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
//
|
|
2
|
+
// BFUserFeedbackViewController.h
|
|
3
|
+
// BugfenderSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Rubén Vázquez Otero on 15/10/2018.
|
|
6
|
+
// Copyright © 2018 Mobile Jazz. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <UIKit/UIKit.h>
|
|
10
|
+
#import "BFUserFeedbackViewController.h"
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Navigation View Controller containing a BFUserFeedbackNavigationController as rootViewController
|
|
16
|
+
*/
|
|
17
|
+
@interface BFUserFeedbackNavigationController : UINavigationController
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Root View Controller containing a table with the textfields used to gather feedback
|
|
23
|
+
*/
|
|
24
|
+
@property (nonatomic, strong) BFUserFeedbackViewController *feedbackViewController;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
Provides a View Controller to gather the feedback of the users and sent it to Bugfender.
|
|
28
|
+
The returning BFUserFeedbackNavigationController has to be presented modally and it has it's own Send and Cancel buttons
|
|
29
|
+
|
|
30
|
+
Additionally, it is possible to customize the aspect of the screen accessing BFUserFeedbackNavigationController.feedbackViewController
|
|
31
|
+
|
|
32
|
+
@param title Title for the navigation bar
|
|
33
|
+
@param hint Short text at the beginning
|
|
34
|
+
@param subjectPlaceholder placeholder in the subject textfield
|
|
35
|
+
@param messagePlaceholder placeholder in the message textfield
|
|
36
|
+
@param sendButtonTitle title for the send button in the navigation bar
|
|
37
|
+
@param cancelButtonTitle title for the cancel button
|
|
38
|
+
@return BFUserFeedbackNavigationController containing a BFUserFeedbackViewController as root view controller
|
|
39
|
+
*/
|
|
40
|
+
+ (BFUserFeedbackNavigationController *)userFeedbackViewControllerWithTitle:(NSString *)title
|
|
41
|
+
hint:(NSString *)hint
|
|
42
|
+
subjectPlaceholder:(NSString *)subjectPlaceholder
|
|
43
|
+
messagePlaceholder:(NSString *)messagePlaceholder
|
|
44
|
+
sendButtonTitle:(NSString *)sendButtonTitle
|
|
45
|
+
cancelButtonTitle:(NSString *)cancelButtonTitle
|
|
46
|
+
completion:(void (^)(BOOL feedbackSent, NSURL * _Nullable url))completionBlock;
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
@end
|
|
50
|
+
|
|
51
|
+
NS_ASSUME_NONNULL_END
|