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

chore: use start-activity for api level 26+ #771

Merged
merged 2 commits into from
Nov 9, 2024
Merged

Conversation

KazuCocoa
Copy link
Member

Related to appium/appium#20730

@@ -358,7 +358,7 @@ function buildStartCmd (startAppOptions, apiLevel) {
stopApp,
flags,
} = startAppOptions;
const cmd = ['am', 'start'];
const cmd = ['am', (apiLevel < 26) ? 'start' : 'start-activity'];
Copy link
Contributor

@mykola-mokhnach mykola-mokhnach Nov 9, 2024

Choose a reason for hiding this comment

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

we should also reuse the buildStartCmd helper call in the activateApp method to avoid unnecessary duplication

Copy link
Member Author

Choose a reason for hiding this comment

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

Yea, they were not simple replacement so it will be another pr

@KazuCocoa KazuCocoa merged commit 8faa1f3 into master Nov 9, 2024
13 checks passed
@KazuCocoa KazuCocoa deleted the use-start-activity branch November 9, 2024 09:18
github-actions bot pushed a commit that referenced this pull request Nov 9, 2024
## [12.6.2](v12.6.1...v12.6.2) (2024-11-09)

### Miscellaneous Chores

* use start-activity for api level 26+ ([#771](#771)) ([8faa1f3](8faa1f3))
Copy link

github-actions bot commented Nov 9, 2024

🎉 This PR is included in version 12.6.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants