Skip to content

Debloat your Android TV, install apps, browse and transfer files on it, all from your phone. Just 3 MB, no tracking, no root, no PC.

Raise the release APK size gate to 3.5 MB

jesse-agent-23211cc555671ba
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
index c7b8795..0849455 100644
--- a/app/build.gradle.kts
+++ b/app/build.gradle.kts
@@ -127,7 +127,7 @@ val dexLabelHelper by tasks.registering(DexLabelHelper::class) {
outputDir = layout.buildDirectory.dir("generated/labelHelper/assets")
}
-/** Fails the build when a release APK grows past the 3 MB budget. CI's `build` and release.yml both assemble release. */
+/** Fails the build when a release APK grows past the 3.5 MB budget. CI's `build` and release.yml both assemble release. */
abstract class CheckApkSize : DefaultTask() {
@get:InputFiles abstract val apkDir: DirectoryProperty
@get:Input abstract val maxBytes: Property<Long>
@@ -152,7 +152,7 @@ androidComponents {
val name = variant.name.replaceFirstChar { it.uppercase() }
val sizeCheck = tasks.register<CheckApkSize>("check${name}ApkSize") {
apkDir = variant.artifacts.get(SingleArtifact.APK)
- maxBytes = 3_000_000L
+ maxBytes = 3_500_000L
}
afterEvaluate { tasks.named("assemble$name") { finalizedBy(sizeCheck) } }
}