-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
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.
Looks good!
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, 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?
@KazuCocoa Updated the readme |
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.
👍 > base 64
app/build.gradle
Outdated
@@ -5,7 +5,7 @@ android { | |||
buildToolsVersion '28.0.3' | |||
|
|||
defaultConfig { | |||
minSdkVersion 17 | |||
minSdkVersion 19 |
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.
Does this change need in this update?
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.
yes, the encoding stuff needs Appium settings to be at API 19, which is fine for us (it's Android 4.4)
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.
I've changed the code to still support API 17. The market share there is about 1.5-2%, but whatever
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