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 5 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 $@ install -C android/build/outputs/apk/debug/android-debug.apk $@
$(RELEASE_AAB): gradle-dependencies $(RELEASE_AAB): gradle-dependencies
@echo "Building release AAB"
(cd android && ./gradlew test bundleRelease) (cd android && ./gradlew test bundleRelease)
install -C ./android/build/outputs/bundle/release/android-release.aab $@ install -C ./android/build/outputs/bundle/release/android-release.aab $@
$(RELEASE_TV_AAB): gradle-dependencies $(RELEASE_TV_AAB): gradle-dependencies
@echo "Building TV release AAB"
(cd android && ./gradlew test bundleRelease_tv) (cd android && ./gradlew test bundleRelease_tv)
install -C ./android/build/outputs/bundle/release_tv/android-release_tv.aab $@ install -C ./android/build/outputs/bundle/release_tv/android-release_tv.aab $@

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

Loading…
Cancel
Save