3 files added
12 files modified
| | |
| | | Pod::Spec.new do |s| |
| | | |
| | | s.name = 'WASdkIntf_CN' |
| | | s.version = '1.2.1' |
| | | s.version = '1.3.0' |
| | | s.summary = 'WASdkIntf_CN framework in testing environment.' |
| | | s.license = 'MIT' |
| | | s.author = { "Hank" => "hank.zhang@gamehollywood.com" } |
New file |
| | |
| | | # |
| | | # Be sure to run `pod spec lint WASdkIntf.podspec' to ensure this is a |
| | | # valid spec and to remove all comments including this before submitting the spec. |
| | | # |
| | | # To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html |
| | | # To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/ |
| | | # |
| | | |
| | | Pod::Spec.new do |s| |
| | | |
| | | s.name = 'WASdkIntf_CN' |
| | | s.version = '1.3.0' |
| | | s.summary = 'WASdkIntf_CN framework in testing environment.' |
| | | s.license = 'MIT' |
| | | s.author = { "Hank" => "hank.zhang@gamehollywood.com" } |
| | | s.homepage = 'http://repo.wingsdk.cn:8082/summary/WASdkIntf_CN.git' |
| | | s.source = { :git => "http://admin@repo.wingsdk.cn:8082/r/WASdkIntf_CN.git" , :tag => s.version} |
| | | s.platform = :ios |
| | | s.ios.deployment_target = "7.0" |
| | | s.vendored_frameworks = 'frameworks/WASdkIntf.framework' |
| | | s.resources = ['config/*.plist'] |
| | | s.requires_arc = true |
| | | end |
New file |
| | |
| | | // |
| | | // WAChannelProduct.h |
| | | // WASdkIntf |
| | | // |
| | | // Created by LPW on 2019/9/17. |
| | | // Copyright © 2019 GHW-T-01. All rights reserved. |
| | | // |
| | | |
| | | #import <Foundation/Foundation.h> |
| | | |
| | | NS_ASSUME_NONNULL_BEGIN |
| | | |
| | | @interface WAChannelProduct : NSObject |
| | | @property(nonatomic, strong) NSString *channel; //渠道名称 |
| | | @property(nonatomic, strong) NSString *productIdentifier; //平台商品id |
| | | @property(nonatomic, strong) NSString *localeCurrencyCode; //当前币种code USD 、CNY |
| | | @property(nonatomic, strong) NSString *localFormattedPrice;//格式化价格 $999.99 ¥6,498.00 |
| | | @property(nonatomic, strong) NSDecimalNumber * price ; //价格 999.99 6498 |
| | | |
| | | @end |
| | | |
| | | NS_ASSUME_NONNULL_END |
| | |
| | | WACodeLoginPlatformClosed = 4029 ,//登录渠道已关闭 |
| | | WACodeBindAccountClosed = 4048 ,//账号绑定关闭 |
| | | WACodeUnBindAccountClosed = 4049 ,//账号解绑关闭 |
| | | WACodeUserCenterClosed = 4059 ,//用户中心未开启 |
| | | WACodeCanNotSwitchToAnonymous = 5001 , |
| | | WACodeFbObjectType = 5002 ,//facebook的objectType不能为空 |
| | | WACodeFbGiftListRequestPrameterLack = 5003 ,//请求gift列表缺少appid,appSecret,objectType参数 |
| | |
| | | -(void)init4Iap; |
| | | -(void)queryInventory:(id<WAInventoryDelegate>)delegate; |
| | | -(void)payWithProductId:(NSString *)productId extInfo:(NSString *)extInfo delegate:(id<WAPaymentDelegate>)delegate; |
| | | -(void)queryChannelProduct:(NSString *)channel |
| | | callBackBlock:(void(^)(NSArray *channelProductsArray,NSError *error))callBackBlock; |
| | | -(BOOL)isPayServiceAvailable; |
| | | -(void)fetchProductInformations:(NSDictionary *)waProductIds inventoryDelegate:(id<WAInventoryDelegate>)delegate; |
| | | - (void)checkFinishTransactions; |
| | |
| | | - (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler; |
| | | |
| | | // 通知的点击事件 |
| | | - (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)())completionHandler; |
| | | - (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)(void))completionHandler; |
| | | |
| | | // 程序进入后台 |
| | | - (void)applicationDidEnterBackground:(UIApplication *)application; |
| | |
| | | -(WALoginResult*)getCurrentLoginResult; |
| | | |
| | | -(void)didUserLogin:(void(^)(NSError* error,BOOL didLogin))block; |
| | | |
| | | - (void)getUserCenterNotice:(id<WAUserCenterNoticeDelegate>)delegate; |
| | | |
| | | - (void)showUserCenterNoticeUI:(id<WAUserCenterNoticeUIDelegate>)delegate; |
| | | |
| | | @end |
| | |
| | | @property(nonatomic) NSInteger enableUnBindAccount; // 解绑: 0-关闭,1-打开 |
| | | @property(nonatomic,copy)NSString* privacyUrl; // 用户协议url |
| | | @property(nonatomic,copy)NSString* privacyUpdateTime; // 用户协议更新时间 |
| | | @property(nonatomic)NSInteger userCenterStatus; // 用户中心状态 0-关闭,1-打开 |
| | | |
| | | @end |
| | |
| | | |
| | | #import <Foundation/Foundation.h> |
| | | #import "WAIPay.h" |
| | | @class WAIapProduct,WAIapResult; |
| | | @class WAIapProduct,WAIapResult,WAChannelProduct; |
| | | |
| | | /*! |
| | | @discussion 查询商品库存协议 |
| | |
| | | @param delegate 委托 |
| | | */ |
| | | +(void)queryInventoryWithDelegate:(id<WAInventoryDelegate>)delegate; |
| | | |
| | | /*! |
| | | @abstract 查询渠道商品调用方法 |
| | | @param callBackBlock 回掉 |
| | | */ |
| | | + (void)queryChannelProduct:(NSString *)channel |
| | | callBackBlock:(void(^)(NSArray <WAChannelProduct *>*channelProductsArray,NSError *error))callBackBlock; |
| | | |
| | | |
| | | /*! |
| | | @abstract 支付某个商品 |
| | | @param productId 商品id |
| | |
| | | |
| | | +(void)payLog:(NSString *)logInfo; |
| | | |
| | | |
| | | |
| | | @end |
| | |
| | | + (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler; |
| | | |
| | | // 通知的点击事件 |
| | | + (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)())completionHandler; |
| | | + (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)(void))completionHandler; |
| | | |
| | | // 程序进入后台 |
| | | + (void)applicationDidEnterBackground:(UIApplication *)application; |
| | |
| | | #import <WASdkIntf/WAIPay.h> |
| | | #import <WASdkIntf/WAPayProxy.h> |
| | | #import <WASdkIntf/WAIapProduct.h> |
| | | #import <WASdkIntf/WAChannelProduct.h> |
| | | #import <WASdkIntf/WAPayChannel.h> |
| | | #import <WASdkIntf/WAIapResult.h> |
| | | #import <WASdkIntf/WAISocial.h> |
| | |
| | | #import <WASdkIntf/WATrackProxy.h> |
| | | #import <WASdkIntf/WABindingResult.h> |
| | | #import <WASdkIntf/WALoginResult.h> |
| | | #import <WASdkIntf/WAUserCenterResult.h> |
| | | #import <WASdkIntf/WAIUser.h> |
| | | #import <WASdkIntf/WAUserProxy.h> |
| | | #import <WASdkIntf/WAAccount.h> |
| | |
| | | |
| | | // In this header, you should import all the public headers of your framework using statements like #import <WASdkIntf/PublicHeader.h> |
| | | |
| | | //time:2018/10/26 10:38 ver:1.2.1 |
| | | //time:2019/10/09 09:15 ver:1.3.0 |
New file |
| | |
| | | // |
| | | // WAUserCenterResult.h |
| | | // WASdkIntf |
| | | // |
| | | // Created by hank on 2019/5/8. |
| | | // Copyright © 2019年 GHW-T-01. All rights reserved. |
| | | // |
| | | |
| | | #import <Foundation/Foundation.h> |
| | | |
| | | NS_ASSUME_NONNULL_BEGIN |
| | | |
| | | @interface WAUserCenterResult : NSObject<NSCoding,NSCopying> |
| | | |
| | | /*! |
| | | @abstract 状态码 |
| | | */ |
| | | @property NSInteger code; |
| | | /*! |
| | | @abstract 结果描述 |
| | | */ |
| | | @property(copy,nonatomic)NSString *msg; |
| | | /*! |
| | | @abstract 用户中心文字内容 |
| | | */ |
| | | @property(copy,nonatomic)NSString *userCenterInfo; |
| | | /*! |
| | | @abstract 用户名 |
| | | */ |
| | | @property(copy,nonatomic)NSString *userName; |
| | | /*! |
| | | @abstract 初始密码 |
| | | */ |
| | | @property(copy,nonatomic)NSString *password; |
| | | |
| | | @end |
| | | |
| | | NS_ASSUME_NONNULL_END |
| | |
| | | #import "WALoginResult.h" |
| | | #import "WABindingResult.h" |
| | | #import "WAAccount.h" |
| | | #import "WAUserCenterResult.h" |
| | | #import "WAAppUser.h" |
| | | /*! |
| | | @discussion 登录协议 |
| | |
| | | -(void)switchAcctDidCompleteWithResult:(WALoginResult*)result; |
| | | @end |
| | | |
| | | /*! |
| | | @discussion 用户中心 |
| | | - - - |
| | | */ |
| | | @protocol WAUserCenterNoticeDelegate <NSObject> |
| | | /*! |
| | | @abstract 获取用户中心数据回调接口 |
| | | @param result 用户中心数据信息 |
| | | */ |
| | | - (void)userCenterNoticeWithResult:(WAUserCenterResult *)result; |
| | | |
| | | @end |
| | | |
| | | /*! |
| | | @discussion 用户中心 |
| | | - - - |
| | | */ |
| | | @protocol WAUserCenterNoticeUIDelegate <NSObject> |
| | | /*! |
| | | @abstract 用户中心界面关闭回调接口 |
| | | */ |
| | | - (void)userCenterNoticeClose; |
| | | /*! |
| | | @abstract 用户中心界面错误回调接口 |
| | | @param error 用户中心错误信息 |
| | | */ |
| | | - (void)userCenterNoticeError:(NSError *)error; |
| | | |
| | | @end |
| | | |
| | | |
| | | /*! |
| | | @discussion WAUserProxy 是用户模块的代理类。功能包括设置登录流程、登录、登出、绑定、解绑、查询当前用户绑定的第三方平台账户列表、切换账号、创建账号等等。 |
| | |
| | | |
| | | //+(NSString*)transferWithPlatform:(NSString *const)platform; |
| | | |
| | | + (void)getUserCenterNotice:(id<WAUserCenterNoticeDelegate>)delegate; |
| | | |
| | | + (void)showUserCenterNoticeUI:(id<WAUserCenterNoticeUIDelegate>)delegate; |
| | | |
| | | /*! |
| | | @discussion 处理UIApplicationDelegate的方法[-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions]传递过来的参数。 |
| | | */ |