NativeScript / NativeScript/nx
Trouble with application id and custom nativescript.config.ts
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 68
- フォーク
- 15
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
I have this project.json setup where the nativescript.config-aaa.ts contains a different appResourcesPath than the default (nativescript.config.ts). This seems to work fine.
However, I'm also building for different environments, and have to set the application id based on that, so I add "id" to the config.
"app-test": {
"flags": "--config=nativescript.config-aaa.ts",
"id": "com.app.aaa.test"
...
"app-dev": {
"flags": "--config=nativescript.config-aaa.ts",
"id": "com.app.aaa.dev"
The problem is that the id replacements happens in the default nativescript.config.ts, while the rest of the build process is using the specified nativescript.config-aaa.ts.
Any tips on how I can handle this situation properly?
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
project.json から始め、--config=nativescript.config-aaa.ts の使用方法と、nativescript.config.ts で application id が置き換えられる方法を比較します。app-test と app-dev のビルドを再現し、選択したカスタム設定が対応する id を受け取り、appResourcesPath を保持していることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- build-system, mobile-dev
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100