-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from wtto00/0.0.2
New version: 0.0.2-alpha
- Loading branch information
Showing
22 changed files
with
732 additions
and
81 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# Android 适配指南 | ||
|
||
## 开发环境要求 | ||
|
||
参见 [Requiement Android App](../guide/requirement.html#android-app)。 | ||
|
||
## 运行打包要求 | ||
|
||
- 需要在 `manifest.json` 中配置 `app-plus.distribute.android.dcloud_appkey`。[appkey 申请](https://nativesupport.dcloud.net.cn/AppDocs/usesdk/appkey.html)。 | ||
- 需要配置 [签名](../config/#keystore-path)。 | ||
|
||
## uni 一键登录 | ||
|
||
使用 `uni一键登录` 模块的,需要在 `manifest.json` 中配置 `app-plus.distribute.sdkConfigs.oauth.univerify.appid`。 | ||
|
||
## Facebook 登录 | ||
|
||
使用 `Facebook登录` 模块的,如果要上架 Google Play,需要在 `manifest.json` 中配置 `app-plus.distribute.sdkConfigs.oauth.facebook.permission_ad_remove` 为 `true`。 | ||
|
||
## 友盟统计 | ||
|
||
使用 `友盟统计` 模块的,如果要上架 Google Play,需要在 `manifest.json` 中配置 `app-plus.distribute.sdkConfigs.statics.umeng.google_play` 为 `true`。 | ||
|
||
## 消息推送 | ||
|
||
使用 `消息推送` 模块的,有原来的在 `开发者后台->unipush->配置管理->应用管理` 中配置,需要在 `manifest.json` 中添加如下配置: | ||
|
||
```jsonc | ||
{ | ||
"app-plus": { | ||
"distribute": { | ||
"sdkConfigs": { | ||
"push": { | ||
"unipush": { | ||
"appid": "", | ||
"appkey": "", | ||
"appsecret": "", | ||
"hms": { | ||
"appid": "", | ||
"config": "" | ||
}, | ||
"oppo": { | ||
"appkey": "", | ||
"appsecret": "" | ||
}, | ||
"vivo": { | ||
"appid": "", | ||
"appkey": "" | ||
}, | ||
"mi": { | ||
"appid": "", | ||
"appkey": "" | ||
}, | ||
"meizu": { | ||
"appid": "", | ||
"appkey": "" | ||
}, | ||
"honor": { | ||
"appid": "" | ||
}, | ||
"fcm": { | ||
"serverkey": "", | ||
"channelid": "", | ||
"config_ios": "", | ||
"config_android": "" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
``` | ||
|
||
## 高德地图 | ||
|
||
如果是在 `nvue` 页面中使用的高德地图,需要在 `manifest.json` 中配置 `app-plus.distribute.sdkConfigs.maps.amap.nvue` 为 `true`。 | ||
|
||
## 语音输入 | ||
|
||
使用 `语音输入` 模块的,需要在 `manifest.json` 中配置中,添加如下配置: | ||
|
||
```json | ||
{ | ||
"app-plus": { | ||
"distribute": { | ||
"sdkConfigs": { | ||
"speech": { | ||
"baidu": { | ||
"__platform__": ["android", "ios"], | ||
"appid_android": "", | ||
"apikey_android": "", | ||
"secretkey_android": "", | ||
"appid_ios": "", | ||
"apikey_ios": "", | ||
"secretkey_ios": "" | ||
}, | ||
"xunfei": { | ||
"appid": "" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
``` |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,178 @@ | ||
# 构建打包 | ||
|
||
使用 `uniapp build` 构建打包特定的平台。 | ||
|
||
## 帮助信息 | ||
|
||
```bash | ||
uniapp help build | ||
``` | ||
|
||
``` | ||
Usage: uniapp build <platform> | ||
打包给定的平台 | ||
Arguments: | ||
platform 要打包的平台: android,ios,h5,mp-weixin... | ||
Options: | ||
--no-open 不自动打开 | ||
--mode <mode> vite 环境模式 | ||
--bundle <bundle> 打包产物: aab,apk(默认) | ||
--device <device> 运行到给定的设备上 | ||
-h, --help 帮助信息 | ||
示例: | ||
uniapp build android --bundle aab | ||
uniapp build ios | ||
uniapp build mp-weixin | ||
``` | ||
|
||
## --no-open | ||
|
||
同 [运行参数--no-open](./run#no-open)。 | ||
|
||
- `H5` 平台此参数无效。 | ||
|
||
## --mode | ||
|
||
同 [运行参数--mode](./run#mode)。 | ||
|
||
## --device | ||
|
||
同 [运行参数--device](./run#device)。 | ||
|
||
## H5 | ||
|
||
```bash | ||
uniapp build h5 | ||
``` | ||
|
||
构建打包 `H5` 平台。 | ||
|
||
打包后的产物在目录 `dist/build/h5`。 | ||
|
||
## Android App | ||
|
||
```bash | ||
uniapp build android | ||
``` | ||
|
||
构建打包 `Android` 平台。 | ||
|
||
## iOS App | ||
|
||
```bash | ||
uniapp build ios | ||
``` | ||
|
||
🚧 WIP 正在开发中... | ||
|
||
## 鸿蒙 App | ||
|
||
```bash | ||
uniapp build harmony | ||
``` | ||
|
||
🚧 WIP 正在开发中... | ||
|
||
## 微信小程序 | ||
|
||
```bash | ||
uniapp build mp-weixin | ||
``` | ||
|
||
构建打包 `微信小程序` 平台。 | ||
|
||
打包后的产物在目录 `dist/build/mp-weixin`。 | ||
|
||
如果配置了 [WEIXIN_DEV_TOOL](../config/#weixin-dev-tool),则会自动打开开发者工具。 | ||
|
||
## 支付宝小程序 | ||
|
||
```bash | ||
uniapp build mp-alipay | ||
``` | ||
|
||
🚧 WIP 正在开发中... | ||
|
||
## 百度小程序 | ||
|
||
```bash | ||
uniapp build mp-baidu | ||
``` | ||
|
||
🚧 WIP 正在开发中... | ||
|
||
## 头条小程序 | ||
|
||
```bash | ||
uniapp build mp-toutiao | ||
``` | ||
|
||
🚧 WIP 正在开发中... | ||
|
||
## 飞书小程序 | ||
|
||
```bash | ||
uniapp build mp-lark | ||
``` | ||
|
||
🚧 WIP 正在开发中... | ||
|
||
## QQ 小程序 | ||
|
||
```bash | ||
uniapp build mp-qq | ||
``` | ||
|
||
🚧 WIP 正在开发中... | ||
|
||
## 快手小程序 | ||
|
||
```bash | ||
uniapp build mp-kuaishou | ||
``` | ||
|
||
🚧 WIP 正在开发中... | ||
|
||
## 京东小程序 | ||
|
||
```bash | ||
uniapp build mp-jd | ||
``` | ||
|
||
🚧 WIP 正在开发中... | ||
|
||
## 360 小程序 | ||
|
||
```bash | ||
uniapp build mp-360 | ||
``` | ||
|
||
🚧 WIP 正在开发中... | ||
|
||
## 小红书小程序 | ||
|
||
```bash | ||
uniapp build mp-xhs | ||
``` | ||
|
||
🚧 WIP 正在开发中... | ||
|
||
## 快应用 | ||
|
||
```bash | ||
uniapp build quickapp-union | ||
``` | ||
|
||
🚧 WIP 正在开发中... | ||
|
||
## 华为快应用 | ||
|
||
```bash | ||
uniapp build quickapp-huawei | ||
``` | ||
|
||
🚧 WIP 正在开发中... |
This file contains 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
Oops, something went wrong.