feat: enable useViewToRenderProxy at system above 10.15.2 [appcenter]

This commit is contained in:
yicheng 2020-04-25 20:16:51 +08:00
parent aad8b3b7d0
commit 73d24788cd
4 changed files with 14 additions and 1 deletions

1
.gitignore vendored
View File

@ -14,3 +14,4 @@ ClashX/clash/
.vscode
ClashX/goClash/goClash.h
ClashX/goClash/goClash.a
fastlane/report.xml

View File

@ -18,4 +18,11 @@ extension AppDelegate {
}
return false
}
static var isAboveMacOS152: Bool {
if #available(macOS 10.15.3, *) {
return true
}
return false
}
}

View File

@ -20,7 +20,7 @@ class MenuItemFactory {
}
}
static var useViewToRenderProxy: Bool = UserDefaults.standard.object(forKey: "useViewToRenderProxy") as? Bool ?? false {
static var useViewToRenderProxy: Bool = UserDefaults.standard.object(forKey: "useViewToRenderProxy") as? Bool ?? AppDelegate.isAboveMacOS152 {
didSet {
UserDefaults.standard.set(useViewToRenderProxy, forKey: "useViewToRenderProxy")
}

View File

@ -25,6 +25,11 @@ fastlane build
fastlane beta
```
### addKeyChain
```
fastlane addKeyChain
```
----