react-native-notifyvisitors 4.1.7 → 4.1.9

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.
File without changes
@@ -1,2 +1,2 @@
1
- #Wed Mar 16 17:12:28 IST 2022
2
- gradle.version=7.1.1
1
+ #Fri Feb 03 08:44:17 IST 2023
2
+ gradle.version=7.4.2
@@ -1,7 +1,7 @@
1
- arguments=
1
+ arguments=--init-script /var/folders/cy/xfq_6ynj6zj_vq8g1crzv9p80000gn/T/d146c9752a26f79b52047fb6dc6ed385d064e120494f96f08ca63a317c41f94c.gradle --init-script /var/folders/cy/xfq_6ynj6zj_vq8g1crzv9p80000gn/T/52cde0cfcf3e28b8b7510e992210d9614505e0911af0c190bd590d7158574963.gradle
2
2
  auto.sync=false
3
3
  build.scans.enabled=false
4
- connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(7.1.1))
4
+ connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(7.4.2))
5
5
  connection.project.dir=
6
6
  eclipse.preferences.version=1
7
7
  gradle.user.home=
@@ -18,7 +18,7 @@ android {
18
18
  dependencies {
19
19
  implementation fileTree(dir: 'libs', include: ['*.jar'])
20
20
  implementation 'com.facebook.react:react-native:+'
21
- implementation 'com.notifyvisitors.notifyvisitors:notifyvisitors:5.3.6'
21
+ implementation 'com.notifyvisitors.notifyvisitors:notifyvisitors:5.3.7'
22
22
 
23
23
  implementation platform('com.google.firebase:firebase-bom:30.3.1')
24
24
  implementation ('com.google.firebase:firebase-messaging')
@@ -4,43 +4,31 @@ import android.app.Activity;
4
4
  import android.app.Application;
5
5
  import android.content.Context;
6
6
  import android.content.Intent;
7
- import android.graphics.Color;
8
- import android.net.Uri;
9
- import android.os.Bundle;
10
7
  import android.util.Log;
11
-
12
- import com.facebook.react.bridge.ActivityEventListener;
13
8
  import com.facebook.react.bridge.Callback;
14
9
  import com.facebook.react.bridge.ReactApplicationContext;
15
- import com.facebook.react.bridge.ReactContextBaseJavaModule;
16
10
  import com.facebook.react.bridge.ReactMethod;
17
11
  import com.facebook.react.bridge.ReadableArray;
18
12
  import com.facebook.react.bridge.ReadableMap;
19
- import com.facebook.react.modules.core.DeviceEventManagerModule;
20
13
  import com.notifyvisitors.notifyvisitors.NotifyVisitorsApi;
21
14
  import com.notifyvisitors.notifyvisitors.NotifyVisitorsApplication;
22
15
  import com.notifyvisitors.notifyvisitors.center.NVCenterStyleConfig;
23
- import com.notifyvisitors.notifyvisitors.interfaces.NotificationCountInterface;
24
- import com.notifyvisitors.notifyvisitors.interfaces.NotificationListDetailsCallback;
25
- import com.notifyvisitors.notifyvisitors.interfaces.OnCenterCountListener;
26
16
  import com.notifyvisitors.notifyvisitors.interfaces.OnEventTrackListener;
27
- import com.notifyvisitors.notifyvisitors.interfaces.OnNotifyBotClickListener;
28
- import com.notifyvisitors.notifyvisitors.interfaces.OnReviewCompleteListener;
29
- import com.notifyvisitors.notifyvisitors.push.NVNotificationChannels;
30
-
31
- import org.json.JSONArray;
32
- import org.json.JSONObject;
33
-
34
17
  import java.util.HashMap;
35
18
  import java.util.HashSet;
36
19
  import java.util.Set;
20
+ import org.json.JSONArray;
21
+ import org.json.JSONObject;
22
+
23
+
24
+
37
25
 
38
26
 
39
27
  public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implements ActivityEventListener {
40
28
 
41
29
  private final ReactApplicationContext reactContext;
42
30
  private static final String TAG = "RN-NotifyVisitors";
43
- private static final String PLUGIN_VERSION = "4.1.7";
31
+ private static final String PLUGIN_VERSION = "4.1.9";
44
32
 
45
33
  private String PUSH_BANNER_CLICK_EVENT = "nv_push_banner_click";
46
34
  private String CHAT_BOT_BUTTON_CLICK = "nv_chat_bot_button_click";
@@ -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.7 !!");
35
+ NSLog(@"RN-NotifyVisitors PLUGIN VERSION : 4.1.9 !!");
36
36
  NSString *nvMode = nil;
37
37
  #if DEBUG
38
38
  nvMode = @"debug";
@@ -7,7 +7,7 @@
7
7
  objects = {
8
8
 
9
9
  /* Begin PBXBuildFile section */
10
- 07B74A212912A29A00CF69CD /* libnotifyvisitors_6_3_2_1.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 07B74A202912A29A00CF69CD /* libnotifyvisitors_6_3_2_1.a */; };
10
+ 07E2AAEB298D4CCD007D93F8 /* libnotifyvisitors_6_4_0.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 07E2AAE9298D4CCD007D93F8 /* libnotifyvisitors_6_4_0.a */; };
11
11
  138AE09F22A7ACA600F403E1 /* RNNVExtensionService.m in Sources */ = {isa = PBXBuildFile; fileRef = 138AE09E22A7ACA600F403E1 /* RNNVExtensionService.m */; };
12
12
  13B25F2D22BA35B000C4D0B7 /* RCTNVEventEmitter.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B25F2C22BA35B000C4D0B7 /* RCTNVEventEmitter.m */; };
13
13
  B3E7B58A1CC2AC0600A0062D /* RNNotifyvisitors.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNNotifyvisitors.m */; };
