Skip to content

Commit

Permalink
fix(#50): add proguard rules and directive in build.gradle (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
mateogianolio authored Jun 7, 2024
1 parent 38bc9da commit e003a3e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions android/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -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.** {*;}
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e003a3e

Please sign in to comment.