/* * Copyright 2018, The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-kapt' apply plugin: 'androidx.navigation.safeargs' android { compileSdkVersion 30 defaultConfig { applicationId "com.example.android.trackmysleepquality" minSdkVersion 19 targetSdkVersion 30 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } // Enables data binding. buildFeatures { dataBinding true } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$version_kotlin" // Support libraries implementation "androidx.constraintlayout:constraintlayout:$version_constraint_layout" // Android KTX implementation "androidx.core:core-ktx:$version_core" // Room and Lifecycle dependencies implementation "androidx.room:room-runtime:$version_room" kapt "androidx.room:room-compiler:$version_room" implementation "androidx.lifecycle:lifecycle-extensions:$version_lifecycle_extensions" // Coroutines implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$version_coroutine" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$version_coroutine" // Navigation implementation "androidx.navigation:navigation-fragment-ktx:$version_navigation" implementation "androidx.navigation:navigation-ui-ktx:$version_navigation" // Testing testImplementation 'junit:junit:4.13.1' androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' }