Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

Launcher build: leave AndroidX's Kotlin metadata out of the APK (about 14 KB smaller)

Gathin237d79c04dc583
diff --git a/launcher/app/build.gradle b/launcher/app/build.gradle
index 833d445ed..7468f0953 100644
--- a/launcher/app/build.gradle
+++ b/launcher/app/build.gradle
@@ -25,6 +25,14 @@ android {
}
}
+ packagingOptions {
+ resources {
+ // Kotlin metadata pulled in by AndroidX's dependencies. This launcher is plain Java and never reads it;
+ // leaving it out saves about 14 KB of every install.
+ excludes += ['kotlin/**', 'META-INF/*.version', 'META-INF/*.kotlin_module', 'DebugProbesKt.bin']
+ }
+ }
+
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17