You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
2.4 KiB

  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. id 'kotlin-android-extensions'
  5. id 'kotlin-kapt'
  6. id 'org.jetbrains.kotlin.android'
  7. id 'androidx.navigation.safeargs'
  8. }
  9. android {
  10. compileSdk 31
  11. defaultConfig {
  12. applicationId "com.example.acapendulum20"
  13. minSdk 26
  14. targetSdk 31
  15. versionCode 1
  16. versionName "1.0"
  17. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  18. }
  19. buildTypes {
  20. release {
  21. minifyEnabled false
  22. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  23. }
  24. }
  25. packagingOptions {
  26. exclude 'META-INF/atomicfu.kotlin_module'
  27. }
  28. compileOptions {
  29. sourceCompatibility JavaVersion.VERSION_1_8
  30. targetCompatibility JavaVersion.VERSION_1_8
  31. }
  32. kotlinOptions {
  33. jvmTarget = '1.8'
  34. }
  35. buildFeatures {
  36. viewBinding = true
  37. }
  38. }
  39. dependencies {
  40. implementation fileTree(dir: "libs", include: ["*.jar"])
  41. implementation 'androidx.core:core-ktx:1.8.0'
  42. implementation 'androidx.appcompat:appcompat:1.4.2'
  43. implementation 'com.google.android.material:material:1.6.1'
  44. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  45. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  46. testImplementation 'junit:junit:4.13.2'
  47. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  48. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  49. // Navigation Component
  50. implementation 'androidx.navigation:navigation-fragment-ktx:2.5.0'
  51. implementation 'androidx.navigation:navigation-ui-ktx:2.5.0'
  52. // Room components
  53. implementation "androidx.room:room-runtime:2.4.2"
  54. kapt "androidx.room:room-compiler:2.4.2"
  55. implementation "androidx.room:room-ktx:2.4.2"
  56. androidTestImplementation "androidx.room:room-testing:2.4.2"
  57. // Lifecycle components
  58. implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
  59. implementation "androidx.lifecycle:lifecycle-common-java8:2.5.0"
  60. implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.0"
  61. // Kotlin components
  62. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.20"
  63. api "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1"
  64. api "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1"
  65. }