Skip to content

Conversation

@ralstondasilva
Copy link
Contributor

The data store details on DAC has inline code snippets https://developer.android.com/topic/libraries/architecture/datastore

This PR adds code samples that can be used as snippets on DAC.
It provides samples to create 3 different kinds of data store implementations:

  1. Preferences Data Store
  2. Proto Data Store
  3. Json Data Store

It also provides an example that demonstrates how to create a data store that can be accessed from multiple processes.

@snippet-bot
Copy link

snippet-bot bot commented Oct 21, 2025

Here is the summary of changes.

You are about to add 34 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

Copy link
Collaborator

@riggaroo riggaroo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly lgtm, just some questions

@ralstondasilva ralstondasilva force-pushed the datastore branch 2 times, most recently from a0a5407 to be37aba Compare October 24, 2025 03:30
@ralstondasilva
Copy link
Contributor Author

Rebecca, can you take another look at this? This is my first GitHub PR so I didn't realize that I needed to send a separate commit (I amended my commit like we do in Gerrit) So some of the comments don't match the previous line numbers. Sorry!

The data store details on DAC has inline code snippets
https://developer.android.com/topic/libraries/architecture/datastore

This PR adds code samples that can be used as snippets on DAC.
@dturner dturner merged commit 3759291 into android:main Oct 28, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants