blob: ad5c90bd80be39bca0d3a4724436407c4916b06d [file] [log] [blame]
/*
* Copyright 2020 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.
*/
plugins {
id("AndroidXPlugin")
id("com.android.application")
id("kotlin-android")
}
android {
defaultConfig {
applicationId "androidx.camera.integration.uiwidgets"
minSdkVersion 21
versionCode 1
versionName "1.0"
}
sourceSets {
main.manifest.srcFile "src/main/AndroidManifest.xml"
main.java.srcDirs = ["src/main/java"]
main.java.excludes = ["**/build/**"]
main.java.includes = ["**/*.java"]
main.res.srcDirs = ["src/main/res"]
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
}
}
buildFeatures {
viewBinding true
}
}
dependencies {
// Internal library
implementation(libs.kotlinStdlib)
implementation(project(":camera:camera-camera2"))
implementation(project(":camera:camera-lifecycle"))
implementation(project(":camera:camera-view"))
// Android Support Library
implementation("androidx.appcompat:appcompat:1.2.0")
implementation("androidx.viewpager2:viewpager2:1.0.0")
// Testing framework
androidTestImplementation(libs.testExtJunit)
androidTestImplementation(libs.testCore)
androidTestImplementation(libs.testRunner)
androidTestImplementation(libs.testRules)
androidTestImplementation(libs.testUiautomator)
androidTestImplementation(libs.espressoCore)
androidTestImplementation(project(":camera:camera-testing"))
androidTestImplementation(project(":internal-testutils-runtime"))
androidTestImplementation(libs.truth)
debugImplementation(libs.testCore)
debugImplementation("androidx.fragment:fragment-testing:1.2.5")
// Testing resource dependency for manifest
debugImplementation(project(":camera:camera-testing"))
}