NativeScript / NativeScript/nativescript-cli

command to get app infos

Open
#5,557 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

I know there is a ns config command to read project config. However it is not enough .

what s needed:

  • command to get app id. This could be done with ns config but i cant find a way to read only the id key ?
  • command to read build version and build number for iOS/Android. This is very important for plugins like sentry.

Right now i have some kind of a working implementation here https://github.com/farfromrefug/nativescript-set-version/blob/master/lib/get_version.js#L11.
However it would be much more suited inside the cli. For instance getting the location of info.plist and app.gradle is very ugly in my plugin while it is already implemented and elegant in the cli.

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

Start with the existing ns config command and compare its behavior with the plugin implementation in lib/get_version.js. Review how the CLI locates info.plist and app.gradle, then define commands or options for reading the app id, iOS/Android build version, and build number. Done means the CLI exposes these values reliably for both platforms.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.