Skip to content

Commit

Permalink
feat: enable useViewToRenderProxy at system above 10.15.2 [appcenter]
Browse files Browse the repository at this point in the history
  • Loading branch information
yichengchen committed Apr 25, 2020
1 parent aad8b3b commit 73d2478
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ ClashX/clash/
.vscode
ClashX/goClash/goClash.h
ClashX/goClash/goClash.a
fastlane/report.xml
7 changes: 7 additions & 0 deletions ClashX/Extensions/AppDelegate+..swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,11 @@ extension AppDelegate {
}
return false
}

static var isAboveMacOS152: Bool {
if #available(macOS 10.15.3, *) {
return true
}
return false
}
}
2 changes: 1 addition & 1 deletion ClashX/General/Managers/MenuItemFactory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down
5 changes: 5 additions & 0 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ fastlane build
fastlane beta
```

### addKeyChain
```
fastlane addKeyChain
```


----

Expand Down

0 comments on commit 73d2478

Please sign in to comment.