Skip to content

进一步兼容 AGP 8.9.0#1417

Merged
shifujun merged 1 commit intoTencent:masterfrom
yanglw:master-shrinkResources
Mar 3, 2026
Merged

进一步兼容 AGP 8.9.0#1417
shifujun merged 1 commit intoTencent:masterfrom
yanglw:master-shrinkResources

Conversation

@yanglw
Copy link
Contributor

@yanglw yanglw commented Feb 14, 2026

当在 AGP 8.9.0 版本中开启 shrinkResources 功能后,ap_ 文件中的 AndroidManifest.xml 为新的二进制格式,且资源文件引用也不会改为 ID 。新的方案使用合并后的 AndroidManifest.xml 和 R.txt 生成 PluginManifest 文件。

新的方案仅在 AGP 8 以及以上版本中使用。

@shifujun
Copy link
Collaborator

提交日志建议修改为

feat(core.gradle-plugin): 支持AGP 8后开启shrinkResources

当在 AGP 8.9.0 版本中开启 shrinkResources 功能后,ap_ 文件中的 AndroidManifest.xml 为新的二进制格式,且资源文件引用也不会改为 ID 。新的方案使用合并后的 AndroidManifest.xml 和 R.txt 生成 PluginManifest 文件。

新的方案自动应用在 AGP 8 且开启shrinkResources时。

@yanglw yanglw force-pushed the master-shrinkResources branch from 1933b94 to bdd5552 Compare February 15, 2026 06:36
@tencent-adm
Copy link
Member

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@yanglw yanglw force-pushed the master-shrinkResources branch from bdd5552 to 1a87351 Compare February 15, 2026 06:39
@yanglw
Copy link
Contributor Author

yanglw commented Feb 15, 2026

提交日志建议修改为

feat(core.gradle-plugin): 支持AGP 8后开启shrinkResources

当在 AGP 8.9.0 版本中开启 shrinkResources 功能后,ap_ 文件中的 AndroidManifest.xml 为新的二进制格式,且资源文件引用也不会改为 ID 。新的方案使用合并后的 AndroidManifest.xml 和 R.txt 生成 PluginManifest 文件。

新的方案自动应用在 AGP 8 且开启shrinkResources时。

OK

@yanglw yanglw force-pushed the master-shrinkResources branch from 1a87351 to 43c9a1e Compare March 1, 2026 07:30
@shifujun
Copy link
Collaborator

shifujun commented Mar 2, 2026

@yanglw 方便再看下自动化检查报的格式化问题吗?要是不好搞,剩下的交给我也行。

@yanglw yanglw force-pushed the master-shrinkResources branch from 43c9a1e to d239b1f Compare March 2, 2026 14:57
当在 AGP 8.9.0 版本中开启 shrinkResources 功能后,ap_ 文件中的 AndroidManifest.xml 为新的二进制格式,且资源文件引用也不会改为 ID 。新的方案使用合并后的 AndroidManifest.xml 和 R.txt 生成 PluginManifest 文件。

新的方案自动应用在 AGP 8 且开启shrinkResources时。
@shifujun shifujun force-pushed the master-shrinkResources branch from d239b1f to 469d8c0 Compare March 3, 2026 05:35
@shifujun shifujun merged commit 05c213b into Tencent:master Mar 3, 2026
11 checks passed
@yanglw yanglw deleted the master-shrinkResources branch March 3, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants