feat: allow narrowing release ABIs - #7
Open
Windsland52 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更
build.releaseAbi,可在local.properties中按逗号配置arm64-v8a/x86_64build.releaseAbi也会被 release 派生的 baseline profile / benchmark 变体继承,使性能测量保持与实际发布形态一致。背景
PI 项目可能只提供单 ABI 的 MaaFramework 和 agent runtime。此前 release 外壳固定包含双 ABI,会让 APK 在另一架构设备上可安装,但运行时因缺少对应 framework/agent 而失败。这个开关允许项目生成真正的单 ABI release。
验证
.\gradlew.bat :app:testDebugUnitTest :app:assembleReleasebuild.releaseAbi=arm64-v8a:release APK 仅包含lib/arm64-v8alib/arm64-v8a和lib/x86_64build.releaseAbi=armeabi-v7a:配置阶段按预期失败并报告支持列表pnpm check完整
.\gradlew.bat build仍会在既有的:semi-icons:verifyReleaseResources失败(drawable 引用的attr/colorControlNormal在 library resource verification 中不可解析);本次涉及的 app 单测、release 构建和 R8 keep 校验均通过。