NativeScript / NativeScript/nativescript-cli

Automate changing app "id"

Open
#3,493 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

os: android to-be-checked
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

Changing the "app id" means changing in three places (Took me a while to figure out as a newbie as app was not installing/running):

  • package.json - "nativescript": { "id": "com.example.newapp" ...
  • app/App_Resources/Android/app.gradle - ... applicationId = "com.example.newapp" ...
  • app/App_Resources/Android/settings.json - {"appId":"com.example.newapp"...

Could the change in "package.json" become part of the build ?
ie overriding/replacing the "ids" in app.gradle and settings.json ?

Which platform(s) does your issue occur on?

Android

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read package.json alongside app/App_Resources/Android/app.gradle and app/App_Resources/Android/settings.json, then trace the Android build entry point that consumes these files. Verify how the package.json app id could supply both Android values without breaking existing projects. Done means changing one id produces matching Android configuration and the app installs and runs.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, javascript
Domain
build-system, cli, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.