build.gradle 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. group = "com.atmob.keyboard_android"
  2. version = "1.0-SNAPSHOT"
  3. buildscript {
  4. ext.kotlin_version = "1.8.22"
  5. repositories {
  6. google()
  7. mavenCentral()
  8. }
  9. dependencies {
  10. classpath("com.android.tools.build:gradle:8.7.0")
  11. classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
  12. }
  13. }
  14. allprojects {
  15. repositories {
  16. google()
  17. mavenCentral()
  18. }
  19. }
  20. apply plugin: "com.android.library"
  21. apply plugin: "kotlin-android"
  22. android {
  23. namespace = "com.atmob.keyboard_android"
  24. compileSdk = 35
  25. compileOptions {
  26. sourceCompatibility = JavaVersion.VERSION_11
  27. targetCompatibility = JavaVersion.VERSION_11
  28. }
  29. kotlinOptions {
  30. jvmTarget = JavaVersion.VERSION_11
  31. }
  32. sourceSets {
  33. main.java.srcDirs += "src/main/kotlin"
  34. test.java.srcDirs += "src/test/kotlin"
  35. }
  36. defaultConfig {
  37. minSdk = 21
  38. }
  39. dependencies {
  40. testImplementation("org.jetbrains.kotlin:kotlin-test")
  41. testImplementation("org.mockito:mockito-core:5.0.0")
  42. }
  43. testOptions {
  44. unitTests.all {
  45. useJUnitPlatform()
  46. testLogging {
  47. events "passed", "skipped", "failed", "standardOut", "standardError"
  48. outputs.upToDateWhen {false}
  49. showStandardStreams = true
  50. }
  51. }
  52. }
  53. }