react-native-radar 4.2.0 → 4.31.0-beta.1
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/README.md +5 -2
- package/android/build.gradle +1 -1
- package/android/src/newarch/java/com/radar/RadarModule.kt +2 -2
- package/android/src/oldarch/java/com/radar/RadarModule.java +2 -2
- package/dist/@types/types.d.ts +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/ios/RNRadar.mm +2 -2
- package/ios/RadarSDK.xcframework/Info.plist +5 -5
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarSDK-Swift.h +1 -4
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarSdkConfiguration.h +5 -0
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Headers/RadarTrackingOptions.h +10 -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 +35 -79
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +2 -4
- 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 +2 -4
- package/ios/RadarSDK.xcframework/ios-arm64/RadarSDK.framework/RadarSDK +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSDK-Swift.h +2 -8
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarSdkConfiguration.h +5 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Headers/RadarTrackingOptions.h +10 -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 +35 -79
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +2 -4
- 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 +2 -4
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +35 -79
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/RadarSDK.framework/Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +2 -4
- 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 +2 -4
- 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_x86_64-simulator/RadarSDKMotion.framework/Info.plist +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 +4 -4
- package/plugin/build/types.d.ts +12 -0
- package/plugin/build/withRadarIOS.js +72 -1
- package/src/@types/types.ts +2 -0
- 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 (swiftlang-6.3.
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.3.1 (swiftlang-6.3.1.1.2 clang-2100.0.123.102)
|
|
3
3
|
// swift-module-flags: -target arm64-apple-ios12.0-simulator -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
|
|
4
|
+
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.1
|
|
5
5
|
import CoreLocation
|
|
6
6
|
import CoreTelephony
|
|
7
7
|
import Foundation
|
|
@@ -48,8 +48,6 @@ final public class RadarAPIClient : Swift.Sendable {
|
|
|
48
48
|
@objc public static func saveBeaconState(beaconIds: [Swift.String])
|
|
49
49
|
@objc public static func rollbackSyncState()
|
|
50
50
|
@objc public static func markDwellFired(_ geofenceId: Swift.String)
|
|
51
|
-
@objc public static func getSyncedRegion() -> CoreLocation.CLCircularRegion?
|
|
52
|
-
@objc public static func getSyncedStateJSON() -> [Swift.String : Any]?
|
|
53
51
|
@objc public static func getObjCBeacons(for location: _LocationEssentials.CLLocation) -> [RadarSDK.RadarBeacon]
|
|
54
52
|
@objc override dynamic public init()
|
|
55
53
|
@objc deinit
|
|
@@ -1070,84 +1070,6 @@
|
|
|
1070
1070
|
],
|
|
1071
1071
|
"funcSelfKind": "NonMutating"
|
|
1072
1072
|
},
|
|
1073
|
-
{
|
|
1074
|
-
"kind": "Function",
|
|
1075
|
-
"name": "getSyncedRegion",
|
|
1076
|
-
"printedName": "getSyncedRegion()",
|
|
1077
|
-
"children": [
|
|
1078
|
-
{
|
|
1079
|
-
"kind": "TypeNominal",
|
|
1080
|
-
"name": "Optional",
|
|
1081
|
-
"printedName": "CoreLocation.CLCircularRegion?",
|
|
1082
|
-
"children": [
|
|
1083
|
-
{
|
|
1084
|
-
"kind": "TypeNominal",
|
|
1085
|
-
"name": "CLCircularRegion",
|
|
1086
|
-
"printedName": "CoreLocation.CLCircularRegion",
|
|
1087
|
-
"usr": "c:objc(cs)CLCircularRegion"
|
|
1088
|
-
}
|
|
1089
|
-
],
|
|
1090
|
-
"usr": "s:Sq"
|
|
1091
|
-
}
|
|
1092
|
-
],
|
|
1093
|
-
"declKind": "Func",
|
|
1094
|
-
"usr": "c:@M@RadarSDK@objc(cs)RadarSyncManager(cm)getSyncedRegion",
|
|
1095
|
-
"mangledName": "$s8RadarSDK0A11SyncManagerC15getSyncedRegionSo010CLCircularG0CSgyFZ",
|
|
1096
|
-
"moduleName": "RadarSDK",
|
|
1097
|
-
"static": true,
|
|
1098
|
-
"declAttributes": [
|
|
1099
|
-
"Final",
|
|
1100
|
-
"AccessControl",
|
|
1101
|
-
"ObjC",
|
|
1102
|
-
"RawDocComment"
|
|
1103
|
-
],
|
|
1104
|
-
"funcSelfKind": "NonMutating"
|
|
1105
|
-
},
|
|
1106
|
-
{
|
|
1107
|
-
"kind": "Function",
|
|
1108
|
-
"name": "getSyncedStateJSON",
|
|
1109
|
-
"printedName": "getSyncedStateJSON()",
|
|
1110
|
-
"children": [
|
|
1111
|
-
{
|
|
1112
|
-
"kind": "TypeNominal",
|
|
1113
|
-
"name": "Optional",
|
|
1114
|
-
"printedName": "[Swift.String : Any]?",
|
|
1115
|
-
"children": [
|
|
1116
|
-
{
|
|
1117
|
-
"kind": "TypeNominal",
|
|
1118
|
-
"name": "Dictionary",
|
|
1119
|
-
"printedName": "[Swift.String : Any]",
|
|
1120
|
-
"children": [
|
|
1121
|
-
{
|
|
1122
|
-
"kind": "TypeNominal",
|
|
1123
|
-
"name": "String",
|
|
1124
|
-
"printedName": "Swift.String",
|
|
1125
|
-
"usr": "s:SS"
|
|
1126
|
-
},
|
|
1127
|
-
{
|
|
1128
|
-
"kind": "TypeNominal",
|
|
1129
|
-
"name": "ProtocolComposition",
|
|
1130
|
-
"printedName": "Any"
|
|
1131
|
-
}
|
|
1132
|
-
],
|
|
1133
|
-
"usr": "s:SD"
|
|
1134
|
-
}
|
|
1135
|
-
],
|
|
1136
|
-
"usr": "s:Sq"
|
|
1137
|
-
}
|
|
1138
|
-
],
|
|
1139
|
-
"declKind": "Func",
|
|
1140
|
-
"usr": "c:@M@RadarSDK@objc(cs)RadarSyncManager(cm)getSyncedStateJSON",
|
|
1141
|
-
"mangledName": "$s8RadarSDK0A11SyncManagerC18getSyncedStateJSONSDySSypGSgyFZ",
|
|
1142
|
-
"moduleName": "RadarSDK",
|
|
1143
|
-
"static": true,
|
|
1144
|
-
"declAttributes": [
|
|
1145
|
-
"Final",
|
|
1146
|
-
"AccessControl",
|
|
1147
|
-
"ObjC"
|
|
1148
|
-
],
|
|
1149
|
-
"funcSelfKind": "NonMutating"
|
|
1150
|
-
},
|
|
1151
1073
|
{
|
|
1152
1074
|
"kind": "Function",
|
|
1153
1075
|
"name": "getObjCBeacons",
|
|
@@ -1316,6 +1238,33 @@
|
|
|
1316
1238
|
"RawDocComment"
|
|
1317
1239
|
]
|
|
1318
1240
|
},
|
|
1241
|
+
{
|
|
1242
|
+
"kind": "Import",
|
|
1243
|
+
"name": "CoreLocation",
|
|
1244
|
+
"printedName": "CoreLocation",
|
|
1245
|
+
"declKind": "Import",
|
|
1246
|
+
"moduleName": "RadarSDK"
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
"kind": "Import",
|
|
1250
|
+
"name": "Foundation",
|
|
1251
|
+
"printedName": "Foundation",
|
|
1252
|
+
"declKind": "Import",
|
|
1253
|
+
"moduleName": "RadarSDK",
|
|
1254
|
+
"declAttributes": [
|
|
1255
|
+
"RawDocComment"
|
|
1256
|
+
]
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
"kind": "Import",
|
|
1260
|
+
"name": "Foundation",
|
|
1261
|
+
"printedName": "Foundation",
|
|
1262
|
+
"declKind": "Import",
|
|
1263
|
+
"moduleName": "RadarSDK",
|
|
1264
|
+
"declAttributes": [
|
|
1265
|
+
"RawDocComment"
|
|
1266
|
+
]
|
|
1267
|
+
},
|
|
1319
1268
|
{
|
|
1320
1269
|
"kind": "Import",
|
|
1321
1270
|
"name": "Foundation",
|
|
@@ -4397,6 +4346,13 @@
|
|
|
4397
4346
|
"length": 5,
|
|
4398
4347
|
"value": "false"
|
|
4399
4348
|
},
|
|
4349
|
+
{
|
|
4350
|
+
"filePath": "\/tmp\/radar-static-build\/radar-sdk-ios\/RadarSDK\/RadarOfflineEventManager.swift",
|
|
4351
|
+
"kind": "StringLiteral",
|
|
4352
|
+
"offset": 342,
|
|
4353
|
+
"length": 30,
|
|
4354
|
+
"value": "\"io.radar.offlineEventManager\""
|
|
4355
|
+
},
|
|
4400
4356
|
{
|
|
4401
4357
|
"filePath": "\/tmp\/radar-static-build\/radar-sdk-ios\/RadarSDK\/RadarFileStorage.swift",
|
|
4402
4358
|
"kind": "BooleanLiteral",
|
|
@@ -4927,7 +4883,7 @@
|
|
|
4927
4883
|
"kind": "StringLiteral",
|
|
4928
4884
|
"offset": 242,
|
|
4929
4885
|
"length": 8,
|
|
4930
|
-
"value": "\"3.
|
|
4886
|
+
"value": "\"3.31.0\""
|
|
4931
4887
|
},
|
|
4932
4888
|
{
|
|
4933
4889
|
"filePath": "\/tmp\/radar-static-build\/radar-sdk-ios\/RadarSDK\/RadarUtils.swift",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
|
-
// swift-compiler-version: Apple Swift version 6.3 (swiftlang-6.3.
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.3.1 (swiftlang-6.3.1.1.2 clang-2100.0.123.102)
|
|
3
3
|
// swift-module-flags: -target x86_64-apple-ios12.0-simulator -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
|
|
4
|
+
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.1
|
|
5
5
|
import CoreLocation
|
|
6
6
|
import CoreTelephony
|
|
7
7
|
import Foundation
|
|
@@ -48,8 +48,6 @@ final public class RadarAPIClient : Swift.Sendable {
|
|
|
48
48
|
@objc public static func saveBeaconState(beaconIds: [Swift.String])
|
|
49
49
|
@objc public static func rollbackSyncState()
|
|
50
50
|
@objc public static func markDwellFired(_ geofenceId: Swift.String)
|
|
51
|
-
@objc public static func getSyncedRegion() -> CoreLocation.CLCircularRegion?
|
|
52
|
-
@objc public static func getSyncedStateJSON() -> [Swift.String : Any]?
|
|
53
51
|
@objc public static func getObjCBeacons(for location: _LocationEssentials.CLLocation) -> [RadarSDK.RadarBeacon]
|
|
54
52
|
@objc override dynamic public init()
|
|
55
53
|
@objc deinit
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
|
-
// swift-compiler-version: Apple Swift version 6.3 (swiftlang-6.3.
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.3.1 (swiftlang-6.3.1.1.2 clang-2100.0.123.102)
|
|
3
3
|
// swift-module-flags: -target x86_64-apple-ios12.0-simulator -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
|
|
4
|
+
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.1
|
|
5
5
|
import CoreLocation
|
|
6
6
|
import CoreTelephony
|
|
7
7
|
import Foundation
|
|
@@ -48,8 +48,6 @@ final public class RadarAPIClient : Swift.Sendable {
|
|
|
48
48
|
@objc public static func saveBeaconState(beaconIds: [Swift.String])
|
|
49
49
|
@objc public static func rollbackSyncState()
|
|
50
50
|
@objc public static func markDwellFired(_ geofenceId: Swift.String)
|
|
51
|
-
@objc public static func getSyncedRegion() -> CoreLocation.CLCircularRegion?
|
|
52
|
-
@objc public static func getSyncedStateJSON() -> [Swift.String : Any]?
|
|
53
51
|
@objc public static func getObjCBeacons(for location: _LocationEssentials.CLLocation) -> [RadarSDK.RadarBeacon]
|
|
54
52
|
@objc override dynamic public init()
|
|
55
53
|
@objc deinit
|
|
Binary file
|
|
Binary file
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
</data>
|
|
119
119
|
<key>Headers/RadarSDK-Swift.h</key>
|
|
120
120
|
<data>
|
|
121
|
-
|
|
121
|
+
JJ/JtcFyUnm5f9nzDCG/MKxIydY=
|
|
122
122
|
</data>
|
|
123
123
|
<key>Headers/RadarSDK.h</key>
|
|
124
124
|
<data>
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
</data>
|
|
131
131
|
<key>Headers/RadarSdkConfiguration.h</key>
|
|
132
132
|
<data>
|
|
133
|
-
|
|
133
|
+
/x0t1qhuIvuw/tdu/99yQKkh8IM=
|
|
134
134
|
</data>
|
|
135
135
|
<key>Headers/RadarSegment.h</key>
|
|
136
136
|
<data>
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
</data>
|
|
143
143
|
<key>Headers/RadarTrackingOptions.h</key>
|
|
144
144
|
<data>
|
|
145
|
-
|
|
145
|
+
RQDcYKWUQR+qNxyGm1UknntO/oE=
|
|
146
146
|
</data>
|
|
147
147
|
<key>Headers/RadarTrip.h</key>
|
|
148
148
|
<data>
|
|
@@ -174,47 +174,47 @@
|
|
|
174
174
|
</data>
|
|
175
175
|
<key>Info.plist</key>
|
|
176
176
|
<data>
|
|
177
|
-
|
|
177
|
+
sbKy/zg/Wk203AFT35Mdi+KGoPg=
|
|
178
178
|
</data>
|
|
179
179
|
<key>Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
|
180
180
|
<data>
|
|
181
|
-
|
|
181
|
+
4KOIIm6/5C+bhbH300Z21mYX61E=
|
|
182
182
|
</data>
|
|
183
183
|
<key>Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
184
184
|
<data>
|
|
185
|
-
|
|
185
|
+
IfOlt3F0juEf7gyaIeed3qjGA2I=
|
|
186
186
|
</data>
|
|
187
187
|
<key>Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
|
188
188
|
<data>
|
|
189
|
-
|
|
189
|
+
gUcsWkaDGqpt5CCFF64nxiWHED0=
|
|
190
190
|
</data>
|
|
191
191
|
<key>Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
|
192
192
|
<data>
|
|
193
|
-
|
|
193
|
+
IfOlt3F0juEf7gyaIeed3qjGA2I=
|
|
194
194
|
</data>
|
|
195
195
|
<key>Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
|
196
196
|
<data>
|
|
197
|
-
|
|
197
|
+
G8egEsdi/8fHtSCMlXxmyK/17u8=
|
|
198
198
|
</data>
|
|
199
199
|
<key>Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
200
200
|
<data>
|
|
201
|
-
|
|
201
|
+
4KOIIm6/5C+bhbH300Z21mYX61E=
|
|
202
202
|
</data>
|
|
203
203
|
<key>Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
204
204
|
<data>
|
|
205
|
-
|
|
205
|
+
RjvQmgeMN9/mQ09GLnlMOq+WzyE=
|
|
206
206
|
</data>
|
|
207
207
|
<key>Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
|
208
208
|
<data>
|
|
209
|
-
|
|
209
|
+
Qn5MlFQqtoDf3LvWAfc/hhZHHHE=
|
|
210
210
|
</data>
|
|
211
211
|
<key>Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
|
212
212
|
<data>
|
|
213
|
-
|
|
213
|
+
RjvQmgeMN9/mQ09GLnlMOq+WzyE=
|
|
214
214
|
</data>
|
|
215
215
|
<key>Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
|
216
216
|
<data>
|
|
217
|
-
|
|
217
|
+
DHMW4ja1bng5HfbM0XpWME258OU=
|
|
218
218
|
</data>
|
|
219
219
|
<key>Modules/module.modulemap</key>
|
|
220
220
|
<data>
|
|
@@ -427,7 +427,7 @@
|
|
|
427
427
|
<dict>
|
|
428
428
|
<key>hash2</key>
|
|
429
429
|
<data>
|
|
430
|
-
|
|
430
|
+
9mY/nBK7X2tMVMf1BmAadKz2Tt8CaXFV8tNlJC5nXew=
|
|
431
431
|
</data>
|
|
432
432
|
</dict>
|
|
433
433
|
<key>Headers/RadarSDK.h</key>
|
|
@@ -448,7 +448,7 @@
|
|
|
448
448
|
<dict>
|
|
449
449
|
<key>hash2</key>
|
|
450
450
|
<data>
|
|
451
|
-
|
|
451
|
+
wed+AQsy+TPPNfW5TqVizppjMgvSh2cOgZYXXfBfnTI=
|
|
452
452
|
</data>
|
|
453
453
|
</dict>
|
|
454
454
|
<key>Headers/RadarSegment.h</key>
|
|
@@ -469,7 +469,7 @@
|
|
|
469
469
|
<dict>
|
|
470
470
|
<key>hash2</key>
|
|
471
471
|
<data>
|
|
472
|
-
|
|
472
|
+
EpT2PuQz+RElvoJUKzieBGCGRHgG1RUaTBghRA0XCwM=
|
|
473
473
|
</data>
|
|
474
474
|
</dict>
|
|
475
475
|
<key>Headers/RadarTrip.h</key>
|
|
@@ -525,70 +525,70 @@
|
|
|
525
525
|
<dict>
|
|
526
526
|
<key>hash2</key>
|
|
527
527
|
<data>
|
|
528
|
-
|
|
528
|
+
RMY38gSWxRrlauZz8qXl0HFZwGaPwnmBW6qsorQuALM=
|
|
529
529
|
</data>
|
|
530
530
|
</dict>
|
|
531
531
|
<key>Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
532
532
|
<dict>
|
|
533
533
|
<key>hash2</key>
|
|
534
534
|
<data>
|
|
535
|
-
|
|
535
|
+
X1eCMebUoNmIRvTs5TpfX9cIjNVYPNVnyIuWnwkyX0w=
|
|
536
536
|
</data>
|
|
537
537
|
</dict>
|
|
538
538
|
<key>Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
|
539
539
|
<dict>
|
|
540
540
|
<key>hash2</key>
|
|
541
541
|
<data>
|
|
542
|
-
|
|
542
|
+
tKG1hL2G5HsR6I9R+Gh7S3v3S5zOqS1Af/pujX4mg4M=
|
|
543
543
|
</data>
|
|
544
544
|
</dict>
|
|
545
545
|
<key>Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
|
546
546
|
<dict>
|
|
547
547
|
<key>hash2</key>
|
|
548
548
|
<data>
|
|
549
|
-
|
|
549
|
+
X1eCMebUoNmIRvTs5TpfX9cIjNVYPNVnyIuWnwkyX0w=
|
|
550
550
|
</data>
|
|
551
551
|
</dict>
|
|
552
552
|
<key>Modules/RadarSDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
|
553
553
|
<dict>
|
|
554
554
|
<key>hash2</key>
|
|
555
555
|
<data>
|
|
556
|
-
|
|
556
|
+
OkuxrnRICIUhmxAQU9x6ih0n23zL2JuykeCIdM++7Iw=
|
|
557
557
|
</data>
|
|
558
558
|
</dict>
|
|
559
559
|
<key>Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
560
560
|
<dict>
|
|
561
561
|
<key>hash2</key>
|
|
562
562
|
<data>
|
|
563
|
-
|
|
563
|
+
RMY38gSWxRrlauZz8qXl0HFZwGaPwnmBW6qsorQuALM=
|
|
564
564
|
</data>
|
|
565
565
|
</dict>
|
|
566
566
|
<key>Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
567
567
|
<dict>
|
|
568
568
|
<key>hash2</key>
|
|
569
569
|
<data>
|
|
570
|
-
|
|
570
|
+
hsNox9OhBdWGSWC3Ob8Tx+K4C11eteweIcmNbQHKECw=
|
|
571
571
|
</data>
|
|
572
572
|
</dict>
|
|
573
573
|
<key>Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
|
574
574
|
<dict>
|
|
575
575
|
<key>hash2</key>
|
|
576
576
|
<data>
|
|
577
|
-
|
|
577
|
+
OccM5vRBaR74nXCtqlsBRu0sb8aKiJgwzxPoRYT/A/A=
|
|
578
578
|
</data>
|
|
579
579
|
</dict>
|
|
580
580
|
<key>Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
|
581
581
|
<dict>
|
|
582
582
|
<key>hash2</key>
|
|
583
583
|
<data>
|
|
584
|
-
|
|
584
|
+
hsNox9OhBdWGSWC3Ob8Tx+K4C11eteweIcmNbQHKECw=
|
|
585
585
|
</data>
|
|
586
586
|
</dict>
|
|
587
587
|
<key>Modules/RadarSDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
|
588
588
|
<dict>
|
|
589
589
|
<key>hash2</key>
|
|
590
590
|
<data>
|
|
591
|
-
+
|
|
591
|
+
vl7wx+lUTynKDvURvs4QUf+4rhQKz02X8J0Kn7UeQXk=
|
|
592
592
|
</data>
|
|
593
593
|
</dict>
|
|
594
594
|
<key>Modules/module.modulemap</key>
|
|
@@ -8,32 +8,32 @@
|
|
|
8
8
|
<key>BinaryPath</key>
|
|
9
9
|
<string>RadarSDKMotion.framework/RadarSDKMotion</string>
|
|
10
10
|
<key>LibraryIdentifier</key>
|
|
11
|
-
<string>ios-
|
|
11
|
+
<string>ios-arm64</string>
|
|
12
12
|
<key>LibraryPath</key>
|
|
13
13
|
<string>RadarSDKMotion.framework</string>
|
|
14
14
|
<key>SupportedArchitectures</key>
|
|
15
15
|
<array>
|
|
16
16
|
<string>arm64</string>
|
|
17
|
-
<string>x86_64</string>
|
|
18
17
|
</array>
|
|
19
18
|
<key>SupportedPlatform</key>
|
|
20
19
|
<string>ios</string>
|
|
21
|
-
<key>SupportedPlatformVariant</key>
|
|
22
|
-
<string>simulator</string>
|
|
23
20
|
</dict>
|
|
24
21
|
<dict>
|
|
25
22
|
<key>BinaryPath</key>
|
|
26
23
|
<string>RadarSDKMotion.framework/RadarSDKMotion</string>
|
|
27
24
|
<key>LibraryIdentifier</key>
|
|
28
|
-
<string>ios-
|
|
25
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
29
26
|
<key>LibraryPath</key>
|
|
30
27
|
<string>RadarSDKMotion.framework</string>
|
|
31
28
|
<key>SupportedArchitectures</key>
|
|
32
29
|
<array>
|
|
33
30
|
<string>arm64</string>
|
|
31
|
+
<string>x86_64</string>
|
|
34
32
|
</array>
|
|
35
33
|
<key>SupportedPlatform</key>
|
|
36
34
|
<string>ios</string>
|
|
35
|
+
<key>SupportedPlatformVariant</key>
|
|
36
|
+
<string>simulator</string>
|
|
37
37
|
</dict>
|
|
38
38
|
</array>
|
|
39
39
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "React Native module for Radar, the leading geofencing and location tracking platform",
|
|
4
4
|
"homepage": "https://radar.com",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
-
"version": "4.
|
|
6
|
+
"version": "4.31.0-beta.1",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist",
|
|
@@ -38,7 +38,8 @@
|
|
|
38
38
|
"check-latest-tag": "node ./scripts/check-latest-tag.cjs",
|
|
39
39
|
"check-beta-tag": "node ./scripts/check-beta-tag.cjs",
|
|
40
40
|
"build-plugin": "tsc --build plugin/",
|
|
41
|
-
"build": "tsc"
|
|
41
|
+
"build": "tsc",
|
|
42
|
+
"setup": "npm rebuild fsevents --ignore-scripts=false"
|
|
42
43
|
},
|
|
43
44
|
"jest": {
|
|
44
45
|
"preset": "react-native",
|
|
@@ -78,11 +79,10 @@
|
|
|
78
79
|
"@eslint/compat": "^1.2.7",
|
|
79
80
|
"@eslint/eslintrc": "^3.3.0",
|
|
80
81
|
"@eslint/js": "^9.22.0",
|
|
81
|
-
"@evilmartians/lefthook": "^1.5.0",
|
|
82
82
|
"@react-native-community/cli": "15.0.0-alpha.2",
|
|
83
83
|
"@react-native/babel-preset": "0.79.2",
|
|
84
84
|
"@react-native/eslint-config": "^0.78.0",
|
|
85
|
-
"@release-it/conventional-changelog": "^
|
|
85
|
+
"@release-it/conventional-changelog": "^10.0.6",
|
|
86
86
|
"@types/jest": "^29.5.5",
|
|
87
87
|
"@types/node": "^24.3.0",
|
|
88
88
|
"@types/react": "^19.0.0",
|
package/plugin/build/types.d.ts
CHANGED
|
@@ -9,4 +9,16 @@ export interface RadarPluginProps {
|
|
|
9
9
|
androidActivityRecognition?: boolean;
|
|
10
10
|
addRadarSDKMotion?: boolean;
|
|
11
11
|
iosNSMotionUsageDescription?: string;
|
|
12
|
+
/**
|
|
13
|
+
* iOS only. When true, injects `[Radar nativeSetup:options]` into AppDelegate
|
|
14
|
+
* with autoHandleNotificationDeepLinks = YES so cold-start notification taps
|
|
15
|
+
* route to the URL in the notification payload.
|
|
16
|
+
*/
|
|
17
|
+
iosAutoHandleNotificationDeepLinks?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* iOS only. When true, injects `[Radar nativeSetup:options]` into AppDelegate
|
|
20
|
+
* with autoLogNotificationConversions = YES so opened_app conversions are
|
|
21
|
+
* automatically associated with the notification that opened the app.
|
|
22
|
+
*/
|
|
23
|
+
iosAutoLogNotificationConversions?: boolean;
|
|
12
24
|
}
|
|
@@ -1,10 +1,80 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.withRadarIOS = void 0;
|
|
4
|
-
const { withInfoPlist, withDangerousMod } = require("expo/config-plugins");
|
|
4
|
+
const { withInfoPlist, withDangerousMod, withAppDelegate, WarningAggregator, } = require("expo/config-plugins");
|
|
5
5
|
const fs = require('fs/promises');
|
|
6
6
|
const path = require('path');
|
|
7
7
|
const pkg = require("../../package.json");
|
|
8
|
+
const NATIVE_SETUP_SENTINEL = "@generated react-native-radar nativeSetup";
|
|
9
|
+
function buildObjcSnippet(args) {
|
|
10
|
+
const lines = [
|
|
11
|
+
` // ${NATIVE_SETUP_SENTINEL}`,
|
|
12
|
+
` RadarInitializeOptions *radarInitializeOptions = [[RadarInitializeOptions alloc] init];`,
|
|
13
|
+
];
|
|
14
|
+
if (args.iosAutoHandleNotificationDeepLinks) {
|
|
15
|
+
lines.push(` radarInitializeOptions.autoHandleNotificationDeepLinks = YES;`);
|
|
16
|
+
}
|
|
17
|
+
if (args.iosAutoLogNotificationConversions) {
|
|
18
|
+
lines.push(` radarInitializeOptions.autoLogNotificationConversions = YES;`);
|
|
19
|
+
}
|
|
20
|
+
lines.push(` [Radar nativeSetup:radarInitializeOptions];`);
|
|
21
|
+
return lines.join("\n");
|
|
22
|
+
}
|
|
23
|
+
function buildSwiftSnippet(args) {
|
|
24
|
+
const lines = [
|
|
25
|
+
` // ${NATIVE_SETUP_SENTINEL}`,
|
|
26
|
+
` let radarInitializeOptions = RadarInitializeOptions()`,
|
|
27
|
+
];
|
|
28
|
+
if (args.iosAutoHandleNotificationDeepLinks) {
|
|
29
|
+
lines.push(` radarInitializeOptions.autoHandleNotificationDeepLinks = true`);
|
|
30
|
+
}
|
|
31
|
+
if (args.iosAutoLogNotificationConversions) {
|
|
32
|
+
lines.push(` radarInitializeOptions.autoLogNotificationConversions = true`);
|
|
33
|
+
}
|
|
34
|
+
lines.push(` Radar.nativeSetup(radarInitializeOptions)`);
|
|
35
|
+
return lines.join("\n");
|
|
36
|
+
}
|
|
37
|
+
function withRadarAppDelegate(config, args) {
|
|
38
|
+
const enabled = args.iosAutoHandleNotificationDeepLinks ||
|
|
39
|
+
args.iosAutoLogNotificationConversions;
|
|
40
|
+
if (!enabled)
|
|
41
|
+
return config;
|
|
42
|
+
return withAppDelegate(config, (config) => {
|
|
43
|
+
let contents = config.modResults.contents;
|
|
44
|
+
if (contents.includes(NATIVE_SETUP_SENTINEL)) {
|
|
45
|
+
return config;
|
|
46
|
+
}
|
|
47
|
+
const language = config.modResults.language; // 'objc' | 'objcpp' | 'swift'
|
|
48
|
+
if (language === "objc" || language === "objcpp") {
|
|
49
|
+
if (!contents.includes("RadarSDK/RadarSDK.h")) {
|
|
50
|
+
contents = contents.replace(/(#import\s+"AppDelegate\.h")/, `$1\n#import <RadarSDK/RadarSDK.h>`);
|
|
51
|
+
}
|
|
52
|
+
const anchor = "[super application:application didFinishLaunchingWithOptions:launchOptions];";
|
|
53
|
+
if (!contents.includes(anchor)) {
|
|
54
|
+
WarningAggregator.addWarningIOS("react-native-radar", "Could not find didFinishLaunchingWithOptions super call in AppDelegate; skipping nativeSetup injection.");
|
|
55
|
+
return config;
|
|
56
|
+
}
|
|
57
|
+
contents = contents.replace(anchor, `${anchor}\n${buildObjcSnippet(args)}`);
|
|
58
|
+
}
|
|
59
|
+
else if (language === "swift") {
|
|
60
|
+
if (!/^import RadarSDK\b/m.test(contents)) {
|
|
61
|
+
contents = contents.replace(/(import Expo\b.*)/, `$1\nimport RadarSDK`);
|
|
62
|
+
}
|
|
63
|
+
const anchor = "super.application(application, didFinishLaunchingWithOptions: launchOptions)";
|
|
64
|
+
if (!contents.includes(anchor)) {
|
|
65
|
+
WarningAggregator.addWarningIOS("react-native-radar", "Could not find didFinishLaunchingWithOptions super call in AppDelegate.swift; skipping nativeSetup injection.");
|
|
66
|
+
return config;
|
|
67
|
+
}
|
|
68
|
+
contents = contents.replace(anchor, `${anchor}\n${buildSwiftSnippet(args)}`);
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
WarningAggregator.addWarningIOS("react-native-radar", `Unsupported AppDelegate language "${language}"; skipping Radar nativeSetup injection.`);
|
|
72
|
+
return config;
|
|
73
|
+
}
|
|
74
|
+
config.modResults.contents = contents;
|
|
75
|
+
return config;
|
|
76
|
+
});
|
|
77
|
+
}
|
|
8
78
|
const withRadarIOS = (config, args) => {
|
|
9
79
|
config = withInfoPlist(config, (config) => {
|
|
10
80
|
config.modResults.NSLocationWhenInUseUsageDescription =
|
|
@@ -42,6 +112,7 @@ const withRadarIOS = (config, args) => {
|
|
|
42
112
|
}
|
|
43
113
|
return config;
|
|
44
114
|
});
|
|
115
|
+
config = withRadarAppDelegate(config, args);
|
|
45
116
|
if (args.addRadarSDKMotion) {
|
|
46
117
|
config = withDangerousMod(config, [
|
|
47
118
|
'ios',
|
package/src/@types/types.ts
CHANGED
package/src/version.ts
CHANGED