Introduction: After your application is developed, it needs to be packaged before it is put on the Android App Store. Here is a brief introduction to the packaging method.
Table of contents
- Preparation
- Configuration items
- Generate certificate
- Package configuration
Preparation
Before packaging, please ensure that your uniapp application compiled into the Android mobile phone simulator can run normally. APP packaging is divided into two platforms: Android and ios. The following is a brief introduction to the packaging method of Android. Due to local packaging problems, There are many, and the operation is relatively complicated, so I will omit it here. This time I mainly introduce the online packaging method.
Configuration items
Mainly manifest.json
for configuration; add the following content after opening the file.
Basic Information
Application name, description, version name, version number;
Icon configuration
Upload your app icons, suggestions 1024*1024
, then automatically generate all icons and replace them;
Start interface
Use the native privacy policy prompt box. This is very important. After checking, the configuration file will be automatically generated androidPrivacy.json
. The example is as follows:
Fill in the corresponding content and address according to your actual situation.
{
"version": "1.0.0",
"prompt": "template",
"title": "服务协议和隐私政策",
"message": " 请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/> 你可阅读<a href=\"\">《服务协议》</a>和<a href=\"\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
"buttonAccept": "同意并接受",
"buttonRefuse": "暂不同意",
"hrefLoader": "system|default",
"backToExit": "false",
"second": {
"title": "确认提示",
"message": " 进入应用前,你需先同意<a href=\"\">《服务协议》</a>和<a href=\"\">《隐私政策》</a>,否则将退出应用。",
"buttonAccept": "同意并继续",
"buttonRefuse": "退出应用"
},
"disagreeMode": {
"support":</