Skip to content

Commit

Permalink
Bugfix/change screenshot (#9)
Browse files Browse the repository at this point in the history
* Fixed the problem that the file name of screen snapshot cannot be parsed when it has special characters.

* Fix update version.

* Add event for devices&app&take screenshot

* Update version

* Fix publish state -> True

* Fix delete dup var -> PLUGIN ROOT

* Add release to pypi stage.

* Add build status & & Pypi version & Python required and MIT

* Update README.md

* Fix secure changed

* Change screenshot name

* Fix version code
  • Loading branch information
yury-awesome authored Sep 6, 2018
1 parent 0ac170a commit 8c5d985
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lyrebird_ios/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,13 @@ def get_screen_shot(self, msg):
screen_shots = []
for item in device_service.devices:
device = device_service.devices[item]
screen_shot_path = device.take_screen_shot()
screen_shots.append(
{
'id': item,
'screenshot': {
'name': device.model.replace(' ', '_'),
'path': device.take_screen_shot()
'name': os.path.basename(screen_shot_path),
'path': screen_shot_path
}
}
)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name='lyrebird-ios',
version='0.1.9',
version='0.1.10',
packages=['lyrebird_ios'],
url='https://github.com/meituan/lyrebird-ios',
author='HBQA',
Expand Down

0 comments on commit 8c5d985

Please sign in to comment.