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
//
// MyApi.h
// warplyFramework
//
// Created by Βασιλης Σκουρας on 8/12/21.
//
#ifndef MyApi_h
#define MyApi_h
#import <UIKit/UIKit.h>
#import <CoreMotion/CoreMotion.h>
@class Warply;
@interface MyApi : NSObject
@property (nonatomic, weak) Warply *warply;
- (void) initialize:(NSDictionary *)launchOptions uuid:(NSString*)uuid merchantId:(NSString*)merchantId lang:(NSString*)lang;
- (void) setToStage;
- (void) setLang:(NSString*) lang;
- (void) getSteps:(void(^)(CMPedometerData* stepsData)) completion;
// - (UIViewController *) openCoupons:(UIView*) parentView;
//- (UIViewController *) openCoupon:(UIView*) parentView coupon:(NSDictionary*) coupon;
//- (UIViewController *) openCouponBarcode:(UIView*) parentView coupon:(NSDictionary*) coupon;
//- (UIViewController *) openGifts:(UIView*) parentView;
//- (UIViewController *) openAllGifts:(UIView*) parentView;
//- (UIViewController *) openOldCoupons:(UIView*) parentView;
//- (UIViewController *) openWallet:(UIView*) parentView;
//- (UIViewController *) openMoreForYou:(UIView*) parentView;
//- (UIViewController *) openCampaign:(UIView*) parentView campaign:(NSString*) campaign;
//- (UIViewController *) openSteps:(UIView*) parentView;
//- (UIViewController *) openDetails:(UIView*) parentView;
- (NSDictionary *) provideInfoForCampaign;
- (void) applicationDidEnterBackground:(UIApplication *)application;
- (void) applicationWillEnterForeground:(UIApplication *)application;
- (void) applicationDidBecomeActive:(UIApplication *)application;
- (void) applicationWillTerminate:(UIApplication *)application;
- (void) application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
- (void) application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error;
- (void) application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo;
- (NSMutableArray *)getInbox;
- (NSMutableArray *)getProducts:(NSString *) filter;
- (NSMutableArray*)sendContact:(NSString*)name email:(NSString*)email msisdn:(NSString*)msisdn message:(NSString*)message;
- (NSMutableArray *)getContentWithCategory:(NSString *)category tags:(NSArray *)tags;
- (NSMutableArray *)getMerchantCategories;
- (NSMutableArray *)getMerchants;
- (NSMutableArray *)getTagsCategories;
- (NSMutableArray *)getTags;
- (NSDictionary *)login:(NSString *)id password:(NSString *)password loginType:(NSString*) loginType;
- (NSDictionary *)logout;
- (NSDictionary *)register:(NSString *)id password:(NSString *)password name:(NSString*)name email:(NSString*)email segmentation:(NSNumber*)segmentation newsletter:(NSNumber*)newsletter;
- (NSDictionary *)registerAutoLogin:(NSString *)id password:(NSString *)password name:(NSString*)name email:(NSString*)email segmentation:(NSNumber*)segmentation newsletter:(NSNumber*)newsletter loginType:(NSString*)loginType;
- (NSDictionary *)refreshToken;
- (NSDictionary *)changePassword:(NSString *)oldPassword newPassword:(NSString *)newPassword;
- (NSDictionary *)getProfile;
- (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;
- (NSDictionary *)changeProfileImage:(NSString*)image andUserId:(NSString*)userId;
- (NSDictionary*) addCard:(NSString*)number andCardIssuer:(NSString*)cardIssuer andCardHolder:(NSString*)cardHolder andExpirationMonth:(NSString*)expirationMonth andExpirationYear:(NSString*)expirationYear;
- (NSDictionary*) getCards;
- (NSDictionary*) deleteCard:(NSString*)token;
- (NSDictionary*) verifyTicket:(NSString*)guid ticket:(NSString*)ticket;
- (NSDictionary*) getCoupons;
- (NSDictionary*) getTransactionHistory;
- (NSDictionary*) getPointsHistory;
- (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;
- (NSDictionary*)getAddress;
- (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;
- (NSDictionary*)deleteAddress:(NSString*)uuid;
- (NSDictionary*)redeemCoupon:(NSString*)id andUuid:(NSString*)uuid;
- (NSDictionary*)forgotPasswordWithId:(NSString*)id andConfCode:(NSString*)confCode andOtpUuid:(NSString*)otpUuid;
- (NSDictionary*)resetPasswordWithPassword:(NSString*)password andConfCode:(NSString*)confCode andOtpUuid:(NSString*)otpUuid andConfToken:(NSString*)confToken;
- (NSDictionary*)requestOtpWithMsisdn:(NSString*)msisdn andScope:(NSString*)scope;
- (NSDictionary*)retrieveMultilingualMerchantsWithCategories:(NSArray*)categories andDefaultShown:(NSNumber*)defaultShown andCenter:(NSNumber*)center andTags:(NSArray*)tags andUuid:(NSString*)uuid andDistance:(NSNumber*)distance;
- (NSDictionary*)getCouponSetsWithActive:(NSNumber*)active andVisible:(NSNumber*)visible andUuids:(NSArray*)uuids;
- (NSDictionary*)redeemCouponWithCoupon:(NSString*)coupon;
- (NSDictionary*)validateCouponWithCoupon:(NSString*)coupon;
- (NSDictionary*)loginCosmoteWithGuid:(NSString*)guid andAppUuid:(NSString*)appUuid andTicket:(NSString*)ticket;
- (void)getCouponsWithSuccessBlock:(void(^)(NSDictionary *response))success failureBlock:(void(^)(NSError *error))failure;
- (void)getCouponsetsAsync:(NSNumber*) active andVisible:(NSNumber*) visible andUuids:(NSArray*) uuids :(void(^)(NSDictionary *response))success failureBlock:(void(^)(NSError *error))failure;
- (void)getInboxAsync:(void (^)(NSArray *list))success failureBlock:(void (^)(NSError *error))failure;
- (void)verifyTicketAsync:(NSString*)guid :(NSString*)ticket :(void(^)(NSDictionary *response))success failureBlock:(void(^)(NSError *error))failure;
- (void)getProfileAsync:(void(^)(NSDictionary *response))success failureBlock:(void(^)(NSError *error))failure;
@end
#endif /* MyApi_h */
//
// SwiftWarplyFramework.h
// SwiftWarplyFramework
//
// Created by Βασιλης Σκουρας on 9/5/22.
//
#import <Foundation/Foundation.h>
#import "MyApi.h"
//! Project version number for SwiftWarplyFramework.
FOUNDATION_EXPORT double SwiftWarplyFrameworkVersionNumber;
//! Project version string for SwiftWarplyFramework.
FOUNDATION_EXPORT const unsigned char SwiftWarplyFrameworkVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <SwiftWarplyFramework/PublicHeader.h>
No preview for this file type
framework module SwiftWarplyFramework {
umbrella header "SwiftWarplyFramework.h"
export *
module * { export * }
}
module SwiftWarplyFramework.Swift {
header "SwiftWarplyFramework-Swift.h"
requires objc
}
This diff is collapsed. Click to expand it.
Pod::Spec.new do |spec|
spec.name = "SwiftWarplyFramework"
spec.version = "0.0.32"
spec.summary = "A framework used for several functionalities."
spec.description = "This is the Warply framework used for react native or swift apps for analytics, push notifications and the functionality of the app."
spec.homepage = "https://git.warp.ly/open-source/warply_sdk_framework.git"
spec.license = {
:type => 'MIT',
# :file => 'WarplySDKFrameworkIOS/LICENSE.txt'
}
spec.author = { "billy" => "skourasbl@gmail.com" }
spec.platform = :ios, "11.0"
spec.source = { :git => "https://git.warp.ly/open-source/warply_sdk_framework.git", :tag => "0.0.32" }
spec.public_header_files = "SwiftWarplyFramework.framework/Headers/*.h"
spec.source_files = "SwiftWarplyFramework.framework/headers/*.h"
spec.vendored_frameworks = "SwiftWarplyFramework.framework"
spec.exclude_files = "Classes/Exclude"
# spec.resource_bundles = {
# 'Resources' => ['WarplySDKFrameworkIOS/*.xcassets', 'WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/*.xcassets']
# }
# spec.preserve_paths = 'WarplySDKFrameworkIOS/myApi.h', 'WarplySDKFrameworkIOS/swiftApi.swift'
# spec.vendored_libraries = 'WarplySDKFrameworkIOS/myApi.h', 'WarplySDKFrameworkIOS/swiftApi.swift'
# spec.ios.deployment_target = '11.0'
# spec.frameworks = 'UIKit', 'Foundation'
# spec.requires_arc = true
# spec.subspec 'WarplySDKFrameworkIOS' do |mylib|
# 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"
# mylib.vendored_frameworks = 'WarplySDKFrameworkIOS/Frameworks/WarplySDKFrameworkIOS.framework'
# end
end