-
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] Getting correct .env with productFlavors #602
Comments
I had my flavors like:
and envConfigFile like this
and successfully got the proper .env (Idk if it was by the penultimate, or last one) |
@moonjava2005 Hello, did you solve this issue? I'm strugging with this as well. I have these configuration.
Even if I speficy the ENVFILE in the script as below
|
My issue #616 may be related. |
If you're using defaultConfig {
// ...
// required for react-native-config
resValue "string", "build_config_package", "com.package_name_with_no_suffix"
} |
Thanks @david-allison it worked for me |
This comment has been minimized.
This comment has been minimized.
You should try this |
Dear all,
I did as the document with .env file picker like this
And I setup my project with flavors like this
As I expect when I make build with release, the flavor usRelease and asiaRelease will pick the ".env.production". However, it always picks the ".env" file
Could you guys help me what's going wrong in this case?
Thanks
The text was updated successfully, but these errors were encountered: