Vasilis

init empty branch

Showing 46 changed files with 154 additions and 0 deletions
No preview for this file type
No preview for this file type
No preview for this file type
1 +//
2 +// MyApi.h
3 +// warplyFramework
4 +//
5 +// Created by Βασιλης Σκουρας on 8/12/21.
6 +//
7 +
8 +#ifndef MyApi_h
9 +#define MyApi_h
10 +#import <UIKit/UIKit.h>
11 +#import <CoreMotion/CoreMotion.h>
12 +@class Warply;
13 +
14 +@interface MyApi : NSObject
15 +
16 +@property (nonatomic, weak) Warply *warply;
17 +
18 +- (void) initialize:(NSDictionary *)launchOptions uuid:(NSString*)uuid merchantId:(NSString*)merchantId lang:(NSString*)lang;
19 +- (void) setToStage;
20 +- (void) setLang:(NSString*) lang;
21 +- (void) getSteps:(void(^)(CMPedometerData* stepsData)) completion;
22 +// - (UIViewController *) openCoupons:(UIView*) parentView;
23 +//- (UIViewController *) openCoupon:(UIView*) parentView coupon:(NSDictionary*) coupon;
24 +//- (UIViewController *) openCouponBarcode:(UIView*) parentView coupon:(NSDictionary*) coupon;
25 +//- (UIViewController *) openGifts:(UIView*) parentView;
26 +//- (UIViewController *) openAllGifts:(UIView*) parentView;
27 +//- (UIViewController *) openOldCoupons:(UIView*) parentView;
28 +//- (UIViewController *) openWallet:(UIView*) parentView;
29 +//- (UIViewController *) openMoreForYou:(UIView*) parentView;
30 +//- (UIViewController *) openCampaign:(UIView*) parentView campaign:(NSString*) campaign;
31 +//- (UIViewController *) openSteps:(UIView*) parentView;
32 +//- (UIViewController *) openDetails:(UIView*) parentView;
33 +- (NSDictionary *) provideInfoForCampaign;
34 +- (void) applicationDidEnterBackground:(UIApplication *)application;
35 +- (void) applicationWillEnterForeground:(UIApplication *)application;
36 +- (void) applicationDidBecomeActive:(UIApplication *)application;
37 +- (void) applicationWillTerminate:(UIApplication *)application;
38 +- (void) application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
39 +- (void) application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error;
40 +- (void) application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo;
41 +- (NSMutableArray *)getInbox;
42 +- (NSMutableArray *)getProducts:(NSString *) filter;
43 +- (NSMutableArray*)sendContact:(NSString*)name email:(NSString*)email msisdn:(NSString*)msisdn message:(NSString*)message;
44 +- (NSMutableArray *)getContentWithCategory:(NSString *)category tags:(NSArray *)tags;
45 +- (NSMutableArray *)getMerchantCategories;
46 +- (NSMutableArray *)getMerchants;
47 +- (NSMutableArray *)getTagsCategories;
48 +- (NSMutableArray *)getTags;
49 +- (NSDictionary *)login:(NSString *)id password:(NSString *)password loginType:(NSString*) loginType;
50 +- (NSDictionary *)logout;
51 +- (NSDictionary *)register:(NSString *)id password:(NSString *)password name:(NSString*)name email:(NSString*)email segmentation:(NSNumber*)segmentation newsletter:(NSNumber*)newsletter;
52 +- (NSDictionary *)registerAutoLogin:(NSString *)id password:(NSString *)password name:(NSString*)name email:(NSString*)email segmentation:(NSNumber*)segmentation newsletter:(NSNumber*)newsletter loginType:(NSString*)loginType;
53 +- (NSDictionary *)refreshToken;
54 +- (NSDictionary *)changePassword:(NSString *)oldPassword newPassword:(NSString *)newPassword;
55 +- (NSDictionary *)getProfile;
56 +- (NSDictionary *)editProfile:(NSString*)firstname andLastname:(NSString*)lastname andEmail:(NSString *)email andSalutation:(NSString *)salutation andMsisdn:(NSString *)msisdn andNickname:(NSString *)nickname andGender:(NSString *)gender andBirthday:(NSString *)birthday andNameDay:(NSString *)nameday andTaxID:(NSString *)taxid andProfileMetadata:(NSDictionary *)profileMetadata optin:(NSNumber *)optin newsLetter:(NSNumber *)newsletter andSMS:(NSNumber *)sms andSegmentation:(NSNumber *)segmentation andSMSSegmentation:(NSNumber *)smsSegmentation;
57 +- (NSDictionary *)changeProfileImage:(NSString*)image andUserId:(NSString*)userId;
58 +- (NSDictionary*) addCard:(NSString*)number andCardIssuer:(NSString*)cardIssuer andCardHolder:(NSString*)cardHolder andExpirationMonth:(NSString*)expirationMonth andExpirationYear:(NSString*)expirationYear;
59 +- (NSDictionary*) getCards;
60 +- (NSDictionary*) deleteCard:(NSString*)token;
61 +- (NSDictionary*) verifyTicket:(NSString*)guid ticket:(NSString*)ticket;
62 +- (NSDictionary*) getCoupons;
63 +- (NSDictionary*) getTransactionHistory;
64 +- (NSDictionary*) getPointsHistory;
65 +- (NSDictionary*)addAddress:(NSString*)friendlyName andAddressName:(NSString*)addressName andAddressNumber:(NSString*)addressNumber andPostalCode:(NSString*)postalCode andFloorNumber:(NSNumber*)floorNumber andDoorbell:(NSString*)doorbel andRegion:(NSString*)region andLatitude:(NSString*)latitude andLongitude:(NSString*)longitude andNotes:(NSString*)notes;
66 +- (NSDictionary*)getAddress;
67 +- (NSDictionary*)editAddress:(NSString*)friendlyName andAddressName:(NSString*)addressName andAddressNumber:(NSString*)addressNumber andPostalCode:(NSString*)postalCode andFloorNumber:(NSNumber*)floorNumber andDoorbell:(NSString*)doorbel andRegion:(NSString*)region andLatitude:(NSString*)latitude andLongitude:(NSString*)longitude andNotes:(NSString*)notes andUuid:(NSString*)uuid;
68 +- (NSDictionary*)deleteAddress:(NSString*)uuid;
69 +- (NSDictionary*)redeemCoupon:(NSString*)id andUuid:(NSString*)uuid;
70 +- (NSDictionary*)forgotPasswordWithId:(NSString*)id andConfCode:(NSString*)confCode andOtpUuid:(NSString*)otpUuid;
71 +- (NSDictionary*)resetPasswordWithPassword:(NSString*)password andConfCode:(NSString*)confCode andOtpUuid:(NSString*)otpUuid andConfToken:(NSString*)confToken;
72 +- (NSDictionary*)requestOtpWithMsisdn:(NSString*)msisdn andScope:(NSString*)scope;
73 +- (NSDictionary*)retrieveMultilingualMerchantsWithCategories:(NSArray*)categories andDefaultShown:(NSNumber*)defaultShown andCenter:(NSNumber*)center andTags:(NSArray*)tags andUuid:(NSString*)uuid andDistance:(NSNumber*)distance;
74 +- (NSDictionary*)getCouponSetsWithActive:(NSNumber*)active andVisible:(NSNumber*)visible andUuids:(NSArray*)uuids;
75 +- (NSDictionary*)redeemCouponWithCoupon:(NSString*)coupon;
76 +- (NSDictionary*)validateCouponWithCoupon:(NSString*)coupon;
77 +- (NSDictionary*)loginCosmoteWithGuid:(NSString*)guid andAppUuid:(NSString*)appUuid andTicket:(NSString*)ticket;
78 +- (void)getCouponsWithSuccessBlock:(void(^)(NSDictionary *response))success failureBlock:(void(^)(NSError *error))failure;
79 +- (void)getCouponsetsAsync:(NSNumber*) active andVisible:(NSNumber*) visible andUuids:(NSArray*) uuids :(void(^)(NSDictionary *response))success failureBlock:(void(^)(NSError *error))failure;
80 +- (void)getInboxAsync:(void (^)(NSArray *list))success failureBlock:(void (^)(NSError *error))failure;
81 +- (void)verifyTicketAsync:(NSString*)guid :(NSString*)ticket :(void(^)(NSDictionary *response))success failureBlock:(void(^)(NSError *error))failure;
82 +- (void)getProfileAsync:(void(^)(NSDictionary *response))success failureBlock:(void(^)(NSError *error))failure;
83 +
84 +@end
85 +#endif /* MyApi_h */
1 +//
2 +// SwiftWarplyFramework.h
3 +// SwiftWarplyFramework
4 +//
5 +// Created by Βασιλης Σκουρας on 9/5/22.
6 +//
7 +
8 +#import <Foundation/Foundation.h>
9 +#import "MyApi.h"
10 +
11 +//! Project version number for SwiftWarplyFramework.
12 +FOUNDATION_EXPORT double SwiftWarplyFrameworkVersionNumber;
13 +
14 +//! Project version string for SwiftWarplyFramework.
15 +FOUNDATION_EXPORT const unsigned char SwiftWarplyFrameworkVersionString[];
16 +
17 +// In this header, you should import all the public headers of your framework using statements like #import <SwiftWarplyFramework/PublicHeader.h>
18 +
19 +
No preview for this file type
1 +framework module SwiftWarplyFramework {
2 + umbrella header "SwiftWarplyFramework.h"
3 +
4 + export *
5 + module * { export * }
6 +}
7 +
8 +module SwiftWarplyFramework.Swift {
9 + header "SwiftWarplyFramework-Swift.h"
10 + requires objc
11 +}
This diff is collapsed. Click to expand it.
1 +Pod::Spec.new do |spec|
2 +
3 + spec.name = "SwiftWarplyFramework"
4 + spec.version = "0.0.32"
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."
8 +
9 + spec.homepage = "https://git.warp.ly/open-source/warply_sdk_framework.git"
10 +
11 + spec.license = {
12 +:type => 'MIT',
13 +# :file => 'WarplySDKFrameworkIOS/LICENSE.txt'
14 +}
15 +
16 + spec.author = { "billy" => "skourasbl@gmail.com" }
17 +
18 + spec.platform = :ios, "11.0"
19 +
20 + spec.source = { :git => "https://git.warp.ly/open-source/warply_sdk_framework.git", :tag => "0.0.32" }
21 + spec.public_header_files = "SwiftWarplyFramework.framework/Headers/*.h"
22 + spec.source_files = "SwiftWarplyFramework.framework/headers/*.h"
23 + spec.vendored_frameworks = "SwiftWarplyFramework.framework"
24 + spec.exclude_files = "Classes/Exclude"
25 +
26 + # spec.resource_bundles = {
27 + # 'Resources' => ['WarplySDKFrameworkIOS/*.xcassets', 'WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/*.xcassets']
28 + # }
29 + # spec.preserve_paths = 'WarplySDKFrameworkIOS/myApi.h', 'WarplySDKFrameworkIOS/swiftApi.swift'
30 + # spec.vendored_libraries = 'WarplySDKFrameworkIOS/myApi.h', 'WarplySDKFrameworkIOS/swiftApi.swift'
31 + # spec.ios.deployment_target = '11.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"
36 + # mylib.vendored_frameworks = 'WarplySDKFrameworkIOS/Frameworks/WarplySDKFrameworkIOS.framework'
37 + # end
38 +
39 +end