@customerglu/react-native-customerglu 1.0.1 → 1.0.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 CHANGED
@@ -17,7 +17,7 @@ Android - Requires minSdkVersion should be 21
17
17
  OPTION 1 -
18
18
  Add the CustomerGlu React Native plugin in package.json file
19
19
  ```
20
- "@customerglu/react-native-customerglu": "^1.0.0"
20
+ "@customerglu/react-native-customerglu": "^1.0.2"
21
21
  ```
22
22
 
23
23
  OPTION 2 -
@@ -62,7 +62,7 @@ dependencies {
62
62
  //noinspection GradleDynamicVersion
63
63
  implementation "com.facebook.react:react-native:+" // From node_modules
64
64
  // implementation 'com.github.customerglu:CG-SDK-Android:9be3d940f1'
65
- implementation 'com.github.customerglu:CG-SDK-Android:v2.0.7'
65
+ implementation 'com.github.customerglu:CG-SDK-Android:v2.0.11'
66
66
  // implementation 'com.github.customerglu:CG-SDK-Android:5f69d2c451'
67
67
  implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
68
68
  implementation 'com.google.code.gson:gson:2.8.6'
@@ -4,8 +4,5 @@
4
4
  <!-- only value should be changed -->
5
5
 
6
6
 
7
- <application>
8
-
9
- <receiver android:name=".RncustomergluModule" />
10
- </application>
7
+
11
8
  </manifest>
@@ -6,7 +6,7 @@ import android.util.Log;
6
6
  import android.view.View;
7
7
  import android.widget.LinearLayout;
8
8
 
9
- import com.customerglu.sdk.Banners.Banner;
9
+ import com.customerglu.sdk.entrypoints.Banner;
10
10
 
11
11
  import com.facebook.react.uimanager.ThemedReactContext;
12
12
 
@@ -35,7 +35,6 @@ public class bannerWidget extends LinearLayout {
35
35
  public void setBannerId(String id) {
36
36
  Context context1 = context.getCurrentActivity();
37
37
  banner = new Banner(context1, id);
38
-
39
38
  addView(banner);
40
39
 
41
40
  }
@@ -17,7 +17,7 @@ import androidx.annotation.Nullable;
17
17
  import androidx.annotation.RequiresApi;
18
18
  import androidx.localbroadcastmanager.content.LocalBroadcastManager;
19
19
 
20
- import com.customerglu.sdk.Banners.Banner;
20
+ import com.customerglu.sdk.entrypoints.Banner;
21
21
  import com.facebook.react.bridge.ActivityEventListener;
22
22
  import com.facebook.react.bridge.LifecycleEventListener;
23
23
  import com.facebook.react.bridge.ReactContext;
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
2
 
3
- <androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
3
+ <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
4
4
  xmlns:app="http://schemas.android.com/apk/res-auto"
5
5
  android:id="@+id/card"
6
6
  android:layout_width="match_parent"
@@ -41,4 +41,4 @@
41
41
  </RelativeLayout>
42
42
 
43
43
 
44
- </androidx.cardview.widget.CardView>
44
+ </RelativeLayout>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@customerglu/react-native-customerglu",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "CustomerGlu React Native plugin",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -15,7 +15,7 @@ DESC
15
15
  s.source = { :git => "https://github.com/customerglu/CG-SDK-React-Native.git", :tag => "#{s.version}" }
16
16
  s.source_files = "ios/**/*"
17
17
  s.dependency "React-Core"
18
- s.dependency "CustomerGlu", "2.0.5"
18
+ s.dependency "CustomerGlu", "2.0.6"
19
19
  s.dependency "RNFBApp"
20
20
  s.platform = :ios, '11.0'
21
21
  s.swift_version = '5.0'