Vasilis

dummy screens and more

......@@ -15,6 +15,11 @@
E639EFA52808244E00B9DD94 /* MyEmptyClass.swift in Sources */ = {isa = PBXBuildFile; fileRef = E639EFA42808244E00B9DD94 /* MyEmptyClass.swift */; };
E639EFAB2808347700B9DD94 /* ic_back.png in Resources */ = {isa = PBXBuildFile; fileRef = E639EFAA2808347700B9DD94 /* ic_back.png */; };
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 */; };
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 */; };
......@@ -142,6 +147,11 @@
E639EFA42808244E00B9DD94 /* MyEmptyClass.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyEmptyClass.swift; sourceTree = "<group>"; };
E639EFAA2808347700B9DD94 /* ic_back.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ic_back.png; sourceTree = "<group>"; };
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>"; };
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>"; };
......@@ -324,6 +334,11 @@
E639EFA1280810E300B9DD94 /* CouponsViewInterface.swift */,
1EBEB02C280D69D800BF802C /* GiftsView.swift */,
1EBEB02E280D6AA500BF802C /* GiftsViewInterface.swift */,
E67D1EB7281055D900940F01 /* WalletViewInterface.swift */,
E67D1EBD2810573900940F01 /* WalletView.swift */,
E67D1EB9281055F800940F01 /* MoreForYouViewInterface.swift */,
E67D1EBF2810579F00940F01 /* MoreForYouView.swift */,
E67D1EBB2810560800940F01 /* CampaignViewInterface.swift */,
E6D8DF5E27A9429E0006A3A9 /* MyApi.h */,
E6D8DF5C27A9429E0006A3A9 /* MyApi.m */,
E6D8DE7427A942910006A3A9 /* Helpers */,
......@@ -721,21 +736,25 @@
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 */,
E6D8DEF327A942920006A3A9 /* WLNativeVideoTableViewCell.m in Sources */,
E6D8DF2527A942920006A3A9 /* WLSMSActionHanlder.m in Sources */,
E67D1EBE2810573900940F01 /* WalletView.swift in Sources */,
E6D8DF5727A942920006A3A9 /* FMResultSet.m in Sources */,
E6D8DF3A27A942920006A3A9 /* UIButton+AFNetworking.m in Sources */,
E6D8DF0627A942920006A3A9 /* WLBeacon.m in Sources */,
E6D8DF2927A942920006A3A9 /* NSData+SSToolkitAdditions.m in Sources */,
1EBEB02D280D69D800BF802C /* GiftsView.swift in Sources */,
E67D1EC02810579F00940F01 /* MoreForYouView.swift in Sources */,
E6D8DEFC27A942920006A3A9 /* WLCustomNativeAdTableViewCell.m in Sources */,
E6EA2F702806E8C200EC4CF5 /* Coupons.swift in Sources */,
E639EFA3280810E300B9DD94 /* CouponsViewInterface.swift in Sources */,
1EBEB02F280D6AA500BF802C /* GiftsViewInterface.swift in Sources */,
E67D1EBA281055F800940F01 /* MoreForYouViewInterface.swift in Sources */,
E6D8DF4A27A942920006A3A9 /* AFNetworkReachabilityManager.m in Sources */,
E6D8DF4B27A942920006A3A9 /* AFSecurityPolicy.m in Sources */,
E6D8DF1327A942920006A3A9 /* WLBeaconManager.m in Sources */,
......@@ -746,6 +765,7 @@
E6D8DF4527A942920006A3A9 /* AFHTTPSessionManager.m in Sources */,
E6D8DF3B27A942920006A3A9 /* UIActivityIndicatorView+AFNetworking.m in Sources */,
E6D8DF3727A942920006A3A9 /* UIImageView+AFNetworking.m in Sources */,
E67D1EB8281055D900940F01 /* WalletViewInterface.swift in Sources */,
E6D8DF3127A942920006A3A9 /* AFNetworkActivityIndicatorManager.m in Sources */,
E6D8DF3D27A942920006A3A9 /* AFAutoPurgingImageCache.m in Sources */,
E6D8DF0A27A942920006A3A9 /* WLAPSItem.m in Sources */,
......
//
// CampaignViewInterface.swift
// WarplySDKFrameworkIOS
//
// Created by Βασιλης Σκουρας on 20/4/22.
//
import Foundation
import SwiftUI
@available(iOS 13.0.0, *)
@objc public class CampaignViewInterface : NSObject {
@objc(campaignViewController::) static public func campaignViewController(parentView: UIView?, campaign: String?) -> UIViewController {
return UIHostingController(rootView: CampaignWebview(parentView: parentView!, campaign: campaign))
}
}
......@@ -192,7 +192,7 @@ extension CouponsView {
Image("coupons_container", bundle: Bundle(for: MyEmptyClass.self))
.resizable()
)
.padding(.bottom, self.uiscreen.height * 0.04)
.padding(.bottom, self.uiscreen.height * 0.03)
}
}
......
//
// MoreForYouView.swift
// WarplySDKFrameworkIOS
//
// Created by Βασιλης Σκουρας on 20/4/22.
//
import SwiftUI
extension MoreForYouView {
struct headerView: View {
var goBack: () -> ()
var uiscreen = UIScreen.main.bounds
var body: some View {
HStack {
Button(action: goBack) {
HStack {
Image("ic_back", bundle: Bundle(for: MyEmptyClass.self))
.resizable()
.frame(width: self.uiscreen.height * 0.022, height: self.uiscreen.height * 0.02)
.offset(y: self.uiscreen.height * 0.015)
}
}
Text("More for you")
.frame(width: self.uiscreen.width * 0.8, height: self.uiscreen.height * 0.025, alignment: .center)
.offset( y: self.uiscreen.height * 0.02)
.font(.system(size: 15))
}
.frame(width: self.uiscreen.width, height: self.uiscreen.height * 0.1)
}
}
}
struct MoreForYouView: View {
var parentView: UIView
var uiscreen = UIScreen.main.bounds
func goBack(){
for subview in parentView.subviews {
if(subview.tag == 1) {
subview.removeFromSuperview()
}
}
}
var body: some View {
headerView(goBack: goBack)
Text("More For you")
}
}
//struct MoreForYouView_Previews: PreviewProvider {
// static var previews: some View {
// MoreForYouView()
// }
//}
//
// MoreForYouViewInterface.swift
// WarplySDKFrameworkIOS
//
// Created by Βασιλης Σκουρας on 20/4/22.
//
import Foundation
import SwiftUI
@available(iOS 13.0.0, *)
@objc public class MoreForYouViewInterface : NSObject {
@objc(moreForYouViewController:) static public func moreForYouViewController(parentView: UIView?) -> UIViewController {
return UIHostingController(rootView: MoreForYouView(parentView: parentView!))
}
}
......@@ -17,6 +17,9 @@
- (void) setLang:(NSString*) lang;
- (UIViewController *) openCoupons:(UIView*) parentView;
- (UIViewController *) openGifts:(UIView*) parentView;
- (UIViewController *) openWallet:(UIView*) parentView;
- (UIViewController *) openMoreForYou:(UIView*) parentView;
- (UIViewController *) openCampaign:(UIView*) parentView campaign:(NSString*) campaign;
- (void) applicationDidEnterBackground:(UIApplication *)application;
- (void) applicationWillEnterForeground:(UIApplication *)application;
- (void) applicationDidBecomeActive:(UIApplication *)application;
......
......@@ -58,6 +58,21 @@ NSString *LANG;
return giftsViewController;
}
- (UIViewController *) openWallet:(UIView*) parentView{
UIViewController *wallletViewController = [WalletViewInterface walletViewController:parentView];
return wallletViewController;
}
- (UIViewController *) openMoreForYou:(UIView*) parentView{
UIViewController *moreForYouViewController = [MoreForYouViewInterface moreForYouViewController:parentView];
return moreForYouViewController;
}
- (UIViewController *) openCampaign:(UIView*) parentView campaign:(NSString*) campaign; {
UIViewController *campaignViewController = [CampaignViewInterface campaignViewController:parentView :campaign];
return campaignViewController;
}
///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)applicationDidEnterBackground:(UIApplication *)application
......
//
// WalletView.swift
// WarplySDKFrameworkIOS
//
// Created by Βασιλης Σκουρας on 20/4/22.
//
import SwiftUI
extension WalletView {
struct headerView: View {
var goBack: () -> ()
var uiscreen = UIScreen.main.bounds
var body: some View {
HStack {
Button(action: goBack) {
HStack {
Image("ic_back", bundle: Bundle(for: MyEmptyClass.self))
.resizable()
.frame(width: self.uiscreen.height * 0.022, height: self.uiscreen.height * 0.02)
.offset(y: self.uiscreen.height * 0.015)
}
}
Text("Wallet")
.frame(width: self.uiscreen.width * 0.8, height: self.uiscreen.height * 0.025, alignment: .center)
.offset( y: self.uiscreen.height * 0.02)
.font(.system(size: 15))
}
.frame(width: self.uiscreen.width, height: self.uiscreen.height * 0.1)
}
}
}
struct WalletView: View {
var parentView: UIView
var uiscreen = UIScreen.main.bounds
func goBack(){
for subview in parentView.subviews {
if(subview.tag == 1) {
subview.removeFromSuperview()
}
}
}
var body: some View {
headerView(goBack: goBack)
Text("Wallet View")
}
}
struct WalletView_Previews: PreviewProvider {
static var previews: some View {
WalletView()
}
}
//
// WalletViewInterface.swift
// WarplySDKFrameworkIOS
//
// Created by Βασιλης Σκουρας on 20/4/22.
//
import Foundation
import SwiftUI
@available(iOS 13.0.0, *)
@objc public class WalletViewInterface : NSObject {
@objc(walletViewController:) static public func walletViewController(parentView: UIView?) -> UIViewController {
return UIHostingController(rootView: WalletView(parentView: parentView!))
}
}