You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gradlew will build all 3 flavors in release type. and it will also build all 3 flavors for androidTest in release type. This takes around 10mins on my machine and a little longer on circleci.
To speed this up we are generally only building specific build variants DevelopDebug, DevelopRelease etc.
To build a detox build we would do:
Add more parameters to the android_build command. This allows us to be more explicit with our build variants and it terms will save minutes on circleCI by only specifying the build variantes that we really needs
fixesreact-native-community#33
@compojoom Our project also has variants made of flavorBuild (4 flavors and 2 builds so 8 variants). To make this work, I copied over a lot of this orb's code only to change the ./gradlew assemble... shell command to accept our desired variant. Bit of a nuisance, but it seems to be working fine.
Currently the Build Android APK step looks like this:
In our project we have 3 flavors(develop, staging, production) and 2 build types (debug and release).
if I assemble the app with
gradlew will build all 3 flavors in release type. and it will also build all 3 flavors for androidTest in release type. This takes around 10mins on my machine and a little longer on circleci.
To speed this up we are generally only building specific build variants DevelopDebug, DevelopRelease etc.
To build a detox build we would do:
this way we only generate developRlease androidTest/developRelease - this is 3 times faster as we generate 3 times less apks that we don't need.
Because of that I would like to propose different job parameters:
assemble_build_type
,assemble_detox_build_type
andtest_build_type
.This way one could call rn/android_build like this:
It is a breaking change, but it would also allow for greater flexibility of the build step.
The text was updated successfully, but these errors were encountered: