Skip to content

Make it possible to record screen on Android P emulators#345

Merged
mykola-mokhnach merged 5 commits intoappium:masterfrom
mykola-mokhnach:screenrecord_api_27
Mar 22, 2018
Merged

Make it possible to record screen on Android P emulators#345
mykola-mokhnach merged 5 commits intoappium:masterfrom
mykola-mokhnach:screenrecord_api_27

Conversation

@mykola-mokhnach
Copy link
Contributor

It looks like Google has finally fixed compatibility issues since Android P and from now on one can record screen on emulator the same way he does it on real devices.

@mykola-mokhnach
Copy link
Contributor Author

@KazuCocoa FYI

commands.stopRecordingScreen = async function (options = {}) {
const {remotePath, user, pass, method} = options;

const apiLevel = await this.adb.getApiLevel();
Copy link
Contributor

Choose a reason for hiding this comment

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

This validity check could be extracted out, since it is repeated twice (and in the future might change in both places, as different versions of things support different things).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Copy link
Contributor

@dpgraham dpgraham left a comment

Choose a reason for hiding this comment

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

Lgtm.

@mykola-mokhnach mykola-mokhnach merged commit bb77441 into appium:master Mar 22, 2018
@mykola-mokhnach mykola-mokhnach deleted the screenrecord_api_27 branch March 24, 2018 18:39
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