Обзор Preferences DataStore: подключение, использование, обработка ошибок, миграция со старых SharedPreferences.
#android #preferences #datastore
https://medium.com/androiddevelopers/all-about-preferences-datastore-cc7995679334
#android #preferences #datastore
https://medium.com/androiddevelopers/all-about-preferences-datastore-cc7995679334
Medium
All about Preferences DataStore
In this post, we will take a look at Preferences DataStore, one of two DataStore implementations. We will go over how to create it, read…
Достаточно распространенный подход к префам - обернуть их в Kotlin делегаты для максимально простой работы с ними в коде. Реализация, конечно, нетривиальная, но оно того стоит.
#android #kotlin #preferences #delegate
https://www.youtube.com/watch?v=KFgb6l1PUJI
#android #kotlin #preferences #delegate
https://www.youtube.com/watch?v=KFgb6l1PUJI
YouTube
Easy SharedPreferences with Delegated Properties in Kotlin
With Kotlin's property delegates, you can easily customize the behavior of a property. In this video, we'll learn how Kotlin's delegated properties work, by turning Android's SharedPreferences into a delegate.
To see this code working within the context…
To see this code working within the context…
Пример использования Jetpack Security для шифрования файлов и префов
#android #security #encrypting #preferences
https://tdcolvin.medium.com/encrypting-files-and-sharedpreferences-in-android-kotlin-a8429437f9c0
#android #security #encrypting #preferences
https://tdcolvin.medium.com/encrypting-files-and-sharedpreferences-in-android-kotlin-a8429437f9c0
Medium
Encrypting files and SharedPreferences in Android + Kotlin
As we saw previously, the data your app stores to external storage can be read by other apps if they have the right permissions. Extra…