mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
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:
parent
506cba254c
commit
61bc9bfdd2
6 changed files with 7 additions and 4 deletions
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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) } }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue