Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Edit variables found in AndroidManifest.xml and Info.plist from a single file. #9520

Copy link
Copy link
Open
@7ammer

Description

@7ammer
Issue body actions

Is your feature request related to a problem? Please describe.
My client wants to be able to have multiple versions of the same app. One for production, a beta version for testFlight and an Ad Hoc version. I do not see an easy way to do this. It appears to currently involve manually editing multiple files which is error prone and messy.

Describe the solution you'd like
I'd like to be able to edit the variables found in AndroidManifest.xml and Info.plist from a single file like nativescript.config.ts or package.json.

Things like: CFBundleName, CFBundleDisplayName, CFBundleShortVersionString and CFBundleVersion or versionCode, versionName, package.

If I could edit these values in nativescript.config.ts I could very easily write some code to change these values by adding something like NODE_ENV=testflight to the beginning of of a NS build command. This would then set the required variables depending on the environments I've setup.

Describe alternatives you've considered
After asking around on slack I've found out that it's possible to add variables to app.gradle and build.xcconfig and use those in the files in question. However, I would like to be able to edit a single file.

If this feature does not exist I think it would help make nativescript more accessible for new users that want to do simple things like change the app name or version number. It would also help with more advanced things like I've mentioned above - swapping out the package name to build multiple versions of the same app.

If this feature already exist could you kindly explain how it can be achieved.

Many thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.