Multi env on Android native building #257
Unanswered
JameDodgers
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Here's a bit about how build variants work: https://developer.android.com/studio/build/build-variants Here's a bit about how signing works https://reactnative.dev/docs/signed-apk-android#adding-signing-config-to-your-apps-gradle-config Are you struggling with use of dotenv? I can tell you a bit how that works. I noticed you are using XCode, so I'll assume you're on MacOS. To choose a specific environment, use |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! A few days ago I left an question here and I'm posting it again just to not be forgotten.
I have a CI that builds for different environments using Fastlane actions that under the hood use gradle and xcodebuild. As I've noticed looking over another issues, the Xcode translates the configuration names in the respective environments and so the right .env is picked up while building for a certain configuration in my Xcode project.
On the other hand the same does not happen with Android. I saw that is possible to achieve this behavior changing the build.gradle, but I don't know how to make the build type choose a specific .env file. Could you please provide an example on how to do it?
Sorry to bother, I really need to get this and wouldn't like to resort to another library as this one seems to fully meet my other needs.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions