orbital-systems / react-native-esp-idf-provisioning

ESP IDF provisioning and custom data library for react-native
MIT License
24 stars 5 forks source link

Having proguard enabled interferes with this library #50

Closed mateogianolio closed 3 months ago

mateogianolio commented 7 months ago

I'm not sure what proguard does, but it interferes with this library and causes error when creating a session (e.g. before scan wifi list).

mateogianolio commented 7 months ago

If someone still needs this, try with this:

-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.** {*;}

Originally posted by @astimac in https://github.com/espressif/esp-idf-provisioning-android/issues/68#issuecomment-1627738744