-
Notifications
You must be signed in to change notification settings - Fork 381
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
feat: Migrate SharedPreferences to DataStore #1178
base: develop
Are you sure you want to change the base?
feat: Migrate SharedPreferences to DataStore #1178
Conversation
} | ||
|
||
implementation(Dependencies.datastore) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a blank line or just run spotless using gradlew sA
@@ -28,6 +28,7 @@ object Versions { | |||
const val appCompat = "1.0.2" | |||
const val circleImageView = "3.0.1" | |||
const val fragmentKtx = "1.2.5" | |||
const val datastore = "1.0.0-alpha02" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version 1.0.0
is stable
|
||
private val dataStorePreferences = context.createDataStore(APPLICATION_PREFERENCE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add encryption ?
@epicadk I am getting build error. Can you please help? I just update the DataStore version but it is showing this error The minCompileSdk (30) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-28).
Dependency: androidx.datastore:datastore-preferences:1.0.0.
AAR metadata file: W:\Android Gradle\caches\transforms-3\3298931b4e39777ba18ae456fda6204c\transformed\jetified-datastore-preferences-1.0.0\META-INF\com\android\build\gradle\aar-metadata.properties.
if I update the compileSDKVersion then it is showing random errors. |
bump compile sdk to 30 |
Description
Fixes #1177
Type of Change:
Code/Quality Assurance Only
How Has This Been Tested?
I make the changes and try running this app on my device, but I got a 401 Authentication error on 1st run only. After that app runs fine as it should be.
screen.mp4
Checklist:
Code/Quality Assurance Only