Skip to content
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

Feature/issue 42 local storage encryption #47

Merged
merged 26 commits into from
Jun 23, 2024
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
706998f
added storage module
Basler182 Jun 16, 2024
ceb5395
added PreferenceKey
Basler182 Jun 16, 2024
da62f80
added build.gradle.kts
Basler182 Jun 16, 2024
4dbe08d
added SecureFileStorage
Basler182 Jun 16, 2024
071bdd1
tested delete
Basler182 Jun 16, 2024
aad0b49
added Storage interface
Basler182 Jun 16, 2024
e220cf9
added coroutine and testing dependency
Basler182 Jun 16, 2024
4de8d19
added LocalStorage
Basler182 Jun 16, 2024
3fb00eb
added EncryptedSharedPreferencesStorage and tested it
Basler182 Jun 16, 2024
0a8533b
added documentation
Basler182 Jun 16, 2024
e1a109d
removed not needed lines
Basler182 Jun 16, 2024
0f0dc04
added libs.versions.toml
Basler182 Jun 16, 2024
70006b6
added libs.versions.toml version
Basler182 Jun 16, 2024
d4b703d
Merge branch 'main' into feature/issue-42-local-storage-encryption
Basler182 Jun 21, 2024
278fecd
Merge branch 'main' into feature/issue-42-local-storage-encryption
Basler182 Jun 21, 2024
47c0bc9
Merge branch 'main' into feature/issue-42-local-storage-encryption
Basler182 Jun 22, 2024
0efb34d
sorted libs.versions.toml
Basler182 Jun 22, 2024
bb38c9c
fixed README.MD
Basler182 Jun 22, 2024
ab0d4a2
refactored to UnconfinedTestDispatcher
Basler182 Jun 22, 2024
d77a989
removed no longer needed dependencies
Basler182 Jun 22, 2024
f1d3718
removed not needed runBlocking
Basler182 Jun 22, 2024
4b2f01b
refactored to firstOrNull
Basler182 Jun 22, 2024
6ee145d
caught datastore.data
Basler182 Jun 22, 2024
58b191d
added delete file after each test
Basler182 Jun 23, 2024
cf52b3e
added runCatching Wrappings to FileStorage
Basler182 Jun 23, 2024
08bbd29
removed not supported type
Basler182 Jun 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactored to UnconfinedTestDispatcher
Signed-off-by: Basler182 <[email protected]>
Basler182 committed Jun 22, 2024
commit ab0d4a28624437a0fdcfd2e2372d78f13451e0f9
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.google.common.truth.Truth.assertThat
import edu.stanford.spezi.core.testing.runTestUnconfined
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.test.UnconfinedTestDispatcher
import org.junit.Test
import org.junit.runner.RunWith

@@ -15,7 +15,7 @@ class EncryptedFileKeyValueStorageTest {
private var fileStorage: FileStorage =
EncryptedFileStorage(
context = context,
ioDispatcher = Dispatchers.Unconfined,
ioDispatcher = UnconfinedTestDispatcher(),
)

@Test