NativeScript / NativeScript/nx

Trouble with application id and custom nativescript.config.ts

オープン
#73 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
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?

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。