Manos Chorianopoulos
...@@ -19,9 +19,10 @@ ...@@ -19,9 +19,10 @@
19 E655D05A280590AD004F913C /* WarplySDKFrameworkIOS-Bridging-Header.h in Headers */ = {isa = PBXBuildFile; fileRef = E655D05928058A72004F913C /* WarplySDKFrameworkIOS-Bridging-Header.h */; }; 19 E655D05A280590AD004F913C /* WarplySDKFrameworkIOS-Bridging-Header.h in Headers */ = {isa = PBXBuildFile; fileRef = E655D05928058A72004F913C /* WarplySDKFrameworkIOS-Bridging-Header.h */; };
20 E67D1EB8281055D900940F01 /* WalletViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67D1EB7281055D900940F01 /* WalletViewInterface.swift */; }; 20 E67D1EB8281055D900940F01 /* WalletViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67D1EB7281055D900940F01 /* WalletViewInterface.swift */; };
21 E67D1EBA281055F800940F01 /* MoreForYouViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67D1EB9281055F800940F01 /* MoreForYouViewInterface.swift */; }; 21 E67D1EBA281055F800940F01 /* MoreForYouViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67D1EB9281055F800940F01 /* MoreForYouViewInterface.swift */; };
22 - E67D1EBC2810560800940F01 /* CampaignViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67D1EBB2810560800940F01 /* CampaignViewInterface.swift */; };
23 E67D1EBE2810573900940F01 /* WalletView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67D1EBD2810573900940F01 /* WalletView.swift */; }; 22 E67D1EBE2810573900940F01 /* WalletView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67D1EBD2810573900940F01 /* WalletView.swift */; };
24 E67D1EC02810579F00940F01 /* MoreForYouView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67D1EBF2810579F00940F01 /* MoreForYouView.swift */; }; 23 E67D1EC02810579F00940F01 /* MoreForYouView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67D1EBF2810579F00940F01 /* MoreForYouView.swift */; };
24 + E67D1EC228113EED00940F01 /* CouponView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67D1EC128113EED00940F01 /* CouponView.swift */; };
25 + E67D1EC428113EFD00940F01 /* CouponViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67D1EC328113EFD00940F01 /* CouponViewInterface.swift */; };
25 E6D8DE6D27A942010006A3A9 /* WarplySDKFrameworkIOS.docc in Sources */ = {isa = PBXBuildFile; fileRef = E6D8DE6C27A942010006A3A9 /* WarplySDKFrameworkIOS.docc */; }; 26 E6D8DE6D27A942010006A3A9 /* WarplySDKFrameworkIOS.docc in Sources */ = {isa = PBXBuildFile; fileRef = E6D8DE6C27A942010006A3A9 /* WarplySDKFrameworkIOS.docc */; };
26 E6D8DE6E27A942010006A3A9 /* WarplySDKFrameworkIOS.h in Headers */ = {isa = PBXBuildFile; fileRef = E6D8DE6B27A942010006A3A9 /* WarplySDKFrameworkIOS.h */; settings = {ATTRIBUTES = (Public, ); }; }; 27 E6D8DE6E27A942010006A3A9 /* WarplySDKFrameworkIOS.h in Headers */ = {isa = PBXBuildFile; fileRef = E6D8DE6B27A942010006A3A9 /* WarplySDKFrameworkIOS.h */; settings = {ATTRIBUTES = (Public, ); }; };
27 E6D8DEEE27A942920006A3A9 /* WarplyReactMethods.m in Sources */ = {isa = PBXBuildFile; fileRef = E6D8DE7527A942910006A3A9 /* WarplyReactMethods.m */; }; 28 E6D8DEEE27A942920006A3A9 /* WarplyReactMethods.m in Sources */ = {isa = PBXBuildFile; fileRef = E6D8DE7527A942910006A3A9 /* WarplyReactMethods.m */; };
...@@ -153,9 +154,10 @@ ...@@ -153,9 +154,10 @@
153 E655D05928058A72004F913C /* WarplySDKFrameworkIOS-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "WarplySDKFrameworkIOS-Bridging-Header.h"; sourceTree = "<group>"; }; 154 E655D05928058A72004F913C /* WarplySDKFrameworkIOS-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "WarplySDKFrameworkIOS-Bridging-Header.h"; sourceTree = "<group>"; };
154 E67D1EB7281055D900940F01 /* WalletViewInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletViewInterface.swift; sourceTree = "<group>"; }; 155 E67D1EB7281055D900940F01 /* WalletViewInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletViewInterface.swift; sourceTree = "<group>"; };
155 E67D1EB9281055F800940F01 /* MoreForYouViewInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MoreForYouViewInterface.swift; sourceTree = "<group>"; }; 156 E67D1EB9281055F800940F01 /* MoreForYouViewInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MoreForYouViewInterface.swift; sourceTree = "<group>"; };
156 - E67D1EBB2810560800940F01 /* CampaignViewInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CampaignViewInterface.swift; sourceTree = "<group>"; };
157 E67D1EBD2810573900940F01 /* WalletView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletView.swift; sourceTree = "<group>"; }; 157 E67D1EBD2810573900940F01 /* WalletView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletView.swift; sourceTree = "<group>"; };
158 E67D1EBF2810579F00940F01 /* MoreForYouView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MoreForYouView.swift; sourceTree = "<group>"; }; 158 E67D1EBF2810579F00940F01 /* MoreForYouView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MoreForYouView.swift; sourceTree = "<group>"; };
159 + E67D1EC128113EED00940F01 /* CouponView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CouponView.swift; sourceTree = "<group>"; };
160 + E67D1EC328113EFD00940F01 /* CouponViewInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CouponViewInterface.swift; sourceTree = "<group>"; };
159 E6D8DE6827A942010006A3A9 /* WarplySDKFrameworkIOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = WarplySDKFrameworkIOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 161 E6D8DE6827A942010006A3A9 /* WarplySDKFrameworkIOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = WarplySDKFrameworkIOS.framework; sourceTree = BUILT_PRODUCTS_DIR; };
160 E6D8DE6B27A942010006A3A9 /* WarplySDKFrameworkIOS.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WarplySDKFrameworkIOS.h; sourceTree = "<group>"; }; 162 E6D8DE6B27A942010006A3A9 /* WarplySDKFrameworkIOS.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WarplySDKFrameworkIOS.h; sourceTree = "<group>"; };
161 E6D8DE6C27A942010006A3A9 /* WarplySDKFrameworkIOS.docc */ = {isa = PBXFileReference; lastKnownFileType = folder.documentationcatalog; path = WarplySDKFrameworkIOS.docc; sourceTree = "<group>"; }; 163 E6D8DE6C27A942010006A3A9 /* WarplySDKFrameworkIOS.docc */ = {isa = PBXFileReference; lastKnownFileType = folder.documentationcatalog; path = WarplySDKFrameworkIOS.docc; sourceTree = "<group>"; };
...@@ -344,7 +346,8 @@ ...@@ -344,7 +346,8 @@
344 E67D1EBD2810573900940F01 /* WalletView.swift */, 346 E67D1EBD2810573900940F01 /* WalletView.swift */,
345 E67D1EB9281055F800940F01 /* MoreForYouViewInterface.swift */, 347 E67D1EB9281055F800940F01 /* MoreForYouViewInterface.swift */,
346 E67D1EBF2810579F00940F01 /* MoreForYouView.swift */, 348 E67D1EBF2810579F00940F01 /* MoreForYouView.swift */,
347 - E67D1EBB2810560800940F01 /* CampaignViewInterface.swift */, 349 + E67D1EC128113EED00940F01 /* CouponView.swift */,
350 + E67D1EC328113EFD00940F01 /* CouponViewInterface.swift */,
348 E6D8DF5E27A9429E0006A3A9 /* MyApi.h */, 351 E6D8DF5E27A9429E0006A3A9 /* MyApi.h */,
349 E6D8DF5C27A9429E0006A3A9 /* MyApi.m */, 352 E6D8DF5C27A9429E0006A3A9 /* MyApi.m */,
350 E6D8DE7427A942910006A3A9 /* Helpers */, 353 E6D8DE7427A942910006A3A9 /* Helpers */,
...@@ -742,15 +745,16 @@ ...@@ -742,15 +745,16 @@
742 isa = PBXSourcesBuildPhase; 745 isa = PBXSourcesBuildPhase;
743 buildActionMask = 2147483647; 746 buildActionMask = 2147483647;
744 files = ( 747 files = (
745 - E67D1EBC2810560800940F01 /* CampaignViewInterface.swift in Sources */,
746 E6D8DF0B27A942920006A3A9 /* WLEvent.m in Sources */, 748 E6D8DF0B27A942920006A3A9 /* WLEvent.m in Sources */,
747 E6D8DF1E27A942920006A3A9 /* UIViewController+WLAdditions.m in Sources */, 749 E6D8DF1E27A942920006A3A9 /* UIViewController+WLAdditions.m in Sources */,
748 E6D8DF2E27A942920006A3A9 /* UIRefreshControl+AFNetworking.m in Sources */, 750 E6D8DF2E27A942920006A3A9 /* UIRefreshControl+AFNetworking.m in Sources */,
749 E6D8DF4827A942920006A3A9 /* AFURLRequestSerialization.m in Sources */, 751 E6D8DF4827A942920006A3A9 /* AFURLRequestSerialization.m in Sources */,
752 + E67D1EC228113EED00940F01 /* CouponView.swift in Sources */,
750 E6D8DEF327A942920006A3A9 /* WLNativeVideoTableViewCell.m in Sources */, 753 E6D8DEF327A942920006A3A9 /* WLNativeVideoTableViewCell.m in Sources */,
751 E6D8DF2527A942920006A3A9 /* WLSMSActionHanlder.m in Sources */, 754 E6D8DF2527A942920006A3A9 /* WLSMSActionHanlder.m in Sources */,
752 E67D1EBE2810573900940F01 /* WalletView.swift in Sources */, 755 E67D1EBE2810573900940F01 /* WalletView.swift in Sources */,
753 E6D8DF5727A942920006A3A9 /* FMResultSet.m in Sources */, 756 E6D8DF5727A942920006A3A9 /* FMResultSet.m in Sources */,
757 + E67D1EC428113EFD00940F01 /* CouponViewInterface.swift in Sources */,
754 E6D8DF3A27A942920006A3A9 /* UIButton+AFNetworking.m in Sources */, 758 E6D8DF3A27A942920006A3A9 /* UIButton+AFNetworking.m in Sources */,
755 E6D8DF0627A942920006A3A9 /* WLBeacon.m in Sources */, 759 E6D8DF0627A942920006A3A9 /* WLBeacon.m in Sources */,
756 1E735FF2281067320050A298 /* CampaignWebview.swift in Sources */, 760 1E735FF2281067320050A298 /* CampaignWebview.swift in Sources */,
......
1 +//
2 +// CouponView.swift
3 +// WarplySDKFrameworkIOS
4 +//
5 +// Created by Βασιλης Σκουρας on 21/4/22.
6 +//
7 +
8 +import SwiftUI
9 +
10 +struct CouponView: View {
11 +
12 + var parentView: UIView
13 +
14 + var uiscreen = UIScreen.main.bounds
15 +
16 + var body: some View {
17 + Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
18 + }
19 +}
20 +
21 +//struct CouponView_Previews: PreviewProvider {
22 +// static var previews: some View {
23 +// CouponView()
24 +// }
25 +//}
1 // 1 //
2 -// CampaignViewInterface.swift 2 +// CouponViewInterface.swift
3 // WarplySDKFrameworkIOS 3 // WarplySDKFrameworkIOS
4 // 4 //
5 -// Created by Βασιλης Σκουρας on 20/4/22. 5 +// Created by Βασιλης Σκουρας on 21/4/22.
6 // 6 //
7 7
8 import Foundation 8 import Foundation
9 import SwiftUI 9 import SwiftUI
10 10
11 @available(iOS 13.0.0, *) 11 @available(iOS 13.0.0, *)
12 -@objc public class CampaignViewInterface : NSObject { 12 +@objc public class CouponViewInterface : NSObject {
13 13
14 - @objc(campaignViewController::) static public func campaignViewController(parentView: UIView?, campaign: String?) -> UIViewController { 14 + @objc(couponViewController:) static public func couponViewController(parentView: UIView?) -> UIViewController {
15 - return UIHostingController(rootView: CampaignWebview(parentView: parentView!, campaign: campaign)) 15 + return UIHostingController(rootView: CouponView(parentView: parentView!))
16 } 16 }
17 17
18 } 18 }
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
16 - (void) setToStage; 16 - (void) setToStage;
17 - (void) setLang:(NSString*) lang; 17 - (void) setLang:(NSString*) lang;
18 - (UIViewController *) openCoupons:(UIView*) parentView; 18 - (UIViewController *) openCoupons:(UIView*) parentView;
19 +- (UIViewController *) openCoupon:(UIView*) parentView;
19 - (UIViewController *) openGifts:(UIView*) parentView; 20 - (UIViewController *) openGifts:(UIView*) parentView;
20 - (UIViewController *) openWallet:(UIView*) parentView; 21 - (UIViewController *) openWallet:(UIView*) parentView;
21 - (UIViewController *) openMoreForYou:(UIView*) parentView; 22 - (UIViewController *) openMoreForYou:(UIView*) parentView;
......
...@@ -52,6 +52,12 @@ NSString *LANG; ...@@ -52,6 +52,12 @@ NSString *LANG;
52 return couponsViewController; 52 return couponsViewController;
53 } 53 }
54 54
55 +- (UIViewController *) openCoupon:(UIView*) parentView{
56 +
57 + UIViewController *couponViewController = [CouponViewInterface couponViewController:parentView];
58 + return couponViewController;
59 +}
60 +
55 - (UIViewController *) openGifts:(UIView*) parentView{ 61 - (UIViewController *) openGifts:(UIView*) parentView{
56 62
57 UIViewController *giftsViewController = [GiftsViewInterface giftsViewController:parentView]; 63 UIViewController *giftsViewController = [GiftsViewInterface giftsViewController:parentView];
......
...@@ -52,8 +52,8 @@ struct WalletView: View { ...@@ -52,8 +52,8 @@ struct WalletView: View {
52 } 52 }
53 } 53 }
54 54
55 -struct WalletView_Previews: PreviewProvider { 55 +//struct WalletView_Previews: PreviewProvider {
56 - static var previews: some View { 56 +// static var previews: some View {
57 - WalletView() 57 +// WalletView()
58 - } 58 +// }
59 -} 59 +//}
......