Skip to content

Commit ea872f3

Browse files
jamesarichclaude
andauthored
build: migrate KMP Android DSL from androidLibrary {} to android {} (#5734)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 611f9b3 commit ea872f3

23 files changed

Lines changed: 23 additions & 23 deletions

File tree

build-logic/convention/src/main/kotlin/org/meshtastic/buildlogic/KotlinAndroid.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ internal fun Project.configureKotlinMultiplatform() {
118118

119119
// Default: disable Android resources for most KMP modules.
120120
// Modules that need resources (e.g. core:resources) override this
121-
// explicitly in their build.gradle.kts androidLibrary {} block.
121+
// explicitly in their build.gradle.kts android {} block.
122122
androidResources.enable = false
123123

124124
// Set the namespace automatically if not already set

core/ble/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ plugins {
2121
}
2222

2323
kotlin {
24-
androidLibrary { withHostTest { isIncludeAndroidResources = true } }
24+
android { withHostTest { isIncludeAndroidResources = true } }
2525

2626
sourceSets {
2727
commonMain.dependencies {

core/common/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ plugins {
2323
}
2424

2525
kotlin {
26-
androidLibrary { withHostTest { isIncludeAndroidResources = true } }
26+
android { withHostTest { isIncludeAndroidResources = true } }
2727

2828
sourceSets {
2929
commonMain.dependencies {

core/data/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ plugins {
2323
}
2424

2525
kotlin {
26-
androidLibrary { withHostTest { isIncludeAndroidResources = true } }
26+
android { withHostTest { isIncludeAndroidResources = true } }
2727

2828
sourceSets {
2929
commonMain.dependencies {

core/database/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ plugins {
2424
}
2525

2626
kotlin {
27-
androidLibrary {
27+
android {
2828
withHostTest { isIncludeAndroidResources = true }
2929
withDeviceTest { instrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" }
3030
}

core/datastore/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ plugins {
2222
}
2323

2424
kotlin {
25-
androidLibrary { withHostTest {} }
25+
android { withHostTest {} }
2626

2727
sourceSets {
2828
commonMain.dependencies {

core/domain/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ plugins {
2121
}
2222

2323
kotlin {
24-
androidLibrary { withHostTest { isIncludeAndroidResources = true } }
24+
android { withHostTest { isIncludeAndroidResources = true } }
2525

2626
sourceSets {
2727
commonMain.dependencies {

core/model/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ plugins {
2424
}
2525

2626
kotlin {
27-
androidLibrary {
27+
android {
2828
withHostTest { isIncludeAndroidResources = true }
2929
withDeviceTest { instrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" }
3030
}

core/network/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ plugins {
2323
}
2424

2525
kotlin {
26-
androidLibrary { withHostTest { isIncludeAndroidResources = true } }
26+
android { withHostTest { isIncludeAndroidResources = true } }
2727

2828
sourceSets {
2929
commonMain.dependencies {

core/prefs/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ plugins {
2121
}
2222

2323
kotlin {
24-
androidLibrary { withHostTest {} }
24+
android { withHostTest {} }
2525

2626
sourceSets {
2727
commonMain.dependencies {

0 commit comments

Comments
 (0)