Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use "androidx.datastore:datastore" instead of datastore-core #44

Closed
Farbklex opened this issue Nov 10, 2021 · 3 comments
Closed

Use "androidx.datastore:datastore" instead of datastore-core #44

Farbklex opened this issue Nov 10, 2021 · 3 comments
Assignees

Comments

@Farbklex
Copy link

On page 5, the codelab instructs you to add the following dependencies:

dependencies {
    implementation  "androidx.datastore:datastore-core:1.0.0"
    implementation  "com.google.protobuf:protobuf-javalite:3.18.0"
    ...
}

On page 7, the codelab instructs to create a DataStore by using the by dataStore delegate:

private val Context.userPreferencesStore: DataStore<UserPreferences> by dataStore(
...

by dataStore is part of a different library. androidx.datastore:datastore:1.0.0. The instructions on page 5 need to be updated to import datastore instead of datastore-core.

The proto_datastore branch already includes the correct dependency.

@Farbklex
Copy link
Author

See the StackOverflow issue related to this problem and codelab for reference

@purushottamyadavbattula

Faced this issue, please add this resolution to documentation

@mmoczkowski mmoczkowski self-assigned this Sep 9, 2022
@mmoczkowski
Copy link
Collaborator

Duplicate of #27

@mmoczkowski mmoczkowski marked this as a duplicate of #27 Sep 9, 2022
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

No branches or pull requests

3 participants