From e003a3e7290f8296979a0fd8606e007d2a9266b1 Mon Sep 17 00:00:00 2001 From: Mateo Gianolio Date: Fri, 7 Jun 2024 10:13:47 +0200 Subject: [PATCH] fix(#50): add proguard rules and directive in build.gradle (#58) --- android/build.gradle | 2 ++ android/proguard-rules.pro | 10 ++++++++++ example/ios/Podfile.lock | 4 ++-- 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 android/proguard-rules.pro diff --git a/android/build.gradle b/android/build.gradle index fa5e85d..d7f9167 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -60,7 +60,9 @@ android { minSdkVersion getExtOrIntegerDefault("minSdkVersion") targetSdkVersion getExtOrIntegerDefault("targetSdkVersion") buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() + consumerProguardFiles 'proguard-rules.pro' } + buildTypes { release { minifyEnabled false diff --git a/android/proguard-rules.pro b/android/proguard-rules.pro new file mode 100644 index 0000000..1c83a89 --- /dev/null +++ b/android/proguard-rules.pro @@ -0,0 +1,10 @@ +-dontwarn com.espressif.provisioning.** +-dontwarn espressif.** +-keep class com.espressif.provisioning.** {*;} +-keepclassmembers class com.espressif.provisioning.** {*;} +-keep class espressif.** {*;} +-keepclassmembers class espressif.** {*;} +-keep interface com.espressif.provisioning.** {*;} +-keep interface espressif.** {*;} +-keep public enum com.espressif.provisioning.** {*;} +-keep public enum espressif.** {*;} diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index bcf7a15..b7bd04e 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -939,7 +939,7 @@ PODS: - React-Mapbuffer (0.74.1): - glog - React-debug - - react-native-esp-idf-provisioning (0.2.14): + - react-native-esp-idf-provisioning (0.2.15): - DoubleConversion - ESPProvision (~> 2.1) - glog @@ -1463,7 +1463,7 @@ SPEC CHECKSUMS: React-jsitracing: 233d1a798fe0ff33b8e630b8f00f62c4a8115fbc React-logger: 7e7403a2b14c97f847d90763af76b84b152b6fce React-Mapbuffer: 11029dcd47c5c9e057a4092ab9c2a8d10a496a33 - react-native-esp-idf-provisioning: d9a3193f3c373926224a23e489c93c7c259b0f25 + react-native-esp-idf-provisioning: e760c8ce042aac5b32383c169a4c7a34de4b6c69 react-native-safe-area-context: 399a5859f6acbdf67f671c69b53113f535f3b5b0 React-nativeconfig: b0073a590774e8b35192fead188a36d1dca23dec React-NativeModulesApple: df46ff3e3de5b842b30b4ca8a6caae6d7c8ab09f