- Multi-module Android project: app/ (entry point), composeApp/ (UI),
core/domain/ (pure-Kotlin interfaces), core/data/ (ObjectBox-backed
repository).
- Privacy-first: no INTERNET permission, no analytics, auto-backup
disabled (data_extraction_rules.xml excludes all domains).
- AGPL-3.0 licensed with full LICENSE + NOTICE files.
- Material 3 UI with dynamic color on Android 12+, dark/light theme
follows system.
- v0.1.1 polish:
* Editor text field shrinks above the soft keyboard (Scaffold
contentWindowInsets union(systemBars, ime) + windowSoftInputMode
adjustResize).
* List cards now render title (first non-empty line, titleMedium)
plus abbreviated body preview (max 2 lines, ellipsised). Empty
notes display as 'Untitled'.
* versionCode 1 -> 2, versionName 0.1.0 -> 0.1.1.
59 lines
1.5 KiB
Kotlin
59 lines
1.5 KiB
Kotlin
// core/data — ObjectBox-backed implementation of the domain repository.
|
|
// The ObjectBox Gradle plugin isn't published with a plugin marker, so we
|
|
// wire it through a buildscript classpath here.
|
|
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
// ObjectBox plugin classpath. Version is pinned via libs.versions.toml
|
|
// through a generated accessor; here we hard-code for clarity.
|
|
classpath("io.objectbox:objectbox-gradle-plugin:${libs.versions.objectbox.get()}")
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
alias(libs.plugins.androidLibrary)
|
|
alias(libs.plugins.kotlinAndroid)
|
|
}
|
|
|
|
// Apply the ObjectBox plugin AFTER the classpath is on the buildscript.
|
|
apply(plugin = "io.objectbox")
|
|
|
|
android {
|
|
namespace = "org.incido.data"
|
|
compileSdk = 35
|
|
|
|
defaultConfig {
|
|
minSdk = 26
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(17)
|
|
}
|
|
|
|
sourceSets {
|
|
getByName("main") {
|
|
// ObjectBox generates a MyObjectBox class at build time; expose
|
|
// the generated sources directory.
|
|
kotlin.srcDirs("build/generated/source/objectbox")
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":core:domain"))
|
|
implementation(libs.kotlinx.coroutines.core)
|
|
|
|
// ObjectBox runtime
|
|
implementation(libs.objectbox.android)
|
|
implementation(libs.objectbox.kotlin)
|
|
}
|