From 7810c8e84b14575cf984118e125fcd02b74c8601 Mon Sep 17 00:00:00 2001 From: LeanBitLab Date: Sun, 15 Nov 2026 12:24:51 +0530 Subject: [PATCH] build: raise offline flavor minSdk from 21 to 23 Android 6.0 is the supported minimum. This clears the ~295 offline-only lint errors that only apply below API 23 (vector paths, long log tags, View.setForeground, Paint.hasGlyph). Align defaultConfig and the README and FEATURES.md flavor tables. --- README.md | 2 +- app/build.gradle.kts | 4 ++-- docs/FEATURES.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 32e7c42b1..e4900ebd6 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ LeanType is available in two purpose-built flavors designed to match your exact | **Plugins & Models Setup** | In-app download or File import | Browser download + File import | | **Internet Permission** | 🌐 Optional *(Cloud AI / Updates)* | 🚫 **None** *(OS-level blocked)* | | **Package ID** | `com.leanbitlab.leantype` | `com.leanbitlab.leantype.offline` | -| **Min Android Version** | Android 6.0+ *(SDK 23)* | Android 5.0+ *(SDK 21)* | +| **Min Android Version** | Android 6.0+ *(SDK 23)* | Android 6.0+ *(SDK 23)* | | **Approximate APK Size** | **~12.8 MB** | **~12.5 MB** | > [!TIP] diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 3f14fbf71..2575f8fba 100755 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -21,7 +21,7 @@ android { defaultConfig { applicationId = "com.leanbitlab.leantype" - minSdk = 21 + minSdk = 23 targetSdk = 35 // ponytail: release version 4.3.3 versionCode = 4330 @@ -45,7 +45,7 @@ android { create("offline") { dimension = "privacy" applicationIdSuffix = ".offline" - minSdk = 21 + minSdk = 23 } } diff --git a/docs/FEATURES.md b/docs/FEATURES.md index 8adacc9b6..dffe25f13 100644 --- a/docs/FEATURES.md +++ b/docs/FEATURES.md @@ -566,7 +566,7 @@ LeanType is published in two purpose-built flavors to balance cloud AI capabilit | Flavor | Cloud AI | Offline AI | Voice Input | Handwriting | OCR Extraction | Translation | Update Checker | Internet Permission | Min SDK | Approx Size | | :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | | **Standard (Recommended)** | ✅ | ❌ | ✅ *(Plugin)* | ✅ *(Plugin)* | ✅ *(Plugin)* | ✅ *(Plugin/AI)* | ✅ *(View Release)* | 🌐 Optional *(Opt-in)* | SDK 23 (6.0+) | **~12.8 MB** | -| **Offline** | ❌ | ✅ *(Plugin on 8.0+)* | ✅ *(Plugin)* | ✅ *(Plugin)* | ✅ *(Plugin)* | ✅ *(Plugin)* | ❌ | 🚫 **None** | SDK 21 (5.0+) | **~12.5 MB** | +| **Offline** | ❌ | ✅ *(Plugin on 8.0+)* | ✅ *(Plugin)* | ✅ *(Plugin)* | ✅ *(Plugin)* | ✅ *(Plugin)* | ❌ | 🚫 **None** | SDK 23 (6.0+) | **~12.5 MB** | > [!TIP] > **Concurrent Installation**: The `offline` (`com.leanbitlab.leantype.offline`) build uses a unique package ID, allowing you to install it alongside `standard` on the same device!