Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
faramarzaf committed Mar 2, 2021
2 parents 6aa871d + d8935a3 commit 1e3584e
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ package com.faramarzaf.sdk.af_android_sdk.core.util

import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.clear

import androidx.datastore.preferences.core.edit
import androidx.datastore.preferences.core.preferencesKey
import androidx.datastore.preferences.core.*

import androidx.datastore.preferences.createDataStore
import kotlinx.coroutines.flow.first
Expand Down Expand Up @@ -97,4 +93,9 @@ class MyDataStore(context: Context) {
}
}

suspend fun clearAllTest() {
dataStore.edit {
it.remove(preferencesKey("mydatastore"))
}
}
}

0 comments on commit 1e3584e

Please sign in to comment.