Skip to content

Move Arcaea Offline Database to :shared module - #78

Merged
283375 merged 5 commits into
masterfrom
refactor/db-cmp-shared-20261014
Oct 15, 2026
Merged

283375 merged 5 commits into
masterfrom
refactor/db-cmp-shared-20261014

Conversation

@283375

@283375 283375 commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator

Closes #39.

Part of #24.

* First step of the database package relocation from :core into shared
  commonMain: room3 runtime, bundled SQLite driver and kotlinx-datetime
  for commonMain, room3 compiler via KSP for the android and jvm targets
* The room3 database now compiles for the android and desktop targets;
  schemas move with it because AutoMigration codegen validates against
  the module-local schema directory
* The common factory builds from a caller-provided builder and holds no
  global state; the cached singleton stays in androidMain
* Desktop resolves the location via FileKit.databasesDir and a future
  location picker can override it via FileKit.init
* DatabaseMigrationsTest and the DAO/repository tests now run on the host
  JVM via the bundled driver; the instrumented Context builders are replaced
  with the common no-context builder, and the 7→8 seed script drops its
  android_metadata statement which the bundled driver does not create
* Importer tests moved to :shared jvmTest
@283375 283375 changed the title Move Arcaea Offline Databse to :shared module Move Arcaea Offline Database to :shared module Oct 15, 2026
@283375
283375 marked this pull request as ready for review October 15, 2026 02:23
@283375
283375 merged commit 246fa48 into master Oct 15, 2026
3 of 4 checks passed
@283375
283375 deleted the refactor/db-cmp-shared-20261014 branch October 15, 2026 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate to Room3

1 participant