@@ -27,9 +27,9 @@
27
27
  /* End PBXCopyFilesBuildPhase section */
28
28
 
29
29
  /* Begin PBXFileReference section */
30
- 07B74A202912A29A00CF69CD /* libnotifyvisitors_6_3_2_1.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libnotifyvisitors_6_3_2_1.a; sourceTree = "<group>"; };
31
- 07B74A222912A2A200CF69CD /* notifyvisitors.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = notifyvisitors.h; sourceTree = "<group>"; };
32
- 07B74A232912A2B400CF69CD /* nvResourceValues.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = nvResourceValues.plist; sourceTree = "<group>"; };
30
+ 07E2AAE9298D4CCD007D93F8 /* libnotifyvisitors_6_4_0.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libnotifyvisitors_6_4_0.a; sourceTree = "<group>"; };
31
+ 07E2AAEA298D4CCD007D93F8 /* notifyvisitors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = notifyvisitors.h; sourceTree = "<group>"; };
32
+ 07E2AAEC298D4CE9007D93F8 /* nvResourceValues.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = nvResourceValues.plist; sourceTree = "<group>"; };
33
33
  134814201AA4EA6300B7C361 /* libRNNotifyvisitors.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNNotifyvisitors.a; sourceTree = BUILT_PRODUCTS_DIR; };
34
34
  138AE09D22A7ACA600F403E1 /* RNNVExtensionService.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNNVExtensionService.h; sourceTree = "<group>"; };
35
35
  138AE09E22A7ACA600F403E1 /* RNNVExtensionService.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNNVExtensionService.m; sourceTree = "<group>"; };
@@ -55,8 +55,8 @@
55
55
  isa = PBXFrameworksBuildPhase;
56
56
  buildActionMask = 2147483647;
57
57
  files = (
58
+ 07E2AAEB298D4CCD007D93F8 /* libnotifyvisitors_6_4_0.a in Frameworks */,
58
59
  DC31F4E523BC9CC900AAB2DB /* SystemConfiguration.framework in Frameworks */,
59
- 07B74A212912A29A00CF69CD /* libnotifyvisitors_6_3_2_1.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
- 07B74A232912A2B400CF69CD /* nvResourceValues.plist */,
77
+ 07E2AAEC298D4CE9007D93F8 /* 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
- 07B74A222912A2A200CF69CD /* notifyvisitors.h */,
96
- 07B74A202912A29A00CF69CD /* libnotifyvisitors_6_3_2_1.a */,
95
+ 07E2AAEA298D4CCD007D93F8 /* notifyvisitors.h */,
96
+ 07E2AAE9298D4CCD007D93F8 /* libnotifyvisitors_6_4_0.a */,
97
97
  253C98EC26411B0A00F2E8C9 /* Assets */,
98
98
  DC4962D123BE131B005E63F5 /* RNNotifyvisitors */,
99
99
  134814211AA4EA7D00B7C361 /* Products */,
@@ -10,6 +10,12 @@
10
10
  #import <UIKit/UIKit.h>
11
11
  #import <CoreLocation/CoreLocation.h>
12
12
 
13
+ typedef NS_ENUM(NSUInteger, nvPushBadgeCount){
14
+ nvPushBadgeCountIncreaseByOne,
15
+ nvPushBadgeCountDecreaseByOne,
16
+ nvPushBadgeCountClearAll
17
+ };
18
+
13
19
  typedef void(^NotificationListData)(NSMutableArray* _Nullable);
14
20
  typedef void(^nvGetCount)(NSInteger);
15
21
  typedef void(^nvUnreadCenterCount)(NSDictionary* _Nullable);
@@ -134,4 +140,7 @@ typedef void(^nv_UID)(NSString *_Nullable);
134
140
  +(void)getNvUid:(nv_UID _Nullable)nvUID;
135
141
  +(void)requestAppleAppStoreInAppReview;
136
142
 
143
+ +(void)updatePushBadgeNumberWithValue:(nvPushBadgeCount)nvPushBadgeNumber;
144
+
145
+
137
146
  @end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-notifyvisitors",
3
- "version": "4.1.7",
3
+ "version": "4.1.9",
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.3'
26
+ s.dependency 'notifyvisitors', '6.4.0'
27
27
  end