Skip to content

Commit

Permalink
Merge branch 'androidbuildsh-checks-for-wrong-build-type-droid-1719'
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Jan 9, 2025
2 parents b01de0b + 83c710c commit f008ce5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions android/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ PRODUCT_VERSION=$(cargo run -q --bin mullvad-version versionName)
echo "Building Mullvad VPN $PRODUCT_VERSION for Android"
echo ""

BUILD_TYPE="release"
GRADLE_BUILD_TYPE="release"
GRADLE_TASKS=(createOssProdReleaseDistApk createPlayProdReleaseDistApk)
BUILD_BUNDLE="no"
Expand All @@ -21,7 +20,6 @@ PLAY_PUBLISH_TASKS=()

while [ -n "${1:-""}" ]; do
if [[ "${1:-""}" == "--dev-build" ]]; then
BUILD_TYPE="debug"
GRADLE_BUILD_TYPE="debug"
GRADLE_TASKS=(createOssProdDebugDistApk)
BUNDLE_TASKS=(createOssProdDebugDistBundle)
Expand All @@ -46,7 +44,7 @@ if [[ "$GRADLE_BUILD_TYPE" == "release" ]]; then
fi
fi

if [[ "$BUILD_TYPE" == "release" ]]; then
if [[ "$GRADLE_BUILD_TYPE" == "release" ]]; then
if [[ "$PRODUCT_VERSION" == *"-dev-"* ]]; then
GRADLE_TASKS+=(createPlayDevmoleReleaseDistApk createPlayStagemoleReleaseDistApk)
BUNDLE_TASKS+=(createPlayDevmoleReleaseDistBundle createPlayStagemoleReleaseDistBundle)
Expand Down

0 comments on commit f008ce5

Please sign in to comment.