Skip to content

Instantly share code, notes, and snippets.

@pavan5208
Created July 14, 2021 03:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pavan5208/e7b6c6636b9f75fcd3d900ec8a4b4cbe to your computer and use it in GitHub Desktop.
Save pavan5208/e7b6c6636b9f75fcd3d900ec8a4b4cbe to your computer and use it in GitHub Desktop.
plugins {
...
id "com.google.protobuf" version "0.8.12"
}
dependencies {
implementation "androidx.datastore:datastore-core:1.0.0-rc01"
implementation "com.google.protobuf:protobuf-javalite:3.14.0"
...
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:3.14.0"
}
// Generates the java Protobuf-lite code for the Protobufs in this project. See
// https://github.com/google/protobuf-gradle-plugin#customizing-protobuf-compilation
// for more information.
generateProtoTasks {
all().each { task ->
task.builtins {
java {
option 'lite'
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment