build.gradle 2.0 KB

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