1
0
forked from GRIN/grim

android.sh: fix flavor default ([[ $flavor ]], not literal 'flavor')

The empty-flavor test compared the literal string 'flavor', so a no-flavor
invocation left the APK output path as apk//debug/app--debug.apk and the
rename failed. Default to 'local' correctly.
This commit is contained in:
2ro
2026-06-15 20:20:15 -04:00
parent 3eff81e18d
commit cc59be0834
+1 -1
View File
@@ -61,7 +61,7 @@ function build_lib() {
### Build application
function build_apk() {
flavor=$3
[[ flavor == "" ]] && flavor="local"
[[ -z "$flavor" ]] && flavor="local"
cd android || exit 1
./gradlew clean
# Build signed apk if keystore exists