codelab-android-datastore icon indicating copy to clipboard operation
codelab-android-datastore copied to clipboard

Results 37 codelab-android-datastore issues
Sort by recently updated
recently updated
newest added

When creating UserPreferencesRepository the type should be DataStore\ instead of DataStore\

### Problem: I followed every step mentined in the Codelab tutorial [https://developer.android.com/codelabs/android-proto-datastore](https://developer.android.com/codelabs/android-proto-datastore), but Android Studio can't resolve `dataStore` (unable to import `androidx.datastore.dataStore`) ### How to reproduce the issue: 1. Download...

When trying to remove some key from datastore-preferences during unittest I'm getting an error about "multiple instances" of the datastore. The following code reproduces the problem: ` import android.content.Context import...

This link didn't work message stattus "404" Link -> "https://codelabs.developers.google.com/codelabs/advanced-kotlin-coroutines"

On page 5, the codelab instructs you to add the following dependencies: ```Groovy 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...

## Issue Fixes https://github.com/googlecodelabs/android-datastore/issues/31 ## Description - Inside enableSortByPriority / enableSortByDeadline methods , checking if the argument is true and SortOrder is already BY_DEADLINE_AND_PRIORITY, perform no updates in preferences. ##...

I can see crashes in firebase caused by this, mostly on devices with android 8 and more (mostly Samsung devices). App crashes during migration from shared preferences when trying to...

The example code creates the variable "userPreferencesStore" but then references it as "dataStore" in the rest of the code.

On [Page 6](https://developer.android.com/codelabs/android-preferences-datastore#5) of the lab, the third code snippet shows ``` class UserPreferencesRepository(private val dataStore: DataStore) ``` which is incorrect. The right one is ```class UserPreferencesRepository(private val dataStore: DataStore)...