blob: be8df436712d0892075bdaa8c1ed58c076d7f377 [file] [log] [blame]
Chaohui Wangc325a322022-11-03 18:18:38 +08001/*
2 * Copyright 2022 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
17plugins {
18 id 'com.android.library'
19 id 'kotlin-android'
20}
21
22android {
Chaohui Wang689f2d82022-11-14 15:12:00 +080023 compileSdk TARGET_SDK
24 buildToolsVersion = BUILD_TOOLS_VERSION
Chaohui Wangc325a322022-11-03 18:18:38 +080025
26 defaultConfig {
Chaohui Wang689f2d82022-11-14 15:12:00 +080027 minSdk MIN_SDK
28 targetSdk TARGET_SDK
Chaohui Wangc325a322022-11-03 18:18:38 +080029 }
30
31 sourceSets {
32 main {
33 kotlin {
34 srcDir "src"
35 }
36 manifest.srcFile "AndroidManifest.xml"
37 }
38 }
39 compileOptions {
40 sourceCompatibility JavaVersion.VERSION_1_8
41 targetCompatibility JavaVersion.VERSION_1_8
42 }
43 kotlinOptions {
44 jvmTarget = '1.8'
Chaohui Wanga12b11d2022-11-17 00:01:38 +080045 freeCompilerArgs = ["-Xjvm-default=all"]
Chaohui Wangc325a322022-11-03 18:18:38 +080046 }
47}
48
49dependencies {
Zekan Qiane63c91c2022-11-24 12:03:51 +080050 api "androidx.arch.core:core-runtime:2.1.0"
Chaohui Wang1b5dc7a2022-11-21 19:34:07 +080051 api "androidx.compose.ui:ui-test-junit4:$jetpack_compose_version"
52 api "com.google.truth:truth:1.1.3"
53 api "org.mockito:mockito-core:2.21.0"
54 debugApi "androidx.compose.ui:ui-test-manifest:$jetpack_compose_version"
Chaohui Wangc325a322022-11-03 18:18:38 +080055}