| import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
| |
| import static androidx.build.dependencies.DependenciesKt.* |
| |
| plugins { |
| id("AndroidXPlugin") |
| id("AndroidXUiPlugin") |
| id("com.android.application") |
| id("org.jetbrains.kotlin.android") |
| } |
| |
| dependencies { |
| kotlinPlugin project(path: ":compose:compose-compiler") |
| |
| implementation(project(":ui:ui-android-view:integration-tests:ui-android-view-demos")) |
| implementation(project(":ui:ui-animation:integration-tests:ui-animation-demos")) |
| implementation(project(":ui:ui-foundation:integration-tests:ui-foundation-demos")) |
| implementation(project(":ui:ui-framework:integration-tests:ui-framework-demos")) |
| implementation(project(":ui:ui-layout:integration-tests:ui-layout-demos")) |
| implementation(project(":ui:ui-material:integration-tests:ui-material-demos")) |
| implementation(project(":ui:ui-material:integration-tests:ui-material-studies")) |
| implementation(project(":ui:ui-text-core:integration-tests:ui-text-demos")) |
| |
| implementation(KOTLIN_REFLECT) |
| implementation(KOTLIN_STDLIB) |
| |
| implementation project(":compose:compose-runtime") |
| implementation project(":ui:ui-android-view") |
| implementation project(":ui:ui-core") |
| implementation project(":ui:ui-foundation") |
| implementation project(":ui:ui-framework") |
| implementation project(":ui:ui-layout") |
| implementation project(":ui:ui-text-core") |
| implementation project(":ui:ui-foundation") |
| implementation project(":ui:ui-material") |
| implementation project(":ui:integration-tests:demos:common") |
| |
| implementation "androidx.preference:preference-ktx:1.1.0" |
| } |
| |
| android { |
| defaultConfig { |
| minSdkVersion 21 |
| } |
| // Kotlin generates kotlin_module files based off the gradle *sub*module name, ignoring the |
| // parent project - this means that we generate multiple of these files for any project with a |
| // :samples subproject |
| packagingOptions { |
| exclude 'META-INF/samples_debug.kotlin_module' |
| } |
| } |
| |
| tasks.withType(KotlinCompile).configureEach { |
| kotlinOptions { |
| useIR = true |
| } |
| } |