| import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
| |
| import static androidx.build.dependencies.DependenciesKt.* |
| import androidx.build.LibraryGroups |
| import androidx.build.LibraryVersions |
| import androidx.build.Publish |
| |
| plugins { |
| id("AndroidXPlugin") |
| id("com.android.library") |
| id("AndroidXUiPlugin") |
| id("org.jetbrains.kotlin.android") |
| } |
| |
| dependencies { |
| kotlinPlugin project(path: ":compose-plugin-cli-gradle", configuration: "pluginForGradle") |
| |
| api "androidx.annotation:annotation:1.0.0" |
| api "androidx.activity:activity:1.0.0-alpha01" |
| api(KOTLIN_COMPOSE_STDLIB) |
| api(KOTLIN_COMPOSE_COROUTINES) |
| api project(":compose-runtime") |
| api project(':ui-material') |
| api project(':ui-android-view-non-ir') |
| implementation project(":ui-layout") |
| } |
| |
| android { |
| tasks.withType(KotlinCompile).configureEach { |
| kotlinOptions { |
| useIR = true |
| } |
| } |
| } |
| |
| androidx { |
| name = "Crane Material Composables" |
| publish = Publish.SNAPSHOT_AND_RELEASE |
| mavenVersion = LibraryVersions.UI |
| mavenGroup = LibraryGroups.UI |
| inceptionYear = "2019" |
| description = "This is a temporary project for Material composables." |
| } |