react-native-radar 3.24.0 → 3.30.0-beta.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/Radar.podspec +3 -3
- package/RadarSDKMotion.podspec +23 -0
- package/android/src/newarch/java/com/radar/RadarModule.kt +1 -1
- package/android/src/oldarch/java/com/radar/RadarModule.java +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/ios/RNRadar.h +0 -1
- package/ios/RNRadar.mm +6 -3
- package/ios/RadarSDK.xcframework/Info.plist +48 -0
- package/ios/RadarSDK.xcframework/ios-arm64/dSYMs/RadarSDK.framework.dSYM/Contents/Info.plist +20 -0
- package/ios/RadarSDK.xcframework/ios-arm64/dSYMs/RadarSDK.framework.dSYM/Contents/Resources/DWARF/RadarSDK +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64/dSYMs/RadarSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/RadarSDK.yml +1810 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/RadarSDK.framework.dSYM/Contents/Info.plist +20 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/RadarSDK.framework.dSYM/Contents/Resources/DWARF/RadarSDK +0 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/RadarSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/RadarSDK.yml +1795 -0
- package/ios/RadarSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/RadarSDK.framework.dSYM/Contents/Resources/Relocations/x86_64/RadarSDK.yml +1814 -0
- package/ios/RadarSDKMotion.xcframework/Info.plist +48 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64/dSYMs/RadarSDKMotion.framework.dSYM/Contents/Info.plist +20 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64/dSYMs/RadarSDKMotion.framework.dSYM/Contents/Resources/DWARF/RadarSDKMotion +0 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64/dSYMs/RadarSDKMotion.framework.dSYM/Contents/Resources/Relocations/aarch64/RadarSDKMotion.yml +23 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/dSYMs/RadarSDKMotion.framework.dSYM/Contents/Info.plist +20 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/dSYMs/RadarSDKMotion.framework.dSYM/Contents/Resources/DWARF/RadarSDKMotion +0 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/dSYMs/RadarSDKMotion.framework.dSYM/Contents/Resources/Relocations/aarch64/RadarSDKMotion.yml +23 -0
- package/ios/RadarSDKMotion.xcframework/ios-arm64_x86_64-simulator/dSYMs/RadarSDKMotion.framework.dSYM/Contents/Resources/Relocations/x86_64/RadarSDKMotion.yml +23 -0
- package/ios/RadarSDKMotionStub.swift +3 -0
- package/package.json +1 -1
- package/plugin/build/withRadarIOS.js +2 -3
- package/src/version.ts +1 -1
package/Radar.podspec
CHANGED
|
@@ -13,10 +13,10 @@ Pod::Spec.new do |s|
|
|
|
13
13
|
s.platforms = { :ios => min_ios_version_supported }
|
|
14
14
|
s.source = { :git => "https://github.com/radarlabs/react-native-radar.git/react-native-radar.git", :tag => "#{s.version}" }
|
|
15
15
|
|
|
16
|
-
s.source_files = "ios
|
|
17
|
-
s.private_header_files = "ios
|
|
16
|
+
s.source_files = "ios/*.{h,m,mm,cpp}"
|
|
17
|
+
s.private_header_files = "ios/*.h"
|
|
18
18
|
|
|
19
|
-
s.
|
|
19
|
+
s.vendored_frameworks = "ios/RadarSDK.xcframework"
|
|
20
20
|
|
|
21
21
|
install_modules_dependencies(s)
|
|
22
22
|
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
require "json"
|
|
2
|
+
|
|
3
|
+
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
+
|
|
5
|
+
Pod::Spec.new do |s|
|
|
6
|
+
s.name = "RadarSDKMotion"
|
|
7
|
+
s.version = package["version"]
|
|
8
|
+
s.summary = "RadarSDKMotion extension for react-native-radar"
|
|
9
|
+
s.homepage = "https://github.com/radarlabs/react-native-radar"
|
|
10
|
+
s.license = package["license"]
|
|
11
|
+
s.authors = "radarlabs"
|
|
12
|
+
|
|
13
|
+
s.platforms = { :ios => min_ios_version_supported }
|
|
14
|
+
s.source = { :git => "https://github.com/radarlabs/react-native-radar.git", :tag => "#{s.version}" }
|
|
15
|
+
|
|
16
|
+
s.source_files = "ios/RadarSDKMotionStub.swift"
|
|
17
|
+
|
|
18
|
+
s.vendored_frameworks = "ios/RadarSDKMotion.xcframework"
|
|
19
|
+
|
|
20
|
+
s.dependency "Radar", "#{s.version}"
|
|
21
|
+
|
|
22
|
+
install_modules_dependencies(s)
|
|
23
|
+
end
|
|
@@ -143,7 +143,7 @@ class RadarModule(reactContext: ReactApplicationContext) :
|
|
|
143
143
|
override fun initialize(publishableKey: String, fraud: Boolean): 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", "3.
|
|
146
|
+
editor.putString("x_platform_sdk_version", "3.30.0-beta.0")
|
|
147
147
|
editor.apply()
|
|
148
148
|
|
|
149
149
|
Radar.initialize(reactApplicationContext, publishableKey, radarReceiver, Radar.RadarLocationServicesProvider.GOOGLE, fraud, null, radarInAppMessageReceiver, currentActivity)
|
|
@@ -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", "3.
|
|
105
|
+
editor.putString("x_platform_sdk_version", "3.30.0-beta.0");
|
|
106
106
|
editor.apply();
|
|
107
107
|
Radar.initialize(getReactApplicationContext(), publishableKey, receiver, Radar.RadarLocationServicesProvider.GOOGLE, fraud, null, inAppMessageReceiver, getCurrentActivity());
|
|
108
108
|
if (fraud) {
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.30.0-beta.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 = '3.
|
|
6
|
+
exports.VERSION = '3.30.0-beta.0';
|
package/ios/RNRadar.h
CHANGED
package/ios/RNRadar.mm
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
#import <CoreLocation/CoreLocation.h>
|
|
4
4
|
#import <React/RCTConvert.h>
|
|
5
5
|
|
|
6
|
+
static NSString *_publishableKey = nil;
|
|
7
|
+
|
|
6
8
|
@implementation RNRadar {
|
|
7
9
|
CLLocationManager *locationManager;
|
|
8
10
|
RCTPromiseResolveBlock permissionsRequestResolver;
|
|
@@ -185,8 +187,9 @@ RCT_EXPORT_MODULE()
|
|
|
185
187
|
}
|
|
186
188
|
|
|
187
189
|
RCT_EXPORT_METHOD(initialize:(NSString *)publishableKey fraud:(BOOL)fraud) {
|
|
190
|
+
_publishableKey = publishableKey;
|
|
188
191
|
[[NSUserDefaults standardUserDefaults] setObject:@"ReactNative" forKey:@"radar-xPlatformSDKType"];
|
|
189
|
-
[[NSUserDefaults standardUserDefaults] setObject:@"3.
|
|
192
|
+
[[NSUserDefaults standardUserDefaults] setObject:@"3.30.0-beta.0" forKey:@"radar-xPlatformSDKVersion"];
|
|
190
193
|
[Radar initializeWithPublishableKey:publishableKey];
|
|
191
194
|
}
|
|
192
195
|
|
|
@@ -259,11 +262,11 @@ RCT_EXPORT_METHOD(setAnonymousTrackingEnabled:(BOOL)enabled) {
|
|
|
259
262
|
}
|
|
260
263
|
|
|
261
264
|
RCT_EXPORT_METHOD(getHost:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) {
|
|
262
|
-
resolve(
|
|
265
|
+
resolve(@"https://api.radar.io");
|
|
263
266
|
}
|
|
264
267
|
|
|
265
268
|
RCT_EXPORT_METHOD(getPublishableKey:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) {
|
|
266
|
-
resolve(
|
|
269
|
+
resolve(_publishableKey);
|
|
267
270
|
}
|
|
268
271
|
|
|
269
272
|
RCT_EXPORT_METHOD(getPermissionsStatus:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject) {
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>AvailableLibraries</key>
|
|
6
|
+
<array>
|
|
7
|
+
<dict>
|
|
8
|
+
<key>BinaryPath</key>
|
|
9
|
+
<string>RadarSDK.framework/RadarSDK</string>
|
|
10
|
+
<key>DebugSymbolsPath</key>
|
|
11
|
+
<string>dSYMs</string>
|
|
12
|
+
<key>LibraryIdentifier</key>
|
|
13
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
14
|
+
<key>LibraryPath</key>
|
|
15
|
+
<string>RadarSDK.framework</string>
|
|
16
|
+
<key>SupportedArchitectures</key>
|
|
17
|
+
<array>
|
|
18
|
+
<string>arm64</string>
|
|
19
|
+
<string>x86_64</string>
|
|
20
|
+
</array>
|
|
21
|
+
<key>SupportedPlatform</key>
|
|
22
|
+
<string>ios</string>
|
|
23
|
+
<key>SupportedPlatformVariant</key>
|
|
24
|
+
<string>simulator</string>
|
|
25
|
+
</dict>
|
|
26
|
+
<dict>
|
|
27
|
+
<key>BinaryPath</key>
|
|
28
|
+
<string>RadarSDK.framework/RadarSDK</string>
|
|
29
|
+
<key>DebugSymbolsPath</key>
|
|
30
|
+
<string>dSYMs</string>
|
|
31
|
+
<key>LibraryIdentifier</key>
|
|
32
|
+
<string>ios-arm64</string>
|
|
33
|
+
<key>LibraryPath</key>
|
|
34
|
+
<string>RadarSDK.framework</string>
|
|
35
|
+
<key>SupportedArchitectures</key>
|
|
36
|
+
<array>
|
|
37
|
+
<string>arm64</string>
|
|
38
|
+
</array>
|
|
39
|
+
<key>SupportedPlatform</key>
|
|
40
|
+
<string>ios</string>
|
|
41
|
+
</dict>
|
|
42
|
+
</array>
|
|
43
|
+
<key>CFBundlePackageType</key>
|
|
44
|
+
<string>XFWK</string>
|
|
45
|
+
<key>XCFrameworkFormatVersion</key>
|
|
46
|
+
<string>1.0</string>
|
|
47
|
+
</dict>
|
|
48
|
+
</plist>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
+
<string>English</string>
|
|
7
|
+
<key>CFBundleIdentifier</key>
|
|
8
|
+
<string>com.apple.xcode.dsym.io.radar.sdk</string>
|
|
9
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
10
|
+
<string>6.0</string>
|
|
11
|
+
<key>CFBundlePackageType</key>
|
|
12
|
+
<string>dSYM</string>
|
|
13
|
+
<key>CFBundleSignature</key>
|
|
14
|
+
<string>????</string>
|
|
15
|
+
<key>CFBundleShortVersionString</key>
|
|
16
|
+
<string>3.25.2</string>
|
|
17
|
+
<key>CFBundleVersion</key>
|
|
18
|
+
<string>1</string>
|
|
19
|
+
</dict>
|
|
20
|
+
</plist>
|