build.gradle 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. defaultConfig {
  23. applicationId "com.example.android.guesstheword"
  24. minSdkVersion 19
  25. targetSdkVersion 30
  26. versionCode 1
  27. versionName "1.0"
  28. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  29. }
  30. buildTypes {
  31. release {
  32. minifyEnabled false
  33. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  34. }
  35. }
  36. buildFeatures {
  37. dataBinding true
  38. }
  39. compileOptions {
  40. sourceCompatibility JavaVersion.VERSION_1_8
  41. targetCompatibility JavaVersion.VERSION_1_8
  42. }
  43. kotlinOptions {
  44. jvmTarget = '1.8'
  45. }
  46. }
  47. dependencies {
  48. implementation fileTree(dir: 'libs', include: ['*.jar'])
  49. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  50. implementation 'androidx.appcompat:appcompat:1.2.0'
  51. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  52. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  53. testImplementation 'junit:junit:4.13.1'
  54. androidTestImplementation 'androidx.test:runner:1.3.0'
  55. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  56. // KTX
  57. implementation 'androidx.core:core-ktx:1.3.2'
  58. // Navigation
  59. implementation 'androidx.navigation:navigation-fragment-ktx:2.3.2'
  60. implementation 'androidx.navigation:navigation-ui-ktx:2.3.2'
  61. // Lifecycles
  62. implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
  63. }