Phase 1 milestone M1a (Development Plan §6, desktop track): make the whole
data layer usable from a non-Android build, without touching what the
Android app compiles.
:core:data splits its sources:
src/main/kotlin platform-neutral — entities, repository, field
crypto, NoteCryptoService. Compiled by BOTH
:core:data and :core:data-jvm. Must not import
android.*
src/androidMain/kotlin Android-only seam implementations.
Two seams were required, both identified by the Phase-0 spike:
ObjectBoxStore Context on Android, a directory on desktop. Same
FQN in sibling modules that are never on one
classpath — which is also what keeps
objectbox-android and objectbox-java (they ship
the same io.objectbox.* classes) apart.
ImageOrientationNormalizer EXIF rotation needs a bitmap decoder; the
implementation moved verbatim out of
NoteRepositoryImpl, which is now platform-free.
The parameter is required, not defaulted, so a
platform that forgets it fails the build.
New :core:data-jvm compiles those shared sources against objectbox-java /
objectbox-linux with its own codegen. `:core:data-jvm:smoke` runs the real
NoteRepositoryImpl (save + hashtags + attachment round-trip + close/reopen)
on the JVM: PASS, with the generator reporting "ID model file unchanged" —
one schema, two generated runtimes.
Also: .gitignore excluded **/objectbox-models/, so the schema contract was
never committed and a fresh clone regenerated UIDs. default.json is now
tracked; the rest of that directory stays ignored. This matters more now
that two modules generate from it.
Verified: :core:data-jvm:smoke PASS, assembleDebug green.
45 lines
932 B
Plaintext
45 lines
932 B
Plaintext
# Gradle
|
|
.gradle/
|
|
build/
|
|
!**/src/**/build/
|
|
!**/test/**/build/
|
|
|
|
# Release keystore — generated locally, never committed.
|
|
# See keystore/README.md for instructions on regenerating the dev key.
|
|
keystore/*.jks
|
|
keystore/*.keystore
|
|
keystore/*.p12
|
|
!keystore/README.md
|
|
|
|
# Android Studio / IntelliJ
|
|
.idea/
|
|
*.iml
|
|
*.iws
|
|
*.ipr
|
|
local.properties
|
|
captures/
|
|
.externalNativeBuild/
|
|
.cxx/
|
|
|
|
# Kotlin
|
|
.kotlin/
|
|
|
|
# ObjectBox generated models. The *model file itself* is the schema
|
|
# contract — UIDs in it must stay stable across machines and across the two
|
|
# modules that generate from the same entities (:core:data and
|
|
# :core:data-jvm), so default.json is tracked and everything else stays out.
|
|
**/objectbox-models/*
|
|
!**/objectbox-models/default.json
|
|
|
|
# VS Code
|
|
.vscode/
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Built APKs at the repo root (stamped with version — see Incido
|
|
# Development Plan §11 for the release build procedure).
|
|
incido-*.apk
|
|
Incido-*.apk
|