Migrate PatchAPK to Kotlin

This commit is contained in:
topjohnwu
2019-08-04 13:00:27 -07:00
parent 8706d834b4
commit 33b7ab593c
7 changed files with 156 additions and 173 deletions
@@ -125,8 +125,7 @@ object Config : PreferenceModel, DBConfig {
var suMntNamespaceMode by dbSettings(Key.SU_MNT_NS, Value.NAMESPACE_MODE_REQUESTER)
var suMultiuserMode by dbSettings(Key.SU_MULTIUSER_MODE, Value.MULTIUSER_MODE_OWNER_ONLY)
var suFingerprint by dbSettings(Key.SU_FINGERPRINT, false)
@JvmStatic
var suManager by dbStrings(Key.SU_MANAGER, "")
var suManager by dbStrings(Key.SU_MANAGER, "", true)
// Always return a path in external storage where we can write
val downloadDirectory get() =
@@ -199,7 +198,6 @@ object Config : PreferenceModel, DBConfig {
}
}
@JvmStatic
fun export() {
// Flush prefs to disk
prefs.edit().apply()