build.gradle.kts 992 B

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