Skip to content

Commit

Permalink
Put ADB blitz code into emulator
Browse files Browse the repository at this point in the history
  • Loading branch information
Pbatch committed Jun 30, 2024
1 parent ec8ebaf commit 11f93d3
Show file tree
Hide file tree
Showing 8 changed files with 219 additions and 365 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
.idea/
clashroyalebuildabot/debug
.venv
.vscode
*.egg-info
dist/
build/
__pycache__/
*.pyc
*.pyc
clashroyalebuildabot/debug
clashroyalebuildabot/emulator/platform-tools
2 changes: 1 addition & 1 deletion clashroyalebuildabot/bot/example/custom_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,5 @@ def run(self):
while True:
self.step()
except (KeyboardInterrupt, Exception):
self.emulator.blitz_device.quit()
self.emulator.quit()
logger.info("Thanks for using CRBAB, see you next time!")
5 changes: 0 additions & 5 deletions clashroyalebuildabot/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ adb:
# make sure to use the device's IP address.
ip: "127.0.0.1"

# The ADB port your emulator is open on.
# Should be 5555 in most cases. If you're unable to get this to work,
# visit X/wiki/ADB-Port for more information.
port: 5555

# The serial number of your device
# Use adb devices to obtain it
device_serial: emulator-5554
2 changes: 2 additions & 0 deletions clashroyalebuildabot/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
MODELS_DIR = os.path.join(SRC_DIR, "models")
IMAGES_DIR = os.path.join(SRC_DIR, "images")
EMULATOR_DIR = os.path.join(SRC_DIR, "emulator")
ADB_DIR = os.path.join(EMULATOR_DIR, "platform-tools")
ADB_PATH = os.path.normpath(os.path.join(ADB_DIR, "adb"))
SCREENSHOTS_DIR = os.path.join(DEBUG_DIR, "screenshots")
LABELS_DIR = os.path.join(DEBUG_DIR, "labels")

Expand Down
217 changes: 0 additions & 217 deletions clashroyalebuildabot/emulator/adbblitz.py

This file was deleted.

Loading

0 comments on commit 11f93d3

Please sign in to comment.