File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
safebox/src/main/java/com/harrytmthy/safebox Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 18
18
xmlns : tools =" http://schemas.android.com/tools" >
19
19
20
20
<application
21
- android : name =" .demo"
22
21
android : allowBackup =" false"
23
22
android : dataExtractionRules =" @xml/data_extraction_rules"
24
23
android : fullBackupContent =" false"
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ package com.harrytmthy.safebox
2
2
3
3
import android.content.Context
4
4
import androidx.annotation.VisibleForTesting
5
+ import kotlinx.coroutines.CoroutineDispatcher
6
+ import kotlinx.coroutines.Dispatchers
5
7
6
8
/* *
7
9
* SafeBoxProvider is a singleton holder for a [SafeBox] instance.
@@ -29,14 +31,16 @@ object SafeBoxProvider {
29
31
keyAlias : String = SafeBox .DEFAULT_KEY_ALIAS ,
30
32
valueKeyStoreAlias : String = SafeBox .DEFAULT_VALUE_KEYSTORE_ALIAS ,
31
33
aad : ByteArray = fileName.toByteArray(),
34
+ ioDispatcher : CoroutineDispatcher = Dispatchers .IO
32
35
) {
33
36
if (instance == null ) {
34
37
instance = SafeBox .create(
35
38
context.applicationContext,
36
39
fileName,
37
40
keyAlias,
38
41
valueKeyStoreAlias,
39
- aad
42
+ aad,
43
+ ioDispatcher
40
44
)
41
45
}
42
46
}
You can’t perform that action at this time.
0 commit comments