build.gradle.kts 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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(
  20. getDefaultProguardFile("proguard-android-optimize.txt"),
  21. "proguard-rules.pro"
  22. )
  23. }
  24. }
  25. productFlavors {
  26. create("foss") {
  27. dimension = "foss"
  28. }
  29. create("premium") {
  30. dimension = "premium"
  31. }
  32. }
  33. buildFeatures {
  34. dataBinding = true
  35. }
  36. compileOptions {
  37. sourceCompatibility = JavaVersion.VERSION_1_8
  38. targetCompatibility = JavaVersion.VERSION_1_8
  39. }
  40. kotlinOptions {
  41. jvmTarget = "1.8"
  42. }
  43. }
  44. dependencies {
  45. api(project(":common"))
  46. api(project(":core"))
  47. api(project(":service"))
  48. implementation(kotlin("stdlib-jdk7"))
  49. implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutineVersion")
  50. implementation("androidx.core:core-ktx:$coreVersion")
  51. implementation("androidx.appcompat:appcompat:$appcompatVersion")
  52. implementation("androidx.activity:activity:$activityVersion")
  53. implementation("com.google.android.material:material:$materialVersion")
  54. implementation("androidx.coordinatorlayout:coordinatorlayout:$coordinatorlayoutVersion")
  55. implementation("androidx.recyclerview:recyclerview:$recyclerviewVersion")
  56. implementation("androidx.fragment:fragment:$fragmentVersion")
  57. implementation("androidx.viewpager2:viewpager2:$viewpagerVersion")
  58. }