Skip to content

Commit 1a5c45b

Browse files
committed
Release v0.5.3-beta: Easter Edition 🐰🐣 (#424)
This release adds: New devices: * support for Xiaomi Mi A2 / 6X (jasmine_sprout) (thanks to @anon1892) * support for Xiaomi Redmi Note 10 Pro (sweet) (thanks to @BjornW) * support for Samsung Galaxy S5 mini (kminilte) (thanks to @LudovicRousseau) * support more Versions of Samsung Galaxy S5 mini (thanks to @SirRGB) Fixes: * Show proper error messages when bash shell is not found and try other paths. Other: * Update to python 3.11 * Support latest Android Platform Tools 35.0.1 Update build workflow to python 3.11 Install required dev dependencies in build action Add more dev dependencies
2 parents e7c8c43 + ff88d98 commit 1a5c45b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+2180
-1897
lines changed

.github/ISSUE_TEMPLATE/device-support-request.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,5 @@ body:
8585
- type: textarea
8686
attributes:
8787
label: Additional context
88-
description: Please provide any additional context or information that might be helpful in adding support for this device.
88+
description: Please provide any additional context or information that might be helpful in adding support for this device.
8989
render: Markdown

.github/workflows/build-release.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ jobs:
1717
- uses: actions/checkout@v4
1818
- uses: actions/setup-python@v4
1919
with:
20-
python-version: 3.9
20+
python-version: 3.11
2121
- run: pip install -r requirements.txt
2222
- run: python scripts/download-tools.py
23+
- run: pip install black ruff pytest pytest-cov pytest-mock pytest-subprocess
2324
- run: black .
2425
- run: ruff openandroidinstaller/ --ignore E501
2526
- run: PYTHONPATH=openandroidinstaller:$(PYTHONPATH) pytest --cov=openandroidinstaller tests/
26-
27+
2728
build:
2829
needs: ci
2930
runs-on: ${{ matrix.os }}
@@ -35,31 +36,31 @@ jobs:
3536
- uses: actions/checkout@v4
3637
- uses: actions/setup-python@v4
3738
with:
38-
python-version: 3.9
39+
python-version: 3.11
3940
- run: pip install -r requirements.txt
4041
- run: python scripts/download-tools.py
4142
- run: python scripts/build.py
4243
- uses: actions/upload-artifact@v3
4344
with:
4445
name: openandroidinstaller-${{ github.ref_name }}-${{ matrix.os }}
4546
path: dist/
46-
47+
4748
build-windows:
4849
needs: ci
4950
runs-on: 'windows-latest'
5051
steps:
5152
- uses: actions/checkout@v4
5253
- uses: actions/setup-python@v4
5354
with:
54-
python-version: 3.9
55+
python-version: 3.11
5556
- run: pip install -r requirements.txt
5657
- run: python scripts/download-tools.py
5758
- run: python scripts/build.py
5859
- uses: actions/upload-artifact@v3
5960
with:
6061
name: openandroidinstaller-${{ github.ref_name }}-windows-latest
6162
path: dist/
62-
63+
6364
create-release:
6465
needs:
6566
- build

.gitignore

+61-61
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,24 @@ __pycache__
55
*.py[cod]
66
*$py.class
77

8-
# Distribution / packaging
9-
.Python build/
10-
develop-eggs/
11-
dist/
12-
downloads/
13-
eggs/
14-
.eggs/
15-
lib/
16-
lib64/
17-
parts/
18-
sdist/
19-
var/
20-
wheels/
21-
*.egg-info/
22-
.installed.cfg
23-
*.egg
24-
*.manifest
25-
*.spec
8+
# Distribution / packaging
9+
.Python build/
10+
develop-eggs/
11+
dist/
12+
downloads/
13+
eggs/
14+
.eggs/
15+
lib/
16+
lib64/
17+
parts/
18+
sdist/
19+
var/
20+
wheels/
21+
*.egg-info/
22+
.installed.cfg
23+
*.egg
24+
*.manifest
25+
*.spec
2626
heimdall/
2727
libusb-windows/
2828
openandroidinstaller/bin/
@@ -33,17 +33,17 @@ pip-log.txt
3333
pip-delete-this-directory.txt
3434
*.log
3535

36-
# Unit test / coverage reports
37-
htmlcov/
38-
.tox/
39-
.coverage
40-
.coverage.*
41-
.cache
42-
.pytest_cache/
43-
nosetests.xml
44-
coverage.xml
45-
*.cover
46-
.hypothesis/
36+
# Unit test / coverage reports
37+
htmlcov/
38+
.tox/
39+
.coverage
40+
.coverage.*
41+
.cache
42+
.pytest_cache/
43+
nosetests.xml
44+
coverage.xml
45+
*.cover
46+
.hypothesis/
4747

4848
# Translations
4949
*.mo
@@ -72,42 +72,42 @@ env/
7272
venv/
7373
ENV/
7474

75-
# If you are using PyCharm #
76-
.idea/**/workspace.xml
77-
.idea/**/tasks.xml
78-
.idea/dictionaries
79-
.idea/**/dataSources/
80-
.idea/**/dataSources.ids
81-
.idea/**/dataSources.xml
82-
.idea/**/dataSources.local.xml
83-
.idea/**/sqlDataSources.xml
84-
.idea/**/dynamic.xml
85-
.idea/**/uiDesigner.xml
86-
.idea/**/gradle.xml
87-
.idea/**/libraries
88-
*.iws /out/
75+
# If you are using PyCharm #
76+
.idea/**/workspace.xml
77+
.idea/**/tasks.xml
78+
.idea/dictionaries
79+
.idea/**/dataSources/
80+
.idea/**/dataSources.ids
81+
.idea/**/dataSources.xml
82+
.idea/**/dataSources.local.xml
83+
.idea/**/sqlDataSources.xml
84+
.idea/**/dynamic.xml
85+
.idea/**/uiDesigner.xml
86+
.idea/**/gradle.xml
87+
.idea/**/libraries
88+
*.iws /out/
8989

9090
# Sublime Text
91-
*.tmlanguage.cache
92-
*.tmPreferences.cache
93-
*.stTheme.cache
94-
*.sublime-workspace
95-
*.sublime-project
91+
*.tmlanguage.cache
92+
*.tmPreferences.cache
93+
*.stTheme.cache
94+
*.sublime-workspace
95+
*.sublime-project
9696

97-
# sftp configuration file
97+
# sftp configuration file
9898
sftp-config.json
9999

100-
# Package control specific files Package
101-
Control.last-run
102-
Control.ca-list
103-
Control.ca-bundle
104-
Control.system-ca-bundle
105-
GitHub.sublime-settings
100+
# Package control specific files Package
101+
Control.last-run
102+
Control.ca-list
103+
Control.ca-bundle
104+
Control.system-ca-bundle
105+
GitHub.sublime-settings
106106

107-
# Visual Studio Code #
108-
.vscode/*
109-
!.vscode/settings.json
110-
!.vscode/tasks.json
111-
!.vscode/launch.json
112-
!.vscode/extensions.json
107+
# Visual Studio Code #
108+
.vscode/*
109+
!.vscode/settings.json
110+
!.vscode/tasks.json
111+
!.vscode/launch.json
112+
!.vscode/extensions.json
113113
.history

.pre-commit-config.yaml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
fail_fast: true
4+
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v3.2.0
7+
hooks:
8+
- id: check-added-large-files
9+
- id: check-ast
10+
- id: check-merge-conflict
11+
- id: check-yaml
12+
- id: detect-private-key
13+
- id: end-of-file-fixer
14+
- id: trailing-whitespace
15+
16+
- repo: https://github.com/psf/black
17+
rev: 22.10.0
18+
hooks:
19+
- id: black
20+
language_version: python3.10
21+
22+
- repo: https://github.com/astral-sh/ruff-pre-commit
23+
rev: v0.2.1
24+
hooks:
25+
# Run the linter.
26+
- id: ruff
27+
args: [ '--ignore', 'E501', '--fix' ]
28+
# Run the formatter.
29+
- id: ruff-format
30+
31+
- repo: https://github.com/python-poetry/poetry
32+
rev: 1.6.1
33+
hooks:
34+
- id: poetry-check
35+
#- id: poetry-lock
36+
- id: poetry-export
37+
#- id: poetry-install

CODE_OF_CONDUCT.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119119
version 2.0, available at
120120
[https://www.contributor-covenant.org/version/2/0/code_of_conduct.html][v2.0].
121121

122-
Community Impact Guidelines were inspired by
122+
Community Impact Guidelines were inspired by
123123
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
124124

125125
For answers to common questions about this code of conduct, see the FAQ at
126-
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available
126+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available
127127
at [https://www.contributor-covenant.org/translations][translations].
128128

129129
[homepage]: https://www.contributor-covenant.org

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to the OpenAndroidInstaller project
1+
# Contributing to the OpenAndroidInstaller project
22

33
💖 First of all: thank you for contributing to the OpenAndroidInstaller! Great that you are here!
44

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ poetry:
1616
curl -sSL https://install.python-poetry.org | python3 -
1717

1818
install:
19-
poetry install
19+
poetry install --with dev
2020
poetry run python scripts/download-tools.py
21+
poetry run pre-commit install
2122

2223
export:
2324
poetry export -f requirements.txt --output requirements.txt

0 commit comments

Comments
 (0)