Files
tongxunruanjian/mobile/android/app/README-agconnect.md
T
1d393f4f1e fix(mobile): 让华为 AGConnect 在 AGP 9 下能识别真实配置
放入 agconnect-services.json 后原插件坐标无法解析,且 1.9.1 不兼容 AGP 9。
映射到 agcp 1.9.5.301,Gradle 可按包名校验;该文件继续忽略不入库。

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-08-31 00:56:12 +08:00

21 lines
931 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 华为厂商通道配置文件
华为通道客户端依赖已接入。构建机需要一份本地文件:
`mobile/android/app/agconnect-services.json`
## 从哪里取得
1. 打开华为 [AppGallery Connect](https://developer.huawei.com/consumer/cn/service/josp/agc/index.html)
2. 选择与包名 `cn.solsum.jinxunda` 对应的应用
3. 项目设置 → 应用 → 下载 `agconnect-services.json`
4. 把文件放到本目录(与 `build.gradle.kts` 同级)
5. **不要提交进 Git**(文件含华为 client_secret)。仓库已忽略该路径。
没有这份文件时:
- AGConnect 插件不会启用,安卓包仍可走极光自有通道构建
- **华为真机的厂商通道无法接通**,杀进程后的到达率会明显下降
放入真实配置后,`:app` 会启用 AGConnectagcp `1.9.5.301`,适配 AGP 9)。Gradle 会按包名 `cn.solsum.jinxunda` 校验该文件;校验失败则构建失败。