Skip to content

Commit 21c5c55

Browse files
committed
Merge branch 'develop' for release 3.7.0 (attempt #1)
2 parents 824b3f9 + 8e4fd41 commit 21c5c55

File tree

417 files changed

+12560
-8813
lines changed

Some content is hidden

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

417 files changed

+12560
-8813
lines changed

.codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ coverage:
99
threshold: 1%
1010
patch:
1111
default:
12-
target: 90%
12+
target: 70%
1313
threshold: 0%
1414

1515
ignore:

.github/workflows/ci.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- develop
8+
pull_request:
9+
10+
jobs:
11+
12+
automated-tests:
13+
name: Automated tests
14+
strategy:
15+
matrix:
16+
api-level: [ 21, 30, 33 ]
17+
fail-fast: false
18+
runs-on: macos-11
19+
steps:
20+
- name: checkout
21+
uses: actions/checkout@v3
22+
with:
23+
fetch-depth: 1
24+
25+
- name: Set up JDK 11
26+
uses: actions/setup-java@v3
27+
with:
28+
distribution: temurin
29+
java-version: 11
30+
31+
- name: Restore Cache
32+
uses: actions/cache@v3
33+
with:
34+
path: |
35+
~/.gradle/caches
36+
~/.gradle/wrapper
37+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
38+
restore-keys: |
39+
${{ runner.os }}-gradle-
40+
41+
- name: create instrumentation coverage
42+
uses: ReactiveCircus/android-emulator-runner@v2
43+
env:
44+
GRADLE_OPTS: "-Dorg.gradle.internal.http.connectionTimeout=60000 -Dorg.gradle.internal.http.socketTimeout=60000 -Dorg.gradle.internal.network.retry.max.attempts=6 -Dorg.gradle.internal.network.retry.initial.backOff=2000"
45+
if: ${{ matrix.api-level != 33 }}
46+
with:
47+
api-level: ${{ matrix.api-level }}
48+
target: default
49+
arch: x86_64
50+
profile: pixel_2
51+
ram-size: '4096M'
52+
disk-size: '14G'
53+
sdcard-path-or-size: '1000M'
54+
disable-animations: false
55+
script: bash contrib/instrumentation.sh
56+
57+
- name: create instrumentation coverage on google_apis for android 33
58+
uses: ReactiveCircus/android-emulator-runner@v2
59+
env:
60+
GRADLE_OPTS: "-Dorg.gradle.internal.http.connectionTimeout=60000 -Dorg.gradle.internal.http.socketTimeout=60000 -Dorg.gradle.internal.network.retry.max.attempts=6 -Dorg.gradle.internal.network.retry.initial.backOff=2000"
61+
if: ${{ matrix.api-level == 33 }}
62+
with:
63+
api-level: ${{ matrix.api-level }}
64+
target: google_apis
65+
arch: x86_64
66+
profile: pixel_2
67+
heap-size: '512M'
68+
ram-size: '4096M'
69+
disk-size: '14G'
70+
sdcard-path-or-size: '4096M'
71+
disable-animations: false
72+
script: bash contrib/instrumentation.sh
73+
74+
- name: Upload screenshot result
75+
uses: actions/upload-artifact@v3
76+
if: failure()
77+
with:
78+
name: ${{ matrix.api-level }}
79+
path: screencap.png
80+
81+
- name: create unit coverage
82+
if: ${{ matrix.api-level==21 }}
83+
run: ./gradlew testDebugUnitTest testCustomexampleDebugUnitTest
84+
85+
- name: Upload coverage to Codecov
86+
if: ${{ matrix.api-level==21 }}
87+
uses: codecov/codecov-action@v3
88+
89+
- name: Upload Coverage to GH-Actions
90+
uses: actions/upload-artifact@v3
91+
if: ${{ matrix.api-level==21 }}
92+
with:
93+
name: Tests Coverage Report
94+
path: |
95+
**/reports/

.github/workflows/coverage.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish nightly build
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- testing
7+
8+
jobs:
9+
nightly:
10+
name: Publish nightly build
11+
runs-on: ubuntu-22.04
12+
environment: nightly
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
17+
- name: Set up JDK 11
18+
uses: actions/setup-java@v3
19+
with:
20+
java-version: 11
21+
distribution: temurin
22+
23+
- name: Build
24+
run: |
25+
# use timestamp as Version Code
26+
export versionCode=$(date '+%s')
27+
sed -i "s,^\(\s*versionCode\) *[0-9].*,\1 $versionCode," app/build.gradle.kts
28+
./gradlew assembleDebug
29+
30+
- name: fdroid nightly
31+
run: |
32+
sudo add-apt-repository ppa:fdroid/fdroidserver
33+
sudo apt-get update
34+
sudo apt-get install apksigner fdroidserver --no-install-recommends
35+
export DEBUG_KEYSTORE=$\{\{ secrets.DEBUG_KEYSTORE \}\}
36+
fdroid nightly --archive-older 10

.github/workflows/nightly.yml

Lines changed: 6 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,8 @@ on:
77

88
jobs:
99

10-
instrumentation_tests:
11-
strategy:
12-
matrix:
13-
api-level: [21, 22, 23, 24, 25, 27, 28, 30]
14-
fail-fast: false
15-
runs-on: macOS-latest
10+
release:
11+
runs-on: ubuntu-22.04
1612
steps:
1713

1814
- name: checkout
@@ -21,49 +17,13 @@ jobs:
2117
fetch-depth: 1
2218

2319
- name: Set up JDK 11
24-
uses: actions/setup-java@v1
20+
uses: actions/setup-java@v3
2521
with:
2622
java-version: 11
27-
28-
- name: run instrumentation tests
29-
uses: ReactiveCircus/[email protected]
30-
with:
31-
api-level: ${{ matrix.api-level }}
32-
arch: x86_64
33-
ndk: 21.4.7075529
34-
sdcard-path-or-size: '1000M'
35-
disable-animations: false
36-
script: bash contrib/instrumentation_nightly.sh
37-
38-
- name: Upload screenshot result
39-
uses: actions/upload-artifact@v1
40-
if: failure()
41-
with:
42-
name: ${{ matrix.api-level }}
43-
path: screencap.png
44-
45-
unit_test_and_release:
46-
runs-on: ubuntu-18.04
47-
steps:
48-
49-
- name: checkout
50-
uses: actions/checkout@v1
51-
with:
52-
fetch-depth: 1
53-
54-
- name: Set up JDK 11
55-
uses: actions/setup-java@v1
56-
with:
57-
java-version: 11
58-
59-
- name: Install NDK
60-
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;22.0.7026061" --sdk_root=${ANDROID_SDK_ROOT}
61-
62-
- name: run unit tests
63-
run: ./gradlew testDebugUnitTest testCustomExampleDebugUnitTest
23+
distribution: temurin
6424

6525
- name: build debug
66-
run: ./gradlew assembleDebug
26+
run: ./gradlew assembleNightly
6727

6828
- name: Decrypt files
6929
env:
@@ -77,7 +37,7 @@ jobs:
7737

7838
- name: release debug to kiwix.download.org
7939
env:
80-
UNIVERSAL_DEBUG_APK: app/build/outputs/apk/debug/*universal*.apk
40+
UNIVERSAL_DEBUG_APK: app/build/outputs/apk/nightly/*universal*.apk
8141
run: |
8242
mkdir $DATE
8343
cp $UNIVERSAL_DEBUG_APK $DATE

0 commit comments

Comments
 (0)