build.gradle.kts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. @Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
  2. plugins {
  3. alias(libs.plugins.com.android.library)
  4. alias(libs.plugins.org.jetbrains.kotlin.android)
  5. }
  6. android {
  7. namespace = "com.anjun.data.main"
  8. compileSdk = libs.versions.compileSdk.get().toInt()
  9. defaultConfig {
  10. minSdk = libs.versions.minSdk.get().toInt()
  11. testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
  12. consumerProguardFiles("consumer-rules.pro")
  13. }
  14. buildTypes {
  15. release {
  16. isMinifyEnabled = false
  17. proguardFiles(
  18. getDefaultProguardFile("proguard-android-optimize.txt"),
  19. "proguard-rules.pro"
  20. )
  21. }
  22. }
  23. compileOptions {
  24. sourceCompatibility = JavaVersion.VERSION_1_8
  25. targetCompatibility = JavaVersion.VERSION_1_8
  26. }
  27. kotlinOptions {
  28. jvmTarget = "1.8"
  29. }
  30. }
  31. dependencies {
  32. implementation(libs.core.ktx)
  33. implementation(libs.appcompat)
  34. implementation(libs.material)
  35. testImplementation(libs.junit)
  36. androidTestImplementation(libs.androidx.test.ext.junit)
  37. androidTestImplementation(libs.espresso.core)
  38. implementation(libs.mmkv)
  39. compileOnly(project(":core:core_tool"))
  40. }