Plan §6.1 step 1, the conservative shape: build converts, Android code
moves UNMODIFIED (git shows pure renames; behaviour diff = zero), and
commonMain starts with only the files that compile for both targets
today — theme Color/Type, PasswordPolicy, ReleaseNotes, LinkedShare-
Composer — behind two new expect/actual seams (justification per §9):
* platformDynamicColorScheme — Android actual keeps the pre-M4
Build.VERSION + dynamicColorScheme branch verbatim; JVM actual
returns null (desktop hides dynamic color, per M3's posture).
* relativeTimestamp — Android actual is DateUtils verbatim; JVM
actual is a java.time approximation of the same format (English-
only until M4 follow-up; desktop has no locale switch yet).
New friction found paying itself into §3/§2 (all fixed in-tree):
* kotlinMultiplatform must be registered at the ROOT with apply false
like the other Kotlin markers — sibling modules' markers put KGP on
the buildscript classpath and the subproject request then dies with
the kapt-style 'already on classpath with unknown version' (§2.5).
* KMP source-set dependency handlers: platform(libs.x) returns raw
notation, not a Dependency — use project.dependencies.platform(…);
debugImplementation is not on the handler (moved to a project-level
dependencies block); androidTestImplementation dropped (no tests).
* ColorScheme is androidx.compose.material3.ColorScheme, NOT
ui.graphics — desktop ships it inside material3-desktop, no extra
artifact needed.
* AGP 8.7.2 > KGP 2.0.21's tested max 8.5 — warning only, same as
the kapt modules; assembleDebug green.
Deliberate deferrals (documented in the build file): :core:domain is
still kotlin("jvm") so commonMain can't see it — NoteColors moves
when domain converts (M4.2, per the Phase-0 recommendation); screens,
ViewModels and AppContainer move with the container seam (M4.3).
Verified: ./gradlew :composeApp:compileKotlinJvm + assembleDebug +
:core:data-jvm:smoke (M1a PASS) + :desktopApp:run --self-test
(SELFTEST wrote note, clean exit) + git status clean over
core/**/objectbox-models (ID model file unchanged, invariant 2).
18 lines
970 B
Kotlin
18 lines
970 B
Kotlin
// Root build file. Plugin aliases are declared here so all subprojects can apply them.
|
|
// NOTE: The ObjectBox Gradle plugin is NOT available via the standard plugin marker,
|
|
// so it's wired through a buildscript classpath in :core:data instead.
|
|
plugins {
|
|
alias(libs.plugins.androidApplication) apply false
|
|
alias(libs.plugins.androidLibrary) apply false
|
|
alias(libs.plugins.kotlinAndroid) apply false
|
|
alias(libs.plugins.kotlinJvm) apply false
|
|
// Phase 1 (M4.1): must be registered here too — otherwise :composeApp's
|
|
// request for the multiplatform plugin collides with the KGP classes the
|
|
// other Kotlin plugin markers already put on the buildscript classpath
|
|
// ("already on classpath with unknown version" — same family as the
|
|
// kapt trap in tools/DESKTOP_PHASE_PLAN.md §2.5).
|
|
alias(libs.plugins.kotlinMultiplatform) apply false
|
|
alias(libs.plugins.kotlinCompose) apply false
|
|
alias(libs.plugins.ksp) apply false
|
|
}
|