summaryrefslogtreecommitdiff
path: root/utils/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'utils/build.gradle')
-rw-r--r--utils/build.gradle75
1 files changed, 75 insertions, 0 deletions
diff --git a/utils/build.gradle b/utils/build.gradle
new file mode 100644
index 0000000..1ef65fa
--- /dev/null
+++ b/utils/build.gradle
@@ -0,0 +1,75 @@
1/*
2 * Copyright 2020 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 * https://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
17apply plugin: 'com.android.library'
18apply plugin: 'kotlin-android'
19
20android {
21 compileSdkVersion 29
22
23 defaultConfig {
24 minSdkVersion 21
25 targetSdkVersion 29
26 versionCode 1
27 versionName "1.0"
28
29 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
30 consumerProguardFiles 'consumer-rules.pro'
31 }
32
33 compileOptions {
34 sourceCompatibility rootProject.ext.java_version
35 targetCompatibility rootProject.ext.java_version
36 }
37
38 kotlinOptions {
39 jvmTarget = "$rootProject.ext.java_version"
40 }
41
42 buildTypes {
43 release {
44 minifyEnabled false
45 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
46 }
47 }
48}
49
50dependencies {
51
52 // Kotlin lang
53 implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
54 implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.4'
55
56 // App compat and UI things
57 implementation 'androidx.appcompat:appcompat:1.1.0'
58 implementation 'androidx.recyclerview:recyclerview:1.1.0'
59
60 // EXIF Interface
61 implementation 'androidx.exifinterface:exifinterface:1.2.0'
62
63 // Unit testing
64 testImplementation 'androidx.test.ext:junit:1.1.1'
65 testImplementation 'androidx.test:rules:1.2.0'
66 testImplementation 'androidx.test:runner:1.2.0'
67 testImplementation 'androidx.test.espresso:espresso-core:3.2.0'
68 testImplementation 'org.robolectric:robolectric:4.3.1'
69
70 // Instrumented testing
71 androidTestImplementation 'androidx.test.ext:junit:1.1.1'
72 androidTestImplementation 'androidx.test:rules:1.2.0'
73 androidTestImplementation 'androidx.test:runner:1.2.0'
74 androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
75}