Add battery information accessors by mykola-mokhnach · Pull Request #882 · appium/java-client
Navigation Menu
{{ message }}
appium / java-client Public
- Notifications You must be signed in to change notification settings
- Fork 763
Merged
mykola-mokhnach merged 3 commits intoappium:masterfrom
May 7, 2018Merged
Add battery information accessors#882
mykola-mokhnach merged 3 commits intoappium:masterfrom
Add battery information accessors#882
mykola-mokhnach merged 3 commits intoappium:masterfrom
Conversation
Copy link Copy Markdown
Contributor
mykola-mokhnach
commented
Apr 30, 2018
mykola-mokhnach
commented
Change list
Depends on
appium/appium-uiautomator2-driver#164
appium/appium-xcuitest-driver#661
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
requested review from
SrinivasanTarget and
TikhomirovSergey
Copy link Copy Markdown
Contributor Author
mykola-mokhnach
commented
Apr 30, 2018
mykola-mokhnach commented
Apr 30, 2018@KazuCocoa FYI
KazuCocoa
mentioned this pull request
3 tasks
vmaxim reviewed Apr 30, 2018
| public BatteryStatus getStatus() { | ||
| final int status = ((Long) getInput().get("status")).intValue(); | ||
| switch (status) { | ||
| case 2: |
Copy link Copy Markdown
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better to move these magic numbers to enum.
Copy link Copy Markdown
Contributor Author
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are used only once in this particular place. Creating a separate enum for them would be an overkill.
Copy link Copy Markdown
Contributor
TikhomirovSergey
commented
May 2, 2018
TikhomirovSergey commented
May 2, 2018@mykola-mokhnach There is the conflict. Could you resolve it?
… into battery # Conflicts: # src/main/java/io/appium/java_client/ios/IOSDriver.java
Copy link Copy Markdown
Contributor Author
mykola-mokhnach
commented
May 2, 2018
mykola-mokhnach commented
May 2, 2018Resolved
Copy link Copy Markdown
Contributor
TikhomirovSergey
commented
May 5, 2018
TikhomirovSergey commented
May 5, 2018@mykola-mokhnach Going to run Android tests today.
@SrinivasanTarget What about iOS part?
Copy link Copy Markdown
Contributor Author
mykola-mokhnach
commented
May 6, 2018
mykola-mokhnach commented
May 6, 2018@TikhomirovSergey Android is still not merged. There are problems with server publishing. I'll add a comment when it's done
Copy link Copy Markdown
Contributor
TikhomirovSergey
commented
May 6, 2018
TikhomirovSergey commented
May 6, 2018@mykola-mokhnach Ok. Maybe there is sense to publish 6.0.0 without this change? How about 6.0.1?
Copy link Copy Markdown
Contributor Author
mykola-mokhnach
commented
May 7, 2018
mykola-mokhnach commented
May 7, 2018@TikhomirovSergey No problems
Copy link Copy Markdown
Contributor Author
mykola-mokhnach
commented
May 7, 2018
mykola-mokhnach commented
May 7, 2018The Pr for uia2 driver has been merged, so this PR can be merged as well.
mykola-mokhnach
merged commit
1cf90a9
into
appium:master
Copy link Copy Markdown
Member
SrinivasanTarget
commented
May 7, 2018
SrinivasanTarget commented
May 7, 2018@TikhomirovSergey We are good to release 6.0.0 with this now :)
mykola-mokhnach
deleted the
battery
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment