-
Notifications
You must be signed in to change notification settings - Fork 112
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
Separate appnames for ios and package name for android #339
Comments
@uloco about to look in to this. Could you please review the solution below? You mention wanting to add TWO new fields? I think only one is required though.
Say we add a single "app namespace" field ... Default values would be:
This would give same result as the tool does now with iOS name RnDiffApp and Android files such as com/rndiffapp/MainActivity.java Entering custom values for either:
Would give iOS name of UpgradeHelper and Android files such as au/org/mycorp/upgradehelper/MainActivity.java |
@lucasbento / @pvinis would one of you like to assign this to me? Have forked and will return with a PR. |
feel free to open up a PR 👍 |
On vacation right now and can't test. Will come back to this next week |
Unfortunately this fix does not solve my problem. Our android package name is not the same as just For example our iOS app is called Smokeless and our android package name is world.smokeless.android. |
it would work for android but, what if there is a reference to the ios app in AppDelegate for example? |
In my opinion it would be way easier to understand what parts apply where to just have two separate input fields, one for ios and one for android. What if my iOS app is called "foo" and my android package is "bar.baz.abc"? The ios and android app names / packages don't have to be the same in general. |
Understand what you're getting at @uloco. See below for a possible solution. Placeholder text is displayed below in italics.
What's your app name? [ RnDiffApp ]
What's your app name? [ UpgradeHelper ]
What's your app name? [ RnDiffApp ] This aims to strike a balance between indicating to a novice that changing the app name changes the default app package, and also allows the experienced dev to enter a completely unrelated package name. Would that solve the issue? Will wait for feedback before proceeding with any further changes. |
don't like the implicit logic in behind what input field is filled or not (ux wise bad in my opinion), but you decide. feature wise if I can specify two fields that don't affect each other this is fine. |
What would be better ux in your opinion? Remembering it should suit novice users as well. Would welcome your input. |
you could have one input field for app name and a checkbox that says something like "specify app and package name separately" and then enable another input field. if the checkbox is checked then both fields are applied separately without affecting the other. if it is not checked than use your default magic. And always show for both scenarios how your app and package name are affected with a preview. |
As it is now, it still does not work for android as is. For example when I want to update from 0.71.7 to 0.72.4 The tool points me to edit the MainActivity.java file at path You should not concatenate both app name and package name at all. just use the package name as is. That's the whole point of separating this. |
Feature Request
It would be great to have a way to specify different appnames or package names for ios and android without any (com.) prefixing magic happening by upgrade helper.
Why it is needed
Our app does not have a
.com
domain so our bundle identifier is different than just com.appname.I ran into multiple issues in the past and also recently, where I used the app name field to put in our app name and did not realize it automatically prefixes it with
com.
for android.I had build issues where our package (obviously) could not be found. This is a possible issue a lot of people have, which could easily be fixed.
Possible implementation
Just add two fields to specify the appname for ios and the package name for android without prefixing them with com. on android automatically.
The text was updated successfully, but these errors were encountered: