Files
coco 7846a45f2c a
2026-07-03 15:47:27 +08:00

58 lines
1.7 KiB
Kotlin

import org.jetbrains.compose.ExperimentalComposeLibrary
plugins {
id("library-conventions")
id("android-library-conventions")
id(libs.plugins.kotlin.multiplatform.get().pluginId)
id(libs.plugins.kotlin.composeCompiler.get().pluginId)
id(libs.plugins.android.library.get().pluginId)
id(libs.plugins.compose.get().pluginId)
id(libs.plugins.mavenPublish.get().pluginId)
}
mavenPublishing {
pom {
name = "MapLibre Compose Google Play Services"
description = "Google Play Services extensions for MapLibre Compose."
url = "https://github.com/maplibre/maplibre-compose"
}
}
kotlin {
androidLibrary { namespace = "org.maplibre.compose.gms" }
applyDefaultHierarchyTemplate()
sourceSets {
commonMain.dependencies {
api(libs.alchemist)
implementation(compose.material3)
implementation(compose.components.resources)
implementation(libs.bytesize)
implementation(libs.htmlConverterCompose)
api(project(":lib:maplibre-compose"))
}
androidMain.dependencies {
implementation(libs.playServices.location)
implementation(libs.kotlinx.coroutines.playServices)
}
commonTest.dependencies {
implementation(kotlin("test"))
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
@OptIn(ExperimentalComposeLibrary::class) implementation(compose.uiTest)
}
androidHostTest.dependencies { implementation(compose.desktop.currentOs) }
androidDeviceTest.dependencies {
implementation(compose.desktop.uiTestJUnit4)
implementation(libs.androidx.composeUi.testManifest)
}
}
}
compose.resources { packageOfResClass = "org.maplibre.compose.gms.generated" }