[go: nahoru, domu]

blob: 4d6e31bdd0d9d05a9bc0b4c2a8d744e65c84ea74 [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")
29 id("org.jetbrains.kotlin.android")
30}
31
32dependencies {
33 implementation(KOTLIN_STDLIB)
34
Louis Pullen-Freilich7e6ecdb2020-07-09 15:14:37 +010035 api project(":compose:core:core")
Louis Pullen-Freilich8f94cb42020-01-27 18:50:13 +000036}
37
Louis Pullen-Freilich5c6b11e2020-02-06 18:19:09 +000038IconGenerationTask.registerCoreIconProject(project, android)
39
Louis Pullen-Freilich8f94cb42020-01-27 18:50:13 +000040androidx {
41 name = "AndroidX Core Material Icons"
42 publish = Publish.SNAPSHOT_AND_RELEASE
43 mavenVersion = LibraryVersions.UI
Louis Pullen-Freilich5d182632020-07-01 14:30:26 +010044 mavenGroup = LibraryGroups.Compose.MATERIAL
Louis Pullen-Freilich8f94cb42020-01-27 18:50:13 +000045 inceptionYear = "2020"
46 description = "AndroidX Core Material Icons"
47}
Jim Sprocha88c07a2020-06-25 13:00:03 -070048
49tasks.withType(KotlinCompile).configureEach {
50 kotlinOptions {
51 freeCompilerArgs += [
52 "-Xallow-jvm-ir-dependencies"
53 ]
54 }
55}