-
-
Notifications
You must be signed in to change notification settings - Fork 197
Have the CLI manage project properties #478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @tjvantoll, You're completely right. Currently the user is not able to configure project properties without changing iOS/Android config files manually. |
This issue is related here: NativeScript/NativeScript#252 (comment) |
I'd like to be able to give my app a display name, set in package.json as TJ noted above. Is it possible to do just this, as a part of this issue? |
@teobugslayer are you expecting to incorporate this into a post 1.5.0 milestone? Thanks! |
It looks like we won't be able to implement this functionality for 1.5. Can you tell us more details about why you need this functionality for 1.5? This will help us prioritize our tasks better. |
Thanks @teobugslayer. The primary motivator is convenience of not having to open xcode to specify these values. For non-native developers, I feel it's important to have the mobile development framework drive the configuration of the native platforms. For newer mobile devs, they'll learn the native platforms in time, but reducing the time from cradle to grave on getting an app developed and accepted into the store is pretty important. I feel a larger portion of that is to get out of the native tooling as much as possible. You'll get better adoption of the framework by making it dead simple. Right now, it's pretty good - I feel it's been the easiest to step into as a .NET developer. Your preference of conventions over configuration and a simple API is so compelling - hybrid (PhoneGap/Cordova) works, but it's so easy to end up with insane JavaScript files that are an unstructured mess, unless you're thinking and planning for that from the beginning. Perhaps this could be a feature really pushed to appbuilder as a paid offering (although it would be nice to have a unified concept of affecting the native projects, so that appbuilding doesn't do this in a .abproject and nativescript does it in the package.json file). |
Thanks @mikebranstein. I completely agree with you and I’ll just add one thing. Since you currently cannot place files like Therefore any changes you have to make to files in the So in addition to helping non-native developers, this feature would also help developers use configuration variables that live outside of the volatile |
Just to link #1118 here. |
We have been discussing this internally and we think the best way to manage those properties is to use the native platform configuration files ( We can provide CLI commands like We should consider obsoleting the |
At the moment you can configure anything for the app using Hey @tjvantoll @atanasovg @hshristov @PanayotCankov what do you think? |
@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. |
This came up from a discussion in NativeScript/NativeScript#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:"DisplayName"
in.abproject
)."AppIdentifier"
in.abproject
)"BundleVersion"
in.abproject
)"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.The text was updated successfully, but these errors were encountered: