Skip to content
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

Android app start fix #477

Merged
merged 3 commits into from Jun 4, 2023
Merged

Android app start fix #477

merged 3 commits into from Jun 4, 2023

Conversation

mribbons
Copy link
Contributor

@mribbons mribbons commented Jun 1, 2023

cli: android: fail immediately if adb fails to install to device

Don't wait for emulator to boot.

  • improve error messages.

@@ -2110,6 +2127,7 @@ int main (const int argc, const char* argv[]) {
auto cnt = 0;

AndroidCliState androidState;
androidState.targetPlatform = targetPlatform;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you may need to do the same for ssc run command

Copy link
Member

@chicoxyzzy chicoxyzzy Jun 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can move the androidState populating to the run function?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks 😅

maybe we can move the androidState populating to the run function?

Let's slate this for the next release so we can test it a bit more?

Just to confirm, does run get called by build?

It might be better to have a platformInit() that in turn calls platform specific setup.

AndroidState should eventually contain everything necessary for build, currently it only covers run.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to confirm, does run get called by build?

yes

@mribbons mribbons requested a review from chicoxyzzy June 2, 2023 00:06
@mribbons mribbons merged commit 09fb29a into master Jun 4, 2023
7 of 8 checks passed
@mribbons mribbons deleted the android-app-start-fix branch June 4, 2023 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants