Skip to content

sarkar-jayanta/DataStoreExample

Repository files navigation

Data Store Example

This is a small demo for datastore android.

This demo is to understand and learn the use of both preference and proto datastore. In this demo we have saved username and password using preference datastore and email with proto datastore.

Home Screen Login Screen

Dependencies

For Both- implementation("androidx.datastore:datastore:1.0.0")

For Preference datastore implementation("androidx.datastore:datastore-preferences:1.0.0")

For proto datastore plugins{ id ("com.google.protobuf") version "0.9.1" }

dependencies{ implementation("com.google.protobuf:protobuf-javalite:4.26.0-RC2") }

protobuf { protoc { artifact = "com.google.protobuf:protoc:3.25.2" } plugins { id("javalite") { artifact = "com.google.protobuf:protoc-gen-javalite:3.0.0" } } generateProtoTasks { all().forEach { task -> task.builtins { id("java") { option("lite") } } task.plugins{ } } } }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages