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

feat: Add a broadcast service to receive the clipboard content #46

Merged
merged 6 commits into from
Nov 15, 2019

Conversation

mykola-mokhnach
Copy link
Contributor

The next step would be to change ADB to set Appium Settings as default IME before getting the clipboard content for Android Q+
See appium/appium#13466 for more details

Copy link
Contributor

@imurchie imurchie left a comment

Choose a reason for hiding this comment

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

Looks good!

Copy link
Member

@KazuCocoa KazuCocoa left a comment

Choose a reason for hiding this comment

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

Thanks, great 🎉
The result was expected after calling set clipboard via UIA2 👍

$ adb shell am broadcast -a io.appium.settings.clipboard.get
Broadcasting: Intent { act=io.appium.settings.clipboard.get flg=0x400000 }
Broadcast completed: result=-1, data="happy testing"

And update readme, too?

@mykola-mokhnach
Copy link
Contributor Author

@KazuCocoa Updated the readme

Copy link
Member

@KazuCocoa KazuCocoa left a comment

Choose a reason for hiding this comment

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

👍 > base 64

app/build.gradle Outdated
@@ -5,7 +5,7 @@ android {
buildToolsVersion '28.0.3'

defaultConfig {
minSdkVersion 17
minSdkVersion 19
Copy link
Member

@KazuCocoa KazuCocoa Nov 15, 2019

Choose a reason for hiding this comment

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

Does this change need in this update?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, the encoding stuff needs Appium settings to be at API 19, which is fine for us (it's Android 4.4)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've changed the code to still support API 17. The market share there is about 1.5-2%, but whatever

@mykola-mokhnach mykola-mokhnach merged commit 869c06e into appium:master Nov 15, 2019
@mykola-mokhnach mykola-mokhnach deleted the get_clip branch November 15, 2019 12:33
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.

3 participants