Skip to content
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

How to build android release but with JS dev flag enabled? #2327

Open
aljidy opened this issue Mar 13, 2024 · 2 comments
Open

How to build android release but with JS dev flag enabled? #2327

aljidy opened this issue Mar 13, 2024 · 2 comments
Labels
question Further information is requested

Comments

@aljidy
Copy link

aljidy commented Mar 13, 2024

Ask your Question

I need to debug my release build but I'm unsure how to pass the dev flag as true to JS.

It may be in the bundle step this is set and there is a --dev flag here https://github.com/facebook/react-native/tree/main/packages/community-cli-plugin#options-1 however Im unsure how I could set that if I were using the run-android command.

@aljidy aljidy added the question Further information is requested label Mar 13, 2024
@richao03
Copy link

running into the same issue, i am building via ./gradlew assembleQa in my metro.config.js process.env.NODE_ENV is reading as development but by the time it gets into cli-plugin-metro args.dev becomes false, and everywhere down the pipe line environment becomes production and __DEV__ becomes false, am i missing a flag somewhere?

@liamjones
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants