NativeScript / NativeScript/nativescript-cli

Creation of multiple App Ids for Debug and release in package.json

未关闭
#4,410 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

configurations feature
主要语言
JavaScript
星标
1.1k
派生
204
平均合并
1 天 9 小时
30 天内合并 PR
8

描述

The article below explains the need to have two seperate android apps for debug and release purposes in order to keep the analytics data clean.

https://firebase.googleblog.com/2016/08/organizing-your-firebase-enabled-android-app-builds.html?m=1

defaultConfig { applicationId "com.company.project" // etc... } buildTypes { debug { applicationIdSuffix ".debug" } release { // etc... } }

From Nativescript 5.0.0+, the app ids mention have to be done in package.json as explained in the following link:
https://docs.nativescript.org/tooling/changing-appid

"nativescript": { "id": "org.nativescript.myappid" }

However the documentation only mentions regarding a single ID for the project.
Is there any way to work with multiple IDs for android itself (debug and release IDs)?

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 package.json 中的 nativescript.id 设置和链接的 changing-appid 文档开始,然后追踪 CLI 如何将该值应用于 Android debug 和 release 构建。完成的标准是确定是否可以为这些构建类型配置不同的 ID,并记录或支持由此产生的配置。

由索引模型根据 Issue 内容生成。

评估

技术栈
android, javascript
领域
cli, mobile
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。