This repository was archived by the owner on Oct 15, 2024. It is now read-only.
File tree 6 files changed +0
-8
lines changed
app/src/main/java/app/passwordstore
crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto
passgen/random/src/main/kotlin/app/passwordstore/passgen/random
6 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ import logcat.LogPriority.VERBOSE
33
33
import logcat.LogcatLogger
34
34
import logcat.logcat
35
35
36
- @OptIn(ExperimentalStdlibApi ::class )
37
36
@Suppress(" Unused" )
38
37
@HiltAndroidApp
39
38
class Application : android.app.Application (), SharedPreferences.OnSharedPreferenceChangeListener {
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ import kotlinx.coroutines.flow.onEach
37
37
import reactivecircus.flowbinding.android.widget.afterTextChanges
38
38
import reactivecircus.flowbinding.android.widget.checkedChanges
39
39
40
- @OptIn(ExperimentalStdlibApi ::class )
41
40
class PasswordGeneratorDialogFragment : DialogFragment () {
42
41
43
42
override fun onCreateDialog (savedInstanceState : Bundle ? ): Dialog {
Original file line number Diff line number Diff line change 4
4
package app.passwordstore.util
5
5
6
6
import android.os.Looper
7
- import kotlin.time.ExperimentalTime
8
7
import kotlin.time.measureTime
9
8
import logcat.logcat
10
9
11
10
/* *
12
11
* Small helper to execute a given [block] and log the time it took to execute it. Intended for use
13
12
* in day-to-day perf investigations and code using it should probably not be shipped.
14
13
*/
15
- @OptIn(ExperimentalTime ::class )
16
14
inline fun <T > logExecutionTime (tag : String , crossinline block : () -> T ): T {
17
15
val res: T
18
16
val duration = measureTime { res = block() }
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ enum class Protocol(val pref: String) {
26
26
27
27
companion object {
28
28
29
- @OptIn(ExperimentalStdlibApi ::class )
30
29
fun fromString (type : String? ): Protocol {
31
30
return entries.associateBy(Protocol ::pref)[type ? : return Ssh ]
32
31
? : throw IllegalArgumentException (" $type is not a valid Protocol" )
@@ -42,7 +41,6 @@ enum class AuthMode(val pref: String) {
42
41
43
42
companion object {
44
43
45
- @OptIn(ExperimentalStdlibApi ::class )
46
44
fun fromString (type : String? ): AuthMode {
47
45
return entries.associateBy(AuthMode ::pref)[type ? : return SshKey ]
48
46
? : throw IllegalArgumentException (" $type is not a valid AuthMode" )
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ class KeyUtilsTest {
24
24
assertEquals(" b950ae2813841585" , keyId.toString())
25
25
}
26
26
27
- @OptIn(ExperimentalStdlibApi ::class )
28
27
@Test
29
28
fun isKeyUsable () {
30
29
val params = AllKeys .entries.map { it to (it != AllKeys .AEAD_PUB && it != AllKeys .AEAD_SEC ) }
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ package app.passwordstore.passgen.random
7
7
import app.passwordstore.passgen.random.util.clearFlag
8
8
import app.passwordstore.passgen.random.util.hasFlag
9
9
10
- @OptIn(ExperimentalStdlibApi ::class )
11
10
public object PasswordGenerator {
12
11
13
12
public const val DEFAULT_LENGTH : Int = 16
You can’t perform that action at this time.
0 commit comments