react-native-radar 4.33.0 → 4.35.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.
Files changed (50) hide show
  1. package/android/build.gradle +1 -1
  2. package/android/src/main/java/com/radar/RadarModuleImpl.java +28 -0
  3. package/android/src/newarch/java/com/radar/RadarModule.kt +49 -2
  4. package/android/src/oldarch/java/com/radar/RadarModule.java +30 -2
  5. package/dist/@types/RadarNativeInterface.d.ts +5 -0
  6. package/dist/NativeRadar.d.ts +5 -0
  7. package/dist/helpers.d.ts +1 -0
  8. package/dist/helpers.js +3 -1
  9. package/dist/index.native.js +15 -0
  10. package/dist/ui/map.jsx +32 -4
  11. package/dist/version.d.ts +1 -1
  12. package/dist/version.js +1 -1
  13. package/ios/RNRadar.h +3 -2
  14. package/ios/RNRadar.mm +38 -2
  15. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/Radar.h +3 -4
  16. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarSDK-Swift.h +1 -1
  17. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarSdkConfiguration.h +1 -0
  18. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Info.plist +0 -0
  19. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios.abi.json +1447 -88
  20. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +36 -2
  21. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  22. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios.swiftinterface +36 -2
  23. package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/RadarSDK +0 -0
  24. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/Radar.h +3 -4
  25. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSDK-Swift.h +2 -2
  26. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSdkConfiguration.h +1 -0
  27. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Info.plist +0 -0
  28. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +1447 -88
  29. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +36 -2
  30. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  31. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +36 -2
  32. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +1447 -88
  33. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +36 -2
  34. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  35. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +36 -2
  36. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/RadarSDK +0 -0
  37. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/_CodeSignature/CodeDirectory +0 -0
  38. package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/_CodeSignature/CodeResources +27 -27
  39. package/ios/RadarSDKMotion.xcframework/Info.plist +5 -5
  40. package/ios/RadarSDKMotion.xcframework/ios-arm64/RadarSDKMotion.framework/Info.plist +0 -0
  41. package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/Info.plist +0 -0
  42. package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/_CodeSignature/CodeDirectory +0 -0
  43. package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/RadarSDKMotion.framework/_CodeSignature/CodeResources +1 -1
  44. package/package.json +1 -1
  45. package/src/@types/RadarNativeInterface.ts +5 -0
  46. package/src/NativeRadar.ts +5 -0
  47. package/src/helpers.js +5 -1
  48. package/src/index.native.ts +15 -0
  49. package/src/ui/map.jsx +32 -4
  50. package/src/version.ts +1 -1
@@ -1,7 +1,7 @@
1
1
  // swift-interface-format-version: 1.0
2
- // swift-compiler-version: Apple Swift version 6.3.2 (swiftlang-6.3.2.1.108 clang-2100.1.1.101)
2
+ // swift-compiler-version: Apple Swift version 6.3.3 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
3
3
  // swift-module-flags: -target arm64-apple-ios13.0 -enable-objc-interop -enable-library-evolution -swift-version 6 -O -enable-experimental-feature DebugDescriptionMacro -module-name RadarSDK
4
- // swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.2
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3
5
5
  import CoreLocation
6
6
  import CoreTelephony
7
7
  import Foundation
@@ -58,9 +58,43 @@ extension RadarSDK.RadarLogType : Swift.Codable {
58
58
  @objc public static func rollbackSyncState()
59
59
  @objc public static func markDwellFired(_ geofenceId: Swift.String)
60
60
  @objc public static func getObjCBeacons(for location: _LocationEssentials.CLLocation) -> [RadarSDK.RadarBeacon]
61
+ public static func getSyncedRegion() -> CoreLocation.CLCircularRegion?
62
+ public static func getSyncedGeofences() -> [RadarSDK.RadarSyncedGeofenceSnapshot]
63
+ public static func getSyncedPlaces() -> [RadarSDK.RadarSyncedPlaceSnapshot]
64
+ public static func getSyncedBeacons() -> [RadarSDK.RadarSyncedBeaconSnapshot]
61
65
  @objc override dynamic public init()
62
66
  @objc deinit
63
67
  }
68
+ public struct RadarSyncedGeofenceSnapshot {
69
+ public let id: Swift.String
70
+ public let description: Swift.String
71
+ public let tag: Swift.String?
72
+ public let externalId: Swift.String?
73
+ public let geometry: RadarSDK.RadarSyncedGeofenceSnapshot.Geometry
74
+ public enum Geometry {
75
+ case circle(center: _LocationEssentials.CLLocationCoordinate2D, radius: Swift.Double)
76
+ case polygon(coordinates: [_LocationEssentials.CLLocationCoordinate2D], center: _LocationEssentials.CLLocationCoordinate2D, radius: Swift.Double)
77
+ public var center: _LocationEssentials.CLLocationCoordinate2D {
78
+ get
79
+ }
80
+ }
81
+ }
82
+ public struct RadarSyncedPlaceSnapshot {
83
+ public let id: Swift.String
84
+ public let name: Swift.String
85
+ public let categories: [Swift.String]
86
+ public let group: Swift.String?
87
+ public let location: _LocationEssentials.CLLocationCoordinate2D
88
+ }
89
+ public struct RadarSyncedBeaconSnapshot {
90
+ public let id: Swift.String
91
+ public let description: Swift.String?
92
+ public let tag: Swift.String?
93
+ public let uuid: Swift.String
94
+ public let major: Swift.String
95
+ public let minor: Swift.String
96
+ public let location: _LocationEssentials.CLLocationCoordinate2D?
97
+ }
64
98
  @objc(RadarInAppMessage_Swift) @objcMembers final public class RadarInAppMessage_Swift : RadarSDK.RadarInAppMessage {
65
99
  public struct Text : Swift.Sendable {
66
100
  public var text: Swift.String
@@ -1,7 +1,7 @@
1
1
  // swift-interface-format-version: 1.0
2
- // swift-compiler-version: Apple Swift version 6.3.2 (swiftlang-6.3.2.1.108 clang-2100.1.1.101)
2
+ // swift-compiler-version: Apple Swift version 6.3.3 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
3
3
  // swift-module-flags: -target arm64-apple-ios13.0 -enable-objc-interop -enable-library-evolution -swift-version 6 -O -enable-experimental-feature DebugDescriptionMacro -module-name RadarSDK
4
- // swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.2
4
+ // swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3
5
5
  import CoreLocation
6
6
  import CoreTelephony
7
7
  import Foundation
@@ -58,9 +58,43 @@ extension RadarSDK.RadarLogType : Swift.Codable {
58
58
  @objc public static func rollbackSyncState()
59
59
  @objc public static func markDwellFired(_ geofenceId: Swift.String)
60
60
  @objc public static func getObjCBeacons(for location: _LocationEssentials.CLLocation) -> [RadarSDK.RadarBeacon]
61
+ public static func getSyncedRegion() -> CoreLocation.CLCircularRegion?
62
+ public static func getSyncedGeofences() -> [RadarSDK.RadarSyncedGeofenceSnapshot]
63
+ public static func getSyncedPlaces() -> [RadarSDK.RadarSyncedPlaceSnapshot]
64
+ public static func getSyncedBeacons() -> [RadarSDK.RadarSyncedBeaconSnapshot]
61
65
  @objc override dynamic public init()
62
66
  @objc deinit
63
67
  }
68
+ public struct RadarSyncedGeofenceSnapshot {
69
+ public let id: Swift.String
70
+ public let description: Swift.String
71
+ public let tag: Swift.String?
72
+ public let externalId: Swift.String?
73
+ public let geometry: RadarSDK.RadarSyncedGeofenceSnapshot.Geometry
74
+ public enum Geometry {
75
+ case circle(center: _LocationEssentials.CLLocationCoordinate2D, radius: Swift.Double)
76
+ case polygon(coordinates: [_LocationEssentials.CLLocationCoordinate2D], center: _LocationEssentials.CLLocationCoordinate2D, radius: Swift.Double)
77
+ public var center: _LocationEssentials.CLLocationCoordinate2D {
78
+ get
79
+ }
80
+ }
81
+ }
82
+ public struct RadarSyncedPlaceSnapshot {
83
+ public let id: Swift.String
84
+ public let name: Swift.String
85
+ public let categories: [Swift.String]
86
+ public let group: Swift.String?
87
+ public let location: _LocationEssentials.CLLocationCoordinate2D
88
+ }
89
+ public struct RadarSyncedBeaconSnapshot {
90
+ public let id: Swift.String
91
+ public let description: Swift.String?
92
+ public let tag: Swift.String?
93
+ public let uuid: Swift.String
94
+ public let major: Swift.String
95
+ public let minor: Swift.String
96
+ public let location: _LocationEssentials.CLLocationCoordinate2D?
97
+ }
64
98
  @objc(RadarInAppMessage_Swift) @objcMembers final public class RadarInAppMessage_Swift : RadarSDK.RadarInAppMessage {
65
99
  public struct Text : Swift.Sendable {
66
100
  public var text: Swift.String
@@ -1323,8 +1323,7 @@ typedef void (^_Nonnull RadarIndoorsScanCompletionHandler)(NSString *_Nullable r
1323
1323
 
1324
1324
  @see https://radar.com/documentation/api#ip-geocode
1325
1325
  */
1326
- + (void)ipGeocodeWithCompletionHandler:(RadarIPGeocodeCompletionHandler)completionHandler
1327
- __attribute__((deprecated("Use ipGeocodeWithErrorCompletionHandler: to also receive the underlying NSError on network/parse errors.")));
1326
+ + (void)ipGeocodeWithCompletionHandler:(RadarIPGeocodeCompletionHandler)completionHandler NS_SWIFT_NAME(ipGeocode(completionHandler:));
1328
1327
 
1329
1328
  /**
1330
1329
  Geocodes the device's current IP address, converting IP address to partial address. The completion handler also receives the underlying NSError when the failure originated from a caught network, parse, or exception error — forward it to an error collector (Sentry, Crashlytics, etc.) to capture diagnostics.
@@ -1333,8 +1332,8 @@ typedef void (^_Nonnull RadarIndoorsScanCompletionHandler)(NSString *_Nullable r
1333
1332
 
1334
1333
  @see https://radar.com/documentation/api#ip-geocode
1335
1334
  */
1336
- + (void)ipGeocodeWithErrorCompletionHandler:(RadarIPGeocodeWithErrorCompletionHandler)completionHandler NS_SWIFT_NAME(ipGeocode(completionHandler:));
1337
-
1335
+ + (void)ipGeocodeWithErrorCompletionHandler:(RadarIPGeocodeWithErrorCompletionHandler)completionHandler
1336
+ NS_SWIFT_NAME(ipGeocode(completionHandler:)) NS_SWIFT_DISABLE_ASYNC;
1338
1337
 
1339
1338
  /**
1340
1339
  Validates an address, attaching a verification status, property type, and ZIP+4.
@@ -1,6 +1,6 @@
1
1
  #if 0
2
2
  #elif defined(__arm64__) && __arm64__
3
- // Generated by Apple Swift version 6.3.2 (swiftlang-6.3.2.1.108 clang-2100.1.1.101)
3
+ // Generated by Apple Swift version 6.3.3 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
4
4
  #ifndef RADARSDK_SWIFT_H
5
5
  #define RADARSDK_SWIFT_H
6
6
  #pragma clang diagnostic push
@@ -444,7 +444,7 @@ SWIFT_CLASS_NAMED("RadarSyncManager")
444
444
  #endif
445
445
 
446
446
  #elif defined(__x86_64__) && __x86_64__
447
- // Generated by Apple Swift version 6.3.2 (swiftlang-6.3.2.1.108 clang-2100.1.1.101)
447
+ // Generated by Apple Swift version 6.3.3 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)
448
448
  #ifndef RADARSDK_SWIFT_H
449
449
  #define RADARSDK_SWIFT_H
450
450
  #pragma clang diagnostic push
@@ -42,6 +42,7 @@ NS_ASSUME_NONNULL_BEGIN
42
42
  - (NSArray<RadarRemoteTrackingOptions *> *_Nullable)remoteTrackingOptions;
43
43
  - (instancetype)initWithDict:(NSDictionary *_Nullable)dict;
44
44
  - (NSDictionary *)dictionaryValue;
45
+ + (RadarSdkConfiguration *_Nullable)current;
45
46
  @end
46
47
 
47
48
  /**