|
| 1 | +/* |
| 2 | + * Copyright (c) 2019 Google Inc. |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 5 | + * in compliance with the License. You may obtain a copy of the License at |
| 6 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | + * |
| 8 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 9 | + * |
| 10 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 11 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 12 | + * the License. |
| 13 | + */ |
| 14 | + |
| 15 | +apply plugin: 'com.android.application' |
| 16 | +apply plugin: 'kotlin-android' |
| 17 | +apply plugin: 'kotlin-kapt' |
| 18 | +apply plugin: "androidx.navigation.safeargs.kotlin" |
| 19 | + |
| 20 | +android { |
| 21 | + compileSdkVersion 29 |
| 22 | + defaultConfig { |
| 23 | + applicationId "com.materialstudies.reply" |
| 24 | + minSdkVersion 23 |
| 25 | + targetSdkVersion 29 |
| 26 | + versionCode 1 |
| 27 | + versionName "1.0" |
| 28 | + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
| 29 | + } |
| 30 | + dataBinding { |
| 31 | + enabled true |
| 32 | + } |
| 33 | + buildTypes { |
| 34 | + release { |
| 35 | + minifyEnabled false |
| 36 | + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
| 37 | + } |
| 38 | + } |
| 39 | + compileOptions { |
| 40 | + sourceCompatibility = 1.8 |
| 41 | + targetCompatibility = 1.8 |
| 42 | + } |
| 43 | + kotlinOptions { |
| 44 | + jvmTarget = "1.8" |
| 45 | + } |
| 46 | +} |
| 47 | + |
| 48 | +dependencies { |
| 49 | + implementation fileTree(dir: 'libs', include: ['*.jar']) |
| 50 | + |
| 51 | + // Kotlin |
| 52 | + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" |
| 53 | + |
| 54 | + // AndroidX |
| 55 | + implementation 'androidx.appcompat:appcompat:1.1.0' |
| 56 | + implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta2' |
| 57 | + implementation 'androidx.legacy:legacy-support-v4:1.0.0' |
| 58 | + implementation 'androidx.recyclerview:recyclerview:1.1.0-beta05' |
| 59 | + implementation 'androidx.core:core-ktx:1.1.0' |
| 60 | + implementation 'androidx.lifecycle:lifecycle-livedata-core-ktx:2.2.0-beta01' |
| 61 | + implementation "androidx.navigation:navigation-fragment-ktx:$navigation_version" |
| 62 | + implementation "androidx.navigation:navigation-ui-ktx:$navigation_version" |
| 63 | + |
| 64 | + // Glide |
| 65 | + implementation "com.github.bumptech.glide:glide:4.9.0" |
| 66 | + |
| 67 | + // Material Components |
| 68 | + implementation 'com.google.android.material:material:1.1.0-beta01' |
| 69 | + |
| 70 | + // Testing |
| 71 | + testImplementation 'junit:junit:4.12' |
| 72 | + androidTestImplementation 'androidx.test:runner:1.2.0' |
| 73 | + androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' |
| 74 | +} |
0 commit comments