01
Dev.to Kotlin
作者:freerave
發布:03-17 11:00
I Had 3 Abandoned Apps, Then Kotlin Pulled Me Back In
One quiet evening I opened Android Studio, looked at Kotlin syntax, and thought: "Wait... this is actually fun."
重點摘要
Kotlin and Jetpack Compose reignited development and led to shipping DotReminder v0.0.5
Key features: AI (Gemini), biometric auth, 2FA, real-time Firestore sessions
Major optimizations: AGP 9.0/KSP migration and removing video backgrounds cut app size drastically
The author recounts leaving three Android projects abandoned until Kotlin rekindled their motivation and produced DotReminder v0.0.5. Early versions were experimental—Jetpack Compose, Hilt, Firebase and features like Gemini-powered chat, geofencing reminders, themes, biometric auth, 2FA, and widgets. v0.0.3 moved from mocks to real Firestore-backed active sessions (with proper security rules) and fixed a biometric crash by switching MainActivity to AppCompatActivity. The AGP 9.0 migration (switching to KSP) sped builds and required dependency changes. A major cleanup replaced 74MB of video backgrounds with Compose gradients, shrinking the app from 95MB to 20.5MB. The AI was upgraded to Gemini 2.5-flash with a JSON extractor to parse natural-language reminders. Roadmap items include real password changes, calendar integration, and wider use of AI parsing. The overarching lesson: discarded projects taught critical lessons that culminated in a focused, polished app.
我有三个被弃置的应用,然后 Kotlin 把我拉回来了
某个安静的夜晚我打开 Android Studio,看着 Kotlin 语法,心想:「等等……这其实很有趣。」
重點摘要
Kotlin 与 Compose 重新点燃开发兴趣,催生 DotReminder v0.0.5
主要功能:Gemini AI、生物识别、双重认证与实时 Firestore 会话
通过 AGP 9.0/KSP 迁移与移除视频背景,大幅缩短构建与减小应用体积
作者讲述在放弃三个 Android 项目后,因对 Kotlin 的兴趣回归并在几个月内发布 DotReminder v0.0.5。最初版本以试验为主:使用 Jetpack Compose、Hilt、Firebase,加入 Gemini 驱动的自然语言聊天、地理围栏提醒、多主题、指纹认证、2FA 与小部件。v0.0.3 将模拟的 Active Sessions 替换为基于 Firestore 的实时数据,并修复了因使用 ComponentActivity 而导致 BiometricPrompt 崩溃的错误,且补上 sessions 子集合的 Firestore 规则。迁移到 AGP 9.0 时改用 KSP,显著加快构建;并将 74MB 的视频背景替换为 Compose 渐变,使应用从 95MB 缩减到 20.5MB。还升级到 Gemini 2.5-flash,并实现将自然语言解析为 JSON 的提取器用于创建提醒。未来计划包括实现真实的密码更改、日历功能及在更多流程中使用 AI 解析。作者总结:被弃置的项目都是付费的教训,这些经验最终汇聚成现在的应用。
我有三個被棄置的應用,然後 Kotlin 把我拉回來了
某個安靜的晚上我打開 Android Studio,看著 Kotlin 語法,心想:「等等……這其實很有趣。」
重點摘要
Kotlin 與 Compose 讓作者重燃開發熱情並推出 DotReminder v0.0.5
功能包含 Gemini AI、指紋/生物辨識、兩步驗證與即時 Firestore 會話
透過 AGP 9.0/KSP 遷移與移除影片背景,顯著縮短建置與減少 APK 大小
作者描述原本放置三個 Android 專案後,因為某晚對 Kotlin 的興趣再次投入,完成 DotReminder v0.0.5。開發初期以玩樂為主,嘗試 Jetpack Compose、Hilt、Firebase,以及支援自然語言的 Gemini 聊天、地理圍欄提醒、多主題、指紋認證、2FA 與桌面小工具。v0.0.3 將模擬的 Active Sessions 換成 Firestore 實時資料,並修正因使用 ComponentActivity 而導致 BiometricPrompt 崩潰的問題;同時補上 sessions 子集合的安全規則。升級到 AGP 9.0 時改用 KSP 減少建置時間;移除 74MB 影片背景改用 Compose 漸層,將應用從 95MB 縮至 20.5MB。最後升級 Gemini 模型並以 JSON 提取器將自然語言轉為結構化提醒,未來計畫包括正式的密碼變更、日曆整合與擴展 AI 功能。作者把被棄置的專案視為學習成本,最終匯聚成現在的成果。