build.gradle.kts 604 B

12345678910111213141516171819202122232425262728293031
  1. import com.google.protobuf.gradle.*
  2. plugins {
  3. id("com.android.library")
  4. kotlin("android")
  5. id("com.google.protobuf")
  6. }
  7. setupKotlinCommon()
  8. val protobufVersion = "3.19.1"
  9. dependencies {
  10. protobuf(project(":library:proto"))
  11. api("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2")
  12. api("com.google.protobuf:protobuf-java:$protobufVersion")
  13. }
  14. protobuf {
  15. protoc {
  16. artifact = "com.google.protobuf:protoc:$protobufVersion"
  17. }
  18. generateProtoTasks {
  19. all().forEach {
  20. it.plugins {
  21. create("java")
  22. }
  23. }
  24. }
  25. }