diff --git a/GME Remit.xcodeproj/project.pbxproj b/GME Remit.xcodeproj/project.pbxproj index 184f9aff..5d6d7d92 100644 --- a/GME Remit.xcodeproj/project.pbxproj +++ b/GME Remit.xcodeproj/project.pbxproj @@ -15167,7 +15167,7 @@ CODE_SIGN_ENTITLEMENTS = "GME Remit.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 0; + CURRENT_PROJECT_VERSION = 1; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEVELOPMENT_TEAM = 5QB497ZAGT; ENABLE_BITCODE = NO; @@ -15202,7 +15202,7 @@ CODE_SIGN_ENTITLEMENTS = "GME Remit.entitlements"; CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 0; + CURRENT_PROJECT_VERSION = 1; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEVELOPMENT_TEAM = 5QB497ZAGT; ENABLE_BITCODE = NO; diff --git a/GME Remit/AppDelegate.swift b/GME Remit/AppDelegate.swift index a9360466..3170a62e 100644 --- a/GME Remit/AppDelegate.swift +++ b/GME Remit/AppDelegate.swift @@ -43,6 +43,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { #if DEBUG NetworkActivityLogger.shared.startLogging() NetworkActivityLogger.shared.level = .debug + Bootpay.sharedInstance.appLaunch(application_id: "59a4d328396fa607b9e75de6") #endif IQKeyboardManager.shared.enable = true @@ -72,8 +73,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate { StoreReviewHelper.shared.incrementAppOpenedCount() - Bootpay.sharedInstance.appLaunch(application_id: "59a4d328396fa607b9e75de6") - return true } @@ -142,11 +141,15 @@ class AppDelegate: UIResponder, UIApplicationDelegate { // MARK: BootPay func applicationWillResignActive(_ application: UIApplication) { + #if DEBUG Bootpay.sharedInstance.sessionActive(active: false) + #endif } func applicationDidBecomeActive(_ application: UIApplication) { + #if DEBUG Bootpay.sharedInstance.sessionActive(active: true) + #endif } func application( diff --git a/GME Remit/MultiLanguages/si.lproj/Localizable.strings b/GME Remit/MultiLanguages/si.lproj/Localizable.strings index 912f6bbc..59152c93 100644 --- a/GME Remit/MultiLanguages/si.lproj/Localizable.strings +++ b/GME Remit/MultiLanguages/si.lproj/Localizable.strings @@ -514,7 +514,7 @@ "kftc_token_title_message_text" = "ඔබගේ Auto debit ගිණුම අලුත් කිරීමට ඔබ කැමතිද?"; "renewal_text" = "දැන් අලුත් කරන්න"; "later_text" = "පසුව අලුත් කරන්න"; -"token_renewal_text" = "Token Renewal"; +"token_renewal_text" = "Auto debit ගිණුම අලුත් කරන්න"; "token_renewal_confirm_text" = "ඔබ, ඔබගේ Auto debit ගිණුම නැවත අලුත් කිරීමට කැමතිද?"; "token_renewal_placeholder_text" = "Auto debit ගිණුම නැවත අලුත් කිරීම සදහා භාෂාව තෝරන්න."; diff --git a/GME Remit/Utilities/WebLinks/WkWebView/WkWebViewController.swift b/GME Remit/Utilities/WebLinks/WkWebView/WkWebViewController.swift index d2fa484b..afd999e1 100644 --- a/GME Remit/Utilities/WebLinks/WkWebView/WkWebViewController.swift +++ b/GME Remit/Utilities/WebLinks/WkWebView/WkWebViewController.swift @@ -47,8 +47,16 @@ class WkWebViewController: UIViewController { webView.bringSubviewToFront(activityIndicator!) if let myURL = URL(string: url ?? "") { - let myRequest = URLRequest(url: myURL) + var myRequest = URLRequest(url: myURL) + var header = [String: String]() + + headers?.forEach { model in + header[model.key ?? ""] = model.value ?? "" + } + + myRequest.allHTTPHeaderFields = header webView.load(myRequest) + } closeButton.title = "penny_test_close_text".localized()