react-native-insider 6.5.2 → 6.6.0
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
|
@@ -9,12 +9,12 @@ Pod::Spec.new do |s|
|
|
|
9
9
|
s.authors = package_json['author']
|
|
10
10
|
s.license = 'MIT'
|
|
11
11
|
s.platform = :ios, '12.0'
|
|
12
|
-
s.source = {:http => 'https://mobilesdk.useinsider.com/iOS/13.
|
|
12
|
+
s.source = {:http => 'https://mobilesdk.useinsider.com/iOS/13.7.1/InsiderMobileIOSFramework.zip'}
|
|
13
13
|
s.source_files = 'ios/RNInsider/*.{h,m}'
|
|
14
14
|
s.requires_arc = true
|
|
15
15
|
s.static_framework = true
|
|
16
16
|
s.dependency 'React'
|
|
17
|
-
s.dependency 'InsiderMobile', '13.
|
|
17
|
+
s.dependency 'InsiderMobile', '13.7.1'
|
|
18
18
|
s.dependency 'InsiderGeofence', '1.2.0'
|
|
19
19
|
s.dependency 'InsiderHybrid', '1.5.0'
|
|
20
20
|
end
|
package/android/build.gradle
CHANGED
|
@@ -35,7 +35,7 @@ repositories {
|
|
|
35
35
|
|
|
36
36
|
dependencies {
|
|
37
37
|
implementation "com.facebook.react:react-native:${getVersionFromPartner('reactNativeVersion', '+')}"
|
|
38
|
-
implementation ('com.useinsider:insider:14.
|
|
38
|
+
implementation ('com.useinsider:insider:14.5.0')
|
|
39
39
|
implementation ('com.useinsider:insiderhybrid:1.1.5')
|
|
40
40
|
|
|
41
41
|
implementation 'androidx.security:security-crypto:1.1.0-alpha06'
|
|
@@ -814,4 +814,22 @@ public class RNInsiderModule extends ReactContextBaseJavaModule {
|
|
|
814
814
|
Insider.Instance.putException(e);
|
|
815
815
|
}
|
|
816
816
|
}
|
|
817
|
+
|
|
818
|
+
@ReactMethod
|
|
819
|
+
public void disableInAppMessages() {
|
|
820
|
+
try {
|
|
821
|
+
Insider.Instance.disableInAppMessages();
|
|
822
|
+
} catch (Exception e) {
|
|
823
|
+
Insider.Instance.putException(e);
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
@ReactMethod
|
|
828
|
+
public void enableInAppMessages() {
|
|
829
|
+
try {
|
|
830
|
+
Insider.Instance.enableInAppMessages();
|
|
831
|
+
} catch (Exception e) {
|
|
832
|
+
Insider.Instance.putException(e);
|
|
833
|
+
}
|
|
834
|
+
}
|
|
817
835
|
}
|
package/index.d.ts
CHANGED
|
@@ -89,6 +89,8 @@ declare module 'react-native-insider' {
|
|
|
89
89
|
static handleUniversalLink(url: string): void;
|
|
90
90
|
static getInsiderID(): Promise<string>;
|
|
91
91
|
static insiderIDListener(callback: (insiderID: string) => void): void;
|
|
92
|
+
static disableInAppMessages(): void;
|
|
93
|
+
static enableInAppMessages(): void;
|
|
92
94
|
}
|
|
93
95
|
|
|
94
96
|
export const NOTIFICATION_OPEN: string;
|
package/index.js
CHANGED
|
@@ -482,4 +482,24 @@ export default class RNInsider {
|
|
|
482
482
|
Insider.putErrorLog(generateJSONErrorString(error));
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
+
|
|
486
|
+
static disableInAppMessages() {
|
|
487
|
+
try {
|
|
488
|
+
if (shouldNotProceed()) return;
|
|
489
|
+
|
|
490
|
+
return Insider.disableInAppMessages();
|
|
491
|
+
} catch (error) {
|
|
492
|
+
Insider.putErrorLog(generateJSONErrorString(error));
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
static enableInAppMessages() {
|
|
497
|
+
try {
|
|
498
|
+
if (shouldNotProceed()) return;
|
|
499
|
+
|
|
500
|
+
return Insider.disableInAppMessages();
|
|
501
|
+
} catch (error) {
|
|
502
|
+
Insider.putErrorLog(generateJSONErrorString(error));
|
|
503
|
+
}
|
|
504
|
+
}
|
|
485
505
|
}
|
|
@@ -592,6 +592,22 @@ RCT_EXPORT_METHOD(registerInsiderIDListener) {
|
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
594
|
|
|
595
|
+
RCT_EXPORT_METHOD(disableInAppMessages) {
|
|
596
|
+
@try {
|
|
597
|
+
[Insider disableInAppMessages];
|
|
598
|
+
} @catch (NSException *e){
|
|
599
|
+
[Insider sendError:e desc:[NSString stringWithFormat:@"%s:%d", __func__, __LINE__]];
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
RCT_EXPORT_METHOD(enableInAppMessages) {
|
|
604
|
+
@try {
|
|
605
|
+
[Insider enableInAppMessages];
|
|
606
|
+
} @catch (NSException *e){
|
|
607
|
+
[Insider sendError:e desc:[NSString stringWithFormat:@"%s:%d", __func__, __LINE__]];
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
|
|
595
611
|
-(void)insiderIDChangeListener:(NSString *) insiderID {
|
|
596
612
|
@try {
|
|
597
613
|
if (insiderID == nil) return;
|