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
2022-04-21 10:35:13 +0300
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
b2ef817c37472e58f873dce90d9d5c240a9158fb
b2ef817c
2 parents
0560faa5
de01a783
Merge branch 'master' of
https://git.warp.ly/open-source/warply_sdk_framework
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
50 additions
and
14 deletions
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcodeproj/project.pbxproj
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/billskouras.xcuserdatad/UserInterfaceState.xcuserstate
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponView.swift
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CampaignViewInterface.swift → WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponViewInterface.swift
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/MyApi.h
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/MyApi.m
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/WalletView.swift
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcodeproj/project.pbxproj
View file @
b2ef817
...
...
@@ -19,9 +19,10 @@
E655D05A280590AD004F913C /* WarplySDKFrameworkIOS-Bridging-Header.h in Headers */ = {isa = PBXBuildFile; fileRef = E655D05928058A72004F913C /* WarplySDKFrameworkIOS-Bridging-Header.h */; };
E67D1EB8281055D900940F01 /* WalletViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67D1EB7281055D900940F01 /* WalletViewInterface.swift */; };
E67D1EBA281055F800940F01 /* MoreForYouViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67D1EB9281055F800940F01 /* MoreForYouViewInterface.swift */; };
E67D1EBC2810560800940F01 /* CampaignViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67D1EBB2810560800940F01 /* CampaignViewInterface.swift */; };
E67D1EBE2810573900940F01 /* WalletView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67D1EBD2810573900940F01 /* WalletView.swift */; };
E67D1EC02810579F00940F01 /* MoreForYouView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67D1EBF2810579F00940F01 /* MoreForYouView.swift */; };
E67D1EC228113EED00940F01 /* CouponView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67D1EC128113EED00940F01 /* CouponView.swift */; };
E67D1EC428113EFD00940F01 /* CouponViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67D1EC328113EFD00940F01 /* CouponViewInterface.swift */; };
E6D8DE6D27A942010006A3A9 /* WarplySDKFrameworkIOS.docc in Sources */ = {isa = PBXBuildFile; fileRef = E6D8DE6C27A942010006A3A9 /* WarplySDKFrameworkIOS.docc */; };
E6D8DE6E27A942010006A3A9 /* WarplySDKFrameworkIOS.h in Headers */ = {isa = PBXBuildFile; fileRef = E6D8DE6B27A942010006A3A9 /* WarplySDKFrameworkIOS.h */; settings = {ATTRIBUTES = (Public, ); }; };
E6D8DEEE27A942920006A3A9 /* WarplyReactMethods.m in Sources */ = {isa = PBXBuildFile; fileRef = E6D8DE7527A942910006A3A9 /* WarplyReactMethods.m */; };
...
...
@@ -153,9 +154,10 @@
E655D05928058A72004F913C /* WarplySDKFrameworkIOS-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "WarplySDKFrameworkIOS-Bridging-Header.h"; sourceTree = "<group>"; };
E67D1EB7281055D900940F01 /* WalletViewInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletViewInterface.swift; sourceTree = "<group>"; };
E67D1EB9281055F800940F01 /* MoreForYouViewInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MoreForYouViewInterface.swift; sourceTree = "<group>"; };
E67D1EBB2810560800940F01 /* CampaignViewInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CampaignViewInterface.swift; sourceTree = "<group>"; };
E67D1EBD2810573900940F01 /* WalletView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletView.swift; sourceTree = "<group>"; };
E67D1EBF2810579F00940F01 /* MoreForYouView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MoreForYouView.swift; sourceTree = "<group>"; };
E67D1EC128113EED00940F01 /* CouponView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CouponView.swift; sourceTree = "<group>"; };
E67D1EC328113EFD00940F01 /* CouponViewInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CouponViewInterface.swift; sourceTree = "<group>"; };
E6D8DE6827A942010006A3A9 /* WarplySDKFrameworkIOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = WarplySDKFrameworkIOS.framework; sourceTree = BUILT_PRODUCTS_DIR; };
E6D8DE6B27A942010006A3A9 /* WarplySDKFrameworkIOS.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WarplySDKFrameworkIOS.h; sourceTree = "<group>"; };
E6D8DE6C27A942010006A3A9 /* WarplySDKFrameworkIOS.docc */ = {isa = PBXFileReference; lastKnownFileType = folder.documentationcatalog; path = WarplySDKFrameworkIOS.docc; sourceTree = "<group>"; };
...
...
@@ -344,7 +346,8 @@
E67D1EBD2810573900940F01 /* WalletView.swift */,
E67D1EB9281055F800940F01 /* MoreForYouViewInterface.swift */,
E67D1EBF2810579F00940F01 /* MoreForYouView.swift */,
E67D1EBB2810560800940F01 /* CampaignViewInterface.swift */,
E67D1EC128113EED00940F01 /* CouponView.swift */,
E67D1EC328113EFD00940F01 /* CouponViewInterface.swift */,
E6D8DF5E27A9429E0006A3A9 /* MyApi.h */,
E6D8DF5C27A9429E0006A3A9 /* MyApi.m */,
E6D8DE7427A942910006A3A9 /* Helpers */,
...
...
@@ -742,15 +745,16 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E67D1EBC2810560800940F01 /* CampaignViewInterface.swift in Sources */,
E6D8DF0B27A942920006A3A9 /* WLEvent.m in Sources */,
E6D8DF1E27A942920006A3A9 /* UIViewController+WLAdditions.m in Sources */,
E6D8DF2E27A942920006A3A9 /* UIRefreshControl+AFNetworking.m in Sources */,
E6D8DF4827A942920006A3A9 /* AFURLRequestSerialization.m in Sources */,
E67D1EC228113EED00940F01 /* CouponView.swift in Sources */,
E6D8DEF327A942920006A3A9 /* WLNativeVideoTableViewCell.m in Sources */,
E6D8DF2527A942920006A3A9 /* WLSMSActionHanlder.m in Sources */,
E67D1EBE2810573900940F01 /* WalletView.swift in Sources */,
E6D8DF5727A942920006A3A9 /* FMResultSet.m in Sources */,
E67D1EC428113EFD00940F01 /* CouponViewInterface.swift in Sources */,
E6D8DF3A27A942920006A3A9 /* UIButton+AFNetworking.m in Sources */,
E6D8DF0627A942920006A3A9 /* WLBeacon.m in Sources */,
1E735FF2281067320050A298 /* CampaignWebview.swift in Sources */,
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/billskouras.xcuserdatad/UserInterfaceState.xcuserstate
View file @
b2ef817
No preview for this file type
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponView.swift
0 → 100644
View file @
b2ef817
//
// CouponView.swift
// WarplySDKFrameworkIOS
//
// Created by Βασιλης Σκουρας on 21/4/22.
//
import
SwiftUI
struct
CouponView
:
View
{
var
parentView
:
UIView
var
uiscreen
=
UIScreen
.
main
.
bounds
var
body
:
some
View
{
Text
(
/*@START_MENU_TOKEN@*/
"Hello, World!"
/*@END_MENU_TOKEN@*/
)
}
}
//struct CouponView_Previews: PreviewProvider {
// static var previews: some View {
// CouponView()
// }
//}
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/C
ampaig
nViewInterface.swift
→
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/C
oupo
nViewInterface.swift
View file @
b2ef817
//
// C
ampaig
nViewInterface.swift
// C
oupo
nViewInterface.swift
// WarplySDKFrameworkIOS
//
// Created by Βασιλης Σκουρας on 2
0
/4/22.
// Created by Βασιλης Σκουρας on 2
1
/4/22.
//
import
Foundation
import
SwiftUI
@available(iOS 13.0.0, *)
@objc
public
class
C
ampaig
nViewInterface
:
NSObject
{
@objc
public
class
C
oupo
nViewInterface
:
NSObject
{
@objc(c
ampaignViewController::)
static
public
func
campaignViewController
(
parentView
:
UIView
?,
campaign
:
String
?)
->
UIViewController
{
return
UIHostingController
(
rootView
:
C
ampaignWebview
(
parentView
:
parentView
!
,
campaign
:
campaign
))
@objc(c
ouponViewController:)
static
public
func
couponViewController
(
parentView
:
UIView
?)
->
UIViewController
{
return
UIHostingController
(
rootView
:
C
ouponView
(
parentView
:
parentView
!
))
}
}
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/MyApi.h
View file @
b2ef817
...
...
@@ -16,6 +16,7 @@
-
(
void
)
setToStage
;
-
(
void
)
setLang
:(
NSString
*
)
lang
;
-
(
UIViewController
*
)
openCoupons
:(
UIView
*
)
parentView
;
-
(
UIViewController
*
)
openCoupon
:(
UIView
*
)
parentView
;
-
(
UIViewController
*
)
openGifts
:(
UIView
*
)
parentView
;
-
(
UIViewController
*
)
openWallet
:(
UIView
*
)
parentView
;
-
(
UIViewController
*
)
openMoreForYou
:(
UIView
*
)
parentView
;
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/MyApi.m
View file @
b2ef817
...
...
@@ -52,6 +52,12 @@ NSString *LANG;
return
couponsViewController
;
}
-
(
UIViewController
*
)
openCoupon
:
(
UIView
*
)
parentView
{
UIViewController
*
couponViewController
=
[
CouponViewInterface
couponViewController
:
parentView
];
return
couponViewController
;
}
-
(
UIViewController
*
)
openGifts
:
(
UIView
*
)
parentView
{
UIViewController
*
giftsViewController
=
[
GiftsViewInterface
giftsViewController
:
parentView
];
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/WalletView.swift
View file @
b2ef817
...
...
@@ -52,8 +52,8 @@ struct WalletView: View {
}
}
struct
WalletView_Previews
:
PreviewProvider
{
static
var
previews
:
some
View
{
WalletView
()
}
}
//
struct WalletView_Previews: PreviewProvider {
//
static var previews: some View {
//
WalletView()
//
}
//
}
...
...
Please
register
or
login
to post a comment