blob: 040fd735db5a767459af7fa1f4ed49f7b9712253 [file]
/*./material/material/build.gradle
* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* This file was created using the `createProject` gradle task (./gradlew createProject)
*
* Please use the task when creating a new project, rather than copying an existing project and
* modifying its settings.
*/
import androidx.build.SoftwareType
import androidx.build.PlatformIdentifier
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("AndroidXPlugin")
id("AndroidXComposePlugin")
}
androidXMultiplatform {
androidLibrary {
compileSdk { version = release(35) }
namespace = "androidx.compose.material"
androidResources.enable = true
}
jvmStubs()
linuxX64Stubs()
defaultPlatform(PlatformIdentifier.ANDROID)
sourceSets {
commonMain.dependencies {
api("androidx.compose.animation:animation-core:1.8.2")
api("androidx.compose.foundation:foundation:1.8.2")
api("androidx.compose.ui:ui-text:1.8.2")
api("androidx.compose.material:material-ripple:1.8.2")
api(project(":compose:runtime:runtime"))
api("androidx.compose.ui:ui:1.8.2")
implementation("androidx.compose.animation:animation-core:1.8.2")
implementation("androidx.compose.animation:animation:1.8.2")
implementation("androidx.compose.foundation:foundation-layout:1.8.2")
implementation("androidx.compose.ui:ui-util:1.8.2")
}
androidMain.dependencies {
api("androidx.annotation:annotation:1.8.1")
api("androidx.annotation:annotation-experimental:1.4.1")
// TODO: remove next 3 dependencies when b/202810604 is fixed
implementation("androidx.savedstate:savedstate:1.2.1")
implementation("androidx.lifecycle:lifecycle-runtime:2.6.1")
implementation("androidx.lifecycle:lifecycle-viewmodel:2.6.1")
}
androidDeviceTest.dependencies {
implementation(project(":compose:foundation:foundation"))
implementation(project(":compose:material:material:material-samples"))
implementation(project(":compose:test-utils"))
implementation("androidx.compose.ui:ui-test:1.6.0")
implementation("androidx.compose.ui:ui-test-junit4:1.6.0")
implementation(project(":test:screenshot:screenshot"))
implementation(libs.testRules)
implementation(libs.testRunner)
implementation(libs.junit)
implementation(libs.truth)
implementation(libs.dexmakerMockito)
implementation(libs.mockitoCore)
implementation(libs.mockitoKotlin)
implementation(libs.testUiautomator)
}
androidHostTest.dependencies {
implementation(libs.testRules)
implementation(libs.testRunner)
implementation(libs.junit)
implementation(libs.truth)
}
}
}
dependencies {
lintChecks(project(":compose:material:material-lint"))
lintPublish(project(":compose:material:material-lint"))
}
androidx {
name = "Compose Material Components"
type = SoftwareType.PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS
mavenVersion = LibraryVersions.COMPOSE
inceptionYear = "2018"
description = "Compose Material Design Components library"
samples(project(":compose:material:material:material-samples"))
addGoldenImageAssets()
}