react-native-radar 4.31.0-beta.2 → 4.31.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/android/src/newarch/java/com/radar/RadarModule.kt +2 -2
- package/android/src/oldarch/java/com/radar/RadarModule.java +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/ios/RNRadar.mm +2 -2
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/Radar.h +17 -1
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarInitializeOptions.h +6 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarSDK-Swift.h +4 -11
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Info.plist +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios.abi.json +809 -375
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +19 -22
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios.swiftinterface +19 -22
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/RadarSDK +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/Radar.h +17 -1
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarInitializeOptions.h +6 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSDK-Swift.h +8 -22
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Info.plist +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +809 -375
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +19 -22
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +19 -22
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +809 -375
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +19 -22
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +19 -22
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/RadarSDK +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/_CodeSignature/CodeResources +27 -27
- package/ios/RadarSDKMotion.xcframework/Info.plist +5 -5
- package/ios/RadarSDKMotion.xcframework/ios-arm64/RadarSDKMotion.framework/Info.plist +0 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64/RadarSDKMotion.framework/RadarSDKMotion +0 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/Info.plist +0 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/RadarSDKMotion +0 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/_CodeSignature/CodeResources +1 -1
- package/package.json +1 -1
- package/src/version.ts +1 -1
|
@@ -143,7 +143,7 @@ class RadarModule(reactContext: ReactApplicationContext) :
|
|
|
143
143
|
override fun initialize(publishableKey: String, fraud: Boolean, options: ReadableMap?): Unit {
|
|
144
144
|
val editor = reactApplicationContext.getSharedPreferences("RadarSDK", Context.MODE_PRIVATE).edit()
|
|
145
145
|
editor.putString("x_platform_sdk_type", "ReactNative")
|
|
146
|
-
editor.putString("x_platform_sdk_version", "4.31.0
|
|
146
|
+
editor.putString("x_platform_sdk_version", "4.31.0")
|
|
147
147
|
editor.apply()
|
|
148
148
|
|
|
149
149
|
Radar.initialize(reactApplicationContext, publishableKey, radarReceiver, Radar.RadarLocationServicesProvider.GOOGLE, fraud, null, radarInAppMessageReceiver, currentActivity)
|
|
@@ -155,7 +155,7 @@ class RadarModule(reactContext: ReactApplicationContext) :
|
|
|
155
155
|
override fun initializeWithAuthToken(authToken: String, fraud: Boolean, options: ReadableMap?): Unit {
|
|
156
156
|
val editor = reactApplicationContext.getSharedPreferences("RadarSDK", Context.MODE_PRIVATE).edit()
|
|
157
157
|
editor.putString("x_platform_sdk_type", "ReactNative")
|
|
158
|
-
editor.putString("x_platform_sdk_version", "4.31.0
|
|
158
|
+
editor.putString("x_platform_sdk_version", "4.31.0")
|
|
159
159
|
editor.apply()
|
|
160
160
|
|
|
161
161
|
val initOptions = io.radar.sdk.RadarInitializeOptions.builder()
|
|
@@ -102,7 +102,7 @@ public class RadarModule extends ReactContextBaseJavaModule implements Permissio
|
|
|
102
102
|
this.fraud = fraud;
|
|
103
103
|
SharedPreferences.Editor editor = getReactApplicationContext().getSharedPreferences("RadarSDK", Context.MODE_PRIVATE).edit();
|
|
104
104
|
editor.putString("x_platform_sdk_type", "ReactNative");
|
|
105
|
-
editor.putString("x_platform_sdk_version", "4.31.0
|
|
105
|
+
editor.putString("x_platform_sdk_version", "4.31.0");
|
|
106
106
|
editor.apply();
|
|
107
107
|
Radar.initialize(getReactApplicationContext(), publishableKey, receiver, Radar.RadarLocationServicesProvider.GOOGLE, fraud, null, inAppMessageReceiver, getCurrentActivity());
|
|
108
108
|
if (fraud) {
|
|
@@ -115,7 +115,7 @@ public class RadarModule extends ReactContextBaseJavaModule implements Permissio
|
|
|
115
115
|
this.fraud = fraud;
|
|
116
116
|
SharedPreferences.Editor editor = getReactApplicationContext().getSharedPreferences("RadarSDK", Context.MODE_PRIVATE).edit();
|
|
117
117
|
editor.putString("x_platform_sdk_type", "ReactNative");
|
|
118
|
-
editor.putString("x_platform_sdk_version", "4.31.0
|
|
118
|
+
editor.putString("x_platform_sdk_version", "4.31.0");
|
|
119
119
|
editor.apply();
|
|
120
120
|
|
|
121
121
|
io.radar.sdk.RadarInitializeOptions.Builder builder = io.radar.sdk.RadarInitializeOptions.builder()
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "4.31.0
|
|
1
|
+
export declare const VERSION = "4.31.0";
|
package/dist/version.js
CHANGED
|
@@ -3,4 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
4
|
// This file contains the version of the react-native-radar package
|
|
5
5
|
// It should be updated to match the version in package.json
|
|
6
|
-
exports.VERSION = '4.31.0
|
|
6
|
+
exports.VERSION = '4.31.0';
|
package/ios/RNRadar.mm
CHANGED
|
@@ -217,7 +217,7 @@ RCT_EXPORT_MODULE()
|
|
|
217
217
|
RCT_EXPORT_METHOD(initialize:(NSString *)publishableKey fraud:(BOOL)fraud options:(NSDictionary *)options) {
|
|
218
218
|
_publishableKey = publishableKey;
|
|
219
219
|
[[NSUserDefaults standardUserDefaults] setObject:@"ReactNative" forKey:@"radar-xPlatformSDKType"];
|
|
220
|
-
[[NSUserDefaults standardUserDefaults] setObject:@"4.31.0
|
|
220
|
+
[[NSUserDefaults standardUserDefaults] setObject:@"4.31.0" forKey:@"radar-xPlatformSDKVersion"];
|
|
221
221
|
|
|
222
222
|
RadarInitializeOptions *radarOptions = [[RadarInitializeOptions alloc] init];
|
|
223
223
|
if (options != nil) {
|
|
@@ -240,7 +240,7 @@ RCT_EXPORT_METHOD(initialize:(NSString *)publishableKey fraud:(BOOL)fraud option
|
|
|
240
240
|
RCT_EXPORT_METHOD(initializeWithAuthToken:(NSString *)authToken fraud:(BOOL)fraud options:(NSDictionary *)options) {
|
|
241
241
|
_publishableKey = nil;
|
|
242
242
|
[[NSUserDefaults standardUserDefaults] setObject:@"ReactNative" forKey:@"radar-xPlatformSDKType"];
|
|
243
|
-
[[NSUserDefaults standardUserDefaults] setObject:@"4.31.0
|
|
243
|
+
[[NSUserDefaults standardUserDefaults] setObject:@"4.31.0" forKey:@"radar-xPlatformSDKVersion"];
|
|
244
244
|
RadarInitializeOptions *radarOptions = [[RadarInitializeOptions alloc] init];
|
|
245
245
|
if (options != nil) {
|
|
246
246
|
id silentPushValue = options[@"silentPush"];
|
|
@@ -52,7 +52,7 @@ typedef NS_ENUM(NSInteger, RadarStatus) {
|
|
|
52
52
|
RadarStatusErrorLocation,
|
|
53
53
|
/// Beacon ranging error or timeout (5 seconds)
|
|
54
54
|
RadarStatusErrorBluetooth,
|
|
55
|
-
/// Network error or timeout (10 seconds)
|
|
55
|
+
/// Network error or timeout (default 10 seconds; override with `RadarInitializeOptions.networkTimeoutInterval`)
|
|
56
56
|
RadarStatusErrorNetwork,
|
|
57
57
|
/// Bad request (missing or invalid params)
|
|
58
58
|
RadarStatusErrorBadRequest,
|
|
@@ -625,6 +625,22 @@ typedef void (^_Nonnull RadarIndoorsScanCompletionHandler)(NSString *_Nullable r
|
|
|
625
625
|
*/
|
|
626
626
|
+ (BOOL)isTrackingVerified;
|
|
627
627
|
|
|
628
|
+
/**
|
|
629
|
+
Returns the current screen sharing state.
|
|
630
|
+
|
|
631
|
+
@return A boolean indicating the current screen sharing state.
|
|
632
|
+
|
|
633
|
+
@see https://radar.com/documentation/sdk/fraud
|
|
634
|
+
*/
|
|
635
|
+
+ (BOOL)isSharing;
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
Clears the last screen sharing state.
|
|
639
|
+
|
|
640
|
+
@see https://radar.com/documentation/sdk/fraud
|
|
641
|
+
*/
|
|
642
|
+
+ (void)clearSharing;
|
|
643
|
+
|
|
628
644
|
/**
|
|
629
645
|
Returns the user's last verified location token if still valid, or requests a fresh token if not.
|
|
630
646
|
|
package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarInitializeOptions.h
CHANGED
|
@@ -14,6 +14,12 @@
|
|
|
14
14
|
@property (assign, nonatomic) BOOL autoLogNotificationConversions;
|
|
15
15
|
@property (assign, nonatomic) BOOL autoHandleNotificationDeepLinks;
|
|
16
16
|
@property (assign, nonatomic) BOOL silentPush;
|
|
17
|
+
@property (assign, nonatomic) BOOL trackVerifiedAutoFailover;
|
|
18
|
+
|
|
19
|
+
/// Request and resource timeout in seconds for standard API calls. Default 10 seconds.
|
|
20
|
+
/// Invalid values (non-finite or ≤ 0) fall back to the default; values are
|
|
21
|
+
/// clamped to the range 1…300.
|
|
22
|
+
@property (assign, nonatomic) NSTimeInterval networkTimeoutInterval;
|
|
17
23
|
|
|
18
24
|
- (NSDictionary *_Nonnull)dictionaryValue;
|
|
19
25
|
- (instancetype _Nonnull)initWithDict:(NSDictionary *_Nullable)dict;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#if 0
|
|
2
2
|
#elif defined(__arm64__) && __arm64__
|
|
3
|
-
// Generated by Apple Swift version 6.3.
|
|
3
|
+
// Generated by Apple Swift version 6.3.2 (swiftlang-6.3.2.1.108 clang-2100.1.1.101)
|
|
4
4
|
#ifndef RADARSDK_SWIFT_H
|
|
5
5
|
#define RADARSDK_SWIFT_H
|
|
6
6
|
#pragma clang diagnostic push
|
|
@@ -377,9 +377,9 @@ extern "C" {
|
|
|
377
377
|
@class UIImage;
|
|
378
378
|
@class RadarInAppMessage;
|
|
379
379
|
@class UIViewController;
|
|
380
|
-
SWIFT_CLASS_NAMED("RadarInAppMessageDelegate")
|
|
380
|
+
SWIFT_CLASS_NAMED("RadarInAppMessageDelegate")
|
|
381
381
|
@interface RadarInAppMessageDelegate_Swift : NSObject <RadarInAppMessageProtocol>
|
|
382
|
-
+ (void)loadImage:(NSString * _Nonnull)url completionHandler:(void (^ _Nonnull)(UIImage * _Nullable))completionHandler
|
|
382
|
+
+ (void)loadImage:(NSString * _Nonnull)url completionHandler:(void (^ _Nonnull)(UIImage * _Nullable))completionHandler;
|
|
383
383
|
/// Returns the view controller for the message to show, can be overwritten to display a custom view
|
|
384
384
|
- (void)createInAppMessageView:(RadarInAppMessage * _Nonnull)message onDismiss:(void (^ _Nonnull)(void))onDismiss onInAppMessageClicked:(void (^ _Nonnull)(void))onInAppMessageClicked completionHandler:(void (^ _Nonnull)(UIViewController * _Nonnull))completionHandler;
|
|
385
385
|
- (void)onInAppMessageButtonClicked:(RadarInAppMessage * _Nonnull)message;
|
|
@@ -388,7 +388,7 @@ SWIFT_CLASS_NAMED("RadarInAppMessageDelegate") SWIFT_AVAILABILITY(ios,introduced
|
|
|
388
388
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
389
389
|
@end
|
|
390
390
|
|
|
391
|
-
SWIFT_CLASS("_TtC8RadarSDK24RadarInAppMessageManager")
|
|
391
|
+
SWIFT_CLASS("_TtC8RadarSDK24RadarInAppMessageManager")
|
|
392
392
|
@interface RadarInAppMessageManager : NSObject
|
|
393
393
|
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) RadarInAppMessageManager * _Nonnull shared;)
|
|
394
394
|
+ (RadarInAppMessageManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -409,13 +409,6 @@ SWIFT_CLASS_NAMED("RadarInAppMessage_Swift")
|
|
|
409
409
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
410
410
|
@end
|
|
411
411
|
|
|
412
|
-
@protocol RadarDelegate;
|
|
413
|
-
SWIFT_CLASS_NAMED("RadarLogger")
|
|
414
|
-
@interface RadarLogger_Swift : NSObject
|
|
415
|
-
+ (void)setDelegate:(id <RadarDelegate> _Nonnull)delegate;
|
|
416
|
-
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
417
|
-
@end
|
|
418
|
-
|
|
419
412
|
@class CLLocation;
|
|
420
413
|
@class RadarTrackingOptions;
|
|
421
414
|
@class RadarUser;
|
|
Binary file
|