Skip to content

Commit

Permalink
Build stage and dev builds in build script
Browse files Browse the repository at this point in the history
This commit adds stagemole and devmole builds
in the android builds script. This includes
both bundles and apks.
  • Loading branch information
albin-mullvad committed Oct 20, 2023
1 parent 2865b64 commit 78302ff
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions build-apk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ echo ""

BUILD_TYPE="release"
GRADLE_BUILD_TYPE="release"
GRADLE_TASK="createOssProdReleaseDistApk"
BUNDLE_TASK="createPlayProdReleaseDistBundle"
GRADLE_TASKS=(createOssProdReleaseDistApk createPlayDevmoleReleaseDistApk createPlayStagemoleReleaseDistApk)
BUNDLE_TASKS=(createPlayProdReleaseDistBundle createPlayDevmoleReleaseDistBundle createPlayStagemoleReleaseDistBundle)
CARGO_ARGS="--release"
EXTRA_WGGO_ARGS=""
BUILD_BUNDLE="no"
Expand All @@ -25,13 +25,13 @@ while [ ! -z "${1:-""}" ]; do
if [[ "${1:-""}" == "--dev-build" ]]; then
BUILD_TYPE="debug"
GRADLE_BUILD_TYPE="debug"
GRADLE_TASK="createOssProdDebugDistApk"
BUNDLE_TASK="createOssProdDebugDistBundle"
GRADLE_TASKS=(createOssProdDebugDistApk)
BUNDLE_TASKS=(createOssProdDebugDistBundle)
CARGO_ARGS="--features api-override"
elif [[ "${1:-""}" == "--fdroid" ]]; then
GRADLE_BUILD_TYPE="fdroid"
GRADLE_TASK="createOssProdFdroidDistApk"
BUNDLE_TASK="createOssProdFdroidDistBundle"
GRADLE_TASKS=(createOssProdFdroidDistApk)
BUNDLE_TASKS=(createOssProdFdroidDistBundle)
EXTRA_WGGO_ARGS="--no-docker"
elif [[ "${1:-""}" == "--app-bundle" ]]; then
BUILD_BUNDLE="yes"
Expand Down Expand Up @@ -116,10 +116,10 @@ echo "Updating relays.json..."
cargo run --bin relay_list $CARGO_ARGS > build/relays.json

cd "$SCRIPT_DIR/android"
$GRADLE_CMD --console plain "$GRADLE_TASK"
$GRADLE_CMD --console plain "${GRADLE_TASKS[@]}"

if [[ "$BUILD_BUNDLE" == "yes" ]]; then
$GRADLE_CMD --console plain "$BUNDLE_TASK"
$GRADLE_CMD --console plain "${BUNDLE_TASKS[@]}"
fi

echo "**********************************"
Expand Down

0 comments on commit 78302ff

Please sign in to comment.