-
Notifications
You must be signed in to change notification settings - Fork 158
Description
Describe the bug
Upgrading com.google.android.gms:play-services-oss-licenses from 17.3.0 to 17.4.0 increases the final app size by ~4 MB, even though the library only provides a simple OSS licenses Activity. The project already enables minification and resource shrinking in release builds, yet the size increase remains. The dependency is declared in app/build.gradle, and the OSS Licenses Gradle plugin is applied in the buildscript.
To Reproduce
Steps to reproduce the behavior:
- In app/build.gradle, set the dependency to com.google.android.gms:play-services-oss-licenses:17.3.0.
- Build a release APK/AAB (with minify + shrink resources enabled).
- Record the output size.
- Change the dependency to com.google.android.gms:play-services-oss-licenses:17.4.0.
- Rebuild the release APK/AAB.
- Compare sizes — the app increases by ~4 MB.
Expected behavior
Updating the OSS licenses library should not inflate the final app size by ~4 MB for a simple visual UI update. Either the size impact should be minimal, or the OSS data should be more shrinkable in release builds. (Project already uses resource/code shrinking.)
Desktop:
- Gradle version: com.android.tools.build:gradle:9.0.0
- Android Studio version: Android Studio Otter 3 Feature Drop | 2025.2.3
- Plugin name and version: OSS Licenses Gradle plugin 0.10.10.
- Library dependency: play-services-oss-licenses 17.4.0 (current).
Additional context
The project already enables minifyEnabled true and shrinkResources true for release builds, so the size regression appears to come from non‑shrinkable resources bundled in the library rather than unused code or resources.