Skip to content

Open-source Android PDF and document toolkit with PDF tools, Office viewing, XLSX editing, scanning, and image editing. Built with Kotlin and Jetpack Compose.

Use runner Gradle for release builds

chethan61601f64234d8cb
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 04dcc27..0ae0c01 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -28,7 +28,9 @@ env:
jobs:
apk:
name: APK
- runs-on: ubuntu-latest
+ # Ubuntu's hosted image includes the pinned Gradle version below. Running that installation
+ # avoids downloading the Gradle distribution through the failing services.gradle.org redirect.
+ runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
@@ -54,6 +56,14 @@ jobs:
distribution: temurin
java-version: '21'
+ - name: Verify Gradle
+ run: |
+ actual="$(gradle --version | sed -n 's/^Gradle //p' | head -n 1)"
+ if [ "$actual" != "9.8.1" ]; then
+ echo "::error::Expected runner Gradle 9.8.1, found '$actual'"
+ exit 1
+ fi
+
# the Rust release and targets rust-toolchain.toml names
- name: Install Rust
working-directory: engine
@@ -96,7 +106,7 @@ jobs:
run: |
mkdir -p "$GITHUB_WORKSPACE/dist"
for abi in arm64-v8a armeabi-v7a; do
- ./gradlew assembleRelease "-Partefact.abis=$abi" "-Partefact.version=$VERSION" --no-daemon
+ gradle assembleRelease "-Partefact.abis=$abi" "-Partefact.version=$VERSION" --no-daemon --no-configuration-cache
suffix=""; [ "$abi" = arm64-v8a ] || suffix="-$abi"
cp app/build/outputs/apk/release/app-release.apk "$GITHUB_WORKSPACE/dist/Artefact-v$VERSION$suffix.apk"
done
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
index f874277..dcf97e7 100644
--- a/android/gradle/wrapper/gradle-wrapper.properties
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
-distributionSha256Sum=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f
+distributionUrl=https\://services.gradle.org/distributions/gradle-9.8.1-bin.zip
+distributionSha256Sum=dce76f55f8e251a3a1f130eb120f30b3d271de2b76c9b0729d316b5a1b6dc01f
networkTimeout=180000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME