Extract app store link to a constant

pull/219/head
Hwee-Boon Yar 7 years ago
parent a01c0e6cf4
commit 22c1a23d18
  1. 2
      Trust/Settings/Coordinators/HelpUsCoordinator.swift
  2. 2
      Trust/Settings/Types/Constants.swift

@ -31,7 +31,7 @@ class HelpUsCoordinator: Coordinator {
func rateUs() { func rateUs() {
if #available(iOS 10.3, *) { SKStoreReviewController.requestReview() } else { if #available(iOS 10.3, *) { SKStoreReviewController.requestReview() } else {
UIApplication.shared.openURL(URL(string: "itms-apps://itunes.apple.com/app/id1288339409")!) UIApplication.shared.openURL(URL(string: Constants.appstoreURL)!)
} }
appTracker.completedRating = true appTracker.completedRating = true
} }

@ -14,6 +14,8 @@ public struct Constants {
public static let twitterUsername = "Alpha_wallet" public static let twitterUsername = "Alpha_wallet"
public static let redditGroupName = "r/AlphaWallet/" public static let redditGroupName = "r/AlphaWallet/"
public static let facebookUsername = "AlphaWallet" public static let facebookUsername = "AlphaWallet"
//TODO need to change this for launch
public static let appstoreURL = "itms-apps://itunes.apple.com/app/id1288339409"
// support // support
public static let supportEmail = "support@awallet.io" public static let supportEmail = "support@awallet.io"

Loading…
Cancel
Save