numandev1 / react-native-keys

🔐 Protected .ENVs variables in React Native 🚀✨
MIT License
314 stars 28 forks source link

Secure keys not available after neabling proguard #83

Closed talaikis closed 1 month ago

talaikis commented 1 month ago

Current behavior

Having proguard -keep class com.package.BuildConfig { *; } works only for public keys. Enqabling proguard, secure keys are not available. Otherwise than that everything works with proguard disabled.

Expected behavior

Should work with proguard enabled.

Platform

React Native Version

0.75.5

React Native Compressor Version

-

Reproducible Steps And Demo

  1. add -keep class com.package.BuildConfig { *; } to proguard rules
  2. enable proguard
  3. build release apk (Windows OS)
talaikis commented 1 month ago

Closing as duplicate of https://github.com/numandev1/react-native-keys/issues/71