1/*
2 * Copyright  2019 Google LLC
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.application'
18
19apply plugin: 'kotlin-android'
20
21apply plugin: 'kotlin-android-extensions'
22
23apply plugin: 'kotlin-kapt'
24
25android {
26    compileSdkVersion 29
27    compileOptions {
28        sourceCompatibility JavaVersion.VERSION_1_8
29        targetCompatibility JavaVersion.VERSION_1_8
30    }
31    defaultConfig {
32        applicationId "com.mobileer.androidfxlab"
33        minSdkVersion 21
34        targetSdkVersion 29
35        versionCode 1
36        versionName "1.0"
37        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
38    }
39    buildTypes {
40        release {
41            minifyEnabled false
42            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
43        }
44    }
45    externalNativeBuild {
46        cmake {
47            path "./CMakeLists.txt"
48            version "3.10.2"
49        }
50    }
51    dataBinding {
52        enabled = true
53    }
54}
55
56dependencies {
57    implementation fileTree(dir: 'libs', include: ['*.jar'])
58    implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
59    implementation 'androidx.appcompat:appcompat:1.1.0'
60    implementation 'androidx.core:core-ktx:1.1.0'
61    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
62    implementation 'androidx.recyclerview:recyclerview:1.0.0'
63    implementation 'com.google.android.material:material:1.2.0-alpha01'
64    testImplementation 'junit:junit:4.12'
65    androidTestImplementation 'androidx.test:runner:1.2.0'
66    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
67}
68