react-native-insider 5.5.2 → 5.5.3

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/RNInsider.podspec CHANGED
@@ -14,7 +14,7 @@ Pod::Spec.new do |s|
14
14
  s.requires_arc = true
15
15
  s.static_framework = true
16
16
  s.dependency 'React'
17
- s.dependency 'InsiderMobile', '12.8.3'
17
+ s.dependency 'InsiderMobile', '12.8.6'
18
18
  s.dependency 'InsiderGeofence', '1.0.3'
19
19
  s.dependency 'InsiderHybrid', '1.4.0'
20
20
  end
@@ -35,9 +35,11 @@ repositories {
35
35
 
36
36
  dependencies {
37
37
  implementation "com.facebook.react:react-native:${getVersionFromPartner('reactNativeVersion', '+')}"
38
- implementation ('com.useinsider:insider:13.8.0')
38
+ implementation ('com.useinsider:insider:13.8.5')
39
39
  implementation ('com.useinsider:insiderhybrid:1.1.5')
40
40
 
41
+ implementation "androidx.security:security-crypto:1.0.0"
42
+
41
43
  implementation 'androidx.legacy:legacy-support-v4:1.0.0'
42
44
  implementation 'com.google.android.gms:play-services-location:20.0.0'
43
45
  implementation 'com.google.android.gms:play-services-ads:21.0.0'
@@ -1,5 +1,6 @@
1
-
2
1
  <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- package="com.useinsider.react">
2
+ xmlns:tools="http://schemas.android.com/tools"
3
+ package="com.useinsider.react">
4
+ <uses-sdk tools:overrideLibrary="androidx.security"/>
4
5
  </manifest>
5
6
 
package/index.js CHANGED
@@ -17,6 +17,7 @@ const TEMP_STORE_PURCHASE = 'TEMP_STORE_PURCHASE';
17
17
  const TEMP_STORE_ADDED_TO_CART = 'TEMP_STORE_ADDED_TO_CART';
18
18
  const TEMP_STORE_CUSTOM_ACTION = 'TEMP_STORE_CUSTOM_ACTION';
19
19
  const FOREGROUND_PUSH = 'FOREGROUND_PUSH';
20
+ const INAPP_SEEN = 'INAPP_SEEN';
20
21
 
21
22
  function shouldNotProceed() {
22
23
  return Insider == null;
@@ -28,7 +29,7 @@ function generateJSONErrorString(error) {
28
29
 
29
30
  function registerInsiderCallback(insiderCallback) {
30
31
  try {
31
- const callbackActions = [NOTIFICATION_OPEN, INAPP_BUTTON_CLICK, TEMP_STORE_PURCHASE, TEMP_STORE_ADDED_TO_CART, TEMP_STORE_CUSTOM_ACTION];
32
+ const callbackActions = [NOTIFICATION_OPEN, INAPP_BUTTON_CLICK, TEMP_STORE_PURCHASE, TEMP_STORE_ADDED_TO_CART, TEMP_STORE_CUSTOM_ACTION, INAPP_SEEN];
32
33
  callbackActions.forEach((callbackAction, index) => {
33
34
  eventHandler.addListener(callbackAction, notification => {
34
35
  insiderCallback(index, notification);
@@ -568,6 +568,9 @@ RCT_EXPORT_METHOD(setActiveForegroundPushView) {
568
568
  case InsiderCallbackTypeTempStoreCustomAction:
569
569
  [handler sendDataToJS:TEMP_STORE_CUSTOM_ACTION data:evetData];
570
570
  break;
571
+ case InsiderCallbackTypeInAppSeen:
572
+ [handler sendDataToJS:INAPP_SEEN data:evetData];
573
+ break;
571
574
  default:
572
575
  break;
573
576
  }
@@ -20,5 +20,6 @@ extern NSString * const INAPP_BUTTON_CLICK;
20
20
  extern NSString * const TEMP_STORE_PURCHASE;
21
21
  extern NSString * const TEMP_STORE_ADDED_TO_CART;
22
22
  extern NSString * const TEMP_STORE_CUSTOM_ACTION;
23
+ extern NSString * const INAPP_SEEN;
23
24
  -(void)sendDataToJS:(NSString *)eventName data:(NSDictionary *)data;
24
25
  @end
@@ -20,6 +20,7 @@ NSString * const INAPP_BUTTON_CLICK = @"INAPP_BUTTON_CLICK";
20
20
  NSString * const TEMP_STORE_PURCHASE = @"TEMP_STORE_PURCHASE";
21
21
  NSString * const TEMP_STORE_ADDED_TO_CART = @"TEMP_STORE_ADDED_TO_CART";
22
22
  NSString * const TEMP_STORE_CUSTOM_ACTION = @"TEMP_STORE_CUSTOM_ACTION";
23
+ NSString * const INAPP_SEEN = @"INAPP_SEEN";
23
24
 
24
25
  static RNNotificationHandler *notificationHandler;
25
26
 
@@ -38,7 +39,7 @@ static RNNotificationHandler *notificationHandler;
38
39
  RCT_EXPORT_MODULE();
39
40
 
40
41
  -(NSArray<NSString *> *)supportedEvents{
41
- return @[NOTIFICATION_OPEN, INAPP_BUTTON_CLICK, TEMP_STORE_PURCHASE, TEMP_STORE_ADDED_TO_CART, TEMP_STORE_CUSTOM_ACTION];
42
+ return @[NOTIFICATION_OPEN, INAPP_BUTTON_CLICK, TEMP_STORE_PURCHASE, TEMP_STORE_ADDED_TO_CART, TEMP_STORE_CUSTOM_ACTION, INAPP_SEEN];
42
43
  }
43
44
 
44
45
  -(void)sendDataToJS:(NSString *)eventName data:(NSDictionary *)data {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-insider",
3
- "version": "5.5.2",
3
+ "version": "5.5.3",
4
4
  "description": "React Native Insider SDK",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -3,6 +3,7 @@ const InsiderCallbackType = {
3
3
  INAPP_BUTTON_CLICK: 1,
4
4
  TEMP_STORE_PURCHASE: 2,
5
5
  TEMP_STORE_ADDED_TO_CART: 3,
6
- TEMP_STORE_CUSTOM_ACTION: 4
6
+ TEMP_STORE_CUSTOM_ACTION: 4,
7
+ INAPP_SEEN: 5
7
8
  };
8
9
  export default InsiderCallbackType;