react-native-radar 4.0.0 → 4.2.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/build.gradle +1 -1
- package/android/src/main/java/com/radar/RadarModuleImpl.java +110 -0
- package/android/src/newarch/java/com/radar/RadarModule.kt +45 -2
- package/android/src/oldarch/java/com/radar/RadarModule.java +56 -2
- package/dist/@types/RadarNativeInterface.d.ts +9 -2
- package/dist/@types/types.d.ts +47 -6
- package/dist/NativeRadar.d.ts +8 -1
- package/dist/index.native.js +35 -3
- package/dist/index.web.d.ts +6 -0
- package/dist/index.web.js +17 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/ios/RNRadar.mm +155 -3
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/Radar.h +108 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarBeacon.h +10 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarCoordinate.h +1 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarGeofence.h +10 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarInitializeOptions.h +0 -1
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarSDK-Swift.h +101 -7
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarSDK.h +1 -1
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarSDKFraudProtocol.h +26 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarSdkConfiguration.h +23 -28
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarTrackingOptions.h +20 -1
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarTrip.h +15 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarTripLeg.h +268 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarTripOptions.h +6 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarTripOrder.h +1 -1
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarUser.h +2 -0
- 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 +1702 -209
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +34 -9
- 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 +34 -9
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/module.modulemap +0 -1
- 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 +108 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarBeacon.h +10 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarCoordinate.h +1 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarGeofence.h +10 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarInitializeOptions.h +0 -1
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSDK-Swift.h +204 -16
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSDK.h +1 -1
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSDKFraudProtocol.h +26 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSdkConfiguration.h +23 -28
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarTrackingOptions.h +20 -1
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarTrip.h +15 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarTripLeg.h +268 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarTripOptions.h +6 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarTripOrder.h +1 -1
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarUser.h +2 -0
- 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 +1702 -209
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +34 -9
- 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 +34 -9
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +1702 -209
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +34 -9
- 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 +34 -9
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/module.modulemap +0 -1
- 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 +71 -60
- package/ios/RadarSDKMotion.xcframework/ios-arm64/RadarSDKMotion.framework/Headers/RadarSDKMotion.h +0 -2
- 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/Headers/RadarSDKMotion.h +0 -2
- 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 +3 -3
- package/package.json +2 -2
- package/src/@types/RadarNativeInterface.ts +11 -2
- package/src/@types/maplibre-react-native.d.ts +1 -14
- package/src/@types/types.ts +65 -7
- package/src/NativeRadar.ts +8 -1
- package/src/index.native.ts +42 -3
- package/src/index.web.js +17 -0
- package/src/version.ts +1 -1
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/Radar-Swift.h +0 -7
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/Radar-Swift.h +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#if 0
|
|
2
2
|
#elif defined(__arm64__) && __arm64__
|
|
3
|
-
// Generated by Apple Swift version 6.
|
|
3
|
+
// Generated by Apple Swift version 6.3 (swiftlang-6.3.0.123.5 clang-2100.0.123.102)
|
|
4
4
|
#ifndef RADARSDK_SWIFT_H
|
|
5
5
|
#define RADARSDK_SWIFT_H
|
|
6
6
|
#pragma clang diagnostic push
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
#pragma clang diagnostic ignored "-Wauto-import"
|
|
27
27
|
#if defined(__OBJC__)
|
|
28
28
|
#include <Foundation/Foundation.h>
|
|
29
|
-
#endif
|
|
29
|
+
#endif // defined(__OBJC__)
|
|
30
30
|
#if defined(__cplusplus)
|
|
31
31
|
#include <cstdint>
|
|
32
32
|
#include <cstddef>
|
|
@@ -195,13 +195,32 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
195
195
|
# endif
|
|
196
196
|
#endif
|
|
197
197
|
#if !defined(SWIFT_ENUM)
|
|
198
|
-
#
|
|
199
|
-
#
|
|
200
|
-
#
|
|
201
|
-
#
|
|
198
|
+
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
|
|
199
|
+
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
|
200
|
+
# if __has_feature(generalized_swift_name)
|
|
201
|
+
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
|
202
|
+
# else
|
|
203
|
+
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
|
204
|
+
# endif
|
|
205
|
+
# else
|
|
206
|
+
# define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
|
|
202
207
|
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
|
203
208
|
# endif
|
|
204
209
|
#endif
|
|
210
|
+
#if !defined(SWIFT_ENUM_TAG)
|
|
211
|
+
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
|
|
212
|
+
# define SWIFT_ENUM_TAG enum
|
|
213
|
+
# else
|
|
214
|
+
# define SWIFT_ENUM_TAG
|
|
215
|
+
# endif
|
|
216
|
+
#endif
|
|
217
|
+
#if !defined(SWIFT_ENUM_FWD_DECL)
|
|
218
|
+
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
|
|
219
|
+
# define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
|
|
220
|
+
# else
|
|
221
|
+
# define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
|
|
222
|
+
# endif
|
|
223
|
+
#endif
|
|
205
224
|
#if !defined(SWIFT_UNAVAILABLE)
|
|
206
225
|
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
|
|
207
226
|
#endif
|
|
@@ -211,6 +230,9 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
211
230
|
#if !defined(SWIFT_AVAILABILITY)
|
|
212
231
|
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
|
|
213
232
|
#endif
|
|
233
|
+
#if !defined(SWIFT_AVAILABILITY_DOMAIN)
|
|
234
|
+
# define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
|
|
235
|
+
#endif
|
|
214
236
|
#if !defined(SWIFT_WEAK_IMPORT)
|
|
215
237
|
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
|
|
216
238
|
#endif
|
|
@@ -276,6 +298,49 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
276
298
|
# define SWIFT_IMPORT_STDLIB_SYMBOL
|
|
277
299
|
#endif
|
|
278
300
|
#endif
|
|
301
|
+
#if !__has_feature(nullability)
|
|
302
|
+
# define _Nonnull
|
|
303
|
+
# define _Nullable
|
|
304
|
+
# define _Null_unspecified
|
|
305
|
+
#elif !defined(__OBJC__)
|
|
306
|
+
# pragma clang diagnostic ignored "-Wnullability-extension"
|
|
307
|
+
#endif
|
|
308
|
+
#if !__has_feature(nullability_nullable_result)
|
|
309
|
+
# define _Nullable_result _Nullable
|
|
310
|
+
#endif
|
|
311
|
+
#if __has_feature(objc_modules)
|
|
312
|
+
#if __has_warning("-Watimport-in-framework-header")
|
|
313
|
+
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
314
|
+
#endif
|
|
315
|
+
#endif
|
|
316
|
+
|
|
317
|
+
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
|
318
|
+
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
|
319
|
+
#if __has_warning("-Wpragma-clang-attribute")
|
|
320
|
+
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
|
|
321
|
+
#endif
|
|
322
|
+
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
|
323
|
+
#pragma clang diagnostic ignored "-Wnullability"
|
|
324
|
+
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
325
|
+
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
|
326
|
+
|
|
327
|
+
#if __has_attribute(external_source_symbol)
|
|
328
|
+
# pragma push_macro("any")
|
|
329
|
+
# undef any
|
|
330
|
+
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="RadarSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
|
|
331
|
+
# pragma pop_macro("any")
|
|
332
|
+
#endif
|
|
333
|
+
|
|
334
|
+
#if defined(__cplusplus)
|
|
335
|
+
extern "C" {
|
|
336
|
+
#endif
|
|
337
|
+
|
|
338
|
+
#if defined(__cplusplus)
|
|
339
|
+
} // extern "C"
|
|
340
|
+
#endif
|
|
341
|
+
#if __has_attribute(external_source_symbol)
|
|
342
|
+
# pragma clang attribute pop
|
|
343
|
+
#endif
|
|
279
344
|
#if defined(__OBJC__)
|
|
280
345
|
#if __has_feature(objc_modules)
|
|
281
346
|
#if __has_warning("-Watimport-in-framework-header")
|
|
@@ -283,11 +348,12 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
283
348
|
#endif
|
|
284
349
|
@import Foundation;
|
|
285
350
|
@import ObjectiveC;
|
|
351
|
+
@import _LocationEssentials;
|
|
286
352
|
#endif
|
|
287
353
|
|
|
288
354
|
#import <RadarSDK/RadarSDK.h>
|
|
289
355
|
|
|
290
|
-
#endif
|
|
356
|
+
#endif // defined(__OBJC__)
|
|
291
357
|
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
|
292
358
|
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
|
293
359
|
#if __has_warning("-Wpragma-clang-attribute")
|
|
@@ -350,7 +416,35 @@ SWIFT_CLASS_NAMED("RadarLogger")
|
|
|
350
416
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
351
417
|
@end
|
|
352
418
|
|
|
353
|
-
|
|
419
|
+
@class CLLocation;
|
|
420
|
+
@class RadarTrackingOptions;
|
|
421
|
+
@class RadarUser;
|
|
422
|
+
@class CLCircularRegion;
|
|
423
|
+
@class RadarBeacon;
|
|
424
|
+
SWIFT_CLASS_NAMED("RadarSyncManager")
|
|
425
|
+
@interface RadarSyncManager : NSObject
|
|
426
|
+
+ (void)startWithInterval:(NSTimeInterval)interval;
|
|
427
|
+
+ (void)stop;
|
|
428
|
+
+ (void)fetchSyncRegion;
|
|
429
|
+
+ (BOOL)shouldTrackWithLocation:(CLLocation * _Nonnull)location options:(RadarTrackingOptions * _Nonnull)options SWIFT_WARN_UNUSED_RESULT;
|
|
430
|
+
+ (BOOL)isNearSyncedRegionBoundaryWithLocation:(CLLocation * _Nonnull)location SWIFT_WARN_UNUSED_RESULT;
|
|
431
|
+
+ (BOOL)isOutsideSyncedRegionWithLocation:(CLLocation * _Nonnull)location SWIFT_WARN_UNUSED_RESULT;
|
|
432
|
+
+ (BOOL)isPoint:(CLLocation * _Nonnull)point insideCircleWithCenter:(CLLocationCoordinate2D)center radius:(double)radius SWIFT_WARN_UNUSED_RESULT;
|
|
433
|
+
+ (BOOL)hasSyncedRegion SWIFT_WARN_UNUSED_RESULT;
|
|
434
|
+
+ (BOOL)hasGeofenceStateChangedWithLocation:(CLLocation * _Nonnull)location SWIFT_WARN_UNUSED_RESULT;
|
|
435
|
+
+ (BOOL)hasBeaconStateChangedWithRangedBeaconIds:(NSSet<NSString *> * _Nonnull)rangedBeaconIds SWIFT_WARN_UNUSED_RESULT;
|
|
436
|
+
+ (BOOL)hasPlaceStateChangedWithLocation:(CLLocation * _Nonnull)location SWIFT_WARN_UNUSED_RESULT;
|
|
437
|
+
+ (void)reconcileSyncStateWithUser:(RadarUser * _Nonnull)user;
|
|
438
|
+
+ (void)saveBeaconStateWithBeaconIds:(NSArray<NSString *> * _Nonnull)beaconIds;
|
|
439
|
+
+ (void)rollbackSyncState;
|
|
440
|
+
+ (void)markDwellFired:(NSString * _Nonnull)geofenceId;
|
|
441
|
+
+ (CLCircularRegion * _Nullable)getSyncedRegion SWIFT_WARN_UNUSED_RESULT;
|
|
442
|
+
+ (NSDictionary<NSString *, id> * _Nullable)getSyncedStateJSON SWIFT_WARN_UNUSED_RESULT;
|
|
443
|
+
+ (NSArray<RadarBeacon *> * _Nonnull)getObjCBeaconsFor:(CLLocation * _Nonnull)location SWIFT_WARN_UNUSED_RESULT;
|
|
444
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
445
|
+
@end
|
|
446
|
+
|
|
447
|
+
#endif // defined(__OBJC__)
|
|
354
448
|
#if __has_attribute(external_source_symbol)
|
|
355
449
|
# pragma clang attribute pop
|
|
356
450
|
#endif
|
|
@@ -360,7 +454,7 @@ SWIFT_CLASS_NAMED("RadarLogger")
|
|
|
360
454
|
#endif
|
|
361
455
|
|
|
362
456
|
#elif defined(__x86_64__) && __x86_64__
|
|
363
|
-
// Generated by Apple Swift version 6.
|
|
457
|
+
// Generated by Apple Swift version 6.3 (swiftlang-6.3.0.123.5 clang-2100.0.123.102)
|
|
364
458
|
#ifndef RADARSDK_SWIFT_H
|
|
365
459
|
#define RADARSDK_SWIFT_H
|
|
366
460
|
#pragma clang diagnostic push
|
|
@@ -386,7 +480,7 @@ SWIFT_CLASS_NAMED("RadarLogger")
|
|
|
386
480
|
#pragma clang diagnostic ignored "-Wauto-import"
|
|
387
481
|
#if defined(__OBJC__)
|
|
388
482
|
#include <Foundation/Foundation.h>
|
|
389
|
-
#endif
|
|
483
|
+
#endif // defined(__OBJC__)
|
|
390
484
|
#if defined(__cplusplus)
|
|
391
485
|
#include <cstdint>
|
|
392
486
|
#include <cstddef>
|
|
@@ -555,13 +649,32 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
555
649
|
# endif
|
|
556
650
|
#endif
|
|
557
651
|
#if !defined(SWIFT_ENUM)
|
|
558
|
-
#
|
|
559
|
-
#
|
|
560
|
-
#
|
|
561
|
-
#
|
|
652
|
+
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
|
|
653
|
+
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
|
654
|
+
# if __has_feature(generalized_swift_name)
|
|
655
|
+
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
|
656
|
+
# else
|
|
657
|
+
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
|
658
|
+
# endif
|
|
659
|
+
# else
|
|
660
|
+
# define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
|
|
562
661
|
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
|
563
662
|
# endif
|
|
564
663
|
#endif
|
|
664
|
+
#if !defined(SWIFT_ENUM_TAG)
|
|
665
|
+
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
|
|
666
|
+
# define SWIFT_ENUM_TAG enum
|
|
667
|
+
# else
|
|
668
|
+
# define SWIFT_ENUM_TAG
|
|
669
|
+
# endif
|
|
670
|
+
#endif
|
|
671
|
+
#if !defined(SWIFT_ENUM_FWD_DECL)
|
|
672
|
+
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
|
|
673
|
+
# define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
|
|
674
|
+
# else
|
|
675
|
+
# define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
|
|
676
|
+
# endif
|
|
677
|
+
#endif
|
|
565
678
|
#if !defined(SWIFT_UNAVAILABLE)
|
|
566
679
|
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
|
|
567
680
|
#endif
|
|
@@ -571,6 +684,9 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
571
684
|
#if !defined(SWIFT_AVAILABILITY)
|
|
572
685
|
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
|
|
573
686
|
#endif
|
|
687
|
+
#if !defined(SWIFT_AVAILABILITY_DOMAIN)
|
|
688
|
+
# define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
|
|
689
|
+
#endif
|
|
574
690
|
#if !defined(SWIFT_WEAK_IMPORT)
|
|
575
691
|
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
|
|
576
692
|
#endif
|
|
@@ -636,6 +752,49 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
636
752
|
# define SWIFT_IMPORT_STDLIB_SYMBOL
|
|
637
753
|
#endif
|
|
638
754
|
#endif
|
|
755
|
+
#if !__has_feature(nullability)
|
|
756
|
+
# define _Nonnull
|
|
757
|
+
# define _Nullable
|
|
758
|
+
# define _Null_unspecified
|
|
759
|
+
#elif !defined(__OBJC__)
|
|
760
|
+
# pragma clang diagnostic ignored "-Wnullability-extension"
|
|
761
|
+
#endif
|
|
762
|
+
#if !__has_feature(nullability_nullable_result)
|
|
763
|
+
# define _Nullable_result _Nullable
|
|
764
|
+
#endif
|
|
765
|
+
#if __has_feature(objc_modules)
|
|
766
|
+
#if __has_warning("-Watimport-in-framework-header")
|
|
767
|
+
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
768
|
+
#endif
|
|
769
|
+
#endif
|
|
770
|
+
|
|
771
|
+
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
|
772
|
+
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
|
773
|
+
#if __has_warning("-Wpragma-clang-attribute")
|
|
774
|
+
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
|
|
775
|
+
#endif
|
|
776
|
+
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
|
777
|
+
#pragma clang diagnostic ignored "-Wnullability"
|
|
778
|
+
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
779
|
+
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
|
780
|
+
|
|
781
|
+
#if __has_attribute(external_source_symbol)
|
|
782
|
+
# pragma push_macro("any")
|
|
783
|
+
# undef any
|
|
784
|
+
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="RadarSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
|
|
785
|
+
# pragma pop_macro("any")
|
|
786
|
+
#endif
|
|
787
|
+
|
|
788
|
+
#if defined(__cplusplus)
|
|
789
|
+
extern "C" {
|
|
790
|
+
#endif
|
|
791
|
+
|
|
792
|
+
#if defined(__cplusplus)
|
|
793
|
+
} // extern "C"
|
|
794
|
+
#endif
|
|
795
|
+
#if __has_attribute(external_source_symbol)
|
|
796
|
+
# pragma clang attribute pop
|
|
797
|
+
#endif
|
|
639
798
|
#if defined(__OBJC__)
|
|
640
799
|
#if __has_feature(objc_modules)
|
|
641
800
|
#if __has_warning("-Watimport-in-framework-header")
|
|
@@ -643,11 +802,12 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
643
802
|
#endif
|
|
644
803
|
@import Foundation;
|
|
645
804
|
@import ObjectiveC;
|
|
805
|
+
@import _LocationEssentials;
|
|
646
806
|
#endif
|
|
647
807
|
|
|
648
808
|
#import <RadarSDK/RadarSDK.h>
|
|
649
809
|
|
|
650
|
-
#endif
|
|
810
|
+
#endif // defined(__OBJC__)
|
|
651
811
|
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
|
652
812
|
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
|
653
813
|
#if __has_warning("-Wpragma-clang-attribute")
|
|
@@ -710,7 +870,35 @@ SWIFT_CLASS_NAMED("RadarLogger")
|
|
|
710
870
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
711
871
|
@end
|
|
712
872
|
|
|
713
|
-
|
|
873
|
+
@class CLLocation;
|
|
874
|
+
@class RadarTrackingOptions;
|
|
875
|
+
@class RadarUser;
|
|
876
|
+
@class CLCircularRegion;
|
|
877
|
+
@class RadarBeacon;
|
|
878
|
+
SWIFT_CLASS_NAMED("RadarSyncManager")
|
|
879
|
+
@interface RadarSyncManager : NSObject
|
|
880
|
+
+ (void)startWithInterval:(NSTimeInterval)interval;
|
|
881
|
+
+ (void)stop;
|
|
882
|
+
+ (void)fetchSyncRegion;
|
|
883
|
+
+ (BOOL)shouldTrackWithLocation:(CLLocation * _Nonnull)location options:(RadarTrackingOptions * _Nonnull)options SWIFT_WARN_UNUSED_RESULT;
|
|
884
|
+
+ (BOOL)isNearSyncedRegionBoundaryWithLocation:(CLLocation * _Nonnull)location SWIFT_WARN_UNUSED_RESULT;
|
|
885
|
+
+ (BOOL)isOutsideSyncedRegionWithLocation:(CLLocation * _Nonnull)location SWIFT_WARN_UNUSED_RESULT;
|
|
886
|
+
+ (BOOL)isPoint:(CLLocation * _Nonnull)point insideCircleWithCenter:(CLLocationCoordinate2D)center radius:(double)radius SWIFT_WARN_UNUSED_RESULT;
|
|
887
|
+
+ (BOOL)hasSyncedRegion SWIFT_WARN_UNUSED_RESULT;
|
|
888
|
+
+ (BOOL)hasGeofenceStateChangedWithLocation:(CLLocation * _Nonnull)location SWIFT_WARN_UNUSED_RESULT;
|
|
889
|
+
+ (BOOL)hasBeaconStateChangedWithRangedBeaconIds:(NSSet<NSString *> * _Nonnull)rangedBeaconIds SWIFT_WARN_UNUSED_RESULT;
|
|
890
|
+
+ (BOOL)hasPlaceStateChangedWithLocation:(CLLocation * _Nonnull)location SWIFT_WARN_UNUSED_RESULT;
|
|
891
|
+
+ (void)reconcileSyncStateWithUser:(RadarUser * _Nonnull)user;
|
|
892
|
+
+ (void)saveBeaconStateWithBeaconIds:(NSArray<NSString *> * _Nonnull)beaconIds;
|
|
893
|
+
+ (void)rollbackSyncState;
|
|
894
|
+
+ (void)markDwellFired:(NSString * _Nonnull)geofenceId;
|
|
895
|
+
+ (CLCircularRegion * _Nullable)getSyncedRegion SWIFT_WARN_UNUSED_RESULT;
|
|
896
|
+
+ (NSDictionary<NSString *, id> * _Nullable)getSyncedStateJSON SWIFT_WARN_UNUSED_RESULT;
|
|
897
|
+
+ (NSArray<RadarBeacon *> * _Nonnull)getObjCBeaconsFor:(CLLocation * _Nonnull)location SWIFT_WARN_UNUSED_RESULT;
|
|
898
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
899
|
+
@end
|
|
900
|
+
|
|
901
|
+
#endif // defined(__OBJC__)
|
|
714
902
|
#if __has_attribute(external_source_symbol)
|
|
715
903
|
# pragma clang attribute pop
|
|
716
904
|
#endif
|
package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSDK.h
CHANGED
|
@@ -33,6 +33,7 @@ FOUNDATION_EXPORT const unsigned char RadarSDKVersionString[];
|
|
|
33
33
|
#import "RadarRoutes.h"
|
|
34
34
|
#import "RadarTrackingOptions.h"
|
|
35
35
|
#import "RadarTrip.h"
|
|
36
|
+
#import "RadarTripLeg.h"
|
|
36
37
|
#import "RadarTripOptions.h"
|
|
37
38
|
#import "RadarTripOrder.h"
|
|
38
39
|
#import "RadarUser.h"
|
|
@@ -41,5 +42,4 @@ FOUNDATION_EXPORT const unsigned char RadarSDKVersionString[];
|
|
|
41
42
|
#import "RadarSdkConfiguration.h"
|
|
42
43
|
#import "RadarInAppMessage.h"
|
|
43
44
|
#import "RadarInAppMessageDelegate.h"
|
|
44
|
-
#import "Radar-Swift.h"
|
|
45
45
|
#import "RadarIndoorsProtocol.h"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//
|
|
2
|
+
// RadarSDKFraudProtocol.h
|
|
3
|
+
// RadarSDK
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2025 Radar Labs, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <CoreLocation/CoreLocation.h>
|
|
10
|
+
#import "Radar.h"
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
typedef void (^RadarFraudPayloadCallback)(NSDictionary<NSString *, id> *_Nullable result);
|
|
15
|
+
|
|
16
|
+
@protocol RadarSDKFraudProtocol<NSObject>
|
|
17
|
+
|
|
18
|
+
+ (instancetype)sharedInstance;
|
|
19
|
+
|
|
20
|
+
- (void)initializeWithOptions:(NSDictionary<NSString *, id> *)options;
|
|
21
|
+
|
|
22
|
+
- (void)getFraudPayloadWithOptions:(NSDictionary<NSString *, id> *)options completionHandler:(RadarFraudPayloadCallback)completionHandler;
|
|
23
|
+
|
|
24
|
+
@end
|
|
25
|
+
|
|
26
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -16,38 +16,33 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
16
16
|
@see https://radar.com/documentation/sdk/ios
|
|
17
17
|
*/
|
|
18
18
|
@interface RadarSdkConfiguration : NSObject
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
@property (nonatomic, assign) BOOL useForegroundLocationUpdatedAtMsDiff;
|
|
37
|
-
|
|
38
|
-
@property (nonatomic, assign) BOOL useNotificationDiff;
|
|
39
|
-
|
|
40
|
-
@property (nonatomic, assign) BOOL syncAfterSetUser;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
Initializes a new RadarSdkConfiguration object with given value.
|
|
44
|
-
*/
|
|
19
|
+
- (RadarLogLevel)logLevel;
|
|
20
|
+
- (BOOL)startTrackingOnInitialize;
|
|
21
|
+
- (BOOL)trackOnceOnAppOpen;
|
|
22
|
+
- (BOOL)usePersistence;
|
|
23
|
+
- (BOOL)extendFlushReplays;
|
|
24
|
+
- (BOOL)useLogPersistence;
|
|
25
|
+
- (BOOL)useRadarModifiedBeacon;
|
|
26
|
+
- (BOOL)useOpenedAppConversion;
|
|
27
|
+
- (BOOL)useForegroundLocationUpdatedAtMsDiff;
|
|
28
|
+
- (BOOL)useNotificationDiff;
|
|
29
|
+
- (BOOL)syncAfterSetUser;
|
|
30
|
+
- (BOOL)useNotificationDiffV2;
|
|
31
|
+
- (BOOL)useSyncRegion;
|
|
32
|
+
- (NSInteger)defaultGeofenceDwellThreshold;
|
|
33
|
+
- (BOOL)bufferGeofenceEntries;
|
|
34
|
+
- (BOOL)bufferGeofenceExits;
|
|
35
|
+
- (BOOL)stopDetection;
|
|
45
36
|
- (instancetype)initWithDict:(NSDictionary *_Nullable)dict;
|
|
37
|
+
- (NSDictionary *)dictionaryValue;
|
|
38
|
+
@end
|
|
46
39
|
|
|
47
40
|
/**
|
|
48
|
-
|
|
41
|
+
Represents server-side sdk configuration.
|
|
42
|
+
|
|
43
|
+
@see https://radar.com/documentation/sdk/ios
|
|
49
44
|
*/
|
|
50
|
-
|
|
45
|
+
@interface RadarSdkConfiguration_ObjC : NSObject
|
|
51
46
|
|
|
52
47
|
+ (void)updateSdkConfigurationFromServer;
|
|
53
48
|
|
|
@@ -43,7 +43,19 @@ typedef NS_ENUM(NSInteger, RadarTrackingOptionsSyncLocations) {
|
|
|
43
43
|
/// Syncs only stops and exits to the server
|
|
44
44
|
RadarTrackingOptionsSyncStopsAndExits,
|
|
45
45
|
/// Syncs no location updates to the server
|
|
46
|
-
RadarTrackingOptionsSyncNone
|
|
46
|
+
RadarTrackingOptionsSyncNone,
|
|
47
|
+
/// Syncs only on detected events (geofence, place, beacon changes)
|
|
48
|
+
RadarTrackingOptionsSyncEvents
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
The type of tracking options.
|
|
53
|
+
*/
|
|
54
|
+
typedef NS_ENUM(NSInteger, RadarTrackingOptionsType) {
|
|
55
|
+
RadarTrackingOptionsTypeDefault,
|
|
56
|
+
RadarTrackingOptionsTypeOnTrip,
|
|
57
|
+
RadarTrackingOptionsTypeInGeofence,
|
|
58
|
+
RadarTrackingOptionsTypeIsUser
|
|
47
59
|
};
|
|
48
60
|
|
|
49
61
|
/**
|
|
@@ -169,6 +181,11 @@ typedef NS_ENUM(NSInteger, RadarTrackingOptionsSyncLocations) {
|
|
|
169
181
|
*/
|
|
170
182
|
@property (nonatomic, assign) BOOL usePressure;
|
|
171
183
|
|
|
184
|
+
/**
|
|
185
|
+
The type of tracking options.
|
|
186
|
+
*/
|
|
187
|
+
@property (nonatomic, assign) RadarTrackingOptionsType type;
|
|
188
|
+
|
|
172
189
|
/**
|
|
173
190
|
Updates about every 30 seconds while moving or stopped. Moderate battery usage. Shows the flashing blue status bar during tracking.
|
|
174
191
|
@see https://developer.apple.com/documentation/corelocation/cllocationmanager/2923541-showsbackgroundlocationindicator
|
|
@@ -197,6 +214,8 @@ typedef NS_ENUM(NSInteger, RadarTrackingOptionsSyncLocations) {
|
|
|
197
214
|
+ (NSString *)stringForSyncLocations:(RadarTrackingOptionsSyncLocations)syncLocations;
|
|
198
215
|
+ (RadarTrackingOptionsSyncLocations)syncLocationsForString:(NSString *)str;
|
|
199
216
|
+ (RadarTrackingOptions *_Nullable)trackingOptionsFromDictionary:(NSDictionary *_Nonnull)dictionary;
|
|
217
|
+
+ (NSString *)stringForType:(RadarTrackingOptionsType)type;
|
|
218
|
+
+ (RadarTrackingOptionsType)typeForString:(NSString *)str;
|
|
200
219
|
- (NSDictionary *)dictionaryValue;
|
|
201
220
|
|
|
202
221
|
@end
|
package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarTrip.h
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
#import "RadarCoordinate.h"
|
|
9
9
|
#import "RadarRouteMode.h"
|
|
10
|
+
#import "RadarTripLeg.h"
|
|
10
11
|
#import "RadarTripOrder.h"
|
|
11
12
|
#import <Foundation/Foundation.h>
|
|
12
13
|
|
|
@@ -92,6 +93,20 @@ typedef NS_ENUM(NSInteger, RadarTripStatus) {
|
|
|
92
93
|
*/
|
|
93
94
|
@property (nullable, copy, nonatomic, readonly) NSArray<RadarTripOrder *> *orders;
|
|
94
95
|
|
|
96
|
+
/**
|
|
97
|
+
For multi-destination trips, the array of trip legs.
|
|
98
|
+
Each leg contains destination info, status, and metadata.
|
|
99
|
+
Use leg._id when calling updateTripLeg.
|
|
100
|
+
*/
|
|
101
|
+
@property (nullable, copy, nonatomic, readonly) NSArray<RadarTripLeg *> *legs;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
For multi-destination trips, the ID of the current active leg.
|
|
105
|
+
*/
|
|
106
|
+
@property (nullable, copy, nonatomic, readonly) NSString *currentLegId;
|
|
107
|
+
|
|
95
108
|
- (NSDictionary *_Nonnull)dictionaryValue;
|
|
96
109
|
|
|
110
|
+
- (instancetype _Nullable)initWithObject:(id _Nonnull)object;
|
|
111
|
+
|
|
97
112
|
@end
|