build.gradle.kts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. plugins {
  2. id("com.android.library")
  3. id("org.jetbrains.kotlin.android")
  4. }
  5. android {
  6. compileSdk = 31
  7. defaultConfig {
  8. minSdk = 28
  9. targetSdk = 31
  10. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  11. }
  12. buildTypes {
  13. release {
  14. isMinifyEnabled = false
  15. proguardFiles(
  16. getDefaultProguardFile("proguard-android-optimize.txt"),
  17. "proguard-rules.pro"
  18. )
  19. }
  20. }
  21. compileOptions {
  22. sourceCompatibility = JavaVersion.VERSION_1_8
  23. targetCompatibility = JavaVersion.VERSION_1_8
  24. }
  25. kotlinOptions {
  26. jvmTarget = "1.8"
  27. }
  28. }
  29. dependencies {
  30. implementation("androidx.core:core-ktx:1.7.0")
  31. implementation("androidx.appcompat:appcompat:1.4.0")
  32. implementation("com.google.android.material:material:1.4.0")
  33. implementation("com.google.zxing:core:3.3.0")
  34. implementation("cn.sagacloud:saga-kotlin-base:1.4.105")
  35. implementation("com.google.code.gson:gson:2.8.9")
  36. implementation("org.greenrobot:eventbus:3.3.1")
  37. implementation("pub.devrel:easypermissions:3.0.0")
  38. //implementation("org.jetbrains.anko:anko-commons:0.10.8")
  39. testImplementation("junit:junit:4.13.2")
  40. androidTestImplementation("androidx.test.ext:junit:1.1.3")
  41. androidTestImplementation("androidx.test.espresso:espresso-core:3.4.0")
  42. }