@customerglu/react-native-customerglu 3.0.0-beta-1.2 → 3.0.0-beta-1.4

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.
@@ -1,6 +1,6 @@
1
1
  buildscript {
2
2
  ext.getExtOrDefault = {name ->
3
- return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['RnCustomerglu_' + name]
3
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['Rncustomerglu_' + name]
4
4
  }
5
5
 
6
6
  repositories {
@@ -8,11 +8,9 @@ import android.content.Context
8
8
  import android.content.Intent
9
9
  import android.content.IntentFilter
10
10
  import android.content.pm.PackageManager
11
- import android.os.Build
12
11
  import android.os.Handler
13
12
  import android.os.Looper
14
13
  import android.util.Log
15
- import androidx.core.content.ContextCompat
16
14
  import com.customerglu.sdk.CustomerGlu
17
15
  import com.customerglu.sdk.Interface.CampaignValidListener
18
16
  import com.customerglu.sdk.Interface.DataListner
@@ -21,7 +19,6 @@ import com.customerglu.sdk.Utils.CGConstants
21
19
  import com.customerglu.sdk.Utils.Comman
22
20
  import com.customerglu.sdk.pip.PIPHelper
23
21
 
24
- import com.facebook.react.bridge.Arguments
25
22
  import com.facebook.react.bridge.Promise
26
23
  import com.facebook.react.bridge.ReactMethod
27
24
  import com.facebook.react.bridge.ReadableArray
@@ -40,8 +37,9 @@ import org.json.JSONException
40
37
  import org.json.JSONObject
41
38
  import java.util.Date
42
39
  import kotlin.math.roundToInt
43
- @ReactModule(name = RnCustomergluModule.NAME)
44
- class RnCustomergluModule(reactContext: ReactApplicationContext) :
40
+
41
+ @ReactModule(name = RncustomergluModule.NAME)
42
+ class RncustomergluModule(reactContext: ReactApplicationContext) :
45
43
  NativeReactNativeCustomergluSpec(reactContext) {
46
44
  val TAG:String = "CUSTOMERGLU"
47
45
  val ANALYTICS_BROADCAST_ACTION = "CUSTOMERGLU_ANALYTICS_EVENT"
@@ -402,7 +400,7 @@ class RnCustomergluModule(reactContext: ReactApplicationContext) :
402
400
  CustomerGlu.getInstance().enableEntryPoints(getCurrentActivity(), b);
403
401
  }
404
402
 
405
- override fun isFcmApn(id: Boolean) {
403
+ override fun isFcmApn(id: String) {
406
404
 
407
405
  }
408
406
 
@@ -8,10 +8,10 @@ import com.facebook.react.module.model.ReactModuleInfoProvider
8
8
  import com.facebook.react.uimanager.ViewManager
9
9
  import java.util.HashMap
10
10
 
11
- class RnCustomergluPackage : BaseReactPackage() {
11
+ class RncustomergluPackage : BaseReactPackage() {
12
12
  override fun getModule(name: String, reactContext: ReactApplicationContext): NativeModule? {
13
- return if (name == RnCustomergluModule.NAME) {
14
- RnCustomergluModule(reactContext)
13
+ return if (name == RncustomergluModule.NAME) {
14
+ RncustomergluModule(reactContext)
15
15
  } else {
16
16
  null
17
17
  }
@@ -27,9 +27,9 @@ class RnCustomergluPackage : BaseReactPackage() {
27
27
  override fun getReactModuleInfoProvider(): ReactModuleInfoProvider {
28
28
  return ReactModuleInfoProvider {
29
29
  val moduleInfos: MutableMap<String, ReactModuleInfo> = HashMap()
30
- moduleInfos[RnCustomergluModule.NAME] = ReactModuleInfo(
31
- RnCustomergluModule.NAME,
32
- RnCustomergluModule.NAME,
30
+ moduleInfos[RncustomergluModule.NAME] = ReactModuleInfo(
31
+ RncustomergluModule.NAME,
32
+ RncustomergluModule.NAME,
33
33
  false, // canOverrideExistingModule
34
34
  false, // needsEagerInit
35
35
  false, // isCxxModule
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@customerglu/react-native-customerglu",
3
- "version": "3.0.0-beta-1.2",
3
+ "version": "3.0.0-beta-1.4",
4
4
  "description": "CustomerGlu React Native plugin",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",