build.gradle 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. // legacy flags
  6. aaptOptions.cruncherEnabled = false
  7. aaptOptions.useNewCruncher = false
  8. compileSdkVersion 30
  9. defaultConfig {
  10. applicationId "com.noahvogt.miniprojekt"
  11. minSdkVersion 16
  12. targetSdkVersion 30
  13. versionCode 1
  14. versionName "1.0"
  15. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  16. javaCompileOptions {
  17. annotationProcessorOptions {
  18. arguments += ["room.schemaLocation": "$projectDir/schemas".toString()]
  19. }
  20. }
  21. }
  22. buildTypes {
  23. release {
  24. minifyEnabled false
  25. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  26. }
  27. }
  28. compileOptions {
  29. sourceCompatibility JavaVersion.VERSION_1_8
  30. targetCompatibility JavaVersion.VERSION_1_8
  31. }
  32. }
  33. dependencies {
  34. implementation 'androidx.appcompat:appcompat:1.2.0'
  35. implementation 'com.google.android.material:material:1.3.0'
  36. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  37. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  38. implementation 'androidx.navigation:navigation-fragment:2.3.5'
  39. implementation 'androidx.navigation:navigation-ui:2.3.5'
  40. /* Room components */
  41. implementation 'androidx.room:room-runtime:2.3.0'
  42. annotationProcessor 'androidx.room:room-compiler:2.3.0'
  43. androidTestImplementation 'androidx.room:room-testing:2.3.0'
  44. /* lifecycle components */
  45. implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.1'
  46. implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1'
  47. implementation 'androidx.lifecycle:lifecycle-common-java8:2.3.1'
  48. implementation 'androidx.recyclerview:recyclerview:1.2.0'
  49. testImplementation 'junit:junit:4.+'
  50. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  51. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  52. }