Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2023-04-10 11:47:11 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9cb7c2db7de1011f27c670e86ed72dba92b90318
9cb7c2db
1 parent
e760a847
ui fixes, unified barcode, sort unified by date
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
11 deletions
SwiftWarplyFramework/Pods/Pods.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
SwiftWarplyFramework/SwiftWarplyFramework.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
SwiftWarplyFramework/SwiftWarplyFramework/UnifiedCouponBCHeaderTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/Pods/Pods.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
9cb7c2d
...
...
@@ -7,7 +7,7 @@
<key>
Pods-SwiftWarplyFramework.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
1
</integer>
<integer>
0
</integer>
</dict>
</dict>
</dict>
...
...
SwiftWarplyFramework/SwiftWarplyFramework.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
9cb7c2d
...
...
@@ -7,7 +7,7 @@
<key>
SwiftWarplyFramework.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
0
</integer>
<integer>
1
</integer>
</dict>
</dict>
</dict>
...
...
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
9cb7c2d
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
View file @
9cb7c2d
This diff is collapsed. Click to expand it.
SwiftWarplyFramework/SwiftWarplyFramework/UnifiedCouponBCHeaderTableViewCell.swift
View file @
9cb7c2d
...
...
@@ -122,7 +122,8 @@ import AVFoundation
func
configureCell
(
coupon
:
swiftApi
.
UnifiedCouponModel
?,
couponsVisible
:
Bool
)
{
couponView
.
layer
.
cornerRadius
=
8
couponNumberLabel
.
text
=
((
coupon
?
.
_code
!=
0
)
?
String
(
coupon
?
.
_code
??
0
)
:
""
)
// couponNumberLabel.text = ((coupon?._code != 0) ? String(coupon?._code ?? 0) : "")
couponNumberLabel
.
text
=
coupon
?
.
_barcode
??
""
couponView
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
couponView
.
intrinsicContentSize
.
width
,
height
:
55
)
let
barcodeString
=
constructBarcode
(
coupon
:
coupon
)
??
""
...
...
@@ -150,15 +151,15 @@ import AVFoundation
// === Hide Barcode Section
// barcodeImage.isHidden = true
// barcodeImageHeight.constant = CGFloat(0)
//
barcodeLabel.isHidden = true
//
barcodeLabelHeight.constant = CGFloat(0)
barcodeLabel
.
isHidden
=
true
barcodeLabelHeight
.
constant
=
CGFloat
(
0
)
//
// borderViewHeight.constant = CGFloat(0)
// borderView2Height.constant = CGFloat(0)
//
// border1TopSpace.constant = CGFloat(0) // 20
// barcodeImageTopSpace.constant = CGFloat(0) // 10
//
barcodeLabelTopSpace.constant = CGFloat(0) // 10
barcodeLabelTopSpace
.
constant
=
CGFloat
(
0
)
// 10
// border2TopSpace.constant = CGFloat(0) // 15
//
showBarcodeButton
.
isHidden
=
true
...
...
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
View file @
9cb7c2d
...
...
@@ -117,7 +117,7 @@ import SwiftEventBus
showDialog
(
"Αδυναμία ενεργοποίησης"
,
"Πρόσθεσε σύνδεση COSMOTE σταθερής, κινητής ή TV για να έχεις πρόσβαση στις προσφορές."
);
}
headerImage
.
image
=
UIImage
(
named
:
"ic_background_
circle
"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
headerImage
.
image
=
UIImage
(
named
:
"ic_background_
straight
"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
dfyEarnImage
.
image
=
UIImage
(
named
:
"wallet_dfy_earn"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
couponEarnImage
.
image
=
UIImage
(
named
:
"wallet_coupons_2"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
dfyLogoImage
.
image
=
UIImage
(
named
:
"dfy_logo_white"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
...
...
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
9cb7c2d
...
...
@@ -6819,7 +6819,7 @@ public class swiftApi {
let
dateString
=
dictionary
[
"created"
]
as?
String
?
??
""
let
dateFormatter
=
DateFormatter
()
dateFormatter
.
locale
=
Locale
(
identifier
:
"en_US_POSSIX"
)
dateFormatter
.
dateFormat
=
"E,
MMM dd yyyy HH:mm:ss
"
dateFormatter
.
dateFormat
=
"E,
dd MMM yyyy HH:mm:ss 'GMT'
"
if
let
date
=
dateFormatter
.
date
(
from
:
dateString
??
""
)
{
dateFormatter
.
dateFormat
=
"dd/MM/yyyy"
let
resultString
=
dateFormatter
.
string
(
from
:
date
)
...
...
@@ -6908,10 +6908,15 @@ public class swiftApi {
}
}
}
swiftApi
()
.
setUnifiedCouponList
(
unifiedCouponsArray
)
// Sort by date
let
dateFormatter
=
DateFormatter
()
dateFormatter
.
dateFormat
=
"dd/MM/yyyy"
let
sortedUnifiedCouponsArray
=
unifiedCouponsArray
.
sorted
(
by
:
{
dateFormatter
.
date
(
from
:
$0
.
_created
)?
.
compare
(
dateFormatter
.
date
(
from
:
$1
.
_created
)
!
)
==
.
orderedDescending
})
swiftApi
()
.
setUnifiedCouponList
(
sortedUnifiedCouponsArray
)
swiftApi
()
.
setOldUnifiedCouponList
(
oldUnifiedCouponsArray
)
successCallback
(
u
nifiedCouponsArray
)
successCallback
(
sortedU
nifiedCouponsArray
)
}
}
else
{
successCallback
(
nil
)
...
...
Please
register
or
login
to post a comment