Skip to content

Instantly share code, notes, and snippets.

@Jaypatelbond
Last active December 4, 2025 10:02
Show Gist options
  • Select an option

  • Save Jaypatelbond/8565ace567ffe72e359ea4f54b0308b9 to your computer and use it in GitHub Desktop.

Select an option

Save Jaypatelbond/8565ace567ffe72e359ea4f54b0308b9 to your computer and use it in GitHub Desktop.
Dependencies for DataStore
// app/build.gradle.kts
plugins {
id("com.google.protobuf") version "0.9.5"
}
dependencies {
// DataStore
implementation("androidx.datastore:datastore:1.2.0")
implementation("com.google.protobuf:protobuf-javalite:4.33.1")
// Google Tink
implementation("com.google.crypto.tink:tink-android:1.19.0")
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:4.33.1"
}
generateProtoTasks {
all().forEach { task ->
task.builtins {
create("java") {
option("lite")
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment