Phase 1 milestone M1b: a Compose Multiplatform window driven by the same
NoteRepositoryImpl the Android app uses, over its own ObjectBox library.
DesktopContainer mirrors AppContainer's construction order (store,
CipherHolder, repository). Owns its library at
$XDG_DATA_HOME/incido — a separate library per machine,
since ObjectBox is single-writer; the backup file (M2)
is the only bridge to the phone. --data-dir opens
another library, e.g. one pulled off a phone.
Main.kt two panes, save-as-you-type with a 400ms debounce,
favourite toggle. Material 3 defaults on purpose: the
app's theme and screens arrive with the M4 composeApp
conversion, which deletes this stand-in.
Verified headlessly (--self-test drives the same repository calls the "+"
button and the star make, --exit-after auto-closes), against a library
previously written by :core:data-jvm:smoke — i.e. a different module's
generated MyObjectBox, same schema:
RENDER notes=0 selected=null first frame (collectAsState initial value)
RENDER notes=1 selected=1 ObjectBox flow delivered
SELFTEST wrote note id=2 write path through the UI's own calls
RENDER notes=2 selected=2 and it came back through the flow
reopen -> RENDER notes=2 persisted
Gotcha recorded in the findings doc: the first composition always sees the
empty initial value of collectAsState, so anything asserting on note counts
must watch the flow rather than the first frame.
Still synthetic: theme + screens. Not wired yet: settings, encryption (M3),
backup bridge (M2), packaging (M5). assembleDebug verified green.
105 lines
5.8 KiB
TOML
105 lines
5.8 KiB
TOML
[versions]
|
|
# Tooling
|
|
agp = "8.7.2"
|
|
kotlin = "2.0.21"
|
|
ksp = "2.0.21-1.0.28"
|
|
|
|
# Build
|
|
gradleWrapper = "8.10.2"
|
|
|
|
# Compose Multiplatform
|
|
composeMultiplatform = "1.7.3"
|
|
|
|
# AndroidX
|
|
androidxActivityCompose = "1.9.3"
|
|
androidxLifecycle = "2.8.7"
|
|
androidxNavigationCompose = "2.8.4"
|
|
composeBom = "2024.10.01"
|
|
androidxDatastore = "1.1.1"
|
|
androidxBiometric = "1.2.0-alpha05"
|
|
|
|
# Kotlin / Coroutines
|
|
coroutines = "1.9.0"
|
|
kotlinxSerialization = "1.7.3"
|
|
|
|
# Data
|
|
objectbox = "4.0.3"
|
|
|
|
# Exif
|
|
exifinterface = "1.3.7"
|
|
|
|
[libraries]
|
|
# Compose Multiplatform
|
|
compose-multiplatform = { module = "org.jetbrains.compose:compose-bom", version.ref = "composeMultiplatform" }
|
|
compose-ui = { module = "org.jetbrains.compose.ui:ui", version.ref = "composeMultiplatform" }
|
|
compose-ui-tooling = { module = "org.jetbrains.compose.ui:ui-tooling", version.ref = "composeMultiplatform" }
|
|
compose-ui-tooling-preview = { module = "org.jetbrains.compose.ui:ui-tooling-preview", version.ref = "composeMultiplatform" }
|
|
compose-foundation = { module = "org.jetbrains.compose.foundation:foundation", version.ref = "composeMultiplatform" }
|
|
compose-material3 = { module = "org.jetbrains.compose.material3:material3", version.ref = "composeMultiplatform" }
|
|
compose-material-icons-extended = { module = "org.jetbrains.compose.material:material-icons-extended", version.ref = "composeMultiplatform" }
|
|
|
|
# AndroidX Compose BOM
|
|
composeBom = { module = "androidx.compose:compose-bom", version.ref = "composeBom" }
|
|
|
|
# AndroidX
|
|
androidx-activity-compose = { module = "androidx.activity:activity-compose", version.ref = "androidxActivityCompose" }
|
|
androidx-lifecycle-viewmodel = { module = "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel", version = "2.8.4" }
|
|
androidx-lifecycle-viewmodel-compose = { module = "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel-compose", version = "2.8.4" }
|
|
androidx-lifecycle-runtime = { module = "org.jetbrains.androidx.lifecycle:lifecycle-runtime", version = "2.8.4" }
|
|
androidx-lifecycle-process = { module = "androidx.lifecycle:lifecycle-process", version = "2.8.4" }
|
|
androidx-navigation-compose = { module = "androidx.navigation:navigation-compose", version.ref = "androidxNavigationCompose" }
|
|
androidx-core-ktx = { module = "androidx.core:core-ktx", version = "1.13.1" }
|
|
androidx-exifinterface = { module = "androidx.exifinterface:exifinterface", version.ref = "exifinterface" }
|
|
# v0.3.2.0: FragmentActivity (for BiometricPrompt host)
|
|
androidx-fragment-ktx = { module = "androidx.fragment:fragment-ktx", version = "1.8.5" }
|
|
|
|
# v0.3.2.0: Settings / Security / Backup support
|
|
androidx-datastore-preferences = { module = "androidx.datastore:datastore-preferences", version.ref = "androidxDatastore" }
|
|
# Desktop feasibility spike: the multiplatform core of DataStore Preferences,
|
|
# which is what a JVM/desktop SettingsRepository must use (the
|
|
# `preferencesDataStore(name = …)` Context extension the Android app uses is
|
|
# Android-only; on desktop the store is created from a file path).
|
|
androidx-datastore-preferences-core = { module = "androidx.datastore:datastore-preferences-core", version.ref = "androidxDatastore" }
|
|
androidx-biometric = { module = "androidx.biometric:biometric", version.ref = "androidxBiometric" }
|
|
|
|
# Kotlin Serialization (v0.3.2.0 backup JSON codec)
|
|
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinxSerialization" }
|
|
|
|
# Coroutines
|
|
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines" }
|
|
kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "coroutines" }
|
|
# Phase 1 (M1b): Compose Desktop drives its event loop through Swing/AWT, which
|
|
# needs the Swing dispatcher for Dispatchers.Main (the desktop analogue of
|
|
# kotlinx-coroutines-android).
|
|
kotlinx-coroutines-swing = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-swing", version.ref = "coroutines" }
|
|
|
|
# Data
|
|
objectbox-android = { module = "io.objectbox:objectbox-android", version.ref = "objectbox" }
|
|
objectbox-kotlin = { module = "io.objectbox:objectbox-kotlin", version.ref = "objectbox" }
|
|
|
|
# Desktop feasibility spike (Development Plan §6.3) — ObjectBox on the JVM.
|
|
# objectbox-java is the JVM runtime; objectbox-linux is the native library
|
|
# jar. The ObjectBox Gradle plugin only adds the native lib for the build
|
|
# OS, so every shipped platform needs its own artifact
|
|
# (objectbox-linux / objectbox-macos / objectbox-windows).
|
|
objectbox-java = { module = "io.objectbox:objectbox-java", version.ref = "objectbox" }
|
|
objectbox-linux = { module = "io.objectbox:objectbox-linux", version.ref = "objectbox" }
|
|
|
|
[plugins]
|
|
androidApplication = { id = "com.android.application", version.ref = "agp" }
|
|
androidLibrary = { id = "com.android.library", version.ref = "agp" }
|
|
kotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
|
|
kotlinJvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
|
|
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
|
|
kotlinCompose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
|
|
composeCompiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
|
|
kotlinSerialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
|
|
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
|
|
objectbox = { id = "io.objectbox", version.ref = "objectbox" }
|
|
# Desktop feasibility spike (Development Plan §6.3): kapt drives the ObjectBox
|
|
# generator on a plain JVM module, and org.jetbrains.compose is the Compose
|
|
# Multiplatform Gradle plugin that provides the `compose.*` dependency
|
|
# accessors + the `compose.desktop { application { } }` packaging DSL.
|
|
kotlinKapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" }
|
|
compose = { id = "org.jetbrains.compose", version.ref = "composeMultiplatform" }
|