Have the CLI manage project properties
See original GitHub issueThis came up from a discussion in https://github.com/NativeScript/NativeScript/issues/145.
Basically it would be nice to be able to configure properties about your app in either your app/package.json
or your .tnsproject
file, and have those changes propagate to the appropriate places in the platform-specific config files. All of these are things AppBuilder does with its .abproject
file, and it would be nice to have a few of those in the NativeScript CLI. At the moment the four specific things I’m looking for are:
- Display name (
"DisplayName"
in.abproject
). - Id (
"AppIdentifier"
in.abproject
) - Version (
"BundleVersion"
in.abproject
) - Android version (
"AndroidVersionCode"
in.abproject
)
id
is already set in .tnsproject
, but to my knowledge you can’t configure the rest of these things without changing iOS/Android config files manually.
Issue Analytics
- State:
- Created 8 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Manage project and solution properties - Visual Studio ...
You access project properties by right-clicking the project node in Solution Explorer and choosing Properties, or by typing properties into the ...
Read more >Working with Projects Using the CLI - Oracle® ZFS Storage ...
Properties can be set using the standard CLI commands get and set. In addition, properties can be inherited from the parent project by...
Read more >Managing gcloud CLI properties
For example, the gcloud CLI supports both the --project flag and project property. Properties allow you to maintain the same settings across command...
Read more >Manage Project Settings — MongoDB Atlas
To view project settings, you must have Project Owner access to the project. Manage Project Settings. Project settings apply to all the users...
Read more >project.properties - allow include/exclude options #410 - GitHub
properties is used for configuration. The ability to include/exclude files including sub-directories would provide a "make" like facility to ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@enchev I think we’re all set here. The already implemented solution is exactly what I was looking for when I created this issue. I didn’t realize this was still open actually 😄
Unless others have more requirements worth mentioning, feel free to close this issue.
At the moment you can configure anything for the app using
Info.plist
andAndroidManifest.xml
inApp_Resources
folder and you do not have to edit anything in theplatforms
folder. What’s the thinking now? Is this enough or we need something else?Hey @tjvantoll @atanasovg @hshristov @PanayotCankov what do you think?