Skip to content

Commit bb38d3b

Browse files
FENCE-2455 Add proguard rules (#407)
* add proguard rules * bump version to 3.23.4 * revert android newArchEnabled
1 parent 6b63972 commit bb38d3b

File tree

9 files changed

+13
-8
lines changed

9 files changed

+13
-8
lines changed

android/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ android {
4949
buildTypes {
5050
release {
5151
minifyEnabled false
52+
consumerProguardFiles "proguard-rules.pro"
5253
}
5354
}
5455

android/proguard-rules.pro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-dontwarn com.huawei.**
2+
3+
-dontwarn com.google.android.play.integrity.**
4+
-dontwarn com.google.android.play.core.integrity.**

android/src/newarch/java/com/radar/RadarModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class RadarModule(reactContext: ReactApplicationContext) :
143143
override fun initialize(publishableKey: String, fraud: Boolean): Unit {
144144
val editor = reactApplicationContext.getSharedPreferences("RadarSDK", Context.MODE_PRIVATE).edit()
145145
editor.putString("x_platform_sdk_type", "ReactNative")
146-
editor.putString("x_platform_sdk_version", "3.23.3")
146+
editor.putString("x_platform_sdk_version", "3.23.4")
147147
editor.apply()
148148

149149
Radar.initialize(reactApplicationContext, publishableKey, radarReceiver, Radar.RadarLocationServicesProvider.GOOGLE, fraud, null, radarInAppMessageReceiver, currentActivity)

android/src/oldarch/java/com/radar/RadarModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public void initialize(String publishableKey, boolean fraud) {
102102
this.fraud = fraud;
103103
SharedPreferences.Editor editor = getReactApplicationContext().getSharedPreferences("RadarSDK", Context.MODE_PRIVATE).edit();
104104
editor.putString("x_platform_sdk_type", "ReactNative");
105-
editor.putString("x_platform_sdk_version", "3.23.3");
105+
editor.putString("x_platform_sdk_version", "3.23.4");
106106
editor.apply();
107107
Radar.initialize(getReactApplicationContext(), publishableKey, receiver, Radar.RadarLocationServicesProvider.GOOGLE, fraud, null, inAppMessageReceiver, getCurrentActivity());
108108
if (fraud) {

example/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ios/RNRadar.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ - (void)didUpdateToken:(RadarVerifiedLocationToken *)token {
186186

187187
RCT_EXPORT_METHOD(initialize:(NSString *)publishableKey fraud:(BOOL)fraud) {
188188
[[NSUserDefaults standardUserDefaults] setObject:@"ReactNative" forKey:@"radar-xPlatformSDKType"];
189-
[[NSUserDefaults standardUserDefaults] setObject:@"3.23.3" forKey:@"radar-xPlatformSDKVersion"];
189+
[[NSUserDefaults standardUserDefaults] setObject:@"3.23.4" forKey:@"radar-xPlatformSDKVersion"];
190190
[Radar initializeWithPublishableKey:publishableKey];
191191
}
192192

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "React Native module for Radar, the leading geofencing and location tracking platform",
44
"homepage": "https://radar.com",
55
"license": "Apache-2.0",
6-
"version": "3.23.3",
6+
"version": "3.23.4",
77
"main": "dist/index.js",
88
"files": [
99
"dist",

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// This file contains the version of the react-native-radar package
22
// It should be updated to match the version in package.json
3-
export const VERSION = '3.23.3';
3+
export const VERSION = '3.23.4';

0 commit comments

Comments
 (0)