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
Raise Play flavor's minSdk to 24 for Play's automatic app protection
chethan6160b24e0cc1952
diff --git a/app/build.gradle.kts b/app/build.gradle.ktsindex 1e50868..9380a64 100644--- a/app/build.gradle.kts+++ b/app/build.gradle.kts@@ -98,6 +98,10 @@ android {productFlavors {create("play") {dimension = "distribution"+ // Play Console's automatic app protection (Play Integrity tamper detection) needs+ // minSdk 24+; the app itself works fine down to 23, so this is scoped to the Play+ // flavor only — GitHub/F-Droid users on Android 6.0 keep working.+ minSdk = 24// The optional Office engine's prebuilt LibreOffice binaries only cover arm64-v8a and// armeabi-v7a (see office_engine/build.gradle.kts's engineBundles — the upstream// LibreOffice-Lite project ships no x86/x86_64 build). Google Play Bundles requirediff --git a/office_engine/build.gradle.kts b/office_engine/build.gradle.ktsindex 070fc91..bd53a61 100644--- a/office_engine/build.gradle.kts+++ b/office_engine/build.gradle.kts@@ -40,7 +40,9 @@ android {flavorDimensions += "distribution"productFlavors {- create("play") { dimension = "distribution" }+ // Bundletool requires a feature module's minSdk to be >= the base module's. The :app+ // play flavor is 24 (Play's automatic app protection requirement); match it here.+ create("play") { dimension = "distribution"; minSdk = 24 }create("foss") { dimension = "distribution" }}}diff --git a/readme.md b/readme.mdindex ec35940..6ded941 100644--- a/readme.md+++ b/readme.md@@ -90,7 +90,7 @@ Create a PDF from images, text, or local HTML. The FOSS build can also convert a## Supported Android versions and formats-- **Android:** API 23 (Android 6.0) or newer.+- **Android:** API 23 (Android 6.0) or newer on GitHub/F-Droid; API 24 (Android 7.0) or newer on Google Play, which requires 24+ for its automatic app protection.- **Document formats:** PDF; DOC/DOCX; XLS/XLSX; PPT/PPTX; ODT/ODS/ODP; RTF; CSV; TXT.- **Images:** PNG, JPEG, WebP, BMP, and HEIC are supported by the image/document flows. Feature availability can vary by device and Android version.@@ -216,7 +216,7 @@ ClearPDF can annotate PDFs, fill forms, add signatures, and manage pages, but it<details><summary><strong>What Android version do I need?</strong></summary>-Android 6.0 (API 23) or newer. Features provided by Google Play services may not be available on every device.+Android 6.0 (API 23) or newer on GitHub/F-Droid; Android 7.0 (API 24) or newer on Google Play. Features provided by Google Play services may not be available on every device.</details>## Credits