react-native-notifyvisitors 4.1.3 → 4.1.5

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.
@@ -5,7 +5,7 @@ connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(7.1.1))
5
5
  connection.project.dir=
6
6
  eclipse.preferences.version=1
7
7
  gradle.user.home=
8
- java.home=/Library/Java/JavaVirtualMachines/jdk-11.0.15.jdk/Contents/Home
8
+ java.home=/Library/Java/JavaVirtualMachines/jdk-11.0.15.1.jdk/Contents/Home
9
9
  jvm.arguments=
10
10
  offline.mode=false
11
11
  override.workspace.settings=true
@@ -3,7 +3,7 @@ apply plugin: 'com.android.library'
3
3
  buildscript {
4
4
  repositories {
5
5
  google()
6
- jcenter()
6
+ mavenCentral()
7
7
  }
8
8
 
9
9
  dependencies {
@@ -14,12 +14,10 @@ buildscript {
14
14
 
15
15
 
16
16
  android {
17
- compileSdkVersion 28
18
- buildToolsVersion "29.0.2"
19
-
17
+ compileSdkVersion 31
20
18
  defaultConfig {
21
19
  minSdkVersion 19
22
- targetSdkVersion 28
20
+ targetSdkVersion 31
23
21
  }
24
22
  lintOptions {
25
23
  abortOnError false
@@ -34,19 +32,19 @@ dependencies {
34
32
  implementation fileTree(dir: 'libs', include: ['*.jar'])
35
33
  implementation 'com.facebook.react:react-native:+'
36
34
 
37
- implementation 'com.notifyvisitors.notifyvisitors:notifyvisitors:5.3.0'
35
+ implementation 'com.notifyvisitors.notifyvisitors:notifyvisitors:5.3.4'
36
+ implementation 'androidx.appcompat:appcompat:1.1.0'
37
+ implementation 'androidx.legacy:legacy-support-v4:1.0.0'
38
+ implementation 'com.google.android.material:material:1.4.0'
39
+ implementation 'androidx.recyclerview:recyclerview:1.2.1'
40
+ implementation 'androidx.cardview:cardview:1.0.0'
38
41
  implementation 'com.android.installreferrer:installreferrer:2.1'
42
+ implementation 'com.google.android.play:core:1.10.1'
39
43
 
40
- implementation 'com.android.support:design:28.0.0'
41
- implementation 'com.android.support:recyclerview-v7:28.0.0'
42
- implementation 'com.android.support:cardview-v7:28.0.0'
43
-
44
44
  implementation 'com.google.android.gms:play-services-location:17.0.0'
45
45
  implementation 'com.google.firebase:firebase-core:17.2.2'
46
- implementation 'com.google.firebase:firebase-messaging:20.1.0'
47
-
46
+ implementation 'com.google.firebase:firebase-messaging:20.1.0'
48
47
  }
49
48
 
50
-
51
49
  //apply plugin: 'com.google.gms.google-services'
52
50
 
@@ -16,12 +16,13 @@
16
16
  android:usesCleartextTraffic="true"
17
17
  android:largeHeap="true"
18
18
  android:supportsRtl="true">
19
-
20
- <service android:name="com.notifyvisitors.notifyvisitors.NVFirebaseMessagingService">
19
+ <service
20
+ android:name="com.notifyvisitors.notifyvisitors.NVFirebaseMessagingService"
21
+ android:exported="true">
21
22
  <intent-filter>
22
23
  <action android:name="com.google.firebase.MESSAGING_EVENT" />
23
24
  </intent-filter>
24
- </service>
25
+ </service>
25
26
  </application>
26
27
  </manifest>
27
28
 
@@ -40,7 +40,7 @@ public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implement
40
40
 
41
41
  private final ReactApplicationContext reactContext;
42
42
  private static final String TAG = "RN-NotifyVisitors";
43
- private static final String PLUGIN_VERSION = "4.1.3";
43
+ private static final String PLUGIN_VERSION = "4.1.5";
44
44
 
45
45
  private String PUSH_BANNER_CLICK_EVENT = "nv_push_banner_click";
46
46
  private String CHAT_BOT_BUTTON_CLICK = "nv_chat_bot_button_click";
@@ -157,6 +157,8 @@ public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implement
157
157
  mActivity.runOnUiThread(new Runnable() {
158
158
  @Override
159
159
  public void run() {
160
+ Log.i(TAG, "Tokens : "+mTokens.toString());
161
+ Log.i(TAG, "Custom Rules : "+mCustomObjects.toString());
160
162
  NotifyVisitorsApi.getInstance(mActivity).show(mTokens, mCustomObjects, fragmentName);
161
163
  }
162
164
  });
@@ -330,6 +332,11 @@ public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implement
330
332
  } catch (Exception e) {
331
333
  Log.i(TAG, "ATTRIBUTES PARSE ERROR : " + e);
332
334
  }
335
+
336
+ Log.i(TAG, "Event Name : "+eventName);
337
+ Log.i(TAG, "Attributes : "+mAttributes.toString());
338
+ Log.i(TAG, "Life Time Value : "+ltv);
339
+ Log.i(TAG, "Scope : "+scope);
333
340
  NotifyVisitorsApi.getInstance(reactContext).event(eventName, mAttributes, ltv, scope);
334
341
  } catch (Exception e) {
335
342
  Log.i(TAG, "EVENT ERROR : " + e);
@@ -348,6 +355,8 @@ public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implement
348
355
  mAttributes = new JSONObject(temp);
349
356
  }
350
357
 
358
+ Log.i(TAG, "User : "+userID);
359
+ Log.i(TAG, "Attributes : "+mAttributes);
351
360
  NotifyVisitorsApi.getInstance(reactContext).userIdentifier(userID, mAttributes);
352
361
  } catch (Exception e) {
353
362
  Log.i(TAG, "USER IDENTIFIER ERROR : " + e);
@@ -32,7 +32,7 @@ int nvCheckPushClickTimeCounter = 0;
32
32
 
33
33
  +(void)Initialize{
34
34
  NSLog(@"RN-NotifyVisitors : INITIALIZE !!");
35
- NSLog(@"RN-NotifyVisitors PLUGIN VERSION : 4.1.3 !!");
35
+ NSLog(@"RN-NotifyVisitors PLUGIN VERSION : 4.1.5 !!");
36
36
  NSString *nvMode = nil;
37
37
  #if DEBUG
38
38
  nvMode = @"debug";
@@ -7,9 +7,9 @@
7
7
  objects = {
8
8
 
9
9
  /* Begin PBXBuildFile section */
10
+ 07ECBD852912280E005C644E /* libnotifyvisitors_6_3_2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 07ECBD842912280E005C644E /* libnotifyvisitors_6_3_2.a */; };
10
11
  138AE09F22A7ACA600F403E1 /* RNNVExtensionService.m in Sources */ = {isa = PBXBuildFile; fileRef = 138AE09E22A7ACA600F403E1 /* RNNVExtensionService.m */; };
11
12
  13B25F2D22BA35B000C4D0B7 /* RCTNVEventEmitter.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B25F2C22BA35B000C4D0B7 /* RCTNVEventEmitter.m */; };
12
- 25D52BBA27E20C6C00890D62 /* libnotifyvisitors_6_3_1.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 25D52BB827E20C6C00890D62 /* libnotifyvisitors_6_3_1.a */; };
13
13
  B3E7B58A1CC2AC0600A0062D /* RNNotifyvisitors.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNNotifyvisitors.m */; };
14
14
  DC31F4E523BC9CC900AAB2DB /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DC31F4E423BC9CC900AAB2DB /* SystemConfiguration.framework */; };
15
15
  /* End PBXBuildFile section */
@@ -27,6 +27,9 @@
27
27
  /* End PBXCopyFilesBuildPhase section */
28
28
 
29
29
  /* Begin PBXFileReference section */
30
+ 07ECBD842912280E005C644E /* libnotifyvisitors_6_3_2.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libnotifyvisitors_6_3_2.a; sourceTree = "<group>"; };
31
+ 07ECBD8629122823005C644E /* notifyvisitors.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = notifyvisitors.h; sourceTree = "<group>"; };
32
+ 07ECBD8729122857005C644E /* nvResourceValues.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = nvResourceValues.plist; sourceTree = "<group>"; };
30
33
  134814201AA4EA6300B7C361 /* libRNNotifyvisitors.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNNotifyvisitors.a; sourceTree = BUILT_PRODUCTS_DIR; };
31
34
  138AE09D22A7ACA600F403E1 /* RNNVExtensionService.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNNVExtensionService.h; sourceTree = "<group>"; };
32
35
  138AE09E22A7ACA600F403E1 /* RNNVExtensionService.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNNVExtensionService.m; sourceTree = "<group>"; };
@@ -42,9 +45,6 @@
42
45
  25A29B7326829CBC00098B92 /* play.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = play.png; sourceTree = "<group>"; };
43
46
  25A29B7426829CBD00098B92 /* nv_NotificationCenterBg@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "nv_NotificationCenterBg@3x.png"; sourceTree = "<group>"; };
44
47
  25A29B7526829CBD00098B92 /* slider_bar.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = slider_bar.png; sourceTree = "<group>"; };
45
- 25D52BB827E20C6C00890D62 /* libnotifyvisitors_6_3_1.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libnotifyvisitors_6_3_1.a; sourceTree = "<group>"; };
46
- 25D52BB927E20C6C00890D62 /* notifyvisitors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = notifyvisitors.h; sourceTree = "<group>"; };
47
- 25D52BBB27E20C8C00890D62 /* nvResourceValues.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = nvResourceValues.plist; sourceTree = "<group>"; };
48
48
  B3E7B5881CC2AC0600A0062D /* RNNotifyvisitors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNNotifyvisitors.h; sourceTree = "<group>"; };
49
49
  B3E7B5891CC2AC0600A0062D /* RNNotifyvisitors.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNNotifyvisitors.m; sourceTree = "<group>"; };
50
50
  DC31F4E423BC9CC900AAB2DB /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/SystemConfiguration.framework; sourceTree = DEVELOPER_DIR; };
@@ -55,8 +55,8 @@
55
55
  isa = PBXFrameworksBuildPhase;
56
56
  buildActionMask = 2147483647;
57
57
  files = (
58
- 25D52BBA27E20C6C00890D62 /* libnotifyvisitors_6_3_1.a in Frameworks */,
59
58
  DC31F4E523BC9CC900AAB2DB /* SystemConfiguration.framework in Frameworks */,
59
+ 07ECBD852912280E005C644E /* libnotifyvisitors_6_3_2.a in Frameworks */,
60
60
  );
61
61
  runOnlyForDeploymentPostprocessing = 0;
62
62
  };
@@ -74,7 +74,7 @@
74
74
  253C98EC26411B0A00F2E8C9 /* Assets */ = {
75
75
  isa = PBXGroup;
76
76
  children = (
77
- 25D52BBB27E20C8C00890D62 /* nvResourceValues.plist */,
77
+ 07ECBD8729122857005C644E /* nvResourceValues.plist */,
78
78
  25A29B6F26829CBC00098B92 /* empty.png */,
79
79
  25A29B6B26829CBB00098B92 /* nv_deleteIcon.png */,
80
80
  25A29B6D26829CBB00098B92 /* nv_deleteIcon@2x.png */,
@@ -92,8 +92,8 @@
92
92
  58B511D21A9E6C8500147676 = {
93
93
  isa = PBXGroup;
94
94
  children = (
95
- 25D52BB827E20C6C00890D62 /* libnotifyvisitors_6_3_1.a */,
96
- 25D52BB927E20C6C00890D62 /* notifyvisitors.h */,
95
+ 07ECBD8629122823005C644E /* notifyvisitors.h */,
96
+ 07ECBD842912280E005C644E /* libnotifyvisitors_6_3_2.a */,
97
97
  253C98EC26411B0A00F2E8C9 /* Assets */,
98
98
  DC4962D123BE131B005E63F5 /* RNNotifyvisitors */,
99
99
  134814211AA4EA7D00B7C361 /* Products */,
@@ -307,6 +307,7 @@
307
307
  "$(inherited)",
308
308
  "$(PROJECT_DIR)/**",
309
309
  "$(PROJECT_DIR)",
310
+ "$(PROJECT_DIR)/Assets",
310
311
  );
311
312
  OTHER_LDFLAGS = "-ObjC";
312
313
  PRODUCT_NAME = RNNotifyvisitors;
@@ -333,6 +334,7 @@
333
334
  "$(inherited)",
334
335
  "$(PROJECT_DIR)/**",
335
336
  "$(PROJECT_DIR)",
337
+ "$(PROJECT_DIR)/Assets",
336
338
  );
337
339
  OTHER_LDFLAGS = "-ObjC";
338
340
  PRODUCT_NAME = RNNotifyvisitors;
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>SchemeUserState</key>
6
+ <dict>
7
+ <key>RNNotifyvisitors.xcscheme_^#shared#^_</key>
8
+ <dict>
9
+ <key>orderHint</key>
10
+ <integer>0</integer>
11
+ </dict>
12
+ </dict>
13
+ </dict>
14
+ </plist>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-notifyvisitors",
3
- "version": "4.1.3",
3
+ "version": "4.1.5",
4
4
  "description": "React Native Notifyvisitors SDK for push notifications and surveys",
5
5
  "main": "index",
6
6
  "scripts": {
@@ -23,5 +23,5 @@ Pod::Spec.new do |s|
23
23
  # pod 'React', :path => '../node_modules/react-native/'
24
24
 
25
25
  # The Native Notifyvisitors-iOS-SDK from cocoapods.
26
- s.dependency 'notifyvisitors', '6.3.1'
26
+ s.dependency 'notifyvisitors', '6.3.2'
27
27
  end