google / google/play-services-plugins

play-services-oss-licenses:17.4.0 increases app size by 4MB compared to 17.3.0

Open
#362 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
526
Forks
167
Avg merge
7d 21h
Merged PRs (30d)
2

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:
1. In app/build.gradle, set the dependency to com.google.android.gms:play-services-oss-licenses:17.3.0.
2. Build a release APK/AAB (with minify + shrink resources enabled).
3. Record the output size.
4. Change the dependency to com.google.android.gms:play-services-oss-licenses:17.4.0.
5. Rebuild the release APK/AAB.
6. 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.