mirror of
https://github.com/bulwarkmail/native.git
synced 2026-10-31 08:06:36 +00:00
604eb39340e1f0d35c83d927c8e403b0d008dc22
All 27 locale catalogs were imported statically by `src/i18n/index.ts`, so every cold start evaluated about 4.3 MB of JSON before the first frame, although only English (the fallback) and the active language are ever read. Each catalog is now required from a per-locale loader the first time `translate()` or `getDictionary()` asks for it. `t()` stays synchronous; after a language switch the next render loads the new catalog. English stays a static import because every lookup falls back to it, and the RN overlay is merged when a catalog is first built, as before. Measured with `npx expo export --platform android` (unminified bundle, counting modules reached through top-level requires from the entry): - catalogs evaluated at startup: 28 modules, 4,287 KB -> 2 modules, 193 KB (English and the RN overlay; a non-English user also builds their own catalog on the first render) - modules evaluated at startup: 3,590 -> 3,564; their code: 15,219 KB -> 11,122 KB - the Hermes bundle keeps its size (9.34 MB); the catalogs are still in it, they are just not evaluated until used
Bulwark Mobile
Beta - work in progress. Many features are unfinished or rough. Expect bugs, missing functionality, and breaking changes between releases. Do not rely on this for primary email yet.
React Native (Expo SDK 54) client for Bulwark Webmail - a JMAP-based mail, calendar, and contacts app.
What works today
- Sign in to any JMAP server (e.g. Stalwart)
- Multiple accounts
- Email list, threads, compose
- Calendar (basic)
- Contacts (basic)
- Push notifications via the Bulwark relay - FCM by default, or UnifiedPush (e.g. ntfy) for devices without Google Play services
- In-app sideload updates from GitHub Releases
What's missing or rough
- iOS builds, but push notifications and client certificates are Android-only so far
- S/MIME, plugins, themes - UI stubs only (filters & rules, the vacation responder and file storage are real implementations)
- Calendar editing is partial; contacts editing is basic
- No Play Store distribution yet (sideload APK from Releases); iOS ships via TestFlight
Run locally
npm install
npx expo start
Then press a for Android, i for iOS, or scan the QR with Expo Go.
For release APK builds and signing see docs/android-release.md. For iOS builds and TestFlight distribution see docs/ios-release.md.
License
AGPL-3.0-only. See LICENSE.
Languages
TypeScript
95.5%
Kotlin
2.7%
JavaScript
0.9%
HTML
0.5%
Sieve
0.2%
Other
0.1%