| Chaohui Wang | c325a32 | 2022-11-03 18:18:38 +0800 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | plugins { |
| 18 | id 'com.android.library' |
| 19 | id 'kotlin-android' |
| 20 | } |
| 21 | |
| 22 | android { |
| Chaohui Wang | 689f2d8 | 2022-11-14 15:12:00 +0800 | [diff] [blame] | 23 | compileSdk TARGET_SDK |
| 24 | buildToolsVersion = BUILD_TOOLS_VERSION |
| Chaohui Wang | c325a32 | 2022-11-03 18:18:38 +0800 | [diff] [blame] | 25 | |
| 26 | defaultConfig { |
| Chaohui Wang | 689f2d8 | 2022-11-14 15:12:00 +0800 | [diff] [blame] | 27 | minSdk MIN_SDK |
| 28 | targetSdk TARGET_SDK |
| Chaohui Wang | c325a32 | 2022-11-03 18:18:38 +0800 | [diff] [blame] | 29 | } |
| 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 Wang | a12b11d | 2022-11-17 00:01:38 +0800 | [diff] [blame] | 45 | freeCompilerArgs = ["-Xjvm-default=all"] |
| Chaohui Wang | c325a32 | 2022-11-03 18:18:38 +0800 | [diff] [blame] | 46 | } |
| 47 | } |
| 48 | |
| 49 | dependencies { |
| Zekan Qian | e63c91c | 2022-11-24 12:03:51 +0800 | [diff] [blame] | 50 | api "androidx.arch.core:core-runtime:2.1.0" |
| Chaohui Wang | 1b5dc7a | 2022-11-21 19:34:07 +0800 | [diff] [blame] | 51 | 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 Wang | c325a32 | 2022-11-03 18:18:38 +0800 | [diff] [blame] | 55 | } |