1 /* 2 * Copyright 2023 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 * https://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 @file:Suppress("UnstableApiUsage") 17 <lambda>null18plugins { 19 id(libs.plugins.android.library.get().pluginId) 20 id(libs.plugins.android.kotlin.get().pluginId) 21 } 22 <lambda>null23android { 24 namespace = "com.google.accompanist.internal.test" 25 26 compileSdk = 34 27 28 defaultConfig { 29 minSdk = 21 30 testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" 31 } 32 33 compileOptions { 34 sourceCompatibility = JavaVersion.VERSION_1_8 35 targetCompatibility = JavaVersion.VERSION_1_8 36 } 37 38 buildFeatures { 39 buildConfig = false 40 compose = true 41 } 42 43 composeOptions { 44 kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get() 45 } 46 47 lint { 48 textReport = true 49 textOutput = File("stdout") 50 // We run a full lint analysis as build part in CI, so skip vital checks for assemble tasks 51 checkReleaseBuilds = false 52 } 53 packaging { 54 // Certain libraries include licence files in their JARs. Exclude them to enable 55 // our test APK to build (has no effect on our AARs) 56 resources { 57 excludes += listOf("/META-INF/AL2.0", "/META-INF/LGPL2.1") 58 } 59 } 60 } 61 <lambda>null62dependencies { 63 implementation(libs.kotlin.stdlib) 64 implementation(libs.kotlin.coroutines.android) 65 66 implementation(libs.compose.foundation.foundation) 67 api(libs.compose.ui.test.junit4) 68 69 api(libs.androidx.test.core) 70 implementation(libs.truth) 71 } 72