Skip to content

Commit 8a31924

Browse files
sam-f0sam-f0
authored andcommitted
Remove coverage for now. Adjust spawn
1 parent 25e64f2 commit 8a31924

File tree

4 files changed

+10
-39
lines changed

4 files changed

+10
-39
lines changed

.github/workflows/coverage.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/style.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
runs-on: ubuntu-latest
6969
strategy:
7070
matrix:
71-
python-version: ['3.9', '3.10', '3.11']
71+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
7272

7373
steps:
7474
- uses: actions/checkout@v3

binder_trace/binder_trace/generator.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,9 @@ def __init__(
5757
def start(self):
5858
"""Start the injector."""
5959
if self.spawn_process:
60-
process_pid = self.device.spawn([self.process_identifier])
61-
self.session = self.device.attach(process_pid)
62-
self.device.resume(process_pid)
63-
else:
64-
self.session = self.device.attach(self.process_identifier)
60+
self.device.spawn([self.process_identifier])
61+
62+
self.session = self.device.attach(self.process_identifier)
6563
self.script = self.session.create_script(self.script_content)
6664
self.script.on("message", self._message_handler)
6765

@@ -98,6 +96,9 @@ def _message_handler(self, message: Any, data: Any) -> None:
9896
def _start(self) -> None:
9997
self.script.load()
10098

99+
if self.spawn_process:
100+
self.device.resume(self.process_identifier)
101+
101102
self.script.exports.init(None, {"connected": "true", "version": self.android_version})
102103
self.message_queue.put("Connected")
103104

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
[tox]
2-
envlist = py39, py310, py311
2+
envlist = py39, py310, py311, py312, py313
33

44
[gh-actions]
55
python =
66
3.9: py39
77
3.10: py310
88
3.11: py311
9+
3.12: py312
10+
3.13: py313
911

1012
[testenv]
1113
deps =

0 commit comments

Comments
 (0)