• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 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  *      http://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 
<lambda>null17 plugins {
18     alias(libs.plugins.android.library)
19     alias(libs.plugins.kotlin.android)
20     alias(libs.plugins.kotlin.kapt)
21     alias(libs.plugins.dagger.hilt.android)
22 }
23 
<lambda>null24 android {
25     namespace = "com.google.jetpackcamera.data.camera"
26     compileSdk = libs.versions.compileSdk.get().toInt()
27 
28     defaultConfig {
29         minSdk = libs.versions.minSdk.get().toInt()
30         testOptions.targetSdk = libs.versions.targetSdk.get().toInt()
31         lint.targetSdk = libs.versions.targetSdk.get().toInt()
32 
33         testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
34     }
35 
36     compileOptions {
37         sourceCompatibility = JavaVersion.VERSION_17
38         targetCompatibility = JavaVersion.VERSION_17
39     }
40     kotlin {
41         jvmToolchain(17)
42     }
43 }
44 
<lambda>null45 dependencies {
46     // Testing
47     testImplementation(libs.junit)
48     testImplementation(libs.truth)
49     testImplementation(libs.kotlinx.coroutines.test)
50     testImplementation(libs.mockito.core)
51     androidTestImplementation(libs.androidx.junit)
52     androidTestImplementation(libs.androidx.espresso.core)
53 
54     // Futures
55     implementation(libs.futures.ktx)
56 
57     // CameraX
58     implementation(libs.camera.core)
59     implementation(libs.camera.camera2)
60     implementation(libs.camera.lifecycle)
61     implementation(libs.camera.video)
62 
63     // Hilt
64     implementation(libs.dagger.hilt.android)
65     kapt(libs.dagger.hilt.compiler)
66 
67     // Tracing
68     implementation(libs.androidx.tracing)
69 
70     // Graphics libraries
71     implementation(libs.androidx.graphics.core)
72 
73     // Project dependencies
74     implementation(project(":data:settings"))
75     implementation(project(":core:common"))
76 }
77 
78 // Allow references to generated code
<lambda>null79 kapt {
80     correctErrorTypes = true
81 }
82