Skip to content

Conversation

mykola-mokhnach
Copy link
Contributor

Change list

this adds possibility to set and get clipboard content for Android and iOS

Types of changes

  • No changes in production code.
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

@mykola-mokhnach
Copy link
Contributor Author

@KazuCocoa FYI

*/
default void setClipboardUrl(URL url) {
setClipboard(ClipboardContentType.URL, Base64
.getEncoder()
Copy link
Member

Choose a reason for hiding this comment

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

getURLEncoder() & getURLDecoder() should be good than basic encoding/decoding as it is not URL safe. Also for text encoding, i would recommend to use MIME encoding over basic encoding. what say @mykola-mokhnach ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It looks like this is not the case for Apple's NSData class, since it requires the data to be always padded: https://stackoverflow.com/questions/21406482/nsdata-wont-accept-valid-base64-encoded-string

@SrinivasanTarget
Copy link
Member

waiting for drivers to get published. will play around after that.

@TikhomirovSergey
Copy link
Contributor

@mykola-mokhnach Will review today

Copy link
Member

@SrinivasanTarget SrinivasanTarget left a comment

Choose a reason for hiding this comment

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

works well on both iOS and android.

@SrinivasanTarget
Copy link
Member

appium/WebDriverAgent#70

@SrinivasanTarget SrinivasanTarget merged commit 2f60e64 into appium:master Apr 10, 2018
@mykola-mokhnach mykola-mokhnach deleted the clipboard branch April 11, 2018 04:58
SrinivasanTarget pushed a commit that referenced this pull request Apr 18, 2018
* Addition to #846 and #855:
- OkHttpClient instead of ApacheHttpClient
- fix of java.lang.IllegalArgumentException: Input byte array has incorrect ending byte at...

* Addition to #846 and #855:
- using of mime encoder/decoder
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