|
|
@ -23,27 +23,21 @@ class AboutGMEViewController: UIViewController { |
|
|
|
@IBOutlet weak var followUsTitleText: UILabel! |
|
|
|
@IBOutlet weak var versionTitleLabel: UILabel! |
|
|
|
|
|
|
|
let URLFacebookApp: String = "fb://profile/1129818613815224" |
|
|
|
let URLFacebookApp2: String = "fb://page/1129818613815224" |
|
|
|
let URLFacebookBrowser: String = "https://www.facebook.com/1129818613815224/" |
|
|
|
|
|
|
|
let URLLinkedInApp: String = "linkedin://company/gmeremit/" |
|
|
|
let URLLinkedInBrowser: String = "https://www.linkedin.com/company/gmeremit/" |
|
|
|
|
|
|
|
let facebookUrls: [String: String] = [ |
|
|
|
"np" : "https://www.facebook.com/gmenepal/", |
|
|
|
"kh" : "https://www.facebook.com/gmecambodia/", |
|
|
|
"lk" : "https://www.facebook.com/gmeremitsrilanka/", |
|
|
|
"vn" : "https://www.facebook.com/gmevietnam/", |
|
|
|
"ph" : "https://www.facebook.com/gmephilippines/", |
|
|
|
"bd" : "https://www.facebook.com/gmebangladesh/", |
|
|
|
"id" : "https://www.facebook.com/gmeindonesia/", |
|
|
|
"th" : "https://www.facebook.com/gmethailand/", |
|
|
|
"mn" : "https://www.facebook.com/gmemongolia/", |
|
|
|
"uz" : "https://www.facebook.com/gmeuzbekistan/", |
|
|
|
"in" : "https://www.facebook.com/GMEindia/", |
|
|
|
"pk" : "https://www.facebook.com/gmepakistan/", |
|
|
|
"mm" : "https://www.facebook.com/gmemyanmar/" |
|
|
|
"np" : "", |
|
|
|
"kh" : "", |
|
|
|
"lk" : "", |
|
|
|
"vn" : "", |
|
|
|
"ph" : "", |
|
|
|
"bd" : "", |
|
|
|
"id" : "", |
|
|
|
"th" : "", |
|
|
|
"mn" : "", |
|
|
|
"uz" : "", |
|
|
|
"in" : "", |
|
|
|
"pk" : "", |
|
|
|
"mm" : "" |
|
|
|
] |
|
|
|
override func viewDidLoad() { |
|
|
|
super.viewDidLoad() |
|
|
@ -56,8 +50,6 @@ class AboutGMEViewController: UIViewController { |
|
|
|
|
|
|
|
override func viewWillAppear(_ animated: Bool) { |
|
|
|
super.viewWillAppear(animated) |
|
|
|
// self.setupNormalNavigation() |
|
|
|
// self.navigationItem.title = StringConstants().aboutGme |
|
|
|
setupNormalNavigation(color: .themeRedDark) |
|
|
|
setupNavigationShadow(isUse: false) |
|
|
|
} |
|
|
@ -79,13 +71,10 @@ class AboutGMEViewController: UIViewController { |
|
|
|
} |
|
|
|
|
|
|
|
@IBAction func checkForUpdate(_ sender: Any) { |
|
|
|
// |
|
|
|
} |
|
|
|
|
|
|
|
@IBAction func openLinkedIn(_ sender: Any) { |
|
|
|
// UIApplication.tryURL(urls: [self.URLLinkedInApp, |
|
|
|
// self.URLLinkedInBrowser |
|
|
|
// ]) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@IBAction func openFacebook(_ sender: Any) { |
|
|
@ -95,7 +84,7 @@ class AboutGMEViewController: UIViewController { |
|
|
|
} |
|
|
|
|
|
|
|
UIApplication.tryURL( |
|
|
|
url: self.facebookUrls[nativeCountry.lowercased()] ?? "https://www.facebook.com/gmenepal/" |
|
|
|
url: self.facebookUrls[nativeCountry.lowercased()] ?? "https://www.facebook.com/" |
|
|
|
) |
|
|
|
} |
|
|
|
|
|
|
|