Skip to content

fix(core.gradle-plugin): 修复AGP 3.1.0及更高版本的兼容性#765

Merged
shifujun merged 1 commit into
Tencent:masterfrom
shifujun:757
Jan 11, 2022
Merged

fix(core.gradle-plugin): 修复AGP 3.1.0及更高版本的兼容性#765
shifujun merged 1 commit into
Tencent:masterfrom
shifujun:757

Conversation

@shifujun
Copy link
Copy Markdown
Collaborator

主要以黑盒自动化测试驱动本次代码修复。详见:
projects/test/gradle-plugin-agp-compat-test/README.md

AGPCompatImpl更理想的方式是按AGP版本拆分成多个文件,
但考虑到AGP版本号获取的是一个字符串,而且业务有可能使用一些beta等版本的AGP,
版本号匹配风险比较大。所以目前实现方式是try-catch的方式。

移除pom中对com.android.tools.build依赖的声明。
这个声明会把AGP依赖带入构建项目中,可能会导致项目声明的AGP版本不生效。

fix #757

@shifujun shifujun force-pushed the 757 branch 2 times, most recently from a755eda to c1e7eaa Compare January 10, 2022 10:24
主要以黑盒自动化测试驱动本次代码修复。详见:
projects/test/gradle-plugin-agp-compat-test/README.md

AGPCompatImpl更理想的方式是按AGP版本拆分成多个文件,
但考虑到AGP版本号获取的是一个字符串,而且业务有可能使用一些beta等版本的AGP,
版本号匹配风险比较大。所以目前实现方式是try-catch的方式。

移除pom中对com.android.tools.build依赖的声明。
这个声明会把AGP依赖带入构建项目中,可能会导致项目声明的AGP版本不生效。

fix Tencent#757
@shifujun shifujun force-pushed the 757 branch 2 times, most recently from f5c42c8 to f821026 Compare January 11, 2022 06:35
@shifujun shifujun merged commit 5a3227b into Tencent:master Jan 11, 2022
@shifujun shifujun deleted the 757 branch January 11, 2022 07:07
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.

AGP 3.4.2适配

1 participant