Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Release包精简x86架构 #21

Open
hushenghao opened this issue Dec 13, 2023 · 2 comments
Open

Android Release包精简x86架构 #21

hushenghao opened this issue Dec 13, 2023 · 2 comments

Comments

@hushenghao
Copy link

除模拟器以外,Android平台已经没有x86架构的设备,可以只保留arm架构即可。

通过精简架构可以缩减APK大小30%左右
image

@rwecho
Copy link
Owner

rwecho commented Dec 13, 2023

搜了下, 暂时还没有找到方法来做这个事情, 另外如果是 aab的话, 不用考虑包的大小, 但是apk。

现在 appcenter 是用apk的。

@hushenghao
Copy link
Author

hushenghao commented Dec 25, 2023

ref: dotnet/maui#14646
ref: dotnet/maui#19210
这个是什么配置

<RuntimeIdentifiers Condition="$(TargetFramework.Contains('-android'))">android-arm;android-arm64;android-x86;android-x64</RuntimeIdentifiers>

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

No branches or pull requests

2 participants