Manos Chorianopoulos

debugging logs at wallet

......@@ -7,7 +7,7 @@
<key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
<integer>1</integer>
</dict>
</dict>
</dict>
......
......@@ -7,7 +7,7 @@
<key>SwiftWarplyFramework.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
<integer>0</integer>
</dict>
</dict>
</dict>
......
......@@ -151,6 +151,8 @@ extension GiftsViewController: UITableViewDelegate, UITableViewDataSource{
} else if (campaigns[indexPath.row]._campaign_type == "coupon") {
let couponsetUuid = campaigns[indexPath.row]._couponset
// TODO: search if loyalty id exists
if (couponsetUuid != "") {
let couponsetsList = swiftApi().getCouponSetList()
......@@ -160,6 +162,7 @@ extension GiftsViewController: UITableViewDelegate, UITableViewDataSource{
let vc = storyboard.instantiateViewController(withIdentifier: "CouponViewController") as! SwiftWarplyFramework.CouponViewController
vc.couponset = item
vc.campaign = campaigns[indexPath.row]
// TODO: add ccms
self.navigationController?.pushViewController(vc, animated: true)
break;
......
......@@ -2,6 +2,8 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSMotionUsageDescription</key>
<string>We are using motion usage in order to track your step count.</string>
<key>UIAppFonts</key>
<array>
<string>pf_square_sans_pro_bold_italic.ttf</string>
......
......@@ -69,7 +69,7 @@ import SwiftEventBus
profileImage.layer.borderWidth = 1
profileImage.layer.borderColor = UIColor(red: 0.13, green: 0.66, blue: 0.71, alpha: 1.00).cgColor
if (profile != nil && profile?._image_url != nil && profile?._image_url != "") {
if (profile != nil && !(profile?._image_url is NSNull) && profile?._image_url != nil && profile?._image_url != "") {
profileImage.load(link: profile?._image_url ?? "", placeholder: UIImage(), cache: URLCache())
} else {
profileImage.image = UIImage(named: "default_profile_image", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil)
......@@ -261,6 +261,8 @@ import SwiftEventBus
activeCodeViewHeight.constant = 0
dfyLogoImageTopSpace.constant = 0
}
print("======= 1 =======")
myPresentsLabel.text = "Τα δώρα μου"
if (coupons.count > 0) {
......@@ -276,6 +278,8 @@ import SwiftEventBus
} else {
emptyView.isHidden = true
}
print("======= 2 =======")
}
public override func viewWillAppear(_ animated: Bool) {
......