build.gradle.kts 1017 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. plugins {
  2. id("com.android.library")
  3. kotlin("android")
  4. id("tachiyomi.lint")
  5. }
  6. android {
  7. namespace = "eu.kanade.tachiyomi.i18n"
  8. compileSdk = AndroidConfig.compileSdk
  9. defaultConfig {
  10. minSdk = AndroidConfig.minSdk
  11. targetSdk = AndroidConfig.targetSdk
  12. }
  13. compileOptions {
  14. sourceCompatibility = JavaVersion.VERSION_1_8
  15. targetCompatibility = JavaVersion.VERSION_1_8
  16. }
  17. kotlinOptions {
  18. jvmTarget = JavaVersion.VERSION_1_8.toString()
  19. }
  20. lint {
  21. disable.addAll(listOf("MissingTranslation", "ExtraTranslation"))
  22. }
  23. }
  24. tasks {
  25. val localesConfigTask = registerLocalesConfigTask(project)
  26. // Duplicating Hebrew string assets due to some locale code issues on different devices
  27. val copyHebrewStrings by registering(Copy::class) {
  28. from("./src/main/res/values-he")
  29. into("./src/main/res/values-iw")
  30. include("**/*")
  31. }
  32. preBuild {
  33. dependsOn(copyHebrewStrings, localesConfigTask)
  34. }
  35. }