build.gradle 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * Copyright 2018, 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. apply plugin: 'com.android.application'
  17. apply plugin: 'kotlin-android'
  18. apply plugin: 'kotlin-kapt'
  19. android {
  20. compileSdkVersion 30
  21. buildFeatures {
  22. dataBinding true
  23. }
  24. defaultConfig {
  25. applicationId 'com.example.android.navigation'
  26. minSdkVersion 19
  27. targetSdkVersion 30
  28. vectorDrawables.useSupportLibrary = true
  29. versionCode 1
  30. versionName "1.0"
  31. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  32. }
  33. buildTypes {
  34. release {
  35. minifyEnabled false
  36. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  37. }
  38. }
  39. productFlavors {
  40. }
  41. }
  42. dependencies {
  43. implementation fileTree(include: ['*.jar'], dir: 'libs')
  44. // Kotlin
  45. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$version_kotlin"
  46. // Constraint Layout
  47. implementation "androidx.constraintlayout:constraintlayout:$version_constraint_layout"
  48. // Core
  49. implementation "androidx.core:core-ktx:$version_core"
  50. // Material Design
  51. implementation "com.google.android.material:material:$version_material"
  52. }