Enable force mount data by default & Bump to 3.0.3

This commit is contained in:
Nullptr 2022-08-30 09:16:58 +08:00
commit 36dab92494
No known key found for this signature in database
3 changed files with 6 additions and 3 deletions

View file

@ -1,5 +1,6 @@
package icu.nullptr.hidemyapplist.service
import android.os.Build
import android.util.Log
import com.tsng.hidemyapplist.R
import icu.nullptr.hidemyapplist.common.BuildConfig
@ -52,7 +53,9 @@ object ConfigManager {
}
var forceMountData: Boolean
get() = config.forceMountData
get() =
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) config.forceMountData
else false
set(value) {
config.forceMountData = value
saveConfig()

View file

@ -35,7 +35,7 @@ fun String.execute(currentWorkingDir: File = file("./")): String {
val minSdkVer by extra(24)
val targetSdkVer by extra(33)
val appVerName by extra("3.0.2-Beta")
val appVerName by extra("3.0.3-Beta")
val serviceVerCode by extra(85)
val minBackupVerCode by extra(65)

View file

@ -15,7 +15,7 @@ data class JsonConfig(
var configVersion: Int = BuildConfig.SERVICE_VERSION,
var detailLog: Boolean = false,
var maxLogSize: Int = 512,
var forceMountData: Boolean = false,
var forceMountData: Boolean = true,
val templates: MutableMap<String, Template> = mutableMapOf(),
val scope: MutableMap<String, AppConfig> = mutableMapOf()
) {