Vasilis

addition of coupon view

...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
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 E67D1EBE2810573900940F01 /* WalletView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67D1EBD2810573900940F01 /* WalletView.swift */; }; 22 E67D1EBE2810573900940F01 /* WalletView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E67D1EBD2810573900940F01 /* WalletView.swift */; };
23 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 */; };
24 E6D8DE6D27A942010006A3A9 /* WarplySDKFrameworkIOS.docc in Sources */ = {isa = PBXBuildFile; fileRef = E6D8DE6C27A942010006A3A9 /* WarplySDKFrameworkIOS.docc */; }; 26 E6D8DE6D27A942010006A3A9 /* WarplySDKFrameworkIOS.docc in Sources */ = {isa = PBXBuildFile; fileRef = E6D8DE6C27A942010006A3A9 /* WarplySDKFrameworkIOS.docc */; };
25 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, ); }; };
26 E6D8DEEE27A942920006A3A9 /* WarplyReactMethods.m in Sources */ = {isa = PBXBuildFile; fileRef = E6D8DE7527A942910006A3A9 /* WarplyReactMethods.m */; }; 28 E6D8DEEE27A942920006A3A9 /* WarplyReactMethods.m in Sources */ = {isa = PBXBuildFile; fileRef = E6D8DE7527A942910006A3A9 /* WarplyReactMethods.m */; };
...@@ -154,6 +156,8 @@ ...@@ -154,6 +156,8 @@
154 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>"; };
155 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>"; };
156 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>"; };
157 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; };
158 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>"; };
159 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>"; };
...@@ -342,6 +346,8 @@ ...@@ -342,6 +346,8 @@
342 E67D1EBD2810573900940F01 /* WalletView.swift */, 346 E67D1EBD2810573900940F01 /* WalletView.swift */,
343 E67D1EB9281055F800940F01 /* MoreForYouViewInterface.swift */, 347 E67D1EB9281055F800940F01 /* MoreForYouViewInterface.swift */,
344 E67D1EBF2810579F00940F01 /* MoreForYouView.swift */, 348 E67D1EBF2810579F00940F01 /* MoreForYouView.swift */,
349 + E67D1EC128113EED00940F01 /* CouponView.swift */,
350 + E67D1EC328113EFD00940F01 /* CouponViewInterface.swift */,
345 E6D8DF5E27A9429E0006A3A9 /* MyApi.h */, 351 E6D8DF5E27A9429E0006A3A9 /* MyApi.h */,
346 E6D8DF5C27A9429E0006A3A9 /* MyApi.m */, 352 E6D8DF5C27A9429E0006A3A9 /* MyApi.m */,
347 E6D8DE7427A942910006A3A9 /* Helpers */, 353 E6D8DE7427A942910006A3A9 /* Helpers */,
...@@ -743,10 +749,12 @@ ...@@ -743,10 +749,12 @@
743 E6D8DF1E27A942920006A3A9 /* UIViewController+WLAdditions.m in Sources */, 749 E6D8DF1E27A942920006A3A9 /* UIViewController+WLAdditions.m in Sources */,
744 E6D8DF2E27A942920006A3A9 /* UIRefreshControl+AFNetworking.m in Sources */, 750 E6D8DF2E27A942920006A3A9 /* UIRefreshControl+AFNetworking.m in Sources */,
745 E6D8DF4827A942920006A3A9 /* AFURLRequestSerialization.m in Sources */, 751 E6D8DF4827A942920006A3A9 /* AFURLRequestSerialization.m in Sources */,
752 + E67D1EC228113EED00940F01 /* CouponView.swift in Sources */,
746 E6D8DEF327A942920006A3A9 /* WLNativeVideoTableViewCell.m in Sources */, 753 E6D8DEF327A942920006A3A9 /* WLNativeVideoTableViewCell.m in Sources */,
747 E6D8DF2527A942920006A3A9 /* WLSMSActionHanlder.m in Sources */, 754 E6D8DF2527A942920006A3A9 /* WLSMSActionHanlder.m in Sources */,
748 E67D1EBE2810573900940F01 /* WalletView.swift in Sources */, 755 E67D1EBE2810573900940F01 /* WalletView.swift in Sources */,
749 E6D8DF5727A942920006A3A9 /* FMResultSet.m in Sources */, 756 E6D8DF5727A942920006A3A9 /* FMResultSet.m in Sources */,
757 + E67D1EC428113EFD00940F01 /* CouponViewInterface.swift in Sources */,
750 E6D8DF3A27A942920006A3A9 /* UIButton+AFNetworking.m in Sources */, 758 E6D8DF3A27A942920006A3A9 /* UIButton+AFNetworking.m in Sources */,
751 E6D8DF0627A942920006A3A9 /* WLBeacon.m in Sources */, 759 E6D8DF0627A942920006A3A9 /* WLBeacon.m in Sources */,
752 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 +//
2 +// CouponViewInterface.swift
3 +// WarplySDKFrameworkIOS
4 +//
5 +// Created by Βασιλης Σκουρας on 21/4/22.
6 +//
7 +
8 +import Foundation
9 +import SwiftUI
10 +
11 +@available(iOS 13.0.0, *)
12 +@objc public class CouponViewInterface : NSObject {
13 +
14 + @objc(couponViewController:) static public func couponViewController(parentView: UIView?) -> UIViewController {
15 + return UIHostingController(rootView: CouponView(parentView: parentView!))
16 + }
17 +
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];
......