Open-source Android PDF and document toolkit with PDF tools, Office viewing, XLSX editing, scanning, and image editing. Built with Kotlin and Jetpack Compose.
Rust androiddocument-scannerdocximage-editorjetpack-composekotlinliquid-glassofflineopen-sourcepdfpdf-compressorpdf-editorpdf-mergerpdf-readerpdf-splitterpdf-toolspdf-viewerpptxspreadsheet-editorxlsx
feat: an APK for 32-bit ARM phones (#16)
Josh00a3954144d5
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex a2c2d1c..f21b2f5 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -1,10 +1,11 @@-# Release pipeline: pushing a version tag (v0.0.1-beta, v0.2.0, v1.0.0-rc.1, …) builds the APK (for-# 64-bit ARM phones) signed with the release key and makes it a draft GitHub release named after the-# tag, with an empty "What's Changed" section. Fill that in on GitHub and publish the draft: it-# becomes the latest release (betas too: while the app is in beta, every release is one).+# Release pipeline: pushing a version tag (v0.0.1-beta, v0.2.0, v1.0.0-rc.1, …) builds the APKs+# (one for 64-bit ARM phones, one for 32-bit ARM ones) signed with the release key and makes them a+# draft GitHub release named after the tag, with an empty "What's Changed" section. Fill that in on+# GitHub and publish the draft: it becomes the latest release (betas too: while the app is in beta,+# every release is one).#-# A manual run (Actions › Release › Run workflow) is a dry run: it builds the APK at the version in-# gradle.properties and keeps it as the run's artifact, and releases nothing.+# A manual run (Actions › Release › Run workflow) is a dry run: it builds the APKs at the version in+# gradle.properties and keeps them as the run's artifact, and releases nothing.name: Releaseon:@@ -80,6 +81,9 @@ jobs:echo "::warning::No release key: this dry run is signed with the debug key"fi+ # one APK per ABI (each about half the size of one holding both): 64-bit ARM for most+ # phones (pdfcraft-android-<version>.apk), 32-bit ARM for older and low-end ones+ # (pdfcraft-android-<version>-armeabi-v7a.apk)- name: Buildworking-directory: apps/pdfcraft-android/androidenv:@@ -88,9 +92,12 @@ jobs:PDFCRAFT_KEY_ALIAS: ${{ secrets.PDFCRAFT_KEY_ALIAS }}PDFCRAFT_KEY_PASSWORD: ${{ secrets.PDFCRAFT_KEY_PASSWORD }}run: |- ./gradlew assembleRelease "-Ppdfcraft.abis=arm64-v8a" "-Ppdfcraft.version=$VERSION" --no-daemonmkdir -p "$GITHUB_WORKSPACE/dist"- cp app/build/outputs/apk/release/app-release.apk "$GITHUB_WORKSPACE/dist/pdfcraft-android-$VERSION.apk"+ for abi in arm64-v8a armeabi-v7a; do+ ./gradlew assembleRelease "-Ppdfcraft.abis=$abi" "-Ppdfcraft.version=$VERSION" --no-daemon+ suffix=""; [ "$abi" = arm64-v8a ] || suffix="-$abi"+ cp app/build/outputs/apk/release/app-release.apk "$GITHUB_WORKSPACE/dist/pdfcraft-android-$VERSION$suffix.apk"+ done- name: APKrun: |diff --git a/README.md b/README.mdindex 722e437..faf619e 100644--- a/README.md+++ b/README.md@@ -12,6 +12,7 @@<p align="center"><a href="https://github.com/artcraft-android/pdfcraft-android/releases"><img src="https://raw.githubusercontent.com/Kunzisoft/Github-badge/main/get-it-on-github.png" alt="Get it on GitHub" height="60"></a><a href="https://apps.obtainium.imranr.dev/redirect?r=obtainium://add/https://github.com/artcraft-android/pdfcraft-android"><img src="https://raw.githubusercontent.com/ImranR98/Obtainium/main/assets/graphics/badge_obtainium.png" alt="Get it on Obtainium" height="60"></a>+ <br><sub>Each release has two APKs: the plain one for most phones, the <code>-armeabi-v7a</code> one for 32-bit ARM phones.</sub></p><p align="center">diff --git a/apps/pdfcraft-android/README.md b/apps/pdfcraft-android/README.mdindex bf60440..79b8bad 100644--- a/apps/pdfcraft-android/README.md+++ b/apps/pdfcraft-android/README.md@@ -45,6 +45,7 @@ Then open `apps/pdfcraft-android/android` in Android Studio and press Run, or frcd apps/pdfcraft-android/android./gradlew installRelease # phone (arm64) and emulator (x86_64) libraries./gradlew installRelease -Ppdfcraft.abis=arm64-v8a # just the phone's: half the Rust build time+./gradlew installRelease -Ppdfcraft.abis=armeabi-v7a # a 32-bit ARM phone```In PowerShell, quote the property: `.\gradlew.bat installRelease "-Ppdfcraft.abis=arm64-v8a"`.diff --git a/rust-toolchain.toml b/rust-toolchain.tomlindex 8918a50..1108532 100644--- a/rust-toolchain.toml+++ b/rust-toolchain.toml@@ -1,4 +1,4 @@# The Rust release every build uses (CI and a contributor's machine), with the Android targets.[toolchain]channel = "1.99.0"-targets = ["aarch64-linux-android", "x86_64-linux-android"]+targets = ["aarch64-linux-android", "armv7-linux-androideabi", "x86_64-linux-android"]