refactor(build): Migrate core/common to KMP and cleanup build logic (#4026)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2025-12-17 13:48:01 -06:00 committed by GitHub
parent 506cba254c
commit 61bc9bfdd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 7 additions and 4 deletions

View file

@ -28,7 +28,6 @@ class KmpLibraryConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target) {
apply(plugin = "org.jetbrains.kotlin.multiplatform")
apply(plugin = "org.jetbrains.kotlin.plugin.compose")
apply(plugin = "com.android.kotlin.multiplatform.library")
apply(plugin = "meshtastic.detekt")
apply(plugin = "meshtastic.spotless")

View file

@ -16,10 +16,13 @@
*/
plugins {
alias(libs.plugins.meshtastic.android.library)
alias(libs.plugins.meshtastic.kmp.library)
alias(libs.plugins.kover)
}
android { namespace = "org.meshtastic.core.common" }
kotlin {
@Suppress("UnstableApiUsage")
androidLibrary { namespace = "org.meshtastic.core.common" }
dependencies { implementation(libs.androidx.core.ktx) }
sourceSets { androidMain.dependencies { implementation(libs.androidx.core.ktx) } }
}

View file

@ -19,6 +19,7 @@ import com.android.build.api.dsl.androidLibrary
plugins {
alias(libs.plugins.meshtastic.kmp.library)
alias(libs.plugins.compose.multiplatform)
alias(libs.plugins.compose.compiler)
}
kotlin {