build.gradle 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. ext {
  4. compose_version = '1.1.1'
  5. compose_compiler_version = '1.1.1'
  6. kotlin_version = '1.8.0'
  7. java_version = JavaVersion.VERSION_1_8
  8. dokka_version = '1.5.0'
  9. versions = [
  10. androidx_core : "1.8.0",
  11. androidx_lifecycle: "2.5.1",
  12. autoService : '1.0.1',
  13. dagger : "2.43",
  14. groupie : "2.9.0",
  15. junit : "4.13.2",
  16. junitJupiter : "5.5.0",
  17. coroutines : "1.6.0",
  18. lint : "30.0.1",
  19. protobuf : "3.22.0",
  20. ]
  21. generated = [
  22. protoSrc: "$projectDir/protocol",
  23. ]
  24. deps = [
  25. auto : [
  26. 'service' : "com.google.auto.service:auto-service:${versions.autoService}",
  27. 'serviceAnnotations': "com.google.auto.service:auto-service-annotations:${versions.autoService}",
  28. ],
  29. coroutines : [
  30. "lib" : "org.jetbrains.kotlinx:kotlinx-coroutines-android:${versions.coroutines}",
  31. // "test": "org.jetbrains.kotlinx:kotlinx-coroutines-test: ${versions.coroutines}",
  32. ],
  33. timber : "com.github.ajalt:timberkt:1.5.1",
  34. // lint
  35. lint : "com.android.tools.lint:lint:${versions.lint}",
  36. lintApi : "com.android.tools.lint:lint-api:${versions.lint}",
  37. lintChecks : "com.android.tools.lint:lint-checks:${versions.lint}",
  38. lintTests : "com.android.tools.lint:lint-tests:${versions.lint}",
  39. // tests
  40. junit : "junit:junit:${versions.junit}",
  41. junitJupiterApi : "org.junit.jupiter:junit-jupiter-api:${versions.junitJupiter}",
  42. junitJupiterEngine: "org.junit.jupiter:junit-jupiter-engine:${versions.junitJupiter}",
  43. ]
  44. annotations = [
  45. ]
  46. }
  47. dependencies {
  48. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  49. classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
  50. classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
  51. classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.18'
  52. classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.30.0"
  53. classpath "io.realm:realm-gradle-plugin:10.11.1"
  54. classpath 'com.huawei.agconnect:agcp:1.6.0.300'
  55. // r8 version
  56. classpath 'com.android.tools:r8:8.2.16-dev'
  57. }
  58. }
  59. plugins {
  60. id 'com.android.application' version '7.1.3' apply false
  61. id 'com.android.library' version '7.1.3' apply false
  62. id 'org.jetbrains.kotlin.android' version '1.8.20' apply false
  63. }
  64. apply from: "config.gradle"
  65. task clean(type: Delete) {
  66. delete rootProject.buildDir
  67. }