[go: nahoru, domu]

blob: 740f4d598fbfdd2121b933d59ff25f343b39410c [file] [log] [blame]
Louis Pullen-Freilich8f94cb42020-01-27 18:50:13 +00001/*
2 * Copyright 2020 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17import androidx.build.LibraryGroups
18import androidx.build.LibraryVersions
19import androidx.build.Publish
Louis Pullen-Freilich5c6b11e2020-02-06 18:19:09 +000020import androidx.ui.material.icons.generator.tasks.IconGenerationTask
Jim Sprocha88c07a2020-06-25 13:00:03 -070021import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
Louis Pullen-Freilich8f94cb42020-01-27 18:50:13 +000022
23import static androidx.build.dependencies.DependenciesKt.*
24
25plugins {
26 id("AndroidXPlugin")
27 id("com.android.library")
28 id("AndroidXUiPlugin")
Louis Pullen-Freilichfdf08072020-07-20 18:05:24 +010029 id("kotlin-multiplatform")
Louis Pullen-Freilich8f94cb42020-01-27 18:50:13 +000030}
31
Louis Pullen-Freilichfdf08072020-07-20 18:05:24 +010032kotlin {
33 android()
34 sourceSets {
35 commonMain.dependencies {
36 implementation(KOTLIN_STDLIB_COMMON)
37 api project(":compose:ui:ui")
38 }
Louis Pullen-Freilich8f94cb42020-01-27 18:50:13 +000039
Louis Pullen-Freilichfdf08072020-07-20 18:05:24 +010040 androidMain.dependencies {
41 implementation(KOTLIN_STDLIB)
42 }
43 }
Louis Pullen-Freilich8f94cb42020-01-27 18:50:13 +000044}
45
Louis Pullen-Freilichfdf08072020-07-20 18:05:24 +010046IconGenerationTask.registerCoreIconProject(project)
Louis Pullen-Freilich5c6b11e2020-02-06 18:19:09 +000047
Louis Pullen-Freilich8f94cb42020-01-27 18:50:13 +000048androidx {
49 name = "AndroidX Core Material Icons"
50 publish = Publish.SNAPSHOT_AND_RELEASE
51 mavenVersion = LibraryVersions.UI
Louis Pullen-Freilich5d182632020-07-01 14:30:26 +010052 mavenGroup = LibraryGroups.Compose.MATERIAL
Louis Pullen-Freilich8f94cb42020-01-27 18:50:13 +000053 inceptionYear = "2020"
54 description = "AndroidX Core Material Icons"
55}
Jim Sprocha88c07a2020-06-25 13:00:03 -070056
57tasks.withType(KotlinCompile).configureEach {
58 kotlinOptions {
59 freeCompilerArgs += [
60 "-Xallow-jvm-ir-dependencies"
61 ]
62 }
63}