1*7e7863daSAndroid Build Coastguard Worker /* 2*7e7863daSAndroid Build Coastguard Worker * Copyright (C) 2024 The Android Open Source Project 3*7e7863daSAndroid Build Coastguard Worker * 4*7e7863daSAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License"); 5*7e7863daSAndroid Build Coastguard Worker * you may not use this file except in compliance with the License. 6*7e7863daSAndroid Build Coastguard Worker * You may obtain a copy of the License at 7*7e7863daSAndroid Build Coastguard Worker * 8*7e7863daSAndroid Build Coastguard Worker * http://www.apache.org/licenses/LICENSE-2.0 9*7e7863daSAndroid Build Coastguard Worker * 10*7e7863daSAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software 11*7e7863daSAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS, 12*7e7863daSAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*7e7863daSAndroid Build Coastguard Worker * See the License for the specific language governing permissions and 14*7e7863daSAndroid Build Coastguard Worker * limitations under the License. 15*7e7863daSAndroid Build Coastguard Worker */ <lambda>null16*7e7863daSAndroid Build Coastguard Workerplugins { 17*7e7863daSAndroid Build Coastguard Worker alias(libs.plugins.android.library) 18*7e7863daSAndroid Build Coastguard Worker alias(libs.plugins.kotlin.android) 19*7e7863daSAndroid Build Coastguard Worker 20*7e7863daSAndroid Build Coastguard Worker alias(libs.plugins.kotlin.kapt) 21*7e7863daSAndroid Build Coastguard Worker alias(libs.plugins.dagger.hilt.android) 22*7e7863daSAndroid Build Coastguard Worker } 23*7e7863daSAndroid Build Coastguard Worker <lambda>null24*7e7863daSAndroid Build Coastguard Workerandroid { 25*7e7863daSAndroid Build Coastguard Worker namespace = "com.google.jetpackcamera.permissions" 26*7e7863daSAndroid Build Coastguard Worker compileSdk = libs.versions.compileSdk.get().toInt() 27*7e7863daSAndroid Build Coastguard Worker compileSdkPreview = libs.versions.compileSdkPreview.get() 28*7e7863daSAndroid Build Coastguard Worker 29*7e7863daSAndroid Build Coastguard Worker defaultConfig { 30*7e7863daSAndroid Build Coastguard Worker minSdk = libs.versions.minSdk.get().toInt() 31*7e7863daSAndroid Build Coastguard Worker 32*7e7863daSAndroid Build Coastguard Worker testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" 33*7e7863daSAndroid Build Coastguard Worker consumerProguardFiles("consumer-rules.pro") 34*7e7863daSAndroid Build Coastguard Worker } 35*7e7863daSAndroid Build Coastguard Worker 36*7e7863daSAndroid Build Coastguard Worker compileOptions { 37*7e7863daSAndroid Build Coastguard Worker sourceCompatibility = JavaVersion.VERSION_17 38*7e7863daSAndroid Build Coastguard Worker targetCompatibility = JavaVersion.VERSION_17 39*7e7863daSAndroid Build Coastguard Worker } 40*7e7863daSAndroid Build Coastguard Worker 41*7e7863daSAndroid Build Coastguard Worker kotlin { 42*7e7863daSAndroid Build Coastguard Worker jvmToolchain(17) 43*7e7863daSAndroid Build Coastguard Worker } 44*7e7863daSAndroid Build Coastguard Worker buildFeatures { 45*7e7863daSAndroid Build Coastguard Worker buildConfig = true 46*7e7863daSAndroid Build Coastguard Worker compose = true 47*7e7863daSAndroid Build Coastguard Worker } 48*7e7863daSAndroid Build Coastguard Worker composeOptions { 49*7e7863daSAndroid Build Coastguard Worker kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get() 50*7e7863daSAndroid Build Coastguard Worker } 51*7e7863daSAndroid Build Coastguard Worker } 52*7e7863daSAndroid Build Coastguard Worker <lambda>null53*7e7863daSAndroid Build Coastguard Workerdependencies { 54*7e7863daSAndroid Build Coastguard Worker // Compose 55*7e7863daSAndroid Build Coastguard Worker val composeBom = platform(libs.compose.bom) 56*7e7863daSAndroid Build Coastguard Worker implementation(composeBom) 57*7e7863daSAndroid Build Coastguard Worker androidTestImplementation(composeBom) 58*7e7863daSAndroid Build Coastguard Worker 59*7e7863daSAndroid Build Coastguard Worker // Compose - Material Design 3 60*7e7863daSAndroid Build Coastguard Worker implementation(libs.compose.material3) 61*7e7863daSAndroid Build Coastguard Worker implementation(libs.compose.material.icons.extended) 62*7e7863daSAndroid Build Coastguard Worker 63*7e7863daSAndroid Build Coastguard Worker // Compose - Android Studio Preview support 64*7e7863daSAndroid Build Coastguard Worker implementation(libs.compose.ui.tooling.preview) 65*7e7863daSAndroid Build Coastguard Worker debugImplementation(libs.compose.ui.tooling) 66*7e7863daSAndroid Build Coastguard Worker 67*7e7863daSAndroid Build Coastguard Worker // Compose - Integration with ViewModels with Navigation and Hilt 68*7e7863daSAndroid Build Coastguard Worker implementation(libs.hilt.navigation.compose) 69*7e7863daSAndroid Build Coastguard Worker 70*7e7863daSAndroid Build Coastguard Worker 71*7e7863daSAndroid Build Coastguard Worker // Compose - Testing 72*7e7863daSAndroid Build Coastguard Worker androidTestImplementation(libs.compose.junit) 73*7e7863daSAndroid Build Coastguard Worker 74*7e7863daSAndroid Build Coastguard Worker // Accompanist - Permissions 75*7e7863daSAndroid Build Coastguard Worker implementation(libs.accompanist.permissions) 76*7e7863daSAndroid Build Coastguard Worker 77*7e7863daSAndroid Build Coastguard Worker // Hilt 78*7e7863daSAndroid Build Coastguard Worker implementation(libs.dagger.hilt.android) 79*7e7863daSAndroid Build Coastguard Worker kapt(libs.dagger.hilt.compiler) 80*7e7863daSAndroid Build Coastguard Worker 81*7e7863daSAndroid Build Coastguard Worker 82*7e7863daSAndroid Build Coastguard Worker implementation(libs.androidx.core.ktx) 83*7e7863daSAndroid Build Coastguard Worker implementation(libs.androidx.appcompat) 84*7e7863daSAndroid Build Coastguard Worker implementation(libs.android.material) 85*7e7863daSAndroid Build Coastguard Worker testImplementation(libs.junit) 86*7e7863daSAndroid Build Coastguard Worker androidTestImplementation(libs.androidx.junit) 87*7e7863daSAndroid Build Coastguard Worker androidTestImplementation(libs.androidx.espresso.core) 88*7e7863daSAndroid Build Coastguard Worker } 89*7e7863daSAndroid Build Coastguard Worker // Allow references to generated code 90*7e7863daSAndroid Build Coastguard Worker kapt { 91*7e7863daSAndroid Build Coastguard Worker correctErrorTypes = true 92*7e7863daSAndroid Build Coastguard Worker }