|
@@ -459,7 +459,7 @@ extension KMTools {
|
|
let versionInfoString = "\(KMTools.getRawSystemInfo()) - \(major).\(minor).\(bugFix)"
|
|
let versionInfoString = "\(KMTools.getRawSystemInfo()) - \(major).\(minor).\(bugFix)"
|
|
|
|
|
|
let appVersion = KMTools.getAppVersion()
|
|
let appVersion = KMTools.getAppVersion()
|
|
- let appName = KMTools.getAppNameForSupportEmail()
|
|
|
|
|
|
+ let appName = KMNAppName
|
|
let subjects = "\(appName) - \(appVersion);\(NSLocalizedString("Feedback", comment: ""));\(versionInfoString)"
|
|
let subjects = "\(appName) - \(appVersion);\(NSLocalizedString("Feedback", comment: ""));\(versionInfoString)"
|
|
let email = "support@pdfreaderpro.com"
|
|
let email = "support@pdfreaderpro.com"
|
|
|
|
|
|
@@ -472,7 +472,7 @@ extension KMTools {
|
|
let versionInfoString = "\(KMTools.getRawSystemInfo()) - \(major).\(minor).\(bugFix)"
|
|
let versionInfoString = "\(KMTools.getRawSystemInfo()) - \(major).\(minor).\(bugFix)"
|
|
|
|
|
|
let appVersion = KMTools.getAppVersion()
|
|
let appVersion = KMTools.getAppVersion()
|
|
- let appName = KMTools.getAppNameForSupportEmail()
|
|
|
|
|
|
+ let appName = KMNAppName
|
|
let subjects = "\(appName) - \(appVersion);\(NSLocalizedString("Report a Bug", comment: ""));\(versionInfoString)"
|
|
let subjects = "\(appName) - \(appVersion);\(NSLocalizedString("Report a Bug", comment: ""));\(versionInfoString)"
|
|
let email = "support@pdfreaderpro.com"
|
|
let email = "support@pdfreaderpro.com"
|
|
|
|
|
|
@@ -485,7 +485,7 @@ extension KMTools {
|
|
let versionInfoString = "\(KMTools.getRawSystemInfo()) - \(major).\(minor).\(bugFix)"
|
|
let versionInfoString = "\(KMTools.getRawSystemInfo()) - \(major).\(minor).\(bugFix)"
|
|
|
|
|
|
let appVersion = KMTools.getAppVersion()
|
|
let appVersion = KMTools.getAppVersion()
|
|
- let appName = KMTools.getAppNameForSupportEmail()
|
|
|
|
|
|
+ let appName = KMNAppName
|
|
let subjects = "\(appName) - \(appVersion);\(NSLocalizedString("Propose a New Feature", comment: ""));\(versionInfoString)"
|
|
let subjects = "\(appName) - \(appVersion);\(NSLocalizedString("Propose a New Feature", comment: ""));\(versionInfoString)"
|
|
let email = "support@pdfreaderpro.com"
|
|
let email = "support@pdfreaderpro.com"
|
|
|
|
|
|
@@ -497,7 +497,7 @@ extension KMTools {
|
|
let versionInfoString = "\(KMTools.getRawSystemInfo()) - \(major).\(minor).\(bugFix)"
|
|
let versionInfoString = "\(KMTools.getRawSystemInfo()) - \(major).\(minor).\(bugFix)"
|
|
|
|
|
|
let appVersion = KMTools.getAppVersion()
|
|
let appVersion = KMTools.getAppVersion()
|
|
- let appName = KMTools.getAppNameForSupportEmail()
|
|
|
|
|
|
+ let appName = KMNAppName
|
|
let subjects = "\(appName) - \(appVersion);\(NSLocalizedString("General Questions", comment: ""));\(versionInfoString)"
|
|
let subjects = "\(appName) - \(appVersion);\(NSLocalizedString("General Questions", comment: ""));\(versionInfoString)"
|
|
let email = "support@pdfreaderpro.com"
|
|
let email = "support@pdfreaderpro.com"
|
|
|
|
|
|
@@ -522,45 +522,7 @@ extension KMTools {
|
|
}
|
|
}
|
|
|
|
|
|
extension KMTools {
|
|
extension KMTools {
|
|
-
|
|
|
|
- @objc class func getAppNameForSupportEmail() -> String {
|
|
|
|
- var tAppName = "PDF Reader Pro"
|
|
|
|
- #if VERSION_FREE
|
|
|
|
|
|
|
|
- #if VERSION_DMG
|
|
|
|
-
|
|
|
|
- #if VERSION_BETA
|
|
|
|
- tAppName = "PDF Reader Pro Beta"
|
|
|
|
- #endif
|
|
|
|
-
|
|
|
|
- // 桌机版
|
|
|
|
- if let tManager = VerificationManager.default() {
|
|
|
|
- let status = tManager.status
|
|
|
|
- if status == ActivityStatusTrial {
|
|
|
|
- tAppName = "\(tAppName) Trial"
|
|
|
|
- } else if status == ActivityStatusVerification {
|
|
|
|
- tAppName = "\(tAppName) Verification"
|
|
|
|
- } else if status == ActivityStatusTrialExpire {
|
|
|
|
- tAppName = "\(tAppName) TrialExpire"
|
|
|
|
- } else if status == ActivityStatusVerifExpire {
|
|
|
|
- tAppName = "\(tAppName) VerifExpire"
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- #else
|
|
|
|
-
|
|
|
|
- // AppStore 免费版本
|
|
|
|
- tAppName = "PDF Reader Pro Lite"
|
|
|
|
- #endif
|
|
|
|
-
|
|
|
|
- #else
|
|
|
|
-
|
|
|
|
- // AppStore 付费版
|
|
|
|
- tAppName = "PDF Reader Pro Edition"
|
|
|
|
- #endif
|
|
|
|
-
|
|
|
|
- return tAppName
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
@objc class func getRawSystemInfo() -> String {
|
|
@objc class func getRawSystemInfo() -> String {
|
|
let info = GBDeviceInfo.deviceInfo().rawSystemInfoString
|
|
let info = GBDeviceInfo.deviceInfo().rawSystemInfoString
|
|
if (info == nil) {
|
|
if (info == nil) {
|
|
@@ -568,11 +530,7 @@ extension KMTools {
|
|
}
|
|
}
|
|
return info!
|
|
return info!
|
|
}
|
|
}
|
|
-
|
|
|
|
- @objc class func getAppName() -> String {
|
|
|
|
- return "PDF Reader Pro"
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+
|
|
@objc class func pageRangeTypeString(pageRange: KMPageRange) -> String {
|
|
@objc class func pageRangeTypeString(pageRange: KMPageRange) -> String {
|
|
switch pageRange {
|
|
switch pageRange {
|
|
case .all:
|
|
case .all:
|