From dd0fcc59792ddb90e5c39d6fb8e1bc10930393dc Mon Sep 17 00:00:00 2001 From: Adib Hanna Date: Wed, 16 Sep 2026 17:08:15 -0500 Subject: [PATCH 1/2] fix: keep Excalidraw's font pack out of the Android bundle The core's Vite helper copies Excalidraw's complete font pack into the build unless told otherwise: 234 files and about 13 MB, 12 MB of which are the 209 Xiaolai CJK handwriting subsets. 1.1.20 shipped without them and drawings resolved their fonts as they always have, so the first packaged build grew the Play download from 30.6 MB to 43.8 MB for no user-visible gain. Pass excalidraw: false to restore the previous asset set (47 web fonts, no excalidraw-assets directory). --- vite.config.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index bfedb2f..d717c2c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -50,7 +50,12 @@ export default defineConfig({ allow: [ROOT] } }, - plugins: [...zenNotesAssets({ harper: false }), react()], + // harper: phones use the system keyboard for spelling; the core never loads it here. + // excalidraw: the core helper would copy Excalidraw's whole font pack (234 files, + // ~13 MB, 12 MB of it the Xiaolai CJK handwriting subsets) into the APK. 1.1.20 + // shipped without it and drawings resolved fonts as they always have, so keep + // the download at ~31 MB instead of ~44 MB. + plugins: [...zenNotesAssets({ harper: false, excalidraw: false }), react()], build: { outDir: 'dist', emptyOutDir: true, From ef0c8eb8d433f2c4f75f642462920c52e0367fcc Mon Sep 17 00:00:00 2001 From: Adib Hanna Date: Wed, 16 Sep 2026 17:08:15 -0500 Subject: [PATCH 2/2] chore: bump Android to versionCode 24 (1.1.21) Version code 23 was uploaded to Play's bundle library before the font-pack regression was caught, so the corrected 1.1.21 bundle needs a new code. --- android/app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index f3d8196..18f539c 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -15,7 +15,7 @@ android { applicationId "md.zennotes" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 23 + versionCode 24 versionName "1.1.21" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" aaptOptions {