play-services-oss-licenses:17.4.0 increases app size by 4MB compared to 17.3.0
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- android
調査の方向性
app/build.gradle の依存関係と、buildscript 内の OSS Licenses Gradle プラグインから始めます。minification と resource shrinking を有効にした状態で、play-services-oss-licenses 17.3.0 と 17.4.0 の release APK/AAB のサイズ比較を再現します。~4 MB の増加の原因を特定し、release artifact に原因不明のリグレッションがなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Kotlin
- スター
- 526
- フォーク
- 170
- 平均マージ
- 1日 7時間
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
google/play-services-plugins のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
google/play-services-plugins#466 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
google/play-services-plugins#387 · リアクション 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
google/play-services-plugins#343 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
google/play-services-plugins#303 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
google/play-services-plugins#302 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
google/play-services-plugins の issue をすべて見る
似ている issue
-
feature
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
leonlatsch/Photok#816 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
owenlejeune/ArrMatey#417 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
orgzly-revived/orgzly-android-revived#1120 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Tiqr/eduid-app-android#277 ·
-
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信