android.config.json 配置文件内容如下:
{
"AppName":"Device Monitor",
"AppId":"com.zzh.app",
"SplashText":"Hello\nWorld",
"WeexBundle":"index.js"
}
使用 weexpack build android 打包 apk 时,终端输出的配置信息也是正确的:
22:29:17 : Will start Android app
============Build Config============
AppId : com.zzh.app
AppName : Device Monitor
SplashText : Hello
World
WeexBundle : index.js
22:29:17 : If you want to change build config.please modify android.config.json
22:29:17 : Building app ...
但打包出来的 apk 安装后 AppName 依然是默认的 Weex App。
手动修改 weexpack platform add android 生成的模板代码中 strings.xml 中的 app_name 是可行的。
还有 AppId 也是时灵时不灵的,只有 SplashText 是每次都生效了。
不知道是我哪里没弄对吗?