-
Notifications
You must be signed in to change notification settings - Fork 661
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 Release problem with .env #655
Comments
Yes, I just built with First of all, you mention it shows a white screen when building release. How are you sure your root problem is due to this library? If you can answer that with confidence, My suggestion would be to go back to your last good commit (the one before you added all these changes) and try to setup react-native-config there from scratch. That way you can be sure none of these unrelated changes are causing any conflicts. Once you have a release build working, add the other changes, until it breaks. |
@Mr0cket thanks for your contribution, the problem was |
Oh yeah... that sounds like a tough change to debug. I believe the new gradle plugin |
It was... especially when building the first |
How to use it with eas build |
@Irfanwani, I've it working on my app, with |
I went through the docs quite throughly:
Also, through many of the issues and its comments, such us:
and it still doesn't work on release by simply showing a white screen :( the app works fine on
Android
simulator,Android
physical device withUSB debugging
(I can seeReading env from: .env
),iOS
simulator/physical device on localhost/release.I do have a problem with obtaining
Google Maps API Key
from the.env
in the@string/GOOGLE_MAPS_API
/AndroidManifest.xml
, which causes the white screen. I do build usingexpo build:android
instead ofeas build --platform android
due to https://stackoverflow.com/questions/71909541/android-gradle-plugin-requires-java-11-to-run-you-are-currently-using-java-1-8My commit with all the changes required for all those configs: tamotam-com/tamotam-app@49cb29a
Therefore, a question, is the package still working? Anyone was able to do so recently?
My versions of packages:
classpath('com.android.tools.build:gradle:7.1.1'
"react-native": "0.64.3"
"react-native-config": "^1.4.5"
The text was updated successfully, but these errors were encountered: