-
Notifications
You must be signed in to change notification settings - Fork 934
[Android] Fix variantPath for multiflavored paths #2762
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
base: main
Are you sure you want to change the base?
Conversation
cortinico
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we have tests for this?
| ? `${variantFromSelectedTask.slice(0, -1).join("")}/${variantFromSelectedTask.at(-1).toLocaleLowerCase()}` | ||
| : defaultVariant; | ||
| // create output file name, eg. `production-debug` | ||
| const variantAppName = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also be updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
variantAppName? Seems to be fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh. Does it get generated as -client-staging-debug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
client-staging-debug to be precise. First dash prepended here. And that is correct, that is what gradle produces
|
Fixed type error, my bad. |
Summary
When working with multiflavored apps, run-android fails to install app because of incorrect directory. Given we have
clientStagingDebugvariant, current path isandroid/app/build/outputs/apk/client/staging/debugwhen in fact it should beandroid/app/build/outputs/apk/clientStaging/debugTest Plan
Try to run-android with some multiflavored app:
android/app/build.gradleshould have something likeChecklist
react-nativecheckout (instructions).