Manos Chorianopoulos

add DetailsView

Showing 40 changed files with 219 additions and 2 deletions
1 +{
2 + "images" : [
3 + {
4 + "filename" : "ic_cart.png",
5 + "idiom" : "universal",
6 + "scale" : "1x"
7 + },
8 + {
9 + "filename" : "ic_cart-1.png",
10 + "idiom" : "universal",
11 + "scale" : "2x"
12 + },
13 + {
14 + "filename" : "ic_cart-2.png",
15 + "idiom" : "universal",
16 + "scale" : "3x"
17 + }
18 + ],
19 + "info" : {
20 + "author" : "xcode",
21 + "version" : 1
22 + }
23 +}
1 +{
2 + "images" : [
3 + {
4 + "filename" : "ic_cosmote_logo.png",
5 + "idiom" : "universal",
6 + "scale" : "1x"
7 + },
8 + {
9 + "filename" : "ic_cosmote_logo-1.png",
10 + "idiom" : "universal",
11 + "scale" : "2x"
12 + },
13 + {
14 + "filename" : "ic_cosmote_logo-2.png",
15 + "idiom" : "universal",
16 + "scale" : "3x"
17 + }
18 + ],
19 + "info" : {
20 + "author" : "xcode",
21 + "version" : 1
22 + }
23 +}
1 +{
2 + "images" : [
3 + {
4 + "filename" : "ic_down.png",
5 + "idiom" : "universal",
6 + "scale" : "1x"
7 + },
8 + {
9 + "filename" : "ic_down-1.png",
10 + "idiom" : "universal",
11 + "scale" : "2x"
12 + },
13 + {
14 + "filename" : "ic_down-2.png",
15 + "idiom" : "universal",
16 + "scale" : "3x"
17 + }
18 + ],
19 + "info" : {
20 + "author" : "xcode",
21 + "version" : 1
22 + }
23 +}
1 +{
2 + "images" : [
3 + {
4 + "filename" : "ic_gift.png",
5 + "idiom" : "universal",
6 + "scale" : "1x"
7 + },
8 + {
9 + "filename" : "ic_gift-1.png",
10 + "idiom" : "universal",
11 + "scale" : "2x"
12 + },
13 + {
14 + "filename" : "ic_gift-2.png",
15 + "idiom" : "universal",
16 + "scale" : "3x"
17 + }
18 + ],
19 + "info" : {
20 + "author" : "xcode",
21 + "version" : 1
22 + }
23 +}
1 +{
2 + "images" : [
3 + {
4 + "filename" : "ic_plane.png",
5 + "idiom" : "universal",
6 + "scale" : "1x"
7 + },
8 + {
9 + "filename" : "ic_plane-1.png",
10 + "idiom" : "universal",
11 + "scale" : "2x"
12 + },
13 + {
14 + "filename" : "ic_plane-2.png",
15 + "idiom" : "universal",
16 + "scale" : "3x"
17 + }
18 + ],
19 + "info" : {
20 + "author" : "xcode",
21 + "version" : 1
22 + }
23 +}
1 +{
2 + "images" : [
3 + {
4 + "filename" : "ic_smile.png",
5 + "idiom" : "universal",
6 + "scale" : "1x"
7 + },
8 + {
9 + "filename" : "ic_smile-1.png",
10 + "idiom" : "universal",
11 + "scale" : "2x"
12 + },
13 + {
14 + "filename" : "ic_smile-2.png",
15 + "idiom" : "universal",
16 + "scale" : "3x"
17 + }
18 + ],
19 + "info" : {
20 + "author" : "xcode",
21 + "version" : 1
22 + }
23 +}
1 +{
2 + "images" : [
3 + {
4 + "filename" : "ic_steering_wheel.png",
5 + "idiom" : "universal",
6 + "scale" : "1x"
7 + },
8 + {
9 + "filename" : "ic_steering_wheel-1.png",
10 + "idiom" : "universal",
11 + "scale" : "2x"
12 + },
13 + {
14 + "filename" : "ic_steering_wheel-2.png",
15 + "idiom" : "universal",
16 + "scale" : "3x"
17 + }
18 + ],
19 + "info" : {
20 + "author" : "xcode",
21 + "version" : 1
22 + }
23 +}
1 +{
2 + "images" : [
3 + {
4 + "filename" : "ic_up.png",
5 + "idiom" : "universal",
6 + "scale" : "1x"
7 + },
8 + {
9 + "filename" : "ic_up-1.png",
10 + "idiom" : "universal",
11 + "scale" : "2x"
12 + },
13 + {
14 + "filename" : "ic_up-2.png",
15 + "idiom" : "universal",
16 + "scale" : "3x"
17 + }
18 + ],
19 + "info" : {
20 + "author" : "xcode",
21 + "version" : 1
22 + }
23 +}
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
7 <key>Pods-WarplySDKFrameworkIOS.xcscheme_^#shared#^_</key> 7 <key>Pods-WarplySDKFrameworkIOS.xcscheme_^#shared#^_</key>
8 <dict> 8 <dict>
9 <key>orderHint</key> 9 <key>orderHint</key>
10 - <integer>1</integer> 10 + <integer>0</integer>
11 </dict> 11 </dict>
12 </dict> 12 </dict>
13 </dict> 13 </dict>
......
...@@ -11,6 +11,8 @@ ...@@ -11,6 +11,8 @@
11 1E7086672811A96E00704CA8 /* CouponBarcodeViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E7086662811A96E00704CA8 /* CouponBarcodeViewInterface.swift */; }; 11 1E7086672811A96E00704CA8 /* CouponBarcodeViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E7086662811A96E00704CA8 /* CouponBarcodeViewInterface.swift */; };
12 1E735FF2281067320050A298 /* CampaignWebview.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E735FF1281067320050A298 /* CampaignWebview.swift */; }; 12 1E735FF2281067320050A298 /* CampaignWebview.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E735FF1281067320050A298 /* CampaignWebview.swift */; };
13 1E735FF42810681E0050A298 /* CampaignWebviewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E735FF32810681E0050A298 /* CampaignWebviewInterface.swift */; }; 13 1E735FF42810681E0050A298 /* CampaignWebviewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E735FF32810681E0050A298 /* CampaignWebviewInterface.swift */; };
14 + 1E7536732822B72500149CC9 /* DetailsViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E7536722822B72500149CC9 /* DetailsViewInterface.swift */; };
15 + 1E7536752822B76000149CC9 /* DetailsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E7536742822B76000149CC9 /* DetailsView.swift */; };
14 1E879E25281AC96A0089F489 /* OldCouponsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E879E24281AC96A0089F489 /* OldCouponsView.swift */; }; 16 1E879E25281AC96A0089F489 /* OldCouponsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E879E24281AC96A0089F489 /* OldCouponsView.swift */; };
15 1E879E27281AC99F0089F489 /* OldCouponsViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E879E26281AC99F0089F489 /* OldCouponsViewInterface.swift */; }; 17 1E879E27281AC99F0089F489 /* OldCouponsViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E879E26281AC99F0089F489 /* OldCouponsViewInterface.swift */; };
16 1E98EC1428199C4F007524A0 /* AllGiftsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E98EC1328199C4F007524A0 /* AllGiftsView.swift */; }; 18 1E98EC1428199C4F007524A0 /* AllGiftsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E98EC1328199C4F007524A0 /* AllGiftsView.swift */; };
...@@ -156,6 +158,8 @@ ...@@ -156,6 +158,8 @@
156 1E7086662811A96E00704CA8 /* CouponBarcodeViewInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CouponBarcodeViewInterface.swift; sourceTree = "<group>"; }; 158 1E7086662811A96E00704CA8 /* CouponBarcodeViewInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CouponBarcodeViewInterface.swift; sourceTree = "<group>"; };
157 1E735FF1281067320050A298 /* CampaignWebview.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CampaignWebview.swift; sourceTree = "<group>"; }; 159 1E735FF1281067320050A298 /* CampaignWebview.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CampaignWebview.swift; sourceTree = "<group>"; };
158 1E735FF32810681E0050A298 /* CampaignWebviewInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CampaignWebviewInterface.swift; sourceTree = "<group>"; }; 160 1E735FF32810681E0050A298 /* CampaignWebviewInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CampaignWebviewInterface.swift; sourceTree = "<group>"; };
161 + 1E7536722822B72500149CC9 /* DetailsViewInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DetailsViewInterface.swift; sourceTree = "<group>"; };
162 + 1E7536742822B76000149CC9 /* DetailsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DetailsView.swift; sourceTree = "<group>"; };
159 1E879E24281AC96A0089F489 /* OldCouponsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OldCouponsView.swift; sourceTree = "<group>"; }; 163 1E879E24281AC96A0089F489 /* OldCouponsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OldCouponsView.swift; sourceTree = "<group>"; };
160 1E879E26281AC99F0089F489 /* OldCouponsViewInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OldCouponsViewInterface.swift; sourceTree = "<group>"; }; 164 1E879E26281AC99F0089F489 /* OldCouponsViewInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OldCouponsViewInterface.swift; sourceTree = "<group>"; };
161 1E98EC1328199C4F007524A0 /* AllGiftsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AllGiftsView.swift; sourceTree = "<group>"; }; 165 1E98EC1328199C4F007524A0 /* AllGiftsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AllGiftsView.swift; sourceTree = "<group>"; };
...@@ -359,6 +363,8 @@ ...@@ -359,6 +363,8 @@
359 E639EFA0280810E300B9DD94 /* CouponsView.swift */, 363 E639EFA0280810E300B9DD94 /* CouponsView.swift */,
360 E639EFA1280810E300B9DD94 /* CouponsViewInterface.swift */, 364 E639EFA1280810E300B9DD94 /* CouponsViewInterface.swift */,
361 1EBEB02C280D69D800BF802C /* GiftsView.swift */, 365 1EBEB02C280D69D800BF802C /* GiftsView.swift */,
366 + 1E7536722822B72500149CC9 /* DetailsViewInterface.swift */,
367 + 1E7536742822B76000149CC9 /* DetailsView.swift */,
362 1E98EC1328199C4F007524A0 /* AllGiftsView.swift */, 368 1E98EC1328199C4F007524A0 /* AllGiftsView.swift */,
363 1E879E24281AC96A0089F489 /* OldCouponsView.swift */, 369 1E879E24281AC96A0089F489 /* OldCouponsView.swift */,
364 1E879E26281AC99F0089F489 /* OldCouponsViewInterface.swift */, 370 1E879E26281AC99F0089F489 /* OldCouponsViewInterface.swift */,
...@@ -827,6 +833,7 @@ ...@@ -827,6 +833,7 @@
827 1E98EC1628199C86007524A0 /* AllGiftsViewInterface.swift in Sources */, 833 1E98EC1628199C86007524A0 /* AllGiftsViewInterface.swift in Sources */,
828 E6D8DF1427A942920006A3A9 /* WLLocationManager.m in Sources */, 834 E6D8DF1427A942920006A3A9 /* WLLocationManager.m in Sources */,
829 E6D8DF6027A9429E0006A3A9 /* MyApi.m in Sources */, 835 E6D8DF6027A9429E0006A3A9 /* MyApi.m in Sources */,
836 + 1E7536752822B76000149CC9 /* DetailsView.swift in Sources */,
830 E6D8DF3F27A942920006A3A9 /* AFImageDownloader.m in Sources */, 837 E6D8DF3F27A942920006A3A9 /* AFImageDownloader.m in Sources */,
831 E6D8DEF727A942920006A3A9 /* WLNativeAdsCollectionMode.m in Sources */, 838 E6D8DEF727A942920006A3A9 /* WLNativeAdsCollectionMode.m in Sources */,
832 E6D8DEF427A942920006A3A9 /* WLCustomNativeCollectionViewCell.m in Sources */, 839 E6D8DEF427A942920006A3A9 /* WLCustomNativeCollectionViewCell.m in Sources */,
...@@ -849,6 +856,7 @@ ...@@ -849,6 +856,7 @@
849 E6D8DEEE27A942920006A3A9 /* WarplyReactMethods.m in Sources */, 856 E6D8DEEE27A942920006A3A9 /* WarplyReactMethods.m in Sources */,
850 E6D8DEF927A942920006A3A9 /* WLNativeAdCollectionViewCell.m in Sources */, 857 E6D8DEF927A942920006A3A9 /* WLNativeAdCollectionViewCell.m in Sources */,
851 E634A36B2822999B0069DE27 /* CouponsViewController.swift in Sources */, 858 E634A36B2822999B0069DE27 /* CouponsViewController.swift in Sources */,
859 + 1E7536732822B72500149CC9 /* DetailsViewInterface.swift in Sources */,
852 E6D8DF4E27A942920006A3A9 /* FMDatabaseQueue.m in Sources */, 860 E6D8DF4E27A942920006A3A9 /* FMDatabaseQueue.m in Sources */,
853 E6D8DF0827A942920006A3A9 /* WLBaseItem.m in Sources */, 861 E6D8DF0827A942920006A3A9 /* WLBaseItem.m in Sources */,
854 E6D8DF0727A942920006A3A9 /* WLInboxItemViewController.m in Sources */, 862 E6D8DF0727A942920006A3A9 /* WLInboxItemViewController.m in Sources */,
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
7 <key>WarplySDKFrameworkIOS.xcscheme_^#shared#^_</key> 7 <key>WarplySDKFrameworkIOS.xcscheme_^#shared#^_</key>
8 <dict> 8 <dict>
9 <key>orderHint</key> 9 <key>orderHint</key>
10 - <integer>0</integer> 10 + <integer>1</integer>
11 </dict> 11 </dict>
12 </dict> 12 </dict>
13 </dict> 13 </dict>
......
This diff is collapsed. Click to expand it.
1 +//
2 +// DetailsViewInterface.swift
3 +// WarplySDKFrameworkIOS
4 +//
5 +// Created by Manos Chorianopoulos on 3/5/22.
6 +//
7 +
8 +import Foundation
9 +import SwiftUI
10 +
11 +@available(iOS 13.0.0, *)
12 +@objc public class DetailsViewInterface : NSObject {
13 +
14 + @objc(detailsViewController:) static public func detailsViewController(parentView: UIView?) -> UIViewController {
15 + return UIHostingController(rootView: DetailsView(parentView: parentView!))
16 + }
17 +
18 +}
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
29 - (UIViewController *) openMoreForYou:(UIView*) parentView; 29 - (UIViewController *) openMoreForYou:(UIView*) parentView;
30 - (UIViewController *) openCampaign:(UIView*) parentView campaign:(NSString*) campaign; 30 - (UIViewController *) openCampaign:(UIView*) parentView campaign:(NSString*) campaign;
31 - (UIViewController *) openSteps:(UIView*) parentView; 31 - (UIViewController *) openSteps:(UIView*) parentView;
32 +- (UIViewController *) openDetails:(UIView*) parentView;
32 - (NSDictionary *) provideInfoForCampaign; 33 - (NSDictionary *) provideInfoForCampaign;
33 - (void) applicationDidEnterBackground:(UIApplication *)application; 34 - (void) applicationDidEnterBackground:(UIApplication *)application;
34 - (void) applicationWillEnterForeground:(UIApplication *)application; 35 - (void) applicationWillEnterForeground:(UIApplication *)application;
......
...@@ -150,6 +150,12 @@ CMPedometer *pedometer; ...@@ -150,6 +150,12 @@ CMPedometer *pedometer;
150 return stepsViewController; 150 return stepsViewController;
151 } 151 }
152 152
153 +- (UIViewController *) openDetails:(UIView*) parentView{
154 +
155 + UIViewController *detailsViewController = [DetailsViewInterface detailsViewController:parentView];
156 + return detailsViewController;
157 +}
158 +
153 - (NSDictionary *) provideInfoForCampaign { 159 - (NSDictionary *) provideInfoForCampaign {
154 NSMutableDictionary* info = [[NSMutableDictionary alloc] init]; 160 NSMutableDictionary* info = [[NSMutableDictionary alloc] init];
155 info[@"web_id"] = [Warply sharedService].webId; 161 info[@"web_id"] = [Warply sharedService].webId;
......