mirror of
https://github.com/fromchat-messenger/app.git
synced 2026-09-23 03:25:06 +03:00
Update dependencies, fix build warnings
Signed-off-by: denis0001-dev <denis0001.dev@ya.ru>
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ actual fun Clipboard.toSupport(): SupportClipboardManager {
|
||||
|
||||
override suspend fun getText(): String? {
|
||||
val entry = clipboard.getClipEntry() ?: return null
|
||||
return entry.clipData?.getItemAt(0)?.text?.toString()
|
||||
return entry.clipData.getItemAt(0)?.text?.toString()
|
||||
}
|
||||
|
||||
override fun setTextListener(listener: (String) -> Unit) {
|
||||
|
||||
+8
-1
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("DEPRECATION")
|
||||
|
||||
package com.pr0gramm3r101.utils.settings
|
||||
|
||||
import androidx.core.content.edit
|
||||
@@ -7,6 +9,12 @@ import com.pr0gramm3r101.utils.UtilsLibrary.context
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.withContext
|
||||
|
||||
/**
|
||||
* Secure prefs via EncryptedSharedPreferences.
|
||||
*
|
||||
* These APIs are deprecated in favor of DataStore + Tink (`datastore-tink`, DataStore 1.3+).
|
||||
* Kept until that stack is stable enough to migrate auth/identity keys without risk.
|
||||
*/
|
||||
class AndroidSecureSettings : Settings {
|
||||
private val masterKey by lazy {
|
||||
MasterKey.Builder(context)
|
||||
@@ -80,4 +88,3 @@ class AndroidSecureSettings : Settings {
|
||||
encryptedPrefs.contains(key)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user