@customerglu/react-native-customerglu 3.0.0-beta-1.7 → 3.0.0

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.
@@ -43,14 +43,12 @@ import kotlin.math.roundToInt
43
43
  @ReactModule(name = RncustomergluModule.NAME)
44
44
  class RncustomergluModule(reactContext: ReactApplicationContext) :
45
45
  NativeReactNativeCustomergluSpec(reactContext) {
46
- val TAG:String = "CUSTOMERGLU"
47
- val ANALYTICS_BROADCAST_ACTION = "CUSTOMERGLU_ANALYTICS_EVENT"
46
+ val TAG:String = "CUSTOMERGLU"
47
+ val ANALYTICS_BROADCAST_ACTION = "CUSTOMERGLU_ANALYTICS_EVENT"
48
48
  val DEEPLINK_BROADCAST_ACTION = "CUSTOMERGLU_DEEPLINK_EVENT"
49
49
  val BANNER_BROADCAST_ACTION = "CUSTOMERGLU_BANNER_LOADED"
50
50
  val INVALID_CAMPAIGN_BROADCAST_ACTION = "CG_INVALID_CAMPAIGN_ID"
51
51
  val BANNER_HEIGHT_BROADCAST_ACTION = "CGBANNER_FINAL_HEIGHT"
52
-
53
-
54
52
  var mContext: ReactApplicationContext? = null
55
53
  var mReceiver: BroadcastReceiver? = null
56
54
  var Myclassname: String = ""
@@ -327,6 +325,8 @@ class RncustomergluModule(reactContext: ReactApplicationContext) :
327
325
 
328
326
  override fun initCGSDK(obj: String?) {
329
327
  CustomerGlu.getInstance().initializeSdk(getReactApplicationContext(),obj);
328
+ CustomerGlu.cg_sdk_version = "3.0.0"
329
+ CustomerGlu.cg_app_platform = "REACT_NATIVE"
330
330
 
331
331
  }
332
332
 
@@ -290,7 +290,8 @@ RCT_EXPORT_METHOD(testEventEmission) {
290
290
  - (void)initCGSDK:(nonnull NSString *)obj {
291
291
  NSLog(@"[CustomerGlu] start init sdk");
292
292
  CustomerGlu *sdk = [CustomerGlu getInstance];
293
-
293
+ CustomerGlu.sdk_version = @"3.0.0";
294
+ CustomerGlu.app_platform = @"REACT_NATIVE";
294
295
  @try {
295
296
  [self startObserving];
296
297
  [sdk initializeSdkWithMyenv:obj];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@customerglu/react-native-customerglu",
3
- "version": "3.0.0-beta-1.7",
3
+ "version": "3.0.0",
4
4
  "description": "CustomerGlu React Native plugin",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",