Dependency Injection – 2 – 程式碼範例 – 使用 Koin 來完成 SharedPreferences 實例的依賴注入
簡介 承續之前的程式碼 (Dependency Injection – 1 – 程式碼範例 – 自行撰寫將 S... » read more
簡介 承續之前的程式碼 (Dependency Injection – 1 – 程式碼範例 – 自行撰寫將 S... » read more
依賴 libs.versions.toml build.gradle.kt (Project level) b... » read more
範例簡介 我們以使用 SharedPreferences 為例來示範在 ViewModel 中的依賴注入。 範... » read more
簡介 Dependency Injection (DI,依賴注入) 是一種設計模式 (Design Patte... » read more
說明 在 UserMainScreen (route 名稱為 user_main) 的文字方塊中輸入姓名,按下... » read more
重要元件 NavController 這是整個 Navigation compose 的核心元件,它會追蹤 c... » read more
App 架構 程式碼範例 – 基本用法 build.gradle.kt (Module level... » read more
這裏只用到基本的 CIO Engine 來取得文字資料,並開啟簡單的 logging 功能,讓初次使用的人能有... » read more
簡介 BuildConfig 這個功能,可以讓我們針對不同的階段(如:release, debug…... » read more