KMServerConfig.swift 648 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // KMServerConfig.swift
  3. // PDF Reader Pro
  4. //
  5. // Created by Niehaoyu on 2024/12/16.
  6. //
  7. import Cocoa
  8. class KMServerConfig: NSObject {
  9. class func isConnectionAvailable() -> Bool {
  10. if Reachability.forInternetConnection().currentReachabilityStatus().rawValue == 0 {
  11. return false
  12. }
  13. return true
  14. }
  15. //分包下载地址
  16. var kResourceServerURL: String {
  17. get{
  18. #if DEBUG
  19. return "https://www.pdfreaderpro.com/downloads/PDFReaderPro_Mac.xml"
  20. #else
  21. return "https://www.pdfreaderpro.com/downloads/PDFReaderPro_Mac.xml"
  22. #endif
  23. }
  24. }
  25. }