Vasilis

back to ios 13

......@@ -8,6 +8,8 @@
/* Begin PBXBuildFile section */
260C6A1AFF7560C32E212F20 /* Pods_WarplySDKFrameworkIOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1353B8C484CC0649CAC2EB74 /* Pods_WarplySDKFrameworkIOS.framework */; };
E639EFA2280810E300B9DD94 /* CouponsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E639EFA0280810E300B9DD94 /* CouponsView.swift */; };
E639EFA3280810E300B9DD94 /* CouponsViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E639EFA1280810E300B9DD94 /* CouponsViewInterface.swift */; };
E655D05A280590AD004F913C /* WarplySDKFrameworkIOS-Bridging-Header.h in Headers */ = {isa = PBXBuildFile; fileRef = E655D05928058A72004F913C /* WarplySDKFrameworkIOS-Bridging-Header.h */; };
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, ); }; };
......@@ -120,9 +122,7 @@
E6D8DF5827A942920006A3A9 /* WLEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = E6D8DEEB27A942910006A3A9 /* WLEvent.h */; };
E6D8DF5927A942920006A3A9 /* Warply.h in Headers */ = {isa = PBXBuildFile; fileRef = E6D8DEEC27A942910006A3A9 /* Warply.h */; };
E6D8DF5A27A942920006A3A9 /* Media.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E6D8DEED27A942920006A3A9 /* Media.xcassets */; };
E6D8DF5F27A9429E0006A3A9 /* ProfileViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E6D8DF5B27A9429E0006A3A9 /* ProfileViewInterface.swift */; };
E6D8DF6027A9429E0006A3A9 /* MyApi.m in Sources */ = {isa = PBXBuildFile; fileRef = E6D8DF5C27A9429E0006A3A9 /* MyApi.m */; };
E6D8DF6127A9429E0006A3A9 /* ProfileView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E6D8DF5D27A9429E0006A3A9 /* ProfileView.swift */; };
E6D8DF6227A9429E0006A3A9 /* MyApi.h in Headers */ = {isa = PBXBuildFile; fileRef = E6D8DF5E27A9429E0006A3A9 /* MyApi.h */; settings = {ATTRIBUTES = (Public, ); }; };
E6EA2F6E2806E32500EC4CF5 /* Coupons.xib in Resources */ = {isa = PBXBuildFile; fileRef = E6EA2F6D2806E32500EC4CF5 /* Coupons.xib */; };
E6EA2F702806E8C200EC4CF5 /* Coupons.swift in Sources */ = {isa = PBXBuildFile; fileRef = E6EA2F6F2806E8C200EC4CF5 /* Coupons.swift */; };
......@@ -131,6 +131,8 @@
/* Begin PBXFileReference section */
1353B8C484CC0649CAC2EB74 /* Pods_WarplySDKFrameworkIOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WarplySDKFrameworkIOS.framework; sourceTree = BUILT_PRODUCTS_DIR; };
B9413513157AD76ECE896B81 /* Pods-WarplySDKFrameworkIOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WarplySDKFrameworkIOS.release.xcconfig"; path = "Target Support Files/Pods-WarplySDKFrameworkIOS/Pods-WarplySDKFrameworkIOS.release.xcconfig"; sourceTree = "<group>"; };
E639EFA0280810E300B9DD94 /* CouponsView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CouponsView.swift; sourceTree = "<group>"; };
E639EFA1280810E300B9DD94 /* CouponsViewInterface.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CouponsViewInterface.swift; sourceTree = "<group>"; };
E655D05928058A72004F913C /* WarplySDKFrameworkIOS-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "WarplySDKFrameworkIOS-Bridging-Header.h"; 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>"; };
......@@ -244,9 +246,7 @@
E6D8DEEB27A942910006A3A9 /* WLEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WLEvent.h; sourceTree = "<group>"; };
E6D8DEEC27A942910006A3A9 /* Warply.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Warply.h; sourceTree = "<group>"; };
E6D8DEED27A942920006A3A9 /* Media.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Media.xcassets; sourceTree = SOURCE_ROOT; };
E6D8DF5B27A9429E0006A3A9 /* ProfileViewInterface.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ProfileViewInterface.swift; sourceTree = "<group>"; };
E6D8DF5C27A9429E0006A3A9 /* MyApi.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MyApi.m; sourceTree = "<group>"; };
E6D8DF5D27A9429E0006A3A9 /* ProfileView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ProfileView.swift; sourceTree = "<group>"; };
E6D8DF5E27A9429E0006A3A9 /* MyApi.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MyApi.h; sourceTree = "<group>"; };
E6EA2F6D2806E32500EC4CF5 /* Coupons.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = Coupons.xib; sourceTree = "<group>"; };
E6EA2F6F2806E8C200EC4CF5 /* Coupons.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Coupons.swift; sourceTree = "<group>"; };
......@@ -303,10 +303,10 @@
E6D8DE6A27A942010006A3A9 /* WarplySDKFrameworkIOS */ = {
isa = PBXGroup;
children = (
E639EFA0280810E300B9DD94 /* CouponsView.swift */,
E639EFA1280810E300B9DD94 /* CouponsViewInterface.swift */,
E6D8DF5E27A9429E0006A3A9 /* MyApi.h */,
E6D8DF5C27A9429E0006A3A9 /* MyApi.m */,
E6D8DF5D27A9429E0006A3A9 /* ProfileView.swift */,
E6D8DF5B27A9429E0006A3A9 /* ProfileViewInterface.swift */,
E6D8DE7427A942910006A3A9 /* Helpers */,
E6D8DEED27A942920006A3A9 /* Media.xcassets */,
E6D8DE7727A942910006A3A9 /* Warply */,
......@@ -712,7 +712,7 @@
E6D8DF2927A942920006A3A9 /* NSData+SSToolkitAdditions.m in Sources */,
E6D8DEFC27A942920006A3A9 /* WLCustomNativeAdTableViewCell.m in Sources */,
E6EA2F702806E8C200EC4CF5 /* Coupons.swift in Sources */,
E6D8DF5F27A9429E0006A3A9 /* ProfileViewInterface.swift in Sources */,
E639EFA3280810E300B9DD94 /* CouponsViewInterface.swift in Sources */,
E6D8DF4A27A942920006A3A9 /* AFNetworkReachabilityManager.m in Sources */,
E6D8DF4B27A942920006A3A9 /* AFSecurityPolicy.m in Sources */,
E6D8DF1327A942920006A3A9 /* WLBeaconManager.m in Sources */,
......@@ -728,6 +728,7 @@
E6D8DF0A27A942920006A3A9 /* WLAPSItem.m in Sources */,
E6D8DF2C27A942920006A3A9 /* UIProgressView+AFNetworking.m in Sources */,
E6D8DF3C27A942920006A3A9 /* UIWebView+AFNetworking.m in Sources */,
E639EFA2280810E300B9DD94 /* CouponsView.swift in Sources */,
E6D8DF1427A942920006A3A9 /* WLLocationManager.m in Sources */,
E6D8DF6027A9429E0006A3A9 /* MyApi.m in Sources */,
E6D8DF3F27A942920006A3A9 /* AFImageDownloader.m in Sources */,
......@@ -744,7 +745,6 @@
E6D8DEF527A942920006A3A9 /* WLNativeAdsTableMode.m in Sources */,
E6D8DF1C27A942920006A3A9 /* WLUtils.m in Sources */,
E6D8DF1B27A942920006A3A9 /* WLUserManager.m in Sources */,
E6D8DF6127A9429E0006A3A9 /* ProfileView.swift in Sources */,
E6D8DF2027A942920006A3A9 /* Warply.m in Sources */,
E6D8DF2327A942920006A3A9 /* WLSMSActionHandlerDeprecated.m in Sources */,
E6D8DEEE27A942920006A3A9 /* WarplyReactMethods.m in Sources */,
......@@ -880,6 +880,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = F2447FDBC0B149DFB9DC6E40 /* Pods-WarplySDKFrameworkIOS.debug.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
......@@ -891,7 +892,7 @@
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
......@@ -903,6 +904,7 @@
SKIP_INSTALL = YES;
SUPPORTS_MACCATALYST = NO;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OBJC_BRIDGING_HEADER = "";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
......@@ -913,6 +915,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = B9413513157AD76ECE896B81 /* Pods-WarplySDKFrameworkIOS.release.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
......@@ -924,7 +927,7 @@
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
......@@ -936,6 +939,7 @@
SKIP_INSTALL = YES;
SUPPORTS_MACCATALYST = NO;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OBJC_BRIDGING_HEADER = "";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
......
......@@ -7,11 +7,12 @@
import UIKit
class Coupons: UIViewController {
public class Coupons: UIViewController {
@IBOutlet weak var myScrollView: UIScrollView!
override func viewDidLoad() {
public override func viewDidLoad() {
super.viewDidLoad()
let corners = UIRectCorner(arrayLiteral: [
UIRectCorner.topLeft,
......
......@@ -31,8 +31,8 @@ class DataModel {
}
@available(iOS 11.0.0, *)
struct ProfileView: View {
@available(iOS 13.0.0, *)
struct CouponsView: View {
var data:AnyObject? = DataModel().getData
......
......@@ -9,10 +9,10 @@ import Foundation
import SwiftUI
@available(iOS 13.0.0, *)
@objc public class ProfileViewInterface : NSObject {
@objc public class CouponsViewInterface : NSObject {
@objc static public func profileViewController() -> UIViewController {
return UIHostingController(rootView: ProfileView())
@objc static public func couponsViewController() -> UIViewController {
return UIHostingController(rootView: CouponsView())
}
}
......
......@@ -8,14 +8,14 @@
#ifndef MyApi_h
#define MyApi_h
#import <UIKit/UIKit.h>
@class Coupons;
@interface MyApi : NSObject
+ (void)init:(NSDictionary *)launchOptions uuid:(NSString*)uuid merchantId:(NSString*)merchantId lang:(NSString*)lang;
- (void) setToStage;
- (void) setLang:(NSString*) lang;
- (UIViewController *) openProfile:(UIViewController*)controller :(UIWindow*) window;
- (UIView *) openCoupons;
- (UIViewController *) openCoupons;
- (void) applicationDidEnterBackground:(UIApplication *)application;
- (void) applicationWillEnterForeground:(UIApplication *)application;
- (void) applicationDidBecomeActive:(UIApplication *)application;
......
......@@ -11,6 +11,7 @@
#import <WarplySDKFrameworkIOS/WarplySDKFrameworkIOS-Swift.h>
@implementation MyApi
NSString *WARP_PRODUCTION_BASE_URL = @"https://engage.warp.ly";
NSString *WARP_HOST = @"engage.warp.ly";
......@@ -45,20 +46,25 @@ NSString *LANG;
LANG = lang;
}
- (UIViewController *) openProfile:(UIViewController*)controller :(UIWindow*) window {
- (UIViewController *) openCoupons:(UIViewController*)controller :(UIWindow*) window {
UIViewController *profileViewController = [ProfileViewInterface profileViewController];
UIViewController *couponsViewController = [CouponsViewInterface couponsViewController];
// controller = [[UINavigationController alloc]initWithRootViewController:profileViewController];
// [window makeKeyAndVisible];
return profileViewController;
return couponsViewController;
}
- (UIView *) openCoupons {
UIView *myCoupons = [[[NSBundle mainBundle] loadNibNamed:@"Coupons" owner:self options:nil] objectAtIndex:0];
return myCoupons;
}
//- (UIViewController *) openCoupons {
//// NSString* const frameworkBundleID = @"framework.warp.ly.WarplySDKFrameworkIOS";
//// NSBundle* bundle = [NSBundle bundleWithIdentifier:frameworkBundleID];
//// NSBundle *bundle = [NSBundle bundleForClass:Coupons];
////
////
//// UIViewController *myCoupons = [[bundle loadNibNamed:@"Coupons" owner:self options:nil] objectAtIndex:0];
// Coupons *couponsView = [[UIViewController alloc] init];
// return couponsView;
//}
///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)applicationDidEnterBackground:(UIApplication *)application
......
......@@ -9,4 +9,5 @@
#define WarplySDKFrameworkIOS_Bridging_Header_h
#import "MyApi.h"
#endif /* WarplySDKFrameworkIOS_Bridging_Header_h */
......