build.gradle 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. plugins {
  2. id 'com.android.application'
  3. id 'com.chaquo.python'
  4. }
  5. android {
  6. // legacy flags
  7. aaptOptions.cruncherEnabled = false
  8. aaptOptions.useNewCruncher = false
  9. compileSdkVersion 30
  10. defaultConfig {
  11. applicationId "com.noahvogt.miniprojekt"
  12. minSdkVersion 16
  13. targetSdkVersion 30
  14. versionCode 1
  15. versionName "1.0"
  16. ndk {
  17. abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
  18. }
  19. python {
  20. pip {
  21. //install "email"
  22. //install "imaplib"
  23. }
  24. buildPython "/usr/bin/python3.8"
  25. }
  26. packagingOptions {
  27. exclude 'META-INF/NOTICE.md'
  28. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  29. javaCompileOptions {
  30. annotationProcessorOptions {
  31. arguments += ["room.schemaLocation": "$projectDir/schemas".toString()]
  32. }
  33. }
  34. }
  35. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  36. buildTypes {
  37. release {
  38. minifyEnabled false
  39. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  40. }
  41. }
  42. compileOptions {
  43. sourceCompatibility JavaVersion.VERSION_1_8
  44. targetCompatibility JavaVersion.VERSION_1_8
  45. }
  46. }
  47. }
  48. dependencies {
  49. implementation 'androidx.appcompat:appcompat:1.2.0'
  50. implementation 'com.google.android.material:material:1.3.0'
  51. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  52. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  53. implementation 'androidx.navigation:navigation-fragment:2.3.5'
  54. implementation 'androidx.navigation:navigation-ui:2.3.5'
  55. /* Room components */
  56. implementation 'androidx.room:room-runtime:2.3.0'
  57. annotationProcessor 'androidx.room:room-compiler:2.3.0'
  58. androidTestImplementation 'androidx.room:room-testing:2.3.0'
  59. /* lifecycle components */
  60. implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.1'
  61. implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1'
  62. implementation 'androidx.lifecycle:lifecycle-common-java8:2.3.1'
  63. implementation 'androidx.recyclerview:recyclerview:1.2.0'
  64. implementation 'androidx.preference:preference:1.1.1'
  65. testImplementation 'junit:junit:4.+'
  66. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  67. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  68. }