-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android variant release not working #223
Comments
It was just a proguard issue. Resolved by adding this line to proguard-rules :
|
@sodaoud does |
@YarekTyshchenko |
I am having the same issue, but even after configuring everything as in the docs, it just don't work here :( I see that even generates the resource xml file with the correct values in the output folder, but on react native code the Config object is completely empty |
Same situation like @vitorreis mentioned: run-android (not release mode), generated.xml contains my env values, but object in runtime is empty... For ios it works fine. |
@frankiewiczkamil I couldn't get it working, so in the end I used the library: https://github.com/zetachang/react-native-dotenv |
I've had the same problem, setting proguard-rules didn't help, because I had proguard already disabled. what helped was setting a fixed
hope this helps |
I changed the original |
I really don't get the .env:
or
|
I've had the same problem. Solved by @krystofbe solution. Remember to remove resValue of your |
I have a project with multiple flavors the build.gradle file looks like this
in the debug mode everything works fine, and each flavor get its specific config.
but in release mode the .env file is not loaded and I get empty values, even though this line appears in the terminal
I also tried this starting the build using this command
ENVFILE=.env.flavorx ./gradlew assembleFlavorxRelease
and the result is similar
any suggestions ?
The text was updated successfully, but these errors were encountered: