-
-
Notifications
You must be signed in to change notification settings - Fork 197
Improve working with native configuration when necessary #2367
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
Do you think it is a bad option to use the same approach as used in iOS in Android projects? We can copy the app.gradle file in platforms/android and do all replacements here on every build. This will allow both newcomers to edit the package.json and power users to do changes in app.gradle. It will also remove the path dependency in android gradle script. I would vote for this option. |
Related #2187 |
Seems also I hit another related problem (I think). I'm trying to have a different id for Android and for iOS (something like I updated So, we decided to remove it from there. But then, the
This is caused by Should I create a new issue specifically for this or it can be part of the issue? |
Hi @maoueh, EDIT: @maoueh please take the time to leave your opinion here. What do you think is best when it comes to providing a way to configure the project. Should we keep, |
@Plamen5kov Note that editing comment does not trigger a new GitHub email, so it's possible to miss it. In my opinion, As I see things now, I would keep them both and they would have precedence over So, if Otherwise, if a value is set in native file, it should stay as-is and as such, have higher precedence over Matt |
@Plamen5kov I've create an independent issue for |
Once the platform is added, if the nativescript.id is changed then the app won't be started anymore in the emulator. |
As @nicoabie said above, if you have mismatched app ids (which is quite easy to do currently), your app will no longer start on an Android emulator, and you have no obvious idea why. I lost several hours on this problem until @rosen-vladimirov helped me out in #3111. We’re relying on users to realize that they have to update final application ids in two different places, which is obviously error prone. My vote is to remove the app id from the root |
I agree. Or it may be done with something like NativeScript Sidekick, I don't know. |
Wouldn't be an acceptable solution to at least document that you also have to modify the gradle file in the docs here ? |
Originally the idea was to consider all native configurations and handle them in a "native configuration file". We've since discussed the topic and we've provided all the native configuration options in the |
I don't get it, can we have different app ids for each platform or not? Kinda annoying having to remember to change the app ids in package.json every time I switch platforms |
@manijak As far as I understand this is coming soon |
Still waiting for the ability to have different package ids on iOS vs Android. Is there a workaround other than manually changing it in package.json every time? |
Problem
Currently as is described in this issue users some times have a hard time understanding when and if they can use a common place like
package.json
to change the native configuration of a project.As is described in the issue:
In short we have different behavior on different platforms, which is behavior that needs fixing.
Solution
If it can't be fixed with one common abstraction, we should completely separate the native configuration of iOS and Android projects.
The current example affects only the app_id, but we need to take into account all native configurations when resolving this issue.
The text was updated successfully, but these errors were encountered: