Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
leksyib95926y@seraphimsystems by adding it in the package.json as a script yeah? it's also stressful to do that in every single rn project i work on
-
Add it as a shell function or alias to your .bashrc (or whatever shell you use), that way it's project independent! ^_^
-
@Zaphod65 that's what I meant, or write a script that just prompts you for something, alias would be better if it's an identical command everytime.
-
@leksyib well, writing it once for each project creation is still a lot easier than typing it for each build
-
donuts238486yUh... wtf... I only need to type 2 lines to generate my release app
I think the Gradle job is like generateRelease or something. Then just copy from the app folder.
I have the steps in a MD file but I'm going to sleep now -
leksyib95926y@billgates I've tried that countless number of times, it bundles dev mode and still looks for a local server
I love react native but I hate the fact that I have to type
cd android && ./gradlew cleanBuildCache && cd .. && react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ && cd android && ./gradlew assembleDebug
just to generate an apk file.
rant