Skip to content

Commit

Permalink
解决connect时platform未同步参数导致api调用失败
Browse files Browse the repository at this point in the history
  • Loading branch information
caishilong committed Nov 1, 2024
1 parent d80af58 commit bdcdfd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ha4t/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.0.6"
__version__ = "0.0.7"
__all__ = ["__version__", "connect", "device", "Device", "screen_size"]

import json
Expand Down Expand Up @@ -46,6 +46,8 @@ def connect(device_serial=None, android_package_name=None,
device_serial = _CF.DEVICE_SERIAL
if not platform:
platform = _CF.PLATFORM
else:
_CF.PLATFORM = platform
device.connect(platform, device_serial)
screen_size = device.driver.window_size()
_CF.SCREEN_WIDTH, _CF.SCREEN_HEIGHT = screen_size
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def parse_requirements(filename):
long_description_content_type="text/markdown",
license='Apache License 2.0',
url="https://github.com/exuils/HA4T",
install_requires=parse_requirements(r'D:\projects\HA4T\requirements.txt'),
install_requires=parse_requirements(r'D:\project\nico\HA4T\requirements.txt'),
packages=find_packages(exclude=("tests",)),
keywords=['automation', 'automated-test', 'game', 'android', 'ios', "hybrid-app"],
extras_require={
Expand Down

0 comments on commit bdcdfd5

Please sign in to comment.