Skip to content

Commit

Permalink
Enable force mount data by default & Bump to 3.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-TSNG committed Aug 30, 2022
1 parent 7242835 commit 36dab92
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
) {
Expand Down

0 comments on commit 36dab92

Please sign in to comment.