-
Notifications
You must be signed in to change notification settings - Fork 341
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
fix: Enable extensions to load on android build variants #1918
fix: Enable extensions to load on android build variants #1918
Conversation
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.
Thanks. Once this PR is merged, do you consider it to fully resolve #1891, or would you like to also explore whitelists? (If so, it's probably better to file a new issue that summarizes the discussion so far).
src/util/adb.js
Outdated
} else if (apkComponent.includes('.')) { | ||
component = `${apk}/${apkComponent}`; | ||
} else { | ||
component = `${apk}/.${apkComponent}`; |
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.
Prepend a comment:
// adb expands the following to: `${apk}/${apk}.${apkComponent}`
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.
Just to be sure, would you like this comment before the let component;
line?
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.
It kind of applies to every line indeed. Let's modify the apkComponent variable if needed and add the comment before component
, like this:
if (!apkComponent) {
apkComponent = ".App";
} else if (!apkComponent.includes(".")) {
apkComponent = '.' + apkComponent;
}
// if `apkComponent` starts with a '.', then adb will expand
// the following to: `${apk}/${apk}.${apkComponent}`
const component = `${apk}/${apkComponent}`;
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.
That looks really good - define the component
after the apkComponent
check, I like it
Sure! We can take a look at whitelists. If I'm understanding correctly, would whitelisting be similar to writing:
and receiving a list of packages to choose from? And using that idea to show a list of |
No, |
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.
Hi @MikeM711 , could you address the review feedback from before?
We plan to release a new update on Monday or Tuesday, and if you are able to resolve those comments by then, then this feature can be included in the next update.
Hi Rob, apologies for the wait. |
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.
Thanks!
No problem! Thanks @Rob--W and also @jonalmeida for the help. Rob - is exploring whitelists in a separate issue still something you would like to do? I'd be happy to lend a hand if you still think there is some merit to the idea. |
I'm positive towards a patch to support debug builds without requiring a fully qualified value in Lines 120 to 124 in e604112
|
Great, I'll be filing a new issue for that under "feature request". Before I begin a new issue, I think it would be best to make sure it starts off on the right foot. Just making sure, we would like the expected behavior to go from something like this
to this?
Just making sure I'm understanding the vocab properly. |
@MikeM711 Yes, your understanding is correct. |
This PR fixes #1891 to add support for extensions loaded on android build variants.
Tested using: