android/gradle: separate release and release_tv (#447)

updates tailscale/corp#21644

release_tv should init with the release target or it doesn't
build the right thing.

Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
pull/448/head
Jonathan Nobels 4 months ago committed by GitHub
parent 2f59feef20
commit b9477c64a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -108,10 +108,12 @@ $(DEBUG_APK): gradle-dependencies
install -C android/build/outputs/apk/debug/android-debug.apk $@
$(RELEASE_AAB): gradle-dependencies
@echo "Building release AAB"
(cd android && ./gradlew test bundleRelease)
install -C ./android/build/outputs/bundle/release/android-release.aab $@
$(RELEASE_TV_AAB): gradle-dependencies
@echo "Building TV release AAB"
(cd android && ./gradlew test bundleRelease_tv)
install -C ./android/build/outputs/bundle/release_tv/android-release_tv.aab $@

@ -75,6 +75,7 @@ android {
}
release {
manifestPlaceholders.leanbackRequired = false
minifyEnabled true
shrinkResources true
@ -84,15 +85,8 @@ android {
'proguard-rules.pro'
}
release_tv {
initWith release
manifestPlaceholders.leanbackRequired = true
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile(
'proguard-android-optimize.txt'),
'proguard-rules.pro'
}
}

Loading…
Cancel
Save