This repository was archived by the owner on Oct 15, 2024. It is now read-only.
File tree Expand file tree Collapse 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 Expand file tree Collapse file tree 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
3333import logcat.LogcatLogger
3434import logcat.logcat
3535
36- @OptIn(ExperimentalStdlibApi ::class )
3736@Suppress(" Unused" )
3837@HiltAndroidApp
3938class 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
3737import reactivecircus.flowbinding.android.widget.afterTextChanges
3838import reactivecircus.flowbinding.android.widget.checkedChanges
3939
40- @OptIn(ExperimentalStdlibApi ::class )
4140class PasswordGeneratorDialogFragment : DialogFragment () {
4241
4342 override fun onCreateDialog (savedInstanceState : Bundle ? ): Dialog {
Original file line number Diff line number Diff line change 44package app.passwordstore.util
55
66import android.os.Looper
7- import kotlin.time.ExperimentalTime
87import kotlin.time.measureTime
98import logcat.logcat
109
1110/* *
1211 * Small helper to execute a given [block] and log the time it took to execute it. Intended for use
1312 * in day-to-day perf investigations and code using it should probably not be shipped.
1413 */
15- @OptIn(ExperimentalTime ::class )
1614inline fun <T > logExecutionTime (tag : String , crossinline block : () -> T ): T {
1715 val res: T
1816 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) {
2626
2727 companion object {
2828
29- @OptIn(ExperimentalStdlibApi ::class )
3029 fun fromString (type : String? ): Protocol {
3130 return entries.associateBy(Protocol ::pref)[type ? : return Ssh ]
3231 ? : throw IllegalArgumentException (" $type is not a valid Protocol" )
@@ -42,7 +41,6 @@ enum class AuthMode(val pref: String) {
4241
4342 companion object {
4443
45- @OptIn(ExperimentalStdlibApi ::class )
4644 fun fromString (type : String? ): AuthMode {
4745 return entries.associateBy(AuthMode ::pref)[type ? : return SshKey ]
4846 ? : throw IllegalArgumentException (" $type is not a valid AuthMode" )
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ class KeyUtilsTest {
2424 assertEquals(" b950ae2813841585" , keyId.toString())
2525 }
2626
27- @OptIn(ExperimentalStdlibApi ::class )
2827 @Test
2928 fun isKeyUsable () {
3029 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
77import app.passwordstore.passgen.random.util.clearFlag
88import app.passwordstore.passgen.random.util.hasFlag
99
10- @OptIn(ExperimentalStdlibApi ::class )
1110public object PasswordGenerator {
1211
1312 public const val DEFAULT_LENGTH : Int = 16
You can’t perform that action at this time.
0 commit comments