Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Update signed-apk-android.md #227

Open
wants to merge 2 commits into
base: stable
Choose a base branch
from
Open

Update signed-apk-android.md #227

wants to merge 2 commits into from

Conversation

GYunZhi
Copy link

@GYunZhi GYunZhi commented Mar 13, 2018

更新针对设备不同的CPU架构生成APK以减小APK文件的大小,修改启用Proguard来减小APK文件的大小

更新针对设备不同的CPU架构生成APK以减小APK文件的大小,修改启用Proguard来减小APK文件的大小
@@ -91,37 +92,35 @@ $ cd android && ./gradlew installRelease

> 在debug和release版本间来回切换安装时可能会报错签名不匹配,此时需要先卸载前一个版本再尝试安装。

### Split APKs by ABI to reduce file size
### 针对设备不同的CPU架构生成APK以减小APK文件的大小
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

设备两字好像没必要


``` diff
你可以把这上面打包生成的两个APK都上传到支持对用户设备CPU架构定位的应用程序商店,例如Google Play和Amazon AppStore,用户将自动获得相应的APK。如果您想上传到其他市场,例如APKFiles(不支持一个应用有多个APK文件),可以修改下面的代码(下面代码的修改会覆盖前面的设置),来生成适用不同CPU架构的通用APK。
```
- universalApk false // If true, also generate a universal APK
+ universalApk true // If true, also generate a universal APK
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

注释最好也翻译下

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的,我这边修改一下

对注释进行补充翻译
你可以把这上面打包生成的两个APK都上传到支持对用户设备CPU架构定位的应用程序商店,例如Google Play和Amazon AppStore,用户将自动获得相应的APK。如果您想上传到其他市场,例如APKFiles(不支持一个应用有多个APK文件),可以修改下面的代码,来生成适用不同CPU架构的通用APK。
```
- universalApk false
+ universalApk true // 设置为true时,会覆盖前面的设置,生成适用不同CPU架构的通用APK
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里说得不够清楚。实际是在生成不同架构的apk同时,额外(also)再生成一个包含各架构的通用APK

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants