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.application.get().pluginId) 20 id(libs.plugins.android.kotlin.get().pluginId) 21 } 22 <lambda>null23android { 24 compileSdk = 34 25 26 defaultConfig { 27 applicationId = "com.google.accompanist.sample" 28 minSdk = 21 29 targetSdk = 33 30 31 versionCode = 1 32 versionName = "1.0" 33 34 testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" 35 } 36 37 compileOptions { 38 sourceCompatibility = JavaVersion.VERSION_1_8 39 targetCompatibility = JavaVersion.VERSION_1_8 40 } 41 42 buildFeatures { 43 compose = true 44 } 45 46 composeOptions { 47 kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get() 48 } 49 50 buildTypes { 51 getByName("release") { 52 signingConfig = signingConfigs.getByName("debug") 53 } 54 } 55 56 namespace = "com.google.accompanist.sample" 57 } 58 <lambda>null59dependencies { 60 implementation(project(":adaptive")) 61 implementation(project(":drawablepainter")) 62 implementation(project(":insets-ui")) 63 implementation(project(":navigation-animation")) 64 implementation(project(":navigation-material")) 65 implementation(project(":pager")) 66 implementation(project(":pager-indicators")) 67 implementation(project(":permissions")) 68 implementation(project(":placeholder")) 69 implementation(project(":placeholder-material")) 70 implementation(project(":flowlayout")) 71 implementation(project(":systemuicontroller")) 72 implementation(project(":swiperefresh")) 73 implementation(project(":testharness")) // Don't use in production! Use the configurations below 74 testImplementation(project(":testharness")) 75 androidTestImplementation(project(":testharness")) 76 implementation(project(":themeadapter-material")) 77 implementation(project(":themeadapter-material3")) 78 implementation(project(":web")) 79 80 implementation(libs.androidx.appcompat) 81 implementation(libs.mdc) 82 83 implementation(libs.coil.compose) 84 implementation(libs.coil.gif) 85 86 implementation(libs.compose.material.material) 87 implementation(libs.compose.material.iconsext) 88 implementation(libs.compose.material3.material3) 89 implementation(libs.compose.foundation.layout) 90 debugImplementation(libs.compose.ui.tooling) 91 implementation(libs.compose.ui.tooling.preview) 92 implementation(libs.compose.ui.util) 93 94 implementation(libs.androidx.lifecycle.viewmodel.compose) 95 implementation(libs.androidx.activity.compose) 96 97 implementation(libs.androidx.core) 98 implementation(libs.androidx.fragment) 99 implementation(libs.androidx.lifecycle.runtime) 100 101 implementation(libs.kotlin.stdlib) 102 103 lintChecks(project(":permissions-lint")) 104 } 105