Skip to content

Trouble with application id and custom nativescript.config.ts #73

Open
@fpaaske

Description

@fpaaske

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions