NativeScript / NativeScript/nativescript-cli
command to get app infos
未关闭
还没有人认领这个 Issue。
feature
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 204
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 8
描述
I know there is a ns config command to read project config. However it is not enough .
what s needed:
- command to get app id. This could be done with
ns configbut i cant find a way to read only theidkey ? - command to read build version and build number for iOS/Android. This is very important for plugins like sentry.
Right now i have some kind of a working implementation here https://github.com/farfromrefug/nativescript-set-version/blob/master/lib/get_version.js#L11.
However it would be much more suited inside the cli. For instance getting the location of info.plist and app.gradle is very ugly in my plugin while it is already implemented and elegant in the cli.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从现有的 ns config 命令开始,并将其行为与 lib/get_version.js 中的插件实现进行比较。检查 CLI 如何定位 info.plist 和 app.gradle,然后定义用于读取应用 ID、iOS/Android 构建版本和构建号的命令或选项。当 CLI 能够可靠地为两个平台提供这些值时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, ios, javascript
- 领域
- cli, mobile
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100