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
Vasilis
2022-05-03 11:56:55 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4c0c6c7ebc44f593f077034121b475cafa3bea39
4c0c6c7e
1 parent
e4f06e33
fixes at header
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
48 additions
and
21 deletions
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/billskouras.xcuserdatad/UserInterfaceState.xcuserstate
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/AllGiftsView.swift
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CampaignWebview.swift
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponBarcodeView.swift
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponView.swift
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponsView.swift
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/MoreForYouView.swift
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/WalletView.swift
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/swiftApi.swift
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/billskouras.xcuserdatad/UserInterfaceState.xcuserstate
View file @
4c0c6c7
No preview for this file type
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/AllGiftsView.swift
View file @
4c0c6c7
...
...
@@ -39,6 +39,7 @@ extension AllGiftsView {
.
multilineTextAlignment
(
.
center
)
.
frame
(
maxWidth
:
.
infinity
)
.
padding
(
.
horizontal
)
.
offset
(
x
:
-
self
.
uiscreen
.
height
*
0.0125
)
}
.
frame
(
maxWidth
:
.
infinity
)
.
padding
(
.
horizontal
)
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CampaignWebview.swift
View file @
4c0c6c7
...
...
@@ -40,7 +40,7 @@ extension CampaignWebview {
.
multilineTextAlignment
(
.
center
)
.
frame
(
maxWidth
:
.
infinity
)
.
padding
(
.
horizontal
)
.
offset
(
x
:
-
self
.
uiscreen
.
height
*
0.0125
)
}
.
frame
(
maxWidth
:
.
infinity
)
.
padding
(
.
horizontal
)
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponBarcodeView.swift
View file @
4c0c6c7
...
...
@@ -11,8 +11,8 @@ import Combine
import
Foundation
import
UIKit
// TODO: Uncomment for barcode
import
RSBarcodes_Swift
import
AVFoundation
//
import RSBarcodes_Swift
//
import AVFoundation
...
...
@@ -68,7 +68,7 @@ extension CouponBarcodeView {
.
multilineTextAlignment
(
.
center
)
.
frame
(
maxWidth
:
.
infinity
)
.
padding
(
.
horizontal
)
.
offset
(
x
:
-
self
.
uiscreen
.
height
*
0.0125
)
}
.
frame
(
maxWidth
:
.
infinity
)
.
padding
(
.
horizontal
)
...
...
@@ -198,18 +198,18 @@ extension CouponBarcodeView {
// let isValid = RSUnifiedCodeValidator.shared.isValid(barcodeString, machineReadableCodeObjectType: AVMetadataObject.ObjectType.ean13.rawValue)
// TODO: Uncomment for barcode
if
let
barcodeImage
=
RSUnifiedCodeGenerator
.
shared
.
generateCode
(
barcodeString
,
machineReadableCodeObjectType
:
AVMetadataObject
.
ObjectType
.
ean13
.
rawValue
,
targetSize
:
CGSize
(
width
:
self
.
uiscreen
.
width
*
0.8
,
height
:
self
.
uiscreen
.
height
*
0.1
))
{
// if let barcodeImage = RSUnifiedCodeGenerator.shared.generateCode(barcodeString, machineReadableCodeObjectType: AVMetadataObject.ObjectType.ean13.rawValue, targetSize: CGSize(width: self.uiscreen.width * 0.8, height: self.uiscreen.height * 0.1)) {
//
VStack
(
alignment
:
.
center
)
{
Image
(
uiImage
:
barcodeImage
)
.
resizable
()
.
aspectRatio
(
contentMode
:
.
fit
)
.
frame
(
width
:
self
.
uiscreen
.
width
*
0.8
,
height
:
self
.
uiscreen
.
height
*
0.1
)
}
.
frame
(
maxWidth
:
.
infinity
)
.
padding
(
.
top
,
self
.
uiscreen
.
height
*
0.01
)
}
////
// VStack(alignment: .center) {
// Image(uiImage: barcodeImage)
// .resizable()
// .aspectRatio(contentMode: .fit)
// .frame(width: self.uiscreen.width * 0.8, height: self.uiscreen.height * 0.1)
// }
// .frame(maxWidth: .infinity)
// .padding(.top, self.uiscreen.height * 0.01)
// }
Text
(
barcodeString
)
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponView.swift
View file @
4c0c6c7
...
...
@@ -39,7 +39,7 @@ extension CouponView {
.
multilineTextAlignment
(
.
center
)
.
frame
(
maxWidth
:
.
infinity
)
.
padding
(
.
horizontal
)
.
offset
(
x
:
-
self
.
uiscreen
.
height
*
0.0125
)
}
.
frame
(
maxWidth
:
.
infinity
)
.
padding
(
.
horizontal
)
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponsView.swift
View file @
4c0c6c7
...
...
@@ -154,7 +154,7 @@ extension CouponsView {
.
multilineTextAlignment
(
.
center
)
.
frame
(
maxWidth
:
.
infinity
)
.
padding
(
.
horizontal
)
.
offset
(
x
:
-
self
.
uiscreen
.
height
*
0.0125
)
}
.
frame
(
maxWidth
:
.
infinity
)
.
padding
(
.
horizontal
)
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/MoreForYouView.swift
View file @
4c0c6c7
...
...
@@ -52,7 +52,7 @@ extension MoreForYouView {
.
multilineTextAlignment
(
.
center
)
.
frame
(
maxWidth
:
.
infinity
)
.
padding
(
.
horizontal
)
.
offset
(
x
:
-
self
.
uiscreen
.
height
*
0.0125
)
}
.
frame
(
maxWidth
:
.
infinity
)
.
padding
(
.
horizontal
)
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/WalletView.swift
View file @
4c0c6c7
...
...
@@ -57,7 +57,7 @@ extension WalletView {
.
multilineTextAlignment
(
.
center
)
.
frame
(
maxWidth
:
.
infinity
)
.
padding
(
.
horizontal
)
.
offset
(
x
:
-
self
.
uiscreen
.
height
*
0.0125
)
}
.
frame
(
maxWidth
:
.
infinity
)
.
padding
(
.
horizontal
)
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/swiftApi.swift
View file @
4c0c6c7
...
...
@@ -18,16 +18,42 @@ public class swiftApi {
return
"1"
}
public
func
setDFY
(
couponCode
:
String
,
merchantId
:
String
)
{
public
class
DFY
{
let
couponCode
:
String
?
let
merchantId
:
String
?
init
(
couponCode
:
String
,
merchantId
:
String
)
{
self
.
couponCode
=
couponCode
self
.
merchantId
=
merchantId
}
}
public
func
setDFY
(
couponCode
:
String
,
merchantId
:
String
)
{
DFY
.
init
(
couponCode
:
couponCode
,
merchantId
:
merchantId
)
}
public
class
activeDFYCoupons
{
let
campaignIds
:
Array
<
String
>
init
(
campaignIds
:
Array
<
String
>
)
{
self
.
campaignIds
=
campaignIds
}
}
public
func
setActiveDFYCoupons
(
campaignIds
:
Array
<
String
>
)
{
activeDFYCoupons
.
init
(
campaignIds
:
campaignIds
)
}
public
class
CCMSLoyaltyCampaigns
{
let
campaigns
:
Array
<
Dictionary
<
String
,
String
>>
init
(
campaigns
:
Array
<
Dictionary
<
String
,
String
>>
)
{
self
.
campaigns
=
campaigns
}
}
public
func
setCCMSLoyaltyCampaigns
(
campaigns
:
Array
<
Dictionary
<
String
,
String
>>
)
{
CCMSLoyaltyCampaigns
.
init
(
campaigns
:
campaigns
)
}
public
class
CouponSetItemModel
{
...
...
Please
register
or
login
to post a comment