build.gradle.kts 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. plugins {
  2. id("com.android.library")
  3. kotlin("android")
  4. kotlin("kapt")
  5. }
  6. android {
  7. compileSdk = buildTargetSdkVersion
  8. flavorDimensions(buildFlavor)
  9. defaultConfig {
  10. minSdk = buildMinSdkVersion
  11. targetSdk = buildTargetSdkVersion
  12. versionCode = buildVersionCode
  13. versionName = buildVersionName
  14. consumerProguardFiles("consumer-rules.pro")
  15. }
  16. buildTypes {
  17. named("release") {
  18. isMinifyEnabled = false
  19. proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
  20. }
  21. }
  22. productFlavors {
  23. create("open") {
  24. dimension = "open"
  25. }
  26. create("premium") {
  27. dimension = "premium"
  28. }
  29. }
  30. buildFeatures {
  31. dataBinding = true
  32. }
  33. compileOptions {
  34. sourceCompatibility = JavaVersion.VERSION_1_8
  35. targetCompatibility = JavaVersion.VERSION_1_8
  36. }
  37. kotlinOptions {
  38. jvmTarget = "1.8"
  39. }
  40. }
  41. dependencies {
  42. api(project(":common"))
  43. api(project(":core"))
  44. api(project(":service"))
  45. implementation(kotlin("stdlib-jdk7"))
  46. implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutineVersion")
  47. implementation("androidx.core:core-ktx:$ktxVersion")
  48. implementation("androidx.appcompat:appcompat:$appcompatVersion")
  49. implementation("androidx.activity:activity:$activityVersion")
  50. implementation("com.google.android.material:material:$materialVersion")
  51. implementation("androidx.coordinatorlayout:coordinatorlayout:$coordinatorlayoutVersion")
  52. implementation("androidx.recyclerview:recyclerview:$recyclerviewVersion")
  53. implementation("androidx.fragment:fragment:$fragmentVersion")
  54. implementation("androidx.viewpager2:viewpager2:$viewpagerVersion")
  55. }