blob: f2cbca140e0f4421d8b149819e6a1171bbeb4551 [file] [log] [blame]
/*
* Copyright 2021 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 stores common dependencies that are used both by material-icons-extended and
// by its specific theme projects (each of which compile a specific theme)
import androidx.build.AndroidXComposePlugin
dependencies {
if (!AndroidXComposePlugin.isMultiplatformEnabled(project)) {
/*
* When updating dependencies, make sure to make an analogous update in the
* corresponding block below
*/
api(project(":compose:material:material-icons-core"))
implementation(libs.kotlinStdlibCommon)
implementation(project(":compose:runtime:runtime"))
}
}
if (AndroidXComposePlugin.isMultiplatformEnabled(project)) {
androidXComposeMultiplatform {
android()
desktop()
}
kotlin {
/*
* When updating dependencies, make sure to make an analogous update in the
* corresponding block above
*/
sourceSets {
commonMain.dependencies {
api(project(":compose:material:material-icons-core"))
implementation(libs.kotlinStdlibCommon)
implementation(project(":compose:runtime:runtime"))
}
}
}
}
project.ext.iconExportAttr = Attribute.of("com.androidx.compose.material-icons-extended.Export", String)
project.ext.iconBuildTypeAttr = Attribute.of("com.androidx.compose.material-icons-extended.BuildType", String)