Vasilis

try of exposing swift to client app

...@@ -18,8 +18,11 @@ ...@@ -18,8 +18,11 @@
18 - (void) setToStage; 18 - (void) setToStage;
19 - (void) setLang:(NSString*) lang; 19 - (void) setLang:(NSString*) lang;
20 - (UIViewController *) openCoupons:(UIView*) parentView; 20 - (UIViewController *) openCoupons:(UIView*) parentView;
21 -- (UIViewController *) openCoupon:(UIView*) parentView; 21 +- (UIViewController *) openCoupon:(UIView*) parentView coupon:(NSDictionary*) coupon;
22 +- (UIViewController *) openCouponBarcode:(UIView*) parentView coupon:(NSDictionary*) coupon;
22 - (UIViewController *) openGifts:(UIView*) parentView; 23 - (UIViewController *) openGifts:(UIView*) parentView;
24 +- (UIViewController *) openAllGifts:(UIView*) parentView;
25 +- (UIViewController *) openOldCoupons:(UIView*) parentView;
23 - (UIViewController *) openWallet:(UIView*) parentView; 26 - (UIViewController *) openWallet:(UIView*) parentView;
24 - (UIViewController *) openMoreForYou:(UIView*) parentView; 27 - (UIViewController *) openMoreForYou:(UIView*) parentView;
25 - (UIViewController *) openCampaign:(UIView*) parentView campaign:(NSString*) campaign; 28 - (UIViewController *) openCampaign:(UIView*) parentView campaign:(NSString*) campaign;
......
1 -// Generated by Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30) 1 +// Generated by Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)
2 #ifndef WARPLYSDKFRAMEWORKIOS_SWIFT_H 2 #ifndef WARPLYSDKFRAMEWORKIOS_SWIFT_H
3 #define WARPLYSDKFRAMEWORKIOS_SWIFT_H 3 #define WARPLYSDKFRAMEWORKIOS_SWIFT_H
4 #pragma clang diagnostic push 4 #pragma clang diagnostic push
...@@ -184,10 +184,18 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); ...@@ -184,10 +184,18 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
184 #if !defined(IBSegueAction) 184 #if !defined(IBSegueAction)
185 # define IBSegueAction 185 # define IBSegueAction
186 #endif 186 #endif
187 +#if !defined(SWIFT_EXTERN)
188 +# if defined(__cplusplus)
189 +# define SWIFT_EXTERN extern "C"
190 +# else
191 +# define SWIFT_EXTERN extern
192 +# endif
193 +#endif
187 #if __has_feature(modules) 194 #if __has_feature(modules)
188 #if __has_warning("-Watimport-in-framework-header") 195 #if __has_warning("-Watimport-in-framework-header")
189 #pragma clang diagnostic ignored "-Watimport-in-framework-header" 196 #pragma clang diagnostic ignored "-Watimport-in-framework-header"
190 #endif 197 #endif
198 +@import Foundation;
191 @import ObjectiveC; 199 @import ObjectiveC;
192 #endif 200 #endif
193 201
...@@ -207,9 +215,16 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); ...@@ -207,9 +215,16 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
207 #endif 215 #endif
208 216
209 @class UIView; 217 @class UIView;
210 -@class NSString;
211 @class UIViewController; 218 @class UIViewController;
212 219
220 +SWIFT_CLASS("_TtC21WarplySDKFrameworkIOS21AllGiftsViewInterface") SWIFT_AVAILABILITY(ios,introduced=13.0.0)
221 +@interface AllGiftsViewInterface : NSObject
222 ++ (UIViewController * _Nonnull)allGiftsViewController:(UIView * _Nullable)parentView SWIFT_WARN_UNUSED_RESULT;
223 +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
224 +@end
225 +
226 +@class NSString;
227 +
213 SWIFT_CLASS("_TtC21WarplySDKFrameworkIOS21CampaignViewInterface") SWIFT_AVAILABILITY(ios,introduced=13.0.0) 228 SWIFT_CLASS("_TtC21WarplySDKFrameworkIOS21CampaignViewInterface") SWIFT_AVAILABILITY(ios,introduced=13.0.0)
214 @interface CampaignViewInterface : NSObject 229 @interface CampaignViewInterface : NSObject
215 + (UIViewController * _Nonnull)campaignViewController:(UIView * _Nullable)parentView :(NSString * _Nullable)campaign SWIFT_WARN_UNUSED_RESULT; 230 + (UIViewController * _Nonnull)campaignViewController:(UIView * _Nullable)parentView :(NSString * _Nullable)campaign SWIFT_WARN_UNUSED_RESULT;
...@@ -217,9 +232,16 @@ SWIFT_CLASS("_TtC21WarplySDKFrameworkIOS21CampaignViewInterface") SWIFT_AVAILABI ...@@ -217,9 +232,16 @@ SWIFT_CLASS("_TtC21WarplySDKFrameworkIOS21CampaignViewInterface") SWIFT_AVAILABI
217 @end 232 @end
218 233
219 234
235 +SWIFT_CLASS("_TtC21WarplySDKFrameworkIOS26CouponBarcodeViewInterface") SWIFT_AVAILABILITY(ios,introduced=13.0.0)
236 +@interface CouponBarcodeViewInterface : NSObject
237 ++ (UIViewController * _Nonnull)couponBarcodeViewController:(UIView * _Nullable)parentView :(NSDictionary<NSString *, id> * _Nonnull)coupon SWIFT_WARN_UNUSED_RESULT;
238 +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
239 +@end
240 +
241 +
220 SWIFT_CLASS("_TtC21WarplySDKFrameworkIOS19CouponViewInterface") SWIFT_AVAILABILITY(ios,introduced=13.0.0) 242 SWIFT_CLASS("_TtC21WarplySDKFrameworkIOS19CouponViewInterface") SWIFT_AVAILABILITY(ios,introduced=13.0.0)
221 @interface CouponViewInterface : NSObject 243 @interface CouponViewInterface : NSObject
222 -+ (UIViewController * _Nonnull)couponViewController:(UIView * _Nullable)parentView SWIFT_WARN_UNUSED_RESULT; 244 ++ (UIViewController * _Nonnull)couponViewController:(UIView * _Nullable)parentView :(NSDictionary<NSString *, id> * _Nonnull)coupon SWIFT_WARN_UNUSED_RESULT;
223 - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; 245 - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
224 @end 246 @end
225 247
...@@ -245,6 +267,13 @@ SWIFT_CLASS("_TtC21WarplySDKFrameworkIOS23MoreForYouViewInterface") SWIFT_AVAILA ...@@ -245,6 +267,13 @@ SWIFT_CLASS("_TtC21WarplySDKFrameworkIOS23MoreForYouViewInterface") SWIFT_AVAILA
245 @end 267 @end
246 268
247 269
270 +SWIFT_CLASS("_TtC21WarplySDKFrameworkIOS23OldCouponsViewInterface") SWIFT_AVAILABILITY(ios,introduced=13.0.0)
271 +@interface OldCouponsViewInterface : NSObject
272 ++ (UIViewController * _Nonnull)oldCouponsViewController:(UIView * _Nullable)parentView SWIFT_WARN_UNUSED_RESULT;
273 +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
274 +@end
275 +
276 +
248 SWIFT_CLASS("_TtC21WarplySDKFrameworkIOS19WalletViewInterface") SWIFT_AVAILABILITY(ios,introduced=13.0.0) 277 SWIFT_CLASS("_TtC21WarplySDKFrameworkIOS19WalletViewInterface") SWIFT_AVAILABILITY(ios,introduced=13.0.0)
249 @interface WalletViewInterface : NSObject 278 @interface WalletViewInterface : NSObject
250 + (UIViewController * _Nonnull)walletViewController:(UIView * _Nullable)parentView SWIFT_WARN_UNUSED_RESULT; 279 + (UIViewController * _Nonnull)walletViewController:(UIView * _Nullable)parentView SWIFT_WARN_UNUSED_RESULT;
......
...@@ -6,19 +6,15 @@ ...@@ -6,19 +6,15 @@
6 <dict> 6 <dict>
7 <key>Assets.car</key> 7 <key>Assets.car</key>
8 <data> 8 <data>
9 - /ozRXUeH5f7rK8V7YqRkg9tofZ8= 9 + rhhP5ctoIwX1XBAEn09i99u40VM=
10 - </data>
11 - <key>Coupons.nib</key>
12 - <data>
13 - U1ckDGrJNDxW08P7htkWHJqRgWQ=
14 </data> 10 </data>
15 <key>Headers/MyApi.h</key> 11 <key>Headers/MyApi.h</key>
16 <data> 12 <data>
17 - Ih/NyJXeSN/A2bEzkdwD1a9f9YE= 13 + qvU9RK9zkiyp5ZguFf4EP9hrlQY=
18 </data> 14 </data>
19 <key>Headers/WarplySDKFrameworkIOS-Swift.h</key> 15 <key>Headers/WarplySDKFrameworkIOS-Swift.h</key>
20 <data> 16 <data>
21 - kMf48Zhh1K3sIIsuYGLb9iSfvqI= 17 + aEEPm8524J0QBhgj6t6YQFyJaGE=
22 </data> 18 </data>
23 <key>Headers/WarplySDKFrameworkIOS.h</key> 19 <key>Headers/WarplySDKFrameworkIOS.h</key>
24 <data> 20 <data>
...@@ -26,31 +22,19 @@ ...@@ -26,31 +22,19 @@
26 </data> 22 </data>
27 <key>Info.plist</key> 23 <key>Info.plist</key>
28 <data> 24 <data>
29 - Z5Iptg21CUicJnZefwBkOkIYAWk= 25 + aCEMSKVNv1YmddCEhXL+qubnMuc=
30 - </data>
31 - <key>Modules/WarplySDKFrameworkIOS.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo</key>
32 - <data>
33 - G8EHL5AQxDz1LtDc4lGS38nFSMY=
34 - </data>
35 - <key>Modules/WarplySDKFrameworkIOS.swiftmodule/Project/arm64.swiftsourceinfo</key>
36 - <data>
37 - G8EHL5AQxDz1LtDc4lGS38nFSMY=
38 - </data>
39 - <key>Modules/WarplySDKFrameworkIOS.swiftmodule/arm64-apple-ios.swiftdoc</key>
40 - <data>
41 - DH+WJWLYtHZ/xyb7q1Cc9tqm2ls=
42 </data> 26 </data>
43 - <key>Modules/WarplySDKFrameworkIOS.swiftmodule/arm64-apple-ios.swiftmodule</key> 27 + <key>Modules/WarplySDKFrameworkIOS.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo</key>
44 <data> 28 <data>
45 - l8e7lz5VJ55C2Vbf3oAkocJOn4c= 29 + 6cWHbGMrHkGBZ3JIjvx0PWlc7Jk=
46 </data> 30 </data>
47 - <key>Modules/WarplySDKFrameworkIOS.swiftmodule/arm64.swiftdoc</key> 31 + <key>Modules/WarplySDKFrameworkIOS.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
48 <data> 32 <data>
49 - DH+WJWLYtHZ/xyb7q1Cc9tqm2ls= 33 + hR3lcksG2JOZHfVCguV2FhBu13o=
50 </data> 34 </data>
51 - <key>Modules/WarplySDKFrameworkIOS.swiftmodule/arm64.swiftmodule</key> 35 + <key>Modules/WarplySDKFrameworkIOS.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
52 <data> 36 <data>
53 - l8e7lz5VJ55C2Vbf3oAkocJOn4c= 37 + CvLiFIiivc0aSr4vZujtebQTqp8=
54 </data> 38 </data>
55 <key>Modules/module.modulemap</key> 39 <key>Modules/module.modulemap</key>
56 <data> 40 <data>
...@@ -103,28 +87,21 @@ ...@@ -103,28 +87,21 @@
103 <dict> 87 <dict>
104 <key>hash2</key> 88 <key>hash2</key>
105 <data> 89 <data>
106 - BUCD1FuzGHHbGTvkjD/cGpAb1UR/SRxslDgUCTWLeug= 90 + xVSzJAYILk6qIZqjzs1x9ERlz9p+AS+sZuR/XYLVDy0=
107 - </data>
108 - </dict>
109 - <key>Coupons.nib</key>
110 - <dict>
111 - <key>hash2</key>
112 - <data>
113 - mM03M76vk3gs0o89PfobwLZanZilelkwSEDNE2pEzcY=
114 </data> 91 </data>
115 </dict> 92 </dict>
116 <key>Headers/MyApi.h</key> 93 <key>Headers/MyApi.h</key>
117 <dict> 94 <dict>
118 <key>hash2</key> 95 <key>hash2</key>
119 <data> 96 <data>
120 - hdN5KzzXrtLvcyOHg134rNHE8x34XtMbUcY2mzDQpu4= 97 + 3OiqPvgDi+08xpvVD36ol7pd5LKhvFXC3VVkeS6syG4=
121 </data> 98 </data>
122 </dict> 99 </dict>
123 <key>Headers/WarplySDKFrameworkIOS-Swift.h</key> 100 <key>Headers/WarplySDKFrameworkIOS-Swift.h</key>
124 <dict> 101 <dict>
125 <key>hash2</key> 102 <key>hash2</key>
126 <data> 103 <data>
127 - x3esIbCN+RVwkzXNKlYy8Lt6rIP8LiKhby+jOtRQOZY= 104 + z3w4u1htB+uvK/hO3xalkU7SDg+g0OTS+e6Wd8uQc1k=
128 </data> 105 </data>
129 </dict> 106 </dict>
130 <key>Headers/WarplySDKFrameworkIOS.h</key> 107 <key>Headers/WarplySDKFrameworkIOS.h</key>
...@@ -134,46 +111,25 @@ ...@@ -134,46 +111,25 @@
134 vzJVcnjXgi6I7JknI81AWPBmBkpWBqV47pSppt4U80Q= 111 vzJVcnjXgi6I7JknI81AWPBmBkpWBqV47pSppt4U80Q=
135 </data> 112 </data>
136 </dict> 113 </dict>
137 - <key>Modules/WarplySDKFrameworkIOS.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo</key> 114 + <key>Modules/WarplySDKFrameworkIOS.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo</key>
138 - <dict>
139 - <key>hash2</key>
140 - <data>
141 - y4wipeUhLVSpthuJGZVf6etKiQkIcQk1SwkuWFW2nX0=
142 - </data>
143 - </dict>
144 - <key>Modules/WarplySDKFrameworkIOS.swiftmodule/Project/arm64.swiftsourceinfo</key>
145 - <dict>
146 - <key>hash2</key>
147 - <data>
148 - y4wipeUhLVSpthuJGZVf6etKiQkIcQk1SwkuWFW2nX0=
149 - </data>
150 - </dict>
151 - <key>Modules/WarplySDKFrameworkIOS.swiftmodule/arm64-apple-ios.swiftdoc</key>
152 - <dict>
153 - <key>hash2</key>
154 - <data>
155 - mZE/2nBoABT5qbBx/4hgUK4MuSph0p64ImRGmwNCCDI=
156 - </data>
157 - </dict>
158 - <key>Modules/WarplySDKFrameworkIOS.swiftmodule/arm64-apple-ios.swiftmodule</key>
159 <dict> 115 <dict>
160 <key>hash2</key> 116 <key>hash2</key>
161 <data> 117 <data>
162 - zzXJ2tO7lSUmCAKfWXLA98aYnIR3NdhGDCD7GD+eRoQ= 118 + hwA4MDaD3f8GihwVecTmRyamzTdhJRdPv3X+ZzLUztk=
163 </data> 119 </data>
164 </dict> 120 </dict>
165 - <key>Modules/WarplySDKFrameworkIOS.swiftmodule/arm64.swiftdoc</key> 121 + <key>Modules/WarplySDKFrameworkIOS.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
166 <dict> 122 <dict>
167 <key>hash2</key> 123 <key>hash2</key>
168 <data> 124 <data>
169 - mZE/2nBoABT5qbBx/4hgUK4MuSph0p64ImRGmwNCCDI= 125 + jnC1OVZEG6Pp889GytD5WfuZ9wu+rm0StwCe1r19mtU=
170 </data> 126 </data>
171 </dict> 127 </dict>
172 - <key>Modules/WarplySDKFrameworkIOS.swiftmodule/arm64.swiftmodule</key> 128 + <key>Modules/WarplySDKFrameworkIOS.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
173 <dict> 129 <dict>
174 <key>hash2</key> 130 <key>hash2</key>
175 <data> 131 <data>
176 - zzXJ2tO7lSUmCAKfWXLA98aYnIR3NdhGDCD7GD+eRoQ= 132 + 3lRbVyD5P1mfFw44ku6U46uZelEzV+rpj/1PyIKCGBk=
177 </data> 133 </data>
178 </dict> 134 </dict>
179 <key>Modules/module.modulemap</key> 135 <key>Modules/module.modulemap</key>
......
1 Pod::Spec.new do |spec| 1 Pod::Spec.new do |spec|
2 2
3 spec.name = "WarplySDKFrameworkIOS" 3 spec.name = "WarplySDKFrameworkIOS"
4 - spec.version = "0.0.1" 4 + spec.version = "0.0.2"
5 spec.summary = "A framework used for several functionalities." 5 spec.summary = "A framework used for several functionalities."
6 -
7 spec.description = "This is the Warply framework used for react native or swift apps for analytics, push notifications and the functionality of the app." 6 spec.description = "This is the Warply framework used for react native or swift apps for analytics, push notifications and the functionality of the app."
8 -
9 spec.homepage = "https://git.warp.ly/open-source/warply_sdk_framework.git" 7 spec.homepage = "https://git.warp.ly/open-source/warply_sdk_framework.git"
10 -
11 spec.license = { 8 spec.license = {
12 -:type => 'MIT', 9 + :type => 'MIT'
13 -:file => 'WarplySDKFrameworkIOS/LICENSE.txt' 10 + }
14 -}
15 11
16 spec.author = { "billy" => "skourasbl@gmail.com" } 12 spec.author = { "billy" => "skourasbl@gmail.com" }
17 -
18 spec.platform = :ios, "13.0" 13 spec.platform = :ios, "13.0"
19 - 14 + spec.source = { :git => "https://git.warp.ly/open-source/warply_sdk_framework.git", :tag => "0.0.2" }
20 - spec.source = { :git => "https://git.warp.ly/open-source/warply_sdk_framework.git", :tag => "0.0.1" }
21 spec.public_header_files = "WarplySDKFrameworkIOS.framework/Headers/*.h" 15 spec.public_header_files = "WarplySDKFrameworkIOS.framework/Headers/*.h"
22 - # spec.source_files = 'WarplySDKFrameworkIOS/*.xcassets', 'WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/*.xcassets', "WarplySDKFrameworkIOS/*.png", "WarplySDKFrameworkIOS/*.xcassets", "WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/*.xcassets","WarplySDKFrameworkIOS/*.xib", "WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/*.xib", "WarplySDKFrameworkIOS/*.{h,m}", "WarplySDKFrameworkIOS/*.{h,m}", "WarplySDKFrameworkIOS/**/*.{h,m}", "WarplySDKFrameworkIOS/**/**/*.{h,m}", "WarplySDKFrameworkIOS/**/**/**/*.{h,m}", "WarplySDKFrameworkIOS/*.swift", "*.swift", "WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/*.swift", "WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/*.swift", 'WarplySDKFrameworkIOS/UIResources/*.png', 'WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/UIResources/*.png'
23 spec.exclude_files = "Classes/Exclude" 16 spec.exclude_files = "Classes/Exclude"
24 spec.source_files = "WarplySDKFrameworkIOS.framework/Headers/*.h" 17 spec.source_files = "WarplySDKFrameworkIOS.framework/Headers/*.h"
25 spec.vendored_frameworks = "WarplySDKFrameworkIOS.framework" 18 spec.vendored_frameworks = "WarplySDKFrameworkIOS.framework"
26 - # spec.resource_bundles = { 19 +
27 - # 'Resources' => ['WarplySDKFrameworkIOS/*.xcassets', 'WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/*.xcassets']
28 - # }
29 - # spec.preserve_paths = 'WarplySDKFrameworkIOS/myApi.h'
30 - # spec.vendored_libraries = 'WarplySDKFrameworkIOS/myApi.h'
31 - # spec.ios.deployment_target = '13.0'
32 - # spec.frameworks = 'UIKit', 'Foundation'
33 - # spec.requires_arc = true
34 - # spec.subspec 'WarplySDKFrameworkIOS' do |mylib|
35 - # mylib.source_files = 'WarplySDKFrameworkIOS/*.xcassets', 'WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/*.xcassets', "WarplySDKFrameworkIOS/*.png", "WarplySDKFrameworkIOS/*.xcassets", "WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/*.xcassets","WarplySDKFrameworkIOS/*.xib", "WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/*.xib", "WarplySDKFrameworkIOS/*.{h,m}", "WarplySDKFrameworkIOS/*.{h,m}", "WarplySDKFrameworkIOS/**/*.{h,m}", "WarplySDKFrameworkIOS/**/**/*.{h,m}", "WarplySDKFrameworkIOS/**/**/**/*.{h,m}", "WarplySDKFrameworkIOS/*.swift", "*.swift", "WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/*.swift", "WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/*.swift", 'WarplySDKFrameworkIOS/UIResources/*.png', 'WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/UIResources/*.png'
36 - # mylib.vendored_frameworks = 'WarplySDKFrameworkIOS/Frameworks/WarplySDKFrameworkIOS.framework'
37 - # end
38 -
39 end 20 end
......