| /* |
| * Copyright (C) 2019 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. |
| */ |
| // TO debug processor, run: |
| //./gradlew :r:in:k:clean :r:in:k:cC --no-daemon |
| // -Dorg.gradle.debug=true |
| // -Dkotlin.compiler.execution.strategy="in-process" |
| |
| import static androidx.build.dependencies.DependenciesKt.* |
| |
| plugins { |
| id("AndroidXPlugin") |
| id("com.android.application") |
| id("org.jetbrains.kotlin.android") |
| } |
| |
| dependencies { |
| implementation(project(":lifecycle:lifecycle-runtime-ktx")) |
| implementation(project(":activity:activity")) { |
| exclude group: 'androidx.lifecycle' |
| } |
| implementation(project(":lifecycle:lifecycle-viewmodel-savedstate")) { |
| because "Used by :activity:activity" |
| } |
| |
| testImplementation(JUNIT) |
| testImplementation(TRUTH) |
| testImplementation(KOTLIN_COROUTINES_ANDROID) |
| testImplementation(KOTLIN_COROUTINES_TEST) |
| testImplementation(project(":lifecycle:lifecycle-runtime-testing")) |
| |
| androidTestImplementation(project(":lifecycle:lifecycle-runtime-testing")) |
| androidTestImplementation(KOTLIN_COROUTINES_TEST) |
| androidTestImplementation(KOTLIN_COROUTINES_ANDROID) |
| androidTestImplementation(ANDROIDX_TEST_EXT_KTX) |
| androidTestImplementation(TRUTH) |
| androidTestImplementation(ANDROIDX_TEST_RUNNER) |
| androidTestImplementation(ESPRESSO_CORE) |
| } |
| |
| android { |
| kotlinOptions { |
| // Allow usage of Kotlin's @OptIn. |
| freeCompilerArgs += ["-Xopt-in=kotlin.RequiresOptIn"] |
| jvmTarget = '1.8' // necessary to use espresso kotlin extensions |
| } |
| sourceSets { |
| test.java.srcDirs += 'src/test-common/java' |
| androidTest.java.srcDirs += 'src/test-common/java' |
| } |
| } |