Skip to content

Commit 794dacc

Browse files
committed
Revert "Merge branch 'main' of https://github.com/Aglag257/Android"
This reverts commit ae44302, reversing changes made to a1febbe.
1 parent ae44302 commit 794dacc

File tree

66 files changed

+138
-399
lines changed

Some content is hidden

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

66 files changed

+138
-399
lines changed

.github/workflows/android.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
build:
3030
runs-on: ubuntu-latest
3131
steps:
32-
- uses: actions/checkout@v4.1.6
32+
- uses: actions/checkout@v4.1.5
3333
- name: Fail on bad translations
3434
run: if grep -ri "<xliff" app/src/main/res/values*/strings.xml; then echo "Invalidly escaped translations found"; exit 1; fi
3535
- uses: gradle/actions/wrapper-validation@v3

.github/workflows/changelog-to-fastlane.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
steps:
2828
- name: Checkout repo
2929
id: checkout
30-
uses: actions/checkout@v4.1.6
30+
uses: actions/checkout@v4.1.5
3131
- name: Setup Python
3232
uses: actions/setup-python@v5.1.0
3333
with:

.github/workflows/contributors-to-file.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
steps:
2626
- name: Checkout repo
2727
id: checkout
28-
uses: actions/checkout@v4.1.6
28+
uses: actions/checkout@v4.1.5
2929
- name: Update contributors
3030
id: update_contributors
3131
uses: TheLastProject/contributors-to-file-action@v3.2.0

.github/workflows/generate-feature-graphic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
generate-feature-graphic:
2525
runs-on: ubuntu-latest
2626
steps:
27-
- uses: actions/checkout@v4.1.6
27+
- uses: actions/checkout@v4.1.5
2828
- name: Install requirements
2929
run: |
3030
sudo apt-get update

.github/workflows/gradle-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
gradle-update:
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v4.1.6
24+
- uses: actions/checkout@v4.1.5
2525
- uses: obfusk/gradle-update-action@v2.0.0
2626
id: gradle-update
2727
- uses: gradle/actions/wrapper-validation@v3

.github/workflows/update-locales.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
update-locales:
2626
runs-on: ubuntu-latest
2727
steps:
28-
- uses: actions/checkout@v4.1.6
28+
- uses: actions/checkout@v4.1.5
2929
- name: Add new locales
3030
run: .scripts/new-locales.py
3131
- name: Update locales

.scripts/locales.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
]
2525
subprocess.run(sed, check=True)
2626

27-
with open("app/src/main/res/xml/locales_config.xml", "w", encoding="utf-8") as fh:
27+
with open("app/src/main/res/xml/locales_config.xml", "w") as fh:
2828
fh.write('<?xml version="1.0" encoding="utf-8"?>\n')
2929
fh.write('<locale-config xmlns:android="http://schemas.android.com/apk/res/android">\n')
3030
fh.write(' <locale android:name="en-US" />\n')

.scripts/new-locales.py

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,15 @@
1919
STATS_URL = "https://hosted.weblate.org/api/components/catima/catima/statistics/"
2020

2121

22-
class Error(Exception):
23-
pass
24-
25-
2622
def get_weblate_langs() -> List[Tuple[str, int]]:
27-
url = STATS_URL
23+
r = requests.get(STATS_URL, timeout=5)
24+
r.raise_for_status()
2825
results = []
29-
for _ in range(16): # avoid endless loops just in case
30-
r = requests.get(url, timeout=5)
31-
r.raise_for_status()
32-
data = r.json()
33-
for lang in data["results"]:
34-
if lang["code"] != "en":
35-
code = REPLACE_CODES.get(lang["code"], lang["code"]).replace("_", "-r")
36-
results.append((code, round(lang["translated_percent"])))
37-
url = data["next"]
38-
if not url:
39-
return sorted(results)
40-
if not url.split("?")[0] == STATS_URL:
41-
raise Error(f"Unexpected next URL: {url}")
42-
raise Error("Too many pages")
26+
for lang in r.json()["results"]:
27+
if lang["code"] != "en":
28+
code = REPLACE_CODES.get(lang["code"], lang["code"]).replace("_", "-r")
29+
results.append((code, round(lang["translated_percent"])))
30+
return sorted(results)
4331

4432

4533
def get_dir_langs() -> List[str]:
@@ -54,7 +42,7 @@ def get_dir_langs() -> List[str]:
5442
def get_xml_langs() -> List[Tuple[str, bool]]:
5543
results = []
5644
in_section = False
57-
with open("app/src/main/res/values/settings.xml", encoding="utf-8") as fh:
45+
with open("app/src/main/res/values/settings.xml") as fh:
5846
for line in fh:
5947
if not in_section and 'name="locale_values"' in line:
6048
in_section = True
@@ -71,7 +59,7 @@ def get_xml_langs() -> List[Tuple[str, bool]]:
7159
def update_xml_langs(langs: List[Tuple[str, bool]]) -> None:
7260
lines: List[str] = []
7361
in_section = False
74-
with open("app/src/main/res/values/settings.xml", encoding="utf-8") as fh:
62+
with open("app/src/main/res/values/settings.xml") as fh:
7563
for line in fh:
7664
if not in_section and 'name="locale_values"' in line:
7765
in_section = True
@@ -82,7 +70,7 @@ def update_xml_langs(langs: List[Tuple[str, bool]]) -> None:
8270
else:
8371
continue
8472
lines.append(line)
85-
with open("app/src/main/res/values/settings.xml", "w", encoding="utf-8") as fh:
73+
with open("app/src/main/res/values/settings.xml", "w") as fh:
8674
for line in lines:
8775
fh.write(line)
8876

CHANGELOG.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
# Changelog
22

3-
## Unreleased - 136
4-
5-
- Support for creating a card when sharing plain text
6-
- Display image type instead of barcode below images
7-
- Fix possible crash when trying to import a backup from the Nextcloud app
8-
- Improved support for devices without camera
9-
10-
## v2.29.1 - 135 (2024-05-19)
3+
## Unreleased - 135
114

125
- Various fixes and improvements to balance handling
136

Gemfile.lock

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ GEM
1010
artifactory (3.0.17)
1111
atomos (0.1.3)
1212
aws-eventstream (1.3.0)
13-
aws-partitions (1.931.0)
14-
aws-sdk-core (3.196.1)
13+
aws-partitions (1.916.0)
14+
aws-sdk-core (3.192.1)
1515
aws-eventstream (~> 1, >= 1.3.0)
1616
aws-partitions (~> 1, >= 1.651.0)
1717
aws-sigv4 (~> 1.8)
1818
jmespath (~> 1, >= 1.6.1)
19-
aws-sdk-kms (1.81.0)
20-
aws-sdk-core (~> 3, >= 3.193.0)
19+
aws-sdk-kms (1.79.0)
20+
aws-sdk-core (~> 3, >= 3.191.0)
2121
aws-sigv4 (~> 1.1)
22-
aws-sdk-s3 (1.151.0)
23-
aws-sdk-core (~> 3, >= 3.194.0)
22+
aws-sdk-s3 (1.147.0)
23+
aws-sdk-core (~> 3, >= 3.192.0)
2424
aws-sdk-kms (~> 1)
2525
aws-sigv4 (~> 1.8)
2626
aws-sigv4 (1.8.0)
@@ -157,7 +157,7 @@ GEM
157157
mini_magick (4.12.0)
158158
mini_mime (1.1.5)
159159
multi_json (1.15.0)
160-
multipart-post (2.4.1)
160+
multipart-post (2.4.0)
161161
nanaimo (0.3.0)
162162
naturally (2.2.1)
163163
nkf (0.2.0)
@@ -171,8 +171,7 @@ GEM
171171
trailblazer-option (>= 0.1.1, < 0.2.0)
172172
uber (< 0.2.0)
173173
retriable (3.1.2)
174-
rexml (3.2.8)
175-
strscan (>= 3.0.9)
174+
rexml (3.2.6)
176175
rouge (2.0.7)
177176
ruby2_keywords (0.0.5)
178177
rubyzip (2.3.2)
@@ -185,7 +184,6 @@ GEM
185184
simctl (1.6.10)
186185
CFPropertyList
187186
naturally
188-
strscan (3.1.0)
189187
terminal-notifier (2.0.0)
190188
terminal-table (3.0.2)
191189
unicode-display_width (>= 1.1.1, < 3)
@@ -216,4 +214,4 @@ DEPENDENCIES
216214
fastlane
217215

218216
BUNDLED WITH
219-
2.5.9
217+
2.3.26

0 commit comments

Comments
 (0)