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.

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