Wuyx
2016-11-30 dcdc07c6d28f52b457d06274ddcf8e76f6163a28
WASdkIntf3.6.0
54 files added
3263 ■■■■■ changed files
WASdkIntf.podspec 23 ●●●●● patch | view | raw | blame | history
config/wa_sdk.plist 16 ●●●●● patch | view | raw | blame | history
config/wa_sdk_track_config.plist 91 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAAccount.h 25 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAAppInviteContent.h 28 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAAppInviteDialog.h 50 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAAppUser.h 44 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAApwProxy.h 24 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WABindingResult.h 27 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAClassGenerator.h 27 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WACode.h 58 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAComponent.h 19 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAConstants.h 88 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WACore.h 42 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WACoreProxy.h 170 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAError.h 45 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAErrorCode.h 102 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAEvent.h 47 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAFBAppRequest.h 54 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAFBApplication.h 36 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAFBObject.h 48 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAGameRequestContent.h 89 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAGameRequestDialog.h 54 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAGroup.h 28 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAHotUpdate.h 15 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAHupProxy.h 31 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAIAppWall.h 14 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAIPay.h 22 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAISocial.h 38 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAITrack.h 137 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAIUser.h 46 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAIapProduct.h 37 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAIapResult.h 62 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WALoginResult.h 53 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAPayChannel.h 20 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAPayProxy.h 80 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WASdkIntf.h 63 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAShareLinkContent.h 36 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WASharePhoto.h 41 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WASharePhotoContent.h 21 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAShareVideo.h 20 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAShareVideoContent.h 29 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WASharingContent.h 43 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WASocialProxy.h 252 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WATrackProxy.h 210 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAUpdateInfo.h 26 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Headers/WAUserProxy.h 255 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Info.plist patch | view | raw | blame | history
frameworks/WASdkIntf.framework/Modules/module.modulemap 6 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/WASdkIntf patch | view | raw | blame | history
frameworks/WASdkIntf.framework/_CodeSignature/CodeDirectory patch | view | raw | blame | history
frameworks/WASdkIntf.framework/_CodeSignature/CodeRequirements patch | view | raw | blame | history
frameworks/WASdkIntf.framework/_CodeSignature/CodeResources 471 ●●●●● patch | view | raw | blame | history
frameworks/WASdkIntf.framework/_CodeSignature/CodeSignature patch | view | raw | blame | history
WASdkIntf.podspec
New file
@@ -0,0 +1,23 @@
#
#  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'
s.version = '3.6.0'
s.summary = 'WASdkIntf framework in production environment.'
s.license = 'MIT'
s.author = { "Wuyx" => "wuyixin_gh@gamehollywood.com" }
s.homepage = 'http://git.gamehollywood.com:8082/summary/WASdkIntf.git'
s.source = { :git => "http://admin@git.gamehollywood.com:8082/r/WASdkIntf.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
config/wa_sdk.plist
New file
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>WaSdkServerUrl</key>
    <string>https://sdkapi.gamehollywood.com/sdkapi/</string>
    <key>appKey</key>
    <string>abc</string>
    <key>appId</key>
    <string>testLogin</string>
    <key>os</key>
    <string>ios</string>
    <key>channel</key>
    <string>APPLE</string>
</dict>
</plist>
config/wa_sdk_track_config.plist
New file
@@ -0,0 +1,91 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>FACEBOOK</key>
    <dict>
        <key>Enabled</key>
        <true/>
    </dict>
    <key>CHARTBOOST</key>
    <dict>
        <key>AppID</key>
        <string>55c16434c909a64d63743141</string>
        <key>AppSignature</key>
        <string>0964f36276dcdc991eee51723abf86191668a9ec</string>
        <key>Enabled</key>
        <true/>
    </dict>
    <key>WINGA</key>
    <dict>
        <key>ChannelId</key>
        <string>AppleStore</string>
        <key>URL</key>
        <string>https://sdkapi.gamehollywood.com/data/</string>
        <key>Enabled</key>
        <true/>
        <key>Mapping</key>
        <dict>
            <key>ghw_launch</key>
            <string></string>
            <key>ghw_startup</key>
            <string></string>
            <key>ghw_complete_registration</key>
            <string></string>
            <key>ghw_login</key>
            <string></string>
            <key>ghw_initiated_payment</key>
            <string></string>
            <key>ghw_payment</key>
            <string></string>
            <key>ghw_initiated_purchase</key>
            <string></string>
            <key>ghw_purchase</key>
            <string></string>
            <key>ghw_heartbeat</key>
            <string></string>
            <key>ghw_level_achieved</key>
            <string></string>
            <key>ghw_add_to_cart</key>
            <string></string>
            <key>ghw_add_to_wishlist</key>
            <string></string>
            <key>ghw_search</key>
            <string></string>
            <key>ghw_spent_credits</key>
            <string></string>
            <key>ghw_achievement_unlocked</key>
            <string></string>
            <key>ghw_content_view</key>
            <string></string>
            <key>ghw_share</key>
            <string></string>
            <key>ghw_invite</key>
            <string></string>
            <key>ghw_re_engage</key>
            <string></string>
            <key>ghw_update</key>
            <string></string>
            <key>ghw_user_create</key>
            <string></string>
            <key>ghw_user_info_update</key>
            <string></string>
            <key>ghw_task_update</key>
            <string></string>
            <key>ghw_gold_update</key>
            <string></string>
            <key>ghw_opened_from_push_notification</key>
            <string></string>
        </dict>
    </dict>
    <key>APPSFLYER</key>
    <dict>
        <key>AppsFlyerDevKey</key>
        <string>922wXRJwEns6Qj4MfMt4Gg</string>
        <key>AppleAppID</key>
        <string>113996505</string>
        <key>Enabled</key>
        <true/>
    </dict>
</dict>
</plist>
frameworks/WASdkIntf.framework/Headers/WAAccount.h
New file
@@ -0,0 +1,25 @@
//
//  WASDKAccount.h
//  WASDKUI
//
//  Created by wuyx on 15/11/30.
//  Copyright © 2015年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
/*!
 @discussion WAAccount 该类为账户类
 - - -
 */
@interface WAAccount : NSObject
/*!
 @abstract 第三方平台openId
 */
@property(nonatomic,copy)NSString* pUserId;//第三方平台openId
/*!
 @abstract 绑定平台标识 FACEBOOK、APPLE、WINGA
 */
@property(nonatomic,copy)NSString* platform;
+(WAAccount*)parserWithDict:(NSDictionary*)dict;
+(NSArray*)parserWithArray:(NSArray*)arr;
@end
frameworks/WASdkIntf.framework/Headers/WAAppInviteContent.h
New file
@@ -0,0 +1,28 @@
//
//  WAFBAppInviteContent.h
//  WASdkIntfUI
//
//  Created by wuyx on 16/3/15.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
/*!
 @discussion WAAppInviteContent
 - - -
 */
@interface WAAppInviteContent : NSObject
/*!
 @abstract A URL to a preview image that will be displayed with the app invite
 @discussion This is optional.  If you don't include it a fallback image will be used.
 */
@property (nonatomic, strong) NSURL *appInvitePreviewImageURL;
/*!
 @abstract An app link target that will be used as a target when the user accept the invite.
 @discussion This is a requirement.
 */
@property (nonatomic, strong) NSURL *appLinkURL;
@end
frameworks/WASdkIntf.framework/Headers/WAAppInviteDialog.h
New file
@@ -0,0 +1,50 @@
//
//  WAFBAppInviteDialog.h
//  WASdkIntfUI
//
//  Created by wuyx on 16/3/15.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "WAAppInviteContent.h"
@class WAAppInviteDialog;
/*!
 @discussion 应用邀请协议
 - - -
 */
@protocol WAAppInviteDialogDelegate <NSObject>
/*!
 @abstract Sent to the delegate when the app invite completes without error.
 @param appInviteDialog The WAFBAppInviteDialog that completed.
 @param platform The platform from  the app invite .
 @param results The results from the dialog.  This may be nil or empty.
 */
- (void)appInviteDialog:(WAAppInviteDialog *)appInviteDialog platform:(NSString *const)platform didCompleteWithResults:(NSDictionary *)results;
/*!
 @abstract Sent to the delegate when the app invite encounters an error.
 @param appInviteDialog The WAFBAppInviteDialog that completed.
 @param platform The platform from  the app invite .
 @param error The error.
 */
- (void)appInviteDialog:(WAAppInviteDialog *)appInviteDialog platform:(NSString *const)platform didFailWithError:(NSError *)error;
@end
/*!
 @discussion WAAppInviteDialog
 - - -
 */
@interface WAAppInviteDialog : NSObject
/*!
 @abstract The receiver's delegate or nil if it doesn't have a delegate.
 */
@property (nonatomic, weak) NSObject<WAAppInviteDialogDelegate>* delegate;
/*!
 @abstract The content for app invite.
 */
@property (nonatomic, strong) WAAppInviteContent *content;
@end
frameworks/WASdkIntf.framework/Headers/WAAppUser.h
New file
@@ -0,0 +1,44 @@
//
//  GHWFriend.h
//  GHWSdkUI
//
//  Created by wuyx on 15/7/1.
//  Copyright (c) 2015年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
/*!
 @discussion WAFBApplication
 - - -
 */
@interface WAAppUser : NSObject<NSCoding,NSCopying>
/*!
 @abstract ID
 */
@property(nonatomic,copy)NSString* ID;
/*!
 @abstract waUserId
 @discussion 查询游戏内的好友时,waUserId的值是facebook ID对应的ghw UserId.先从facebook查询到好友列表,再用该列表去ghw后台查询对应的waUserId,查询成功则该属性有值,否则为nil.请在使用该属性时做判断
 */
@property(nonatomic,copy)NSString* waUserId;
/*!
 @abstract name
 */
@property(nonatomic,copy)NSString* name;
/*!
 @abstract pictureURL
 */
@property(nonatomic,copy)NSString* pictureURL;
/*!
 @abstract is_silhouette
 */
@property(nonatomic,copy)NSString* is_silhouette;
/*!
 @abstract inviteTime
 */
@property(nonatomic,copy)NSDate* inviteTime;
+(WAAppUser*)parserWithResultDict:(NSDictionary*)resultDict platform:(NSString *const)platform;
+(NSArray*)parserWithMultiResultDict:(NSDictionary*)resultDict platform:(NSString *const)platform;
-(void)encodeWithCoder:(NSCoder *)aCoder;
@end
frameworks/WASdkIntf.framework/Headers/WAApwProxy.h
New file
@@ -0,0 +1,24 @@
//
//  WAApwProxy.h
//  WASdkIntfUI
//
//  Created by GHW-T-01 on 16/3/1.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
/*!
 @discussion WAApwProxy
 - - -
 */
@interface WAApwProxy : NSObject
/*!
 @abstract 显示浮动按钮
 */
+(void)showEntryFlowIcon;
/*!
 @abstract 隐藏浮动按钮
 */
+(void)hideEntryFlowIcon;
@end
frameworks/WASdkIntf.framework/Headers/WABindingResult.h
New file
@@ -0,0 +1,27 @@
//
//  GHWSDKBindingResult.h
//  GHWSdkUI
//
//  Created by wuyx on 15/9/22.
//  Copyright (c) 2015年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
/*!
 @discussion WABindingResult 该类为绑定结果
 - - -
 */
@interface WABindingResult : NSObject
/*!
 @abstract 绑定平台userid
 */
@property(copy,nonatomic)NSString *userId;
/*!
 @abstract 绑定平台(Facebook,Apple)
 */
@property(copy,nonatomic)NSString *platform;
/*!
 @abstract 绑定平台accessToken
 */
@property(copy,nonatomic)NSString *accessToken;
@end
frameworks/WASdkIntf.framework/Headers/WAClassGenerator.h
New file
@@ -0,0 +1,27 @@
//
//  WAClassGenerator.h
//  WASdkIntfUI
//
//  Created by wuyx on 16/3/3.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface WAClassGenerator : NSObject
+(NSArray*)getCompsWithModule:(NSString *const)module;
//根据module生成实例数组
+(NSMutableArray*)generatorWithModule:(NSString *const)module;
//根据module和父类class生成实例数组
+(NSMutableArray*)generatorWithModule:(NSString *const)module superClass:(Class)superClass;
//根据module和platform生成实例并回调
+(void)generatorWithModule:(NSString *const)module platform:(NSString *const)platform block:(void (^)(NSObject* obj,NSError* error))block;
//根据module和platform生成实例
+(NSObject*)generatorWithModule:(NSString *const)module platform:(NSString *const)platform;
//根据module,platform和父类class生成实例
+(NSObject*)generatorWithModule:(NSString *const)module platform:(NSString *const)platform superClass:(Class)superClass;
//判断模块是否存在
+(BOOL)isExistWithModule:(NSString*)module;
//判断某个模块的某个渠道是否存在
+(BOOL)isExistWithPlatform:(NSString*)platform module:(NSString*)module;
@end
frameworks/WASdkIntf.framework/Headers/WACode.h
New file
@@ -0,0 +1,58 @@
//
//  WACode.h
//  WASdkIntfUI
//
//  Created by wuyx on 16/3/22.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#ifndef WACode_h
#define WACode_h
typedef enum WACode{
    WACodeSuccess = 200 ,//成功
    WACodeError = 400 ,//错误
    WACodeUnautherized = 401 ,//请求未认证:访问受限资源是缺少认证信息,或者认证未通过
    WACodeForbiden = 403 ,//禁止访问:由于应用上下文原因或请求端上下文的原因被禁止访问资源,例如IP限制等
    WACodeNotFound = 404 ,//找不到被访问资源:接口不存在、页面不存在或对应的业务实体找不到
    WACodeServerError = 500 ,//服务器内部故障
    WACodeApiInvalid = 501 ,//所请求接口或页面未实现
    WACodeSdkAppIdInvalid = 4010 ,//无效appId: appId不存在或未开启
    WACodeSignError = 4011 ,//无效osign:osign校验失败
    WACodeRequestTimeOut = 4012 ,//请求已过期:ots校验失败
    WACodePlatformVerifyError = 4013 ,//第三方平台验证失败
    WACodeAccountVerifyError = 4014 ,//访客登录验证失败,登录验证失败
    WACodePlatformBoundAlready = 4015 ,//用户已经绑定了这个平台的其他账户
    WACodePrePlatformVerifyError = 4016 ,//prePlatform验证失败
    WACodeUserNotFound = 4017 ,//用户不存在(没有找到)
    WACodeAccountBoundByOthers = 4018 ,//账户已经被其他用户绑定
    WACodeOrderIdInvalid = 4019 ,//无效orderId
    WACodeOrderVerifyError = 4020 ,//订单验证失败
    WACodeRewardNotFound = 4021 ,//FB邀请奖励事件未找到奖励政策
    WACodeRepeatCrashReport = 4022 ,//闪退发送报告重复
    WACodeChannelNotFound = 4023 ,//未找到渠道信息
    WACodeCanNotUnbind = 4024 ,//不可以进行解绑操作
    WACodeExchangeRateConversionFailure = 4025 ,//汇率转换失败
    WACodePayPlatformClosed = 4026 ,//支付渠道已关闭
    WACodeLoginPlatformClosed = 4029 ,//登录渠道已关闭
    WACodeCanNotSwitchToAnonymous = 5001 ,
    WACodeFbObjectType = 5002 ,//facebook的objectType不能为空
    WACodeFbGiftListRequestPrameterLack = 5003 ,//请求gift列表缺少appid,appSecret,objectType参数
    WACodeFbTokenNull = 5004 ,//facebook token为空
    WACodeCanNotMakePayment = 5005 ,//该设备不能支付或者不允许支付
    WACodePaymentError = 5006 ,//支付过程中出错
    WACodeCancelled = -100 ,//取消操作
    WACodeSdkUninitialized = -200 ,//SDK没有初始化
    WACodeContentCanNotBeShared = -201 ,//内容不可分享,一般是传入的内容为空,或者其他
    WACodeNotLogin = -202 ,//没有登录
    WACodeLoginFailure = -203 ,//登录失败
    WACodeNoPermission = -204 ,//登录没有获取到相应的权限
    WACodeFileSizeLimit = -206 ,//文件大小超出限制 不超过12M
    WACodeCurrentIDNotMatch = -211 ,//当前平台账号跟当前WA UserId绑定的平台账号不一致,或者没有绑定该平台账号
    WACodeDeviceNotSupported = -401 ,//设备不支持
    WACodeNetworkUnavailable = -402 ,//网络不可用
    WACodePayReOrderTimeLimit = -509 //支付流程未完成或者在特定的时间内重复下订单
}WACode;
#endif /* WACode_h */
frameworks/WASdkIntf.framework/Headers/WAComponent.h
New file
@@ -0,0 +1,19 @@
//
//  WAComponent.h
//  test1
//
//  Created by wuyx on 16/3/3.
//  Copyright © 2016年 GHW. All rights reserved.
//
#import <Foundation/Foundation.h>
/*!
 @discussion WAComponent
 - - -
 */
@interface WAComponent : NSObject
@property(nonatomic,copy)NSString* module;
@property(nonatomic,copy)NSString* plaf;
@property(nonatomic,copy)NSString* value;
@property(nonatomic,copy)NSString* desc;
@end
frameworks/WASdkIntf.framework/Headers/WAConstants.h
New file
@@ -0,0 +1,88 @@
//
//  GHWConstants.h
//  GHWSdk
//
//  Created by GHW-T-01 on 15/5/21.
//  Copyright (c) 2015年 Wuyx. All rights reserved.
//
#import <Foundation/Foundation.h>
#ifndef WA_Constants_h
#define WA_Constants_h
extern NSString *const WA_MODULE_USR;//用户模块
extern NSString *const WA_MODULE_PAY;//支付模块
extern NSString *const WA_MODULE_TRA;//数据收集模块
extern NSString *const WA_MODULE_SOC;//社交模块
extern NSString *const WA_MODULE_APW;//应用墙模块
extern NSString *const WA_MODULE_CORE;//公共模块
extern NSString *const WA_MODULE_HUP;//热更新模块
extern NSString *const WA_PLATFORM_FACEBOOK;
extern NSString *const WA_PLATFORM_APPLE;
extern NSString *const WA_PLATFORM_APPSFLYER;
extern NSString *const WA_PLATFORM_CHARTBOOST;
extern NSString *const WA_PLATFORM_WEBPAY;
extern NSString *const WA_PLATFORM_WINGA;
extern NSString *const WA_PLATFORM_BOACOMPRA;
extern NSString *const WA_PLATFORM_VK;
extern NSString *const WA_PLATFORM_WECHAT;
extern NSString *const WA_CONSTANT_GUEST;
extern NSString *const WA_XML_NODE_CONFIG;
extern NSString *const WA_XML_NODE_VERSION;
extern NSString *const WA_XML_NODE_SUPPORTS;
extern NSString *const WA_XML_NODE_COMP;
extern NSString *const WA_XML_ATTRIBUTE_KEY_VAL;
extern NSString *const WA_XML_ATTRIBUTE_KEY_MODULE;
extern NSString *const WA_XML_ATTRIBUTE_KEY_PLAF;
extern NSString *const WA_XML_ATTRIBUTE_KEY_VALUE;
extern NSString *const WA_XML_ATTRIBUTE_KEY_DESC;
//登录流程
extern const int WA_LOGIN_FLOW_TYPE_DEFAULT;
extern const int WA_LOGIN_FLOW_TYPE_REBIND;
//facebook permission
extern NSString *const WA_FB_PERMISSION_PUBLIC_PROFILE;
extern NSString *const WA_FB_PERMISSION_PUBLISH_ACTIONS;
extern NSString *const WA_FB_PERMISSION_USER_FRIENDS;
extern NSString *const WA_FB_PERMISSION_EMAIL;
//facebook action type
extern NSString *const WA_FB_ACTION_TYPE_NONE;
extern NSString *const WA_FB_ACTION_TYPE_SEND;
extern NSString *const WA_FB_ACTION_TYPE_ASKFOR;
extern NSString *const WA_FB_ACTION_TYPE_INVITE;
extern NSString *const WA_REQUEST_TYPE_SEND;
extern NSString *const WA_REQUEST_TYPE_ASKFOR;
extern NSString *const WA_REQUEST_TYPE_INVITE;
extern NSString *const WA_REQUEST_TYPE_REQUEST;
extern NSString *const WA_APPLE_IAPResultNotification;
//下面四个通知分别是绑定成功、绑定失败、解绑成功、解绑失败。当绑定有结果之后(无论成功失败),将回传一个WABindingResult实例。当解绑有结果(无论成功失败),将回传一个WAAccount实例。
extern NSString *const WABindDidSucceedNotification;//绑定成功
extern NSString *const WABindDidFailNotification;//绑定失败
extern NSString *const WAUnbindDidSucceedNotification;//解绑成功
extern NSString *const WAUnbindDidFailNotification;//解绑失败
// SDK类型
extern const int WA_SDK_TYPE_FR; // 国外
extern const int WA_SDK_TYPE_CN; // 国内
@interface WAConstants : NSObject {
}
#endif
@end
frameworks/WASdkIntf.framework/Headers/WACore.h
New file
@@ -0,0 +1,42 @@
//
//  WACore.h
//  WASdkIntfUI
//
//  Created by wuyx on 16/3/1.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface WACore : NSObject
-(void)initialize;
-(void)initAppEventTracker;
-(void)setSDKType:(NSInteger)sdkType;
-(NSInteger)getSDKType;
-(BOOL)isDebugMode;
-(void)setDebugMode:(BOOL)isDebugMode;
-(BOOL)displayLog;
-(NSString*)getUserId;
-(void)setServerId:(NSString *)serverId;
-(NSString*)getGameUserId;
-(NSString*)getServerId;
-(void)setLevel:(int)level;
-(int)getLevel;
-(void)setGameUserId:(NSString*)gameUserId;
-(void)addLogWithString:(NSString*)string;
-(void)addLogWithoutBtn:(NSString*)string;
-(NSString*)getSdkVersion;
-(NSString*)getWaSdkServerUrl;
-(NSString*)getAppKey;
-(NSString*)getPublishChannel;
-(NSString*)getChannel;
-(NSString*)getAppID;
-(NSString*)getOS;
-(NSString*)getSdkVer;
-(NSString*)getSdkId;
-(NSString*)getSessionId;
-(NSString*)getDeepLinkWithUrl:(NSURL*)url;
-(void)fetchDeferredAppLink:(void(^)(NSURL *url, NSError *error))handler;
-(void)addEventContentWithString:(NSString*)string;
-(void)eventLogWithPlatform:(NSString*)platform eventName:(NSString*)eventName parameters:(NSDictionary*)parameters color:(UIColor*)color;
@end
frameworks/WASdkIntf.framework/Headers/WACoreProxy.h
New file
@@ -0,0 +1,170 @@
//
//  WACoreProxy.h
//  WASdkIntfUI
//
//  Created by wuyx on 16/3/1.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "WACore.h"
@class WACoreProxy;
#define WALog(fmt,...) {\
if([WACoreProxy displayLog]){\
NSLog((@"WASDK LOG [(version %@) %s ]:" fmt), [WACoreProxy getSdkVer],__FUNCTION__, ##__VA_ARGS__);\
[WACoreProxy addLogWithString:[NSString stringWithFormat:(@"(version %@) %s ]:" fmt),[WACoreProxy getSdkVer],__FUNCTION__, ##__VA_ARGS__]];\
}\
}
#define WALogNb(fmt,...) {\
if([WACoreProxy displayLog]){\
NSLog((@"WASDK LOG [(version %@) %s ]:" fmt), [WACoreProxy getSdkVer],__FUNCTION__, ##__VA_ARGS__);\
[WACoreProxy addLogWithString:[NSString stringWithFormat:(@"(version %@) %s ]:" fmt),[WACoreProxy getSdkVer],__FUNCTION__, ##__VA_ARGS__]];\
}\
}
#define WALogImpt(fmt,...) {\
NSLog((@"WASDK LOG [(version %@) %s ]:" fmt), [WACoreProxy getSdkVer],__FUNCTION__, ##__VA_ARGS__);\
if([WACoreProxy isDebugMode]){\
[WACoreProxy addLogWithString:[NSString stringWithFormat:(@"(version %@) %s ]:" fmt),[WACoreProxy getSdkVer],__FUNCTION__, ##__VA_ARGS__]];\
}\
}
#define WAEventLog(fmt,...) {\
if([WACoreProxy displayLog]){\
NSLog((@"WASDK LOG [(version %@) %s ]:" fmt), [WACoreProxy getSdkVer],__FUNCTION__, ##__VA_ARGS__);\
[WACoreProxy addEventContentWithString:[NSString stringWithFormat:(@"" fmt),##__VA_ARGS__]];\
}\
}
/*!
 @discussion WACoreProxy
 - - -
 */
@interface WACoreProxy : NSObject
/*!
 @abstract 初始化
 */
+(void)init;
/*!
 @abstract 设置sdk类型 0 国外,1 国内
 */
+ (void)setSDKType:(NSInteger)sdkType;
/*!
 @abstract 获取sdk类型 0 国外,1 国内
 */
+ (NSInteger)getSDKType;
/*!
 @abstract 开启数据收集
 */
+(void)initAppEventTracker;
/*!
 @abstract 是否调试模式
 */
+(BOOL)isDebugMode;
/*!
 @abstract 设置调试模式
 */
+(void)setDebugMode:(BOOL)isDebugMode;
/*!
 @abstract 是否显示Log按钮
 */
+(BOOL)displayLog;
/*!
 @abstract 获取userId
 */
+(NSString*)getUserId;
/*!
 @abstract 设置serverId
 @param serverId
 */
+(void)setServerId:(NSString *)serverId;
/*!
 @abstract 获取serverId
 */
+(NSString*)getServerId;
/*!
 @abstract 设置level
 @param level
 */
+(void)setLevel:(int)level;
/*!
 @abstract 获取level
 */
+(int)getLevel;
/*!
 @abstract 设置gameUserId
 @param gameUserId
 */
+(void)setGameUserId:(NSString*)gameUserId;
/*!
 @abstract 获取gameUserId
 */
+(NSString*)getGameUserId;
/*!
 @abstract 获取WA Server url
 */
+(NSString*)getWaSdkServerUrl;
/*!
 @abstract 获取appKey
 */
+(NSString*)getAppKey;
/*!
 @abstract 获取Publish Channel
 */
+(NSString*)getPublishChannel;
/*!
 @abstract 获取Channel
 */
+(NSString*)getChannel;
/*!
 @abstract 获取appId
 */
+(NSString*)getAppID;
/*!
 @abstract 获取os
 */
+(NSString*)getOS;
/*!
 @abstract 获取SDK版本
 */
+(NSString*)getSdkVer;
/*!
 @abstract 获取SDK ID
 */
+(NSString *)getSdkId;
/*!
 @abstract 获取配置文件版本
 */
+(NSString*)getXmlConfigVer;
/*!
 @abstract 获取抽象层版本
 */
+(NSString*)getIntfVer;
/*!
 @abstract 获取SessionId
 */
+(NSString*)getSessionId;
/*!
 @abstract 下面两个方法是关于Facebook deeplink, CP不用关注
 */
-(NSString*)getDeepLinkWithUrl:(NSURL*)url;
+(void)fetchDeferredAppLink:(void(^)(NSURL *url, NSError *error))handler;
/*!
 @abstract 下面四个方法是关于打印日志的,CP不用关注
 */
+(void)addLogWithString:(NSString*)string;
+(void)addLogWithoutBtn:(NSString*)string;
+(void)addEventContentWithString:(NSString*)string;
+(void)eventLogWithPlatform:(NSString*)platform eventName:(NSString*)eventName parameters:(NSDictionary*)parameters color:(UIColor*)color;
@end
frameworks/WASdkIntf.framework/Headers/WAError.h
New file
@@ -0,0 +1,45 @@
//
//  GHWSDKShareError.h
//  GHWSdkUI
//
//  Created by wuyx on 15/6/12.
//  Copyright (c) 2015年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "WAErrorCode.h"
@interface WAError : NSObject
+ (NSString *)errorDomain;
+ (BOOL)errorIsNetworkError:(NSError *)error;
+ (NSError *)errorWithCode:(NSInteger)code message:(NSString *)message;
+ (NSError *)errorWithCode:(NSInteger)code message:(NSString *)message underlyingError:(NSError *)underlyingError;
+ (NSError *)errorWithCode:(NSInteger)code
                  userInfo:(NSDictionary *)userInfo
                   message:(NSString *)message
           underlyingError:(NSError *)underlyingError;
+ (NSError *)invalidArgumentErrorWithName:(NSString *)name value:(id)value message:(NSString *)message;
+ (NSError *)invalidArgumentErrorWithName:(NSString *)name
                                    value:(id)value
                                  message:(NSString *)message
                          underlyingError:(NSError *)underlyingError;
+ (NSError *)invalidCollectionErrorWithName:(NSString *)name
                                 collection:(id<NSFastEnumeration>)collection
                                       item:(id)item
                                    message:(NSString *)message;
+ (NSError *)invalidCollectionErrorWithName:(NSString *)name
                                 collection:(id<NSFastEnumeration>)collection
                                       item:(id)item
                                    message:(NSString *)message
                            underlyingError:(NSError *)underlyingError;
+ (NSError *)requiredArgumentErrorWithName:(NSString *)name message:(NSString *)message;
+ (NSError *)requiredArgumentErrorWithName:(NSString *)name
                                   message:(NSString *)message
                           underlyingError:(NSError *)underlyingError;
+ (NSError *)unknownErrorWithMessage:(NSString *)message;
@end
frameworks/WASdkIntf.framework/Headers/WAErrorCode.h
New file
@@ -0,0 +1,102 @@
//
//  WAShareConstants.h
//  WAUI
//
//  Created by wuyx on 15/6/12.
//  Copyright (c) 2015年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef enum WAErrorCode
{
    /*!
     @abstract Reserved.
     */
    WAReservedErrorCode = 0,
    /*!
     @abstract The error code for errors from invalid encryption on incoming encryption URLs.
     */
    WAEncryptionErrorCode,
    /*!
     @abstract The error code for errors from invalid arguments to SDK methods.
     */
    WAInvalidArgumentErrorCode,
    /*!
     @abstract The error code for unknown errors.
     */
    WAUnknownErrorCode,
    /*!
     @abstract A request failed due to a network error. Use NSUnderlyingErrorKey to retrieve
     the error object from the NSURLConnection for more information.
     */
    WANetworkErrorCode,
    /*!
     @abstract The error code for errors encounted during an App Events flush.
     */
    WAAppEventsFlushErrorCode,
    /*!
     @abstract An endpoint that returns a binary response was used with FBSDKGraphRequestConnection.
     @discussion Endpoints that return image/jpg, etc. should be accessed using NSURLRequest
     */
    WAGraphRequestNonTextMimeTypeReturnedErrorCode,
    /*!
     @abstract The operation failed because the server returned an unexpected response.
     @discussion You can get this error if you are not using the most recent SDK, or you are accessing a version of the
     Graph API incompatible with the current SDK.
     */
    WAGraphRequestProtocolMismatchErrorCode,
    /*!
     @abstract The Graph API returned an error.
     @discussion See below for useful userInfo keys (beginning with FBSDKGraphRequestError*)
     */
    WAGraphRequestGraphAPIErrorCode,
    /*!
     @abstract The specified dialog configuration is not available.
     @discussion This error may signify that the configuration for the dialogs has not yet been downloaded from the server
     or that the dialog is unavailable.  Subsequent attempts to use the dialog may succeed as the configuration is loaded.
     */
    WADialogUnavailableErrorCode,
}WAErrorCode;
extern NSString *const WAErrorDomain;
extern NSString *const WAErrorArgumentCollectionKey;
/*!
 @abstract The userInfo key for the invalid argument name for errors with FBSDKInvalidArgumentErrorCode.
 */
extern NSString *const WAErrorArgumentNameKey;
/*!
 @abstract The userInfo key for the invalid argument value for errors with FBSDKInvalidArgumentErrorCode.
 */
extern NSString *const WAErrorArgumentValueKey;
/*!
 @abstract The userInfo key for the message for developers in NSErrors that originate from the SDK.
 @discussion The developer message will not be localized and is not intended to be presented within the app.
 */
extern NSString *const WAErrorDeveloperMessageKey;
/*!
 @abstract The userInfo key describing a localized description that can be presented to the user.
 */
extern NSString *const WAErrorLocalizedDescriptionKey;
/*!
 @abstract The userInfo key describing a localized title that can be presented to the user, used with `FBSDKLocalizedErrorDescriptionKey`.
 */
extern NSString *const WAErrorLocalizedTitleKey;
frameworks/WASdkIntf.framework/Headers/WAEvent.h
New file
@@ -0,0 +1,47 @@
//
//  WAEvent.h
//  WASdkIntfUI
//
//  Created by wuyx on 16/4/14.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
/*!
 @discussion WAEvent 该类用来做数据收集
 - - -
 */
@interface WAEvent : NSObject
/*!
 @abstract 默认事件名称
 */
@property(nonatomic,strong)NSString* defaultEventName;
/*!
 @abstract 默认累加值
 */
@property(nonatomic)double defaultValue;
/*!
 @abstract 默认参数字典
 */
@property(nonatomic,strong)NSDictionary* defaultParamValues;
/*!
 @abstract 数据收集渠道开关
 */
@property(nonatomic,strong)NSDictionary* channelSwitcherDict;
/*!
 @abstract 各个渠道事件名称
 */
@property(nonatomic,strong)NSDictionary* eventNameDict;
/*!
 @abstract 各个渠道累加值
 */
@property(nonatomic,strong)NSDictionary* valueDict;
/*!
 @abstract 各个渠道参数字典
 */
@property(nonatomic,strong)NSDictionary* paramValuesDict;
/*!
 @discussion 构建一个WAIEvent实例,调用该方法可以将数据发送到各个渠道。
 */
-(void)trackEvent;
@end
frameworks/WASdkIntf.framework/Headers/WAFBAppRequest.h
New file
@@ -0,0 +1,54 @@
//
//  GHWSDKAppRequest.h
//  GHWSdkUI
//
//  Created by wuyx on 15/7/17.
//  Copyright (c) 2015年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "WAAppUser.h"
#import "WAFBObject.h"
#import "WAFBApplication.h"
/*!
 @discussion WAFBApplication
 - - -
 */
@interface WAFBAppRequest : NSObject
/*!
 @abstract ID
 */
@property(nonatomic,copy)NSString* ID;
/*!
 @abstract message
 */
@property(nonatomic,copy)NSString* message;
/*!
 @abstract created_time
 */
@property(nonatomic,copy)NSString* created_time;
/*!
 @abstract action_type
 */
@property(nonatomic,copy)NSString* action_type;
/*!
 @abstract from
 */
@property(nonatomic,copy)WAAppUser* from;
/*!
 @abstract to
 */
@property(nonatomic,copy)WAAppUser* to;
/*!
 @abstract object
 */
@property(nonatomic,copy)WAFBObject* object;
/*!
 @abstract application
 */
@property(nonatomic,copy)WAFBApplication* application;
/*!
 @abstract data
 */
@property(nonatomic,copy)NSDictionary* data;
@end
frameworks/WASdkIntf.framework/Headers/WAFBApplication.h
New file
@@ -0,0 +1,36 @@
//
//  GHWSDKFBApplication.h
//  GHWSdkUI
//
//  Created by wuyx on 15/9/15.
//  Copyright (c) 2015年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
/*!
 @discussion WAFBApplication
 - - -
 */
@interface WAFBApplication : NSObject<NSCoding,NSCopying>
/*!
 @abstract ID
 */
@property(nonatomic,strong)NSString* ID;
/*!
 @abstract name
 */
@property(nonatomic,strong)NSString* name;
/*!
 @abstract name_space
 */
@property(nonatomic,strong)NSString* name_space;
/*!
 @abstract category
 */
@property(nonatomic,strong)NSString* category;
/*!
 @abstract link
 */
@property(nonatomic,strong)NSString* link;
+(WAFBApplication *)parserWithResultDict:(NSDictionary *)resultDict;
@end
frameworks/WASdkIntf.framework/Headers/WAFBObject.h
New file
@@ -0,0 +1,48 @@
//
//  GHWSDKGift.h
//  GHWSdkUI
//
//  Created by wuyx on 15/7/16.
//  Copyright (c) 2015年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
/*!
 @discussion WAFBObject
 - - -
 */
@interface WAFBObject : NSObject<NSCopying>
/*!
 @abstract ID
 */
@property(nonatomic,copy)NSString* ID;
/*!
 @abstract type
 */
@property(nonatomic,copy)NSString* type;
/*!
 @abstract title
 */
@property(nonatomic,copy)NSString* title;
/*!
 @abstract imageUrls
 */
@property(nonatomic,copy)NSString* imageUrls;
/*!
 @abstract created_time
 */
@property(nonatomic,copy)NSString* created_time;
/*!
 @abstract oDescription
 */
@property(nonatomic,copy)NSString* oDescription;
/*!
 @abstract is_scraped
 */
@property(nonatomic)Boolean is_scraped;
/*!
 @abstract data
 */
@property(nonatomic,copy)NSDictionary* data;
+(WAFBObject*)parserWithResultDict:(NSDictionary*)dict;
@end
frameworks/WASdkIntf.framework/Headers/WAGameRequestContent.h
New file
@@ -0,0 +1,89 @@
//
//  WAFBGameRequestContent.h
//  WASdkIntfUI
//
//  Created by wuyx on 16/3/15.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
/*!
 @typedef NS_ENUM(NSUInteger, WAFBGameRequestActionType)
 @abstract Additional context about the nature of the request.
 */
typedef NS_ENUM(NSUInteger, WAGameRequestActionType)
{
    /*! No action type */
    WAGameRequestActionTypeNone = 0,
    /*! Send action type: The user is sending an object to the friends. */
    WAGameRequestActionTypeSend,
    /*! Ask For action type: The user is asking for an object from friends. */
    WAGameRequestActionTypeAskFor,
    /*! Turn action type: It is the turn of the friends to play against the user in a match. (no object) */
    WAGameRequestActionTypeTurn,
    WAGameRequestActionInvite,
    WAGameRequestActionRequest
};
@interface WAGameRequestContent : NSObject
/*!
 @abstract Used when defining additional context about the nature of the request.
 @discussion The parameter 'objectID' is required if the action type is either
 'WAFBGameRequestActionTypeSend' or 'WAFBGameRequestActionTypeAskFor'.
 @seealso objectID
 */
@property (nonatomic, assign) WAGameRequestActionType actionType;
/*!
 @abstract Additional freeform data you may pass for tracking. This will be stored as part of
 the request objects created. The maximum length is 255 characters.
 */
@property (nonatomic, copy) NSString *data;
/*!
 @abstract This controls the set of friends someone sees if a multi-friend selector is shown.
 It is FBSDKGameRequestNoFilter by default, meaning that all friends can be shown.
 If specify as FBSDKGameRequestAppUsersFilter, only friends who use the app will be shown.
 On the other hands, use FBSDKGameRequestAppNonUsersFilter to filter only friends who do not use the app.
 @discussion The parameter name is preserved to be consistent with the counter part on desktop.
 */
//@property (nonatomic, assign) FBSDKGameRequestFilter filters;
/*!
 @abstract A plain-text message to be sent as part of the request. This text will surface in the App Center view
 of the request, but not on the notification jewel. Required parameter.
 */
@property (nonatomic, copy) NSString *message;
/*!
 @abstract The Open Graph object ID of the object being sent.
 @seealso actionType
 */
@property (nonatomic, copy) NSString *objectID;
/*!
 @abstract An array of user IDs, usernames or invite tokens (NSString) of people to send request.
 @discussion These may or may not be a friend of the sender. If this is specified by the app,
 the sender will not have a choice of recipients. If not, the sender will see a multi-friend selector
 This is equivalent to the "to" parameter when using the web game request dialog.
 */
@property (nonatomic, copy) NSArray *recipients;
/*!
 @abstract An array of user IDs that will be included in the dialog as the first suggested friends.
 Cannot be used together with filters.
 @discussion This is equivalent to the "suggestions" parameter when using the web game request dialog.
 */
@property (nonatomic, copy) NSArray *recipientSuggestions;
/*!
 @abstract The title for the dialog.
 */
@property (nonatomic, copy) NSString *title;
@end
frameworks/WASdkIntf.framework/Headers/WAGameRequestDialog.h
New file
@@ -0,0 +1,54 @@
//
//  WAFBGameRequestDialog.h
//  WASdkIntfUI
//
//  Created by wuyx on 16/3/15.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
@class WAGameRequestDialog,WAGameRequestContent;
/*!
 @abstract A delegate for WAFBGameRequestDialog.
 @discussion The delegate is notified with the results of the game request as long as the application has permissions to
 receive the information.  For example, if the person is not signed into the containing app, the shower may not be able
 to distinguish between completion of a game request and cancellation.
 */
@protocol WAGameRequestDialogDelegate <NSObject>
/*!
 @abstract Sent to the delegate when the game request completes without error.
 @param gameRequestDialog The WAFBGameRequestDialog that completed.
 @param platform The platform from the dialog .
 @param results The results from the dialog.  This may be nil or empty.
 */
- (void)gameRequestDialog:(WAGameRequestDialog *)gameRequestDialog platform:(NSString *const)platform didCompleteWithResults:(NSDictionary *)results;
/*!
 @abstract Sent to the delegate when the game request encounters an error.
 @param gameRequestDialog The WAFBGameRequestDialog that completed.
 @param platform The platform from the dialog .
 @param error The error.
 */
- (void)gameRequestDialog:(WAGameRequestDialog *)gameRequestDialog platform:(NSString *const)platform didFailWithError:(NSError *)error;
/*!
 @abstract Sent to the delegate when the game request dialog is cancelled.
 @param gameRequestDialog The WAFBGameRequestDialog that completed.
 @param platform The platform from the dialog .
 */
- (void)gameRequestDialogDidCancel:(WAGameRequestDialog *)gameRequestDialog platform:(NSString *const)platform;
@end
@interface WAGameRequestDialog : NSObject
/*!
 @abstract The receiver's delegate or nil if it doesn't have a delegate.
 */
@property (nonatomic, weak) id<WAGameRequestDialogDelegate> delegate;
/*!
 @abstract The content for game request.
 */
@property (nonatomic, strong) WAGameRequestContent *content;
@end
frameworks/WASdkIntf.framework/Headers/WAGroup.h
New file
@@ -0,0 +1,28 @@
//
//  WAVKCommunity.h
//  WAVkImplUI
//
//  Created by wuyx on 16/7/7.
//  Copyright © 2016年 GHW. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface WAGroup : NSObject
@property(nonatomic,copy)NSString* gid;
@property(nonatomic,copy)NSString* name;
@property(nonatomic,copy)NSString* screen_name;
@property(nonatomic,copy)NSString* type;
@property(nonatomic,copy)NSString* photo;
@property(nonatomic,copy)NSString* photo_medium;
@property(nonatomic,copy)NSString* photo_big;
@property(nonatomic,copy)NSString* desc;
@property(nonatomic,copy)NSString* members_count;
@property(nonatomic,copy)NSString* status;
@property(nonatomic,copy)NSString* schemeUrl;
@property(nonatomic,copy)NSString* pageUrl;
@property(nonatomic)int is_closed;
@property(nonatomic)BOOL is_member;
+(NSArray*)parseWithDict:(NSDictionary*)dict;
+(NSArray*)parseWithArray:(NSArray*)arr;
@end
frameworks/WASdkIntf.framework/Headers/WAHotUpdate.h
New file
@@ -0,0 +1,15 @@
//
//  WAHotUpdate.h
//  WASdkIntfUI
//
//  Created by wuyx on 16/3/2.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "WAHupProxy.h"
@interface WAHotUpdate : NSObject
-(void)checkUpdate:(void(^)(NSError* error,WAUpdateInfo* updateInfo))handler;
-(void)startUpdate:(WAUpdateInfo*)updateInfo handler:(void(^)(NSError* error))handler;
-(WAUpdateInfo*)getPatchInfo;
@end
frameworks/WASdkIntf.framework/Headers/WAHupProxy.h
New file
@@ -0,0 +1,31 @@
//
//  WAHupProxy.h
//  WASdkIntfUI
//
//  Created by wuyx on 16/3/2.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
@class WAUpdateInfo;
/*!
 @discussion WAHupProxy 该类为热更新的代理类。
 - - -
 */
@interface WAHupProxy : NSObject
/*!
 @abstract 检查更新
 @param handler 回调
 */
+(void)checkUpdate:(void(^)(NSError* error,WAUpdateInfo* updateInfo))handler;
/*!
 @abstract 开始更新
 @param handler 回调
 */
+(void)startUpdate:(WAUpdateInfo*)updateInfo handler:(void(^)(NSError* error))handler;
/*!
 @abstract 获取更新包信息
 @return WAUpdateInfo 更新包信息
 */
+(WAUpdateInfo*)getPatchInfo;
@end
frameworks/WASdkIntf.framework/Headers/WAIAppWall.h
New file
@@ -0,0 +1,14 @@
//
//  WAAppWall.h
//  WASdkIntfUI
//
//  Created by wuyx on 16/3/2.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface WAIAppWall : NSObject
-(void)showEntryFlowIcon;
-(void)hideEntryFlowIcon;
@end
frameworks/WASdkIntf.framework/Headers/WAIPay.h
New file
@@ -0,0 +1,22 @@
//
//  WAIPay.h
//  WASdkIntfUI
//
//  Created by GHW-T-01 on 16/3/1.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <StoreKit/StoreKit.h>
@protocol WAInventoryDelegate,WAPaymentDelegate;
@interface WAIPay : NSObject
-(void)init4Iap;
-(void)queryInventory:(id<WAInventoryDelegate>)delegate;
-(void)payWithProductId:(NSString *)productId extInfo:(NSString *)extInfo delegate:(id<WAPaymentDelegate>)delegate;
-(BOOL)isPayServiceAvailable;
-(void)fetchProductInformations:(NSDictionary *)waProductIds;
-(SKProduct*)getCurrentProduct;
-(NSData*)getCurrentReceipt;
-(float)getReorderLimitTime;
@end
frameworks/WASdkIntf.framework/Headers/WAISocial.h
New file
@@ -0,0 +1,38 @@
//
//  WAISocial.h
//  WASdkIntfUI
//
//  Created by GHW-T-01 on 16/3/1.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "WASocialProxy.h"
@protocol WASharingContent;
@interface WAISocial : NSObject
-(void)shareWithContent:(NSObject<WASharingContent>*)shareContent shareWithUI:(BOOL)shareWithUI delegate:(NSObject<WASharingDelegate>*)delegate;
-(void)appInviteWithContent:(WAAppInviteContent*)content delegate:(NSObject<WAAppInviteDialogDelegate>*)delegate;
-(void)queryInvitableFriendsWithDuration:(float)duration completeBlock:(void(^)(NSArray* friends,NSError *error))block;
-(void)gameInviteWithContent:(WAGameRequestContent*)content delegate:(NSObject<WAGameRequestDialogDelegate>*)delegate;
-(void)getCurrentAppLinkedGroupWithExtInfo:(NSString*)extInfo completeBlock:(void(^)(NSArray* groups,NSError* error))block;
-(void)getCurrentUserGroupWithExtInfo:(NSString*)extInfo completeBlock:(void(^)(NSArray* groups,NSError* error))block;
-(void)getGroupWithGroupIds:(NSArray*)groupIds extInfo:(NSString*)extInfo completeBlock:(void(^)(NSArray* groups,NSError* error))block;
-(void)getGroupsWithExtInfo:(NSString*)extInfo completeBlock:(void(^)(NSArray* groups,NSError* error))block;
-(void)joinGroupWithGroupId:(NSString*)groupId extInfo:(NSString*)extInfo completeBlock:(void(^)(NSError* error))block;
-(void)openGroupPageWithGroupUri:(NSString *const)groupUri extInfo:(NSString*)extInfo;
-(void)queryFriendsWithCompleteBlock:(void(^)(NSArray* friends,NSError *error))block;
-(void)queryFBGraphObjectsWithObjectType:(NSString*)objectType completeBlock:(void(^)(NSArray<WAFBObject *>* objects,NSError *error))block;
-(void)fbSendGiftWithContent:(WAGameRequestContent*)content delegate:(NSObject<WAGameRequestDialogDelegate>*)delegate;
-(void)fbAskForGiftWithContent:(WAGameRequestContent*)content delegate:(NSObject<WAGameRequestDialogDelegate>*)delegate;
-(void)fbQueryReceivedGiftsWithCompleteBlock:(void(^)(NSArray<WAFBAppRequest *>* gifts,NSError *error))block;
-(void)fbQueryAskForGiftRequestsWithCompleteBlock:(void(^)(NSArray<WAFBAppRequest *>* requests,NSError *error))block;
-(void)fbDeleteRequestWithRequestId:(NSString*)requestId completeBlock:(void(^)(id result,NSError *error))block;
-(void)sendRequestWithRequestType:(NSString *const)requestType title:(NSString*)title message:(NSString*)message objectId:(NSString*)objectId receiptIds:(NSArray*)receiptIds delegate:(NSObject<WAGameRequestDialogDelegate>*)delegate;
-(void)createInviteInfoWithResults:(NSDictionary*)results handler:(void (^)(NSUInteger code,NSString* msg, NSError* error)) handler;
-(void)inviteInstallRewardWithTokenString:(NSString*)tokenString handler:(void (^)(NSUInteger code,NSString* msg, NSError* error)) handler;
-(void)inviteEventRewardWithEventName:(NSString*)eventName handler:(void (^)(NSUInteger code,NSString* msg, NSError* error)) handler;
-(void)postWithRequestId:(NSString*)requestId andInviteeIds:(NSString*)inviteeIds platform:(NSString *const)platfrom handler:(void (^)(NSUInteger code,NSString* msg, NSError* error)) handler;
-(void)inviteInstallRewardWithTokenString:(NSString *)accessToken platform:(NSString*)platform inviteIds:(NSString*)inviteIds handler:(void (^)(NSUInteger, NSString *, NSError *))handler;
-(void)inviteEventRewardWithPlatform:(NSString *const)platform eventName:(NSString*)eventName handler:(void (^)(NSUInteger code,NSString* msg, NSError* error)) handler;
@end
frameworks/WASdkIntf.framework/Headers/WAITrack.h
New file
@@ -0,0 +1,137 @@
//
//  WAITrack.h
//  WASdkIntfUI
//
//  Created by GHW-T-01 on 16/3/1.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface WAITrack : NSObject
@property(strong,nonatomic)NSMutableDictionary *params;
@property(nonatomic)double value;
@property(copy,nonatomic)NSString* eventName;
-(void)initTracker;
-(void)trackWithEventName:(NSString *const)eventName valueToSum:(double)value params:(NSDictionary*)params;
-(void)autoTriggerAfterPayment:(BOOL)isAuto;
-(BOOL)getAutoTriggerAfterPayment;
-(NSString*)getCollectionInfo;
-(void)eventNameTransfer:(NSString *)eventName;
/**
 *  安装游戏
 */
-(void)launch;
/**
 *  打开游戏
 */
-(void)startUp;
/**
 *  注册账号
 */
-(void)register_;
/**
 *  登录游戏
 */
-(void)login;
/**
 *  点击充值
 */
-(void)initiatedPayment;
/**
 *  充值完成
 */
-(void)payment;
/**
 *  点击购买
 */
-(void)initiatedPurchase;
/**
 *  购买完成
 */
-(void)purchase;
/**
 *  在线时长
 */
-(void)heartbeat;
/**
 *  等级或分数
 */
-(void)levelAchieve;
/**
 *  加入购物车
 */
-(void)addToCart;
/**
 *  兴趣标记/愿望
 */
-(void)addToWishlist;
/**
 *  搜索内容
 */
-(void)search;
/**
 *  使用信用点消费
 */
-(void)spentCredits;
/**
 *  完成解锁事件
 */
-(void)achievementUnlocked;
/**
 *  追踪内容查看事件
 */
-(void)contentView;
/**
 *  分享事件
 */
-(void)share;
/**
 *  邀请事件
 */
-(void)invite;
/**
 *  重新连接到游戏
 */
-(void)reEngage;
/**
 *  更新游戏
 */
-(void)update;
/**
 *  打开推送通知
 */
-(void)openedFromPushNotification;
/**
 *  创建角色
 */
-(void)userCreate;
/**
 *  用户资料更新
 */
-(void)userInfoUpdate;
/**
 *  玩家任务统计
 */
-(void)taskUpdate;
/**
 *  货币状况变更
 */
-(void)goldUpdate;
/**
 * 用户资料初始化
 */
-(void)userInfoInit;
/**
 *  导入用户事件
 */
-(void)userImport;
/**
 *  自定义事件
 */
-(void)custom;
@end
frameworks/WASdkIntf.framework/Headers/WAIUser.h
New file
@@ -0,0 +1,46 @@
//
//  WAIUser.h
//  WASdkIntfUI
//
//  Created by GHW-T-01 on 16/3/1.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "WAUserProxy.h"
@interface WAIUser : NSObject
-(void)setLoginFlowType:(int)flowType;
-(int)getLoginFlowType;
-(WAAppUser*)getAccountInfo;
-(void)loginWithExtInfo:(NSString *)extInfo delegate:(id<WALoginDelegate>)delegate;
-(void)logout;
-(void)bindingAccountWithExtInfo:(NSString*)extInfo delegate:(id<WAAccountBindingDelegate>)delegate;
-(void)bindingAccountWithPlatform:(NSString *const)platform bindingResult:(WABindingResult*)bindingResult extInfo:(NSString *)extInfo  delegate:(id<WAAccountBindingDelegate>)delegate;
-(void)queryBoundAccountWithCompleteBlock:(void(^)(NSError* error,NSArray<WAAccount *>* accounts))block;
-(void)unBindAccountWithPlatform:(NSString *const)platform platformUserId:(NSString *)pUserId completeBlock:(void (^)(NSError *))completeBlock;
-(void)switchAccountWithPlatform:(NSString *const)platform completeBlock:(void (^)(NSError *, WALoginResult *))completeBlock;
-(void)createNewAccountWithCompleteBlock:(void(^)(NSError* error,WALoginResult* result))completeBlock;
-(void)login:(id<WALoginViewDelegate>)delegate cacheEnabled:(BOOL)cacheEnabled;
-(void)hide;
-(void)clearLoginCache;
-(void)openAccountManager:(id<WAAcctManagerDelegate>)delegate;
-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
-(void)applicationDidBecomeActive:(UIApplication *)application;
-(BOOL)application:(UIApplication *)application
           openURL:(NSURL *)url
 sourceApplication:(NSString *)sourceApplication
        annotation:(id)annotation;
-(void)loginWithResult:(WALoginResult*)result delegate:(id<WALoginDelegate>)delegate;
-(void)loginWithResult:(WALoginResult*)result extInfo:(NSString*)extInfo delegate:(id<WALoginDelegate>)delegate;
-(void)setCurrentLoginPlatform:(NSString *const)platform;
-(NSString*)getCurrentLoginPlatform;
-(WALoginResult*)getCurrentLoginResult;
-(void)didUserLogin:(void(^)(NSError* error,BOOL didLogin))block;
@end
frameworks/WASdkIntf.framework/Headers/WAIapProduct.h
New file
@@ -0,0 +1,37 @@
//
//  GHWSdkIapProduct.h
//  GHWSdk
//
//  Created by GHW-T-01 on 15/5/28.
//  Copyright (c) 2015年 Wuyx. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "WAPayChannel.h"
/*!
 @discussion WAIapProduct 商品类
 - - -
 */
@interface WAIapProduct : NSObject
@property(nonatomic, strong) NSString *localizedDescription NS_AVAILABLE_IOS(3_0);
@property(nonatomic, strong) NSString *localizedTitle NS_AVAILABLE_IOS(3_0);
@property(nonatomic, strong) NSDecimalNumber *price NS_AVAILABLE_IOS(3_0);
@property(nonatomic, strong) NSLocale *priceLocale NS_AVAILABLE_IOS(3_0);
@property(nonatomic, strong) NSString *productIdentifier NS_AVAILABLE_IOS(3_0);
// YES if this product has content downloadable using SKDownload
@property(nonatomic) BOOL downloadable NS_AVAILABLE_IOS(6_0);
// Sizes in bytes (NSNumber [long long]) of the downloads available for this product
@property(nonatomic, strong) NSArray<NSNumber *> *downloadContentLengths NS_AVAILABLE_IOS(6_0);
// Version of the downloadable content
@property(nonatomic, strong) NSString *downloadContentVersion NS_AVAILABLE_IOS(6_0);
// payment method
@property(nonatomic, strong) NSArray<WAPayChannel *> *payChannels NS_AVAILABLE_IOS(6_0);
@end
frameworks/WASdkIntf.framework/Headers/WAIapResult.h
New file
@@ -0,0 +1,62 @@
//
//  GhwSdkIapResult.h
//  GHWSdk
//
//  Created by GHW-T-01 on 15/5/25.
//  Copyright (c) 2015年 Wuyx. All rights reserved.
//
#import <Foundation/Foundation.h>
/*!
 @discussion WAIapResult 支付结果类
 - - -
 */
@interface WAIapResult : NSObject
/*!
 @abstract Only set if state is SKPaymentTransactionFailed
 Available downloads (SKDownload) for this transaction
 */
@property(nonatomic) NSArray *downloads;
/*!
 @abstract The date when the transaction was added to the server queue.  Only valid if state is SKPaymentTransactionStatePurchased or SKPaymentTransactionStateRestored.
 */
@property(nonatomic) NSDate *transactionDate;
/*!
 @abstract The unique server-provided identifier.  Only valid if state is SKPaymentTransactionStatePurchased or SKPaymentTransactionStateRestored.
 */
@property(nonatomic) NSString *transactionIdentifier;
/*!
 @abstract Only valid if state is SKPaymentTransactionStatePurchased.
 */
@property(nonatomic) NSData *transactionReceipt;
/*!
 @abstract Identifier agreed upon with the store.  Required.
 */
@property(nonatomic) NSString *productIdentifier;
/*!
 @abstract Payment request data agreed upon with the store.  Optional.
 */
@property(nonatomic) NSData *requestData;
/*!
 @abstract default: 1.  Must be at least 1.
 */
@property(nonatomic) NSInteger quantity;
/*!
 @abstract 基准支付金额
 */
@property(nonatomic) NSString* defaultAmountMicro;
/*!
 @abstract 基准支付币种
 */
@property(nonatomic) NSString* defaultCurrency;
/*!
 @abstract 平台服务器自动生成的订单id
 */
@property(nonatomic) NSString* orderId;
/*!
 @abstract 支付结果
 */
@property(nonatomic) long resultCode;
@end
frameworks/WASdkIntf.framework/Headers/WALoginResult.h
New file
@@ -0,0 +1,53 @@
//
//  GHWLoginResult.h
//  GHWSdk
//
//  Created by wuyx on 15/5/6.
//  Copyright (c) 2015年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
/*!
 @discussion 该类为登录结果
 - - -
 */
@interface WALoginResult : NSObject<NSCoding,NSCopying>
/*!
 @abstract 状态码
 */
@property(copy,nonatomic)NSString *code;
/*!
 @abstract 结果描述
 */
@property(copy,nonatomic)NSString *msg;
/*!
 @abstract 用户Id,(注册)登录成功的时候返回
 */
@property(copy,nonatomic)NSString *userId;
/*!
 @abstract 在线token,(注册)登录成功的时候返回,如果传入的token未过期,直接返回原来的token,否则返回更新后的token
 */
@property(copy,nonatomic)NSString *token;
/*!
 @abstract 用户在第三方平台的Id,GUEST登录时 值与userId一致
 */
@property(copy,nonatomic)NSString *pUserId;
/*!
 @abstract 平台
 */
@property(copy,nonatomic)NSString *platform;
/*!
 @abstract 第三方平台token(当GUEST登录时为空,当Apple登录时,实际上是将extends转化为NSString)
 */
@property(copy,nonatomic)NSString *pToken;
/*!
 @abstract 当APPLE登录时有值,否则为空
 */
@property(strong,nonatomic)NSDictionary *extends;//当APPLE登录时有值,否则为空
/**!
 @abstract 是否绑定手机号
 */
@property BOOL isBindMobile;
-(id)initWithPUserId:(NSString*)userId pToken:(NSString*)token platform:(NSString*)platform;
+(id)loginResultWithPUserId:(NSString*)userId pToken:(NSString*)token platform:(NSString*)platform;
@end
frameworks/WASdkIntf.framework/Headers/WAPayChannel.h
New file
@@ -0,0 +1,20 @@
//
//  WAPayChannel.h
//  WASdkIntfUI
//
//  Created by hank on 16/4/28.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//  支付渠道
#import <Foundation/Foundation.h>
@interface WAPayChannel : NSObject
@property (nonatomic, strong) NSString *channelProductId; // 支付渠道平台产品编号
@property (nonatomic, assign) NSInteger payChannelId;   // 支付方式编号
@property (nonatomic, strong) NSString *payChannelName; // 支付方式名称 如APPLE 、GOOGLE
@property (nonatomic, assign) NSInteger payMethod;      // 支付方式 1 native、2 webview
@property (nonatomic, assign) NSInteger status;         // 状态 -1 关闭 1 打开
@property (nonatomic, strong) NSString *logoUrl;        // 支付方式图标下载地址
@end
frameworks/WASdkIntf.framework/Headers/WAPayProxy.h
New file
@@ -0,0 +1,80 @@
//
//  WAPayProxy.h
//  WASdkIntfUI
//
//  Created by GHW-T-01 on 16/3/1.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "WAIPay.h"
@class WAIapProduct,WAIapResult;
/*!
 @discussion 查询商品库存协议
 - - -
 */
@protocol WAInventoryDelegate <NSObject>
@required
/*!
 @abstract 查询成功
 @param Inventory 是一个数组,保存着WAIapProduct类型的实例
 @param platform 支付平台
 */
-(void)queryInventoryDidCompleteWithResult:(NSArray<WAIapProduct *>*)Inventory;
/*!
 @abstract 查询失败
 @param error 错误
 @param platform 支付平台
 */
-(void)queryInventoryDidFailWithError:(NSError*)error;
@end
/*!
 @discussion 支付协议
 - - -
 */
@protocol WAPaymentDelegate <NSObject>
/*!
 @abstract 支付成功
 @param iapResult 支付结果
 @param platform 支付平台
 */
-(void)paymentDidCompleteWithResult:(WAIapResult*)iapResult andPlatform:(NSString*)platform;
/*!
 @abstract 支付失败
 @param error 错误
 @param platform 支付平台
 */
-(void)paymentDidFailWithError:(NSError*)error andPlatform:(NSString*)platform;
@end
/*!
 @discussion WAPayProxy 是支付模块的代理类。
 - - -
 */
@interface WAPayProxy : NSObject
/*!
 @abstract 应用内支付初始化
 @param platform 支付平台
 */
+(void)init4Iap;
/*!
 @abstract 查询商品列表调用方法
 @param platform 支付平台
 */
+(void)queryInventoryWithDelegate:(id<WAInventoryDelegate>)delegate;
/*!
 @abstract 支付某个商品
 @param productId 商品id
 @param platform 支付平台
 @param extInfo 扩展信息
 */
+(void)payWithProductId:(NSString*)productId extInfo:(NSString*)extInfo delegate:(id<WAPaymentDelegate>)delegate;
/*!
 @abstract 查询是否某个支付平台
 @param platform 支付平台
 @return bool 是否支持某个支付平台
 */
+(BOOL)isPayServiceAvailableWithPlatform:(NSString *const)platform;
@end
frameworks/WASdkIntf.framework/Headers/WASdkIntf.h
New file
@@ -0,0 +1,63 @@
//
//  WASdkIntf.h
//  WASdkIntf
//
//  Created by wuyx on 16/3/2.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <WASdkIntf/WAIAppWall.h>
#import <WASdkIntf/WAApwProxy.h>
#import <WASdkIntf/WAConstants.h>
#import <WASdkIntf/WAComponent.h>
#import <WASdkIntf/WACore.h>
#import <WASdkIntf/WACoreProxy.h>
#import <WASdkIntf/WAHotUpdate.h>
#import <WASdkIntf/WAHupProxy.h>
#import <WASdkIntf/WAUpdateInfo.h>
#import <WASdkIntf/WAIPay.h>
#import <WASdkIntf/WAPayProxy.h>
#import <WASdkIntf/WAIapProduct.h>
#import <WASdkIntf/WAPayChannel.h>
#import <WASdkIntf/WAIapResult.h>
#import <WASdkIntf/WAISocial.h>
#import <WASdkIntf/WAGroup.h>
#import <WASdkIntf/WASocialProxy.h>
#import <WASdkIntf/WAEvent.h>
#import <WASdkIntf/WAITrack.h>
#import <WASdkIntf/WATrackProxy.h>
#import <WASdkIntf/WABindingResult.h>
#import <WASdkIntf/WALoginResult.h>
#import <WASdkIntf/WAIUser.h>
#import <WASdkIntf/WAUserProxy.h>
#import <WASdkIntf/WAAccount.h>
#import <WASdkIntf/WAClassGenerator.h>
#import <WASdkIntf/WAShareVideo.h>
#import <WASdkIntf/WAShareVideoContent.h>
#import <WASdkIntf/WASharePhoto.h>
#import <WASdkIntf/WASharePhotoContent.h>
#import <WASdkIntf/WAShareLinkContent.h>
#import <WASdkIntf/WASharingContent.h>
#import <WASdkIntf/WAAppInviteDialog.h>
#import <WASdkIntf/WAAppInviteContent.h>
#import <WASdkIntf/WAFBAppRequest.h>
#import <WASdkIntf/WAFBObject.h>
#import <WASdkIntf/WAAppUser.h>
#import <WASdkIntf/WAFBApplication.h>
#import <WASdkIntf/WAGameRequestContent.h>
#import <WASdkIntf/WAGameRequestDialog.h>
#import <WASdkIntf/WACode.h>
#import <WASdkIntf/WAError.h>
#import <WASdkIntf/WAErrorCode.h>
#import <WASdkIntf/WASdkIntf.h>
//! Project version number for WASdkIntf.
FOUNDATION_EXPORT double WASdkIntfVersionNumber;
//! Project version string for WASdkIntf.
FOUNDATION_EXPORT const unsigned char WASdkIntfVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <WASdkIntf/PublicHeader.h>
//time:2016/11/29 15:27
frameworks/WASdkIntf.framework/Headers/WAShareLinkContent.h
New file
@@ -0,0 +1,36 @@
//
//  GHWSDKFBShareLinkContent.h
//  GHWSdkUI
//
//  Created by wuyx on 15/6/15.
//  Copyright (c) 2015年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "WASharingContent.h"
/*!
 @discussion WAFBShareLinkContent
 - - -
 */
@interface WAShareLinkContent : NSObject<WASharingContent>
/*!
 @abstract The description of the link.
 @discussion If not specified, this field is automatically populated by information scraped from the contentURL,
 typically the title of the page.  This value may be discarded for specially handled links (ex: iTunes URLs).
 @return The description of the link
 */
@property (nonatomic, copy) NSString *contentDescription;
/*!
 @abstract The title to display for this link.
 @discussion This value may be discarded for specially handled links (ex: iTunes URLs).
 @return The link title
 */
@property (nonatomic, copy) NSString *contentTitle;
/*!
 @abstract The URL of a picture to attach to this content.
 @return The network URL of an image
 */
@property (nonatomic, copy) NSURL *imageURL;
@end
frameworks/WASdkIntf.framework/Headers/WASharePhoto.h
New file
@@ -0,0 +1,41 @@
//
//  WAFBSharePhoto.h
//  WASdkIntfUI
//
//  Created by wuyx on 16/3/15.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
/*!
 @discussion WAFBSharePhoto
 - - -
 */
@interface WASharePhoto : NSObject
/*!
 @abstract If the photo is resident in memory, this method supplies the data.
 @return UIImage representation of the photo
 */
@property (nonatomic, strong) UIImage *image;
/*!
 @abstract The URL to the photo.
 @return URL that points to a network location or the location of the photo on disk
 */
@property (nonatomic, copy) NSURL *imageURL;
/*!
 @abstract Specifies whether the photo represented by the receiver was generated by the user or by the application.
 @return YES if the photo is user-generated, otherwise NO
 */
@property (nonatomic, assign) BOOL userGenerated;
/*!
 @abstract The user generated caption for the photo. Note that the 'caption' must come from
 * the user, as pre-filled content is forbidden by the Platform Policies (2.3).
 @return the Photo's caption if exists else returns null.
 */
@property (nonatomic, copy) NSString *caption;
@end
frameworks/WASdkIntf.framework/Headers/WASharePhotoContent.h
New file
@@ -0,0 +1,21 @@
//
//  WAFBSharePhotoContent.h
//  WASdkIntfUI
//
//  Created by wuyx on 16/3/15.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "WASharingContent.h"
/*!
 @discussion WAFBSharePhotoContent
 - - -
 */
@interface WASharePhotoContent : NSObject<WASharingContent>
/*!
 @abstract Photos to be shared.
 @return Array of the photos (WAFBSharePhoto)
 */
@property (nonatomic, copy) NSArray *photos;
@end
frameworks/WASdkIntf.framework/Headers/WAShareVideo.h
New file
@@ -0,0 +1,20 @@
//
//  WAFBShareVideo.h
//  WASdkIntfUI
//
//  Created by wuyx on 16/3/15.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
/*!
 @discussion WAFBShareVideo
 - - -
 */
@interface WAShareVideo : NSObject
/*!
 @abstract The file URL to the video.
 @return URL that points to the location of the video on disk
 */
@property (nonatomic, copy) NSURL *videoURL;
@end
frameworks/WASdkIntf.framework/Headers/WAShareVideoContent.h
New file
@@ -0,0 +1,29 @@
//
//  WAFBShareVideoContent.h
//  WASdkIntfUI
//
//  Created by wuyx on 16/3/15.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "WASharingContent.h"
#import "WASharePhoto.h"
#import "WAShareVideo.h"
/*!
 @discussion WAFBShareVideoContent
 - - -
 */
@interface WAShareVideoContent : NSObject<WASharingContent>
/*!
 @abstract The photo that represents the video.
 @return The photo
 */
@property (nonatomic, strong) WASharePhoto *previewPhoto;
/*!
 @abstract The video to be shared.
 @return The video
 */
@property (nonatomic, strong) WAShareVideo *video;
@end
frameworks/WASdkIntf.framework/Headers/WASharingContent.h
New file
@@ -0,0 +1,43 @@
//
//  WAFBShareContent.h
//  WASdkIntfUI
//
//  Created by wuyx on 16/3/15.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol WASharingContent
/*!
 @abstract URL for the content being shared.
 @discussion This URL will be checked for all link meta tags for linking in platform specific ways.  See documentation
 for App Links (https://developers.facebook.com/docs/applinks/)
 @return URL representation of the content link
 */
@property (nonatomic, strong) NSURL *contentURL;
/*!
 @abstract List of IDs for taggable people to tag with this content.
 @description See documentation for Taggable Friends
 (https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends)
 @return Array of IDs for people to tag (NSString)
 */
@property (nonatomic, strong) NSArray *peopleIDs;
/*!
 @abstract The ID for a place to tag with this content.
 @return The ID for the place to tag
 */
@property (nonatomic, strong) NSString *placeID;
/*!
 @abstract A value to be added to the referrer URL when a person follows a link from this shared content on feed.
 @return The ref for the content.
 */
@property (nonatomic, strong) NSString *ref;
@end
frameworks/WASdkIntf.framework/Headers/WASocialProxy.h
New file
@@ -0,0 +1,252 @@
//
//  WASocialProxy.h
//  WASdkIntfUI
//
//  Created by GHW-T-01 on 16/3/1.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol WASharingDelegate,WASharingContent,WAAppInviteDialogDelegate,WAGameRequestDialogDelegate;
@class WAAppInviteContent,WAGameRequestContent,WAAppUser,WAFBObject,WAFBAppRequest;
/*!
 @discussion The common interface for components that initiate sharing.
 */
@protocol WASharing <NSObject>
/*!
 @abstract The receiver's delegate or nil if it doesn't have a delegate.
 */
@property (nonatomic, weak) NSObject<WASharingDelegate>* delegate;
/*!
 @abstract The content to be shared.
 */
@property (nonatomic, strong) NSObject<WASharingContent>* shareContent;
/*!
 @abstract A Boolean value that indicates whether the receiver should fail if it finds an error with the share content.
 @discussion If NO, the sharer will still be displayed without the data that was mis-configured.  For example, an
 invalid placeID specified on the shareContent would produce a data error.
 */
@property (nonatomic, assign) BOOL shouldFailOnDataError;
@end
/*!
 @discussion The common interface for dialogs that initiate sharing.
 - - -
 */
@protocol WASharingDialog <WASharing>
/*!
 @abstract A Boolean value that indicates whether the receiver can initiate a share.
 @discussion May return NO if the appropriate Facebook app is not installed and is required or an access token is
 required but not available.  This method does not validate the content on the receiver, so this can be checked before
 building up the content.
 @see [WASharing validateWithError:]
 @result YES if the receiver can share, otherwise NO.
 */
- (BOOL)canShow;
/*!
 @abstract Shows the dialog.
 @result YES if the receiver was able to begin sharing, otherwise NO.
 */
- (BOOL)show;
@end
/*!
 @abstract A delegate for WASharing.
 @discussion The delegate is notified with the results of the sharer as long as the application has permissions to
 receive the information.  For example, if the person is not signed into the containing app, the sharer may not be able
 to distinguish between completion of a share and cancellation.
 */
@protocol WASharingDelegate <NSObject>
/*!
 @abstract Sent to the delegate when the share completes without error or cancellation.
 @param sharer The WASharing that completed.
 @param platform The platform that the sharing from
 @param results The results from the sharer.  This may be nil or empty.
 */
- (void)sharer:(NSObject<WASharing>*)sharer platform:(NSString *const)platform didCompleteWithResults:(NSDictionary *)results;
/*!
 @abstract Sent to the delegate when the sharer encounters an error.
 @param sharer The WASharing that completed.
 @param platform The platform that the sharing from
 @param error The error.
 */
- (void)sharer:(NSObject<WASharing>*)sharer platform:(NSString *const)platform didFailWithError:(NSError *)error;
/*!
 @abstract Sent to the delegate when the sharer is cancelled.
 @param sharer The WASharing that completed.
 @param platform The platform that the sharing from
 */
- (void)sharerDidCancel:(NSObject<WASharing>*)sharer platform:(NSString *const)platform;
@end
/*!
 @discussion WASocialProxy 该类用来做分享、游戏邀请、收发礼物等。
 - - -
 */
@interface WASocialProxy : NSObject
/*!
 #分享调用方法
 */
/*!
 @abstract 分享调用方法
 @param platform 平台
 @param shareContent 分享内容
 @param delegate 委托
 */
+(void)shareWithPlatform:(NSString *const)platform shareContent:(NSObject<WASharingContent>*)shareContent shareWithUI:(BOOL)shareWithUI delegate:(NSObject<WASharingDelegate>*)delegate;
/*!
 @abstract 应用邀请调用方法
 @param content 内容
 @param delegate 委托
 */
+(void)appInviteWithPlatform:(NSString *const)platform Content:(WAAppInviteContent*)content delegate:(NSObject<WAAppInviteDialogDelegate>*)delegate;
/*!
 @abstract Game Service - 获取可邀请好友列表
 @param duration 邀请有效时段,既是邀请好友成功之后,该好友在有效时段之内,不会再出现在可邀请好友列表之中.单位为分钟,不设置默认为0.
 @param platform 平台
 @param block 回调
 */
+(void)queryInvitableFriendsWithDuration:(float)duration platform:(NSString *const)platform completeBlock:(void(^)(NSArray* friends,NSError *error))block;
/*!
 @abstract Game Service - 向好友发送邀请
 @param content 内容
 @param delegate 委托
 */
+(void)gameInviteWithPlatform:(NSString *const)platform Content:(WAGameRequestContent*)content delegate:(NSObject<WAGameRequestDialogDelegate>*)delegate;
/*!
 @abstract Game Service - 查询赠送/索要礼物的好友列表
 @param platform 平台
 @param block 回调
 */
+(void)queryFriendsWithPlatform:(NSString *const)platform completeBlock:(void(^)(NSArray* friends,NSError *error))block ;
/*!
 @abstract 获取当前App所属的group
 @param platform 平台
 @param block 回调
 */
+(void)getCurrentAppLinkedGroupWithPlatfrom:(NSString *const)platform extInfo:(NSString*)extInfo completeBlock:(void(^)(NSArray* groups,NSError* error))block;
/*!
 @abstract 获取当前user所属的group
 @param platform 平台
 @param block 回调
 */
+(void)getCurrentUserGroupWithPlatfrom:(NSString *const)platform extInfo:(NSString*)extInfo completeBlock:(void(^)(NSArray* groups,NSError* error))block;
/*!
 @abstract 根据groupId查询对应的group
 @param platform 平台
 @param groupIds groupId数组
 @param block 回调
 */
+(void)getGroupWithPlatform:(NSString *const)platform groupIds:(NSArray*)groupIds extInfo:(NSString*)extInfo completeBlock:(void(^)(NSArray* groups,NSError* error))block;
/*!
 @abstract 返回当前应用推荐的所有group
 @param platform 平台
 @param extInfo 扩展字段
 @param block 回调
 */
+(void)getGroupsWithPlatform:(NSString *const)platform extInfo:(NSString*)extInfo completeBlock:(void(^)(NSArray* groups,NSError* error))block;
/*!
 @abstract 加入group
 @param platform 平台
 @param groupId group标识
 @param extInfo 扩展信息
 @param block 回调
 */
+(void)joinGroupWithPlatform:(NSString *const)platform groupId:(NSString*)groupId extInfo:(NSString *const)extInfo completeBlock:(void(^)(NSError* error))block;
/*!
 @abstract 打开group
 @param platform 平台
 @param groupUri
 @param extInfo 扩展信息
 @param block 回调
 */
+(void)openGroupPageWithPlatform:(NSString *const)platform groupUri:(NSString *const)groupUri extInfo:(NSString*)extInfo;
/*!
 @abstract Game Service - 查询礼物列表
 @param objectType 内容
 @param block 回调
 */
+(void)queryFBGraphObjectsWithObjectType:(NSString*)objectType completeBlock:(void(^)(NSArray<WAFBObject*>* objects,NSError *error))block;
/*!
 @abstract Game Service - 赠送礼物
 @param content 内容
 @param delegate 委托
 */
+(void)fbSendGiftWithContent:(WAGameRequestContent*)content delegate:(NSObject<WAGameRequestDialogDelegate>*)delegate;
/*!
 @abstract Game Service - 索要礼物
 @param content 内容
 @param delegate 委托
 */
+(void)fbAskForGiftWithContent:(WAGameRequestContent*)content delegate:(NSObject<WAGameRequestDialogDelegate>*)delegate;
/*!
 @abstract Game Service - 查看收到的礼物
 @param block 回调
 */
+(void)fbQueryReceivedGiftsWithCompleteBlock:(void(^)(NSArray<WAFBAppRequest *>* gifts,NSError *error))block;
/*!
 @abstract Game Service - 查看好友向自己索要礼物请求
 @param block 回调
 */
+(void)fbQueryAskForGiftRequestsWithCompleteBlock:(void(^)(NSArray<WAFBAppRequest *>* requests,NSError *error))block;
/*!
 @abstract Game Service - 删除请求
 @param block 回调
 */
+(void)fbDeleteRequestWithRequestId:(NSString*)requestId completeBlock:(void(^)(id result,NSError *error))block;
/*!
 @abstract 此方法用来取代gameInviteWithPlatform,fbSendGiftWithContent,fbAskForGiftWithContent
 @param platform 平台
 @param requestType 请求类型
 @param title 标题
 @param message 信息
 @param objectId
 @param receiptIds 接受者id
 @param delegate 委托
 */
+(void)sendRequestWithPlatform:(NSString *const)platform requestType:(NSString *const)requestType title:(NSString*)title message:(NSString*)message objectId:(NSString*)objectId receiptIds:(NSArray*)receiptIds delegate:(NSObject<WAGameRequestDialogDelegate>*)delegate;
/*!
 @abstract 下面的三个方法是关于奖励机制的,邀请奖励,自定义奖励事件
 @discussion 此方法用来提交Facebook邀请信息
 @param platform 平台
 @param result 这是发完邀请请求成功在WAGameRequestDialogDelegate的方法:[- (void)gameRequestDialog:(WAGameRequestDialog *)gameRequestDialog platform:(NSString *const)platform didCompleteWithResults:(NSDictionary *)results]的results
 @param handler 回调block 当code为200时成功
 */
+(void)createInviteInfoWithPlatform:(NSString *const)platform results:(NSDictionary*)results handler:(void (^)(NSUInteger code,NSString* msg, NSError* error)) handler;
/*!
 @discussion 触发Facebook被邀请人安装应用事件接口。在玩家登录facebook或者用facebook账号绑定的时候可以触发安装事件
  @param platform 平台
 @param tokenString facebook accesstoken
 @param handler 回调block 当code为200时成功
 */
+(void)inviteInstallRewardPlatform:(NSString *const)platform TokenString:(NSString*)tokenString handler:(void (^)(NSUInteger code,NSString* msg, NSError* error)) handler;
/*!
 @discussion 发送Facebook邀请奖励事件统计接口
 @param platform 平台
 @param eventName 奖励事件名称
 @param handler 回调block 当code为200时成功
 */
+(void)inviteEventRewardWithPlatform:(NSString *const)platform eventName:(NSString*)eventName handler:(void (^)(NSUInteger code,NSString* msg, NSError* error)) handler;
@end
frameworks/WASdkIntf.framework/Headers/WATrackProxy.h
New file
@@ -0,0 +1,210 @@
//
//  WATrackProxy.h
//  WASdkIntfUI
//
//  Created by WA-T-01 on 16/3/1.
//  Copyright © 2016年 WA-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
//数据类型
typedef enum WAParameterType{
    WAParameterTypeString,
    WAParameterTypeInt,
    WAParameterTypeDouble,
    WAParameterTypeBool,
    WAParameterTypeEnumThree,
    WAParameterTypeData
}WAParameterType;
//支付类型
typedef enum WAEnumPaymentType{
    WAEnumPaymentTypeGoogle,
    WAEnumPaymentTypeApple,
    WAEnumPaymentTypeFree
}WAEnumPaymentType;
//性别
typedef enum WAEnumGender{
    WAEnumGenderFemale,
    WAEnumGenderMale,
    WAEnumGenderUnknown
}WAEnumGender;
//levelType
typedef enum WALevelType{
    // Highest level reached
    WALevelTypeHighestLevelReached  = 1,
    // Current area level reached
    WALevelTypeCurrentArea  = 2,
    // Current character level reached
    WALevelTypeCharacterLevel  = 3,
    // Other sequential level reached
    WALevelTypeOtherSequential   = 4,
    // Current non sequential level reached
    WALevelTypeOtherNonsequential = 5
} WALevelType;
extern NSString* WAEventParameterNameCustomMethodPrefix;//自定义事件名称前缀
extern NSString *const WAEventLaunch;
extern NSString *const WAEventStartUp;
extern NSString *const WAEventCompleteRegistration;
extern NSString *const WAEventLogin;
extern NSString *const WAEventInitiatedPayment;
extern NSString *const WAEventPayment;
extern NSString *const WAEventInitiatedPurchase;
extern NSString *const WAEventPurchase;
extern NSString *const WAEventHeartBeat;
extern NSString *const WAEventLevelAchieved;
extern NSString *const WAEventAddToCart;
extern NSString *const WAEventAddToWishlist;
extern NSString *const WAEventSearch;
extern NSString *const WAEventSpentCredits;
extern NSString *const WAEventAchievementUnlocked;
extern NSString *const WAEventContentView;
extern NSString *const WAEventShare;
extern NSString *const WAEventInvite;
extern NSString *const WAEventReEngage;
extern NSString *const WAEventUpdate;
extern NSString *const WAEventOpenedFromPushNotification;
extern NSString *const WAEventUserInfoUpdate;
extern NSString *const WAEventUserCreate;
extern NSString *const WAEventTaskUpdate;
extern NSString *const WAEventGoldUpdate;
extern NSString *const WAEventUserImport;
extern NSString *const WAEventParameterNameRegistrationMethod;
extern NSString *const WAEventParameterNameCurrencyType;
extern NSString *const WAEventParameterNamePrice;
extern NSString *const WAEventParameterNameContentType;
extern NSString *const WAEventParameterNameContentID;
extern NSString *const WAEventParameterNameQuantity;
extern NSString *const WAEventParameterNameSearchString;
extern NSString *const WAEventParameterNameSuccess ;
extern NSString *const WAEventParameterNameMaxRatingValue;
extern NSString *const WAEventParameterNamePaymentInfoAvailable;
extern NSString *const WAEventParameterNameItemAmount;
extern NSString *const WAEventParameterNameItemName;//道具名称
extern NSString *const WAEventParameterNameItemId;
extern NSString *const WAEventParameterNameLevel ;
extern NSString *const WAEventParameterNameLevelInfo;
extern NSString *const WAEventParameterNameLevelType;
extern NSString *const WAEventParameterNameScore;
extern NSString *const WAEventParameterNameDescription ;
extern NSString *const WAEventParameterNameGender;
extern NSString *const WAEventParameterNameAge;
extern NSString *const WAEventParameterNameAccountType;
extern NSString *const WAEventParameterNameDeviceId;
extern NSString *const WAEventParameterNameIDFA;
extern NSString *const WAEventParameterNameServerId;
extern NSString *const WAEventParameterNameStartTime;
extern NSString *const WAEventParameterNameNowTime;
extern NSString *const WAEventParameterNameTransactionId;
extern NSString *const WAEventParameterNamePaymentType;
extern NSString *const WAEventParameterNameCurrencyAmount;
extern NSString *const WAEventParameterNameVirtualCoinAmount;
extern NSString *const WAEventParameterNameVirtualCurrency;
extern NSString *const WAEventParameterNameIAPName;
extern NSString *const WAEventParameterNamePaymentType;
extern NSString *const WAEventParameterNameIAPAmount;
extern NSString *const WAEventParameterNameIAPId;
extern NSString *const WAEventParameterNameReceipt;
extern NSString *const WAEventParameterNameProductIdentifier;
extern NSString *const WAEventParameterNameIsFirstEnter;
extern NSString *const WAEventParameterNameTZ;//时区
extern NSString *const WAEventParameterNameDevice;//设备
extern NSString *const WAEventParameterNameProduct;//设备产品
extern NSString *const WAEventParameterNameModel;//设备版本
extern NSString *const WAEventParameterNameDeviceType;//类型
extern NSString *const WAEventParameterNameDeviceBrand;//品牌
extern NSString *const WAEventParameterNameOP;//运营商
extern NSString *const WAEventParameterNameNetwork;//网络制式
extern NSString *const WAEventParameterNameOS;//系统
extern NSString *const WAEventParameterNameResolution;//分辨率
extern NSString *const WAEventParameterNameOsign;
//创建角色
extern NSString *const WAEventParameterNameRegisterTime;//注册时间
//玩家任务统计
extern NSString *const WAEventParameterNameTaskId;//任务id
extern NSString *const WAEventParameterNameTaskName;//任务名称
extern NSString *const WAEventParameterNameTaskType;//任务类型
extern NSString *const WAEventParameterNameTaskStatus;//任务状态
//用户资料更新
extern NSString *const WAEventParameterNameNickName;//角色名称
extern NSString *const WAEventParameterNameVip;//vip等级
extern NSString *const WAEventParameterNameStatus;//状态
extern NSString *const WAEventParameterNameGameUserId;//游戏角色Id
extern NSString *const WAEventParameterNameBindGameGold;//绑定钻石
extern NSString *const WAEventParameterNameGameGold;//用户钻石数
extern NSString *const WAEventParameterNameFighting;//战斗力
extern NSString *const WAEventParameterNameRoleType;
//货币状况变更
extern NSString *const WAEventParameterNameGoldType;//货币类型
extern NSString *const WAEventParameterNameApproach;//变更途径
extern NSString *const WAEventParameterNameCurrentAmount;//当前货币数量
extern NSString *const WAEventParameterNameAmount;//变更货币数
//支付类型
extern NSString *const WAValueForPaymentTypeApple;
extern NSString *const WAValueForPaymentTypeGoogle;
extern NSString *const WAValueForPaymentTypeFree;
/*!
 @discussion WATrackProxy 该类用来做数据收集
 - - -
 */
@interface WATrackProxy : NSObject
/*!
 @discussion 该方法用来发送数据到各个渠道
 @param eventName 事件名称
 @param value 累加值
 @param params 参数
 */
+(void)trackWithEventName:(NSString *const)eventName valueToSum:(double)value params:(NSDictionary*)params;
/*!
 @discussion 该方法用来发送数据到指定渠道
 @param eventName 事件名称
 @param value 累加值
 @param params 参数
 @param platform 渠道
 */
+(void)trackWithEventName:(NSString *const)eventName valueToSum:(double)value params:(NSDictionary*)params platform:(NSString *const)platform;
/*!
 @abstract 获取collectionInfo
 */
+(NSString*)getCollectionInfo;
/*!
 @discussion 设置点击充值事件(WAEventInitiatedPayment)和充值完成事件(WAEventPayment)是否自动统计,默认为自动统计
 @param isAuto 是否自动统计事件
 */
+(void)autoTriggerAfterPayment:(BOOL)isAuto;
+(BOOL)getAutoTriggerAfterPayment;
+(void)checkParams:(NSDictionary*)params eventName:(NSString*)eventName;
@end
frameworks/WASdkIntf.framework/Headers/WAUpdateInfo.h
New file
@@ -0,0 +1,26 @@
//
//  GHWSDKPatchInfo.h
//  GHWSdkUI
//
//  Created by wuyx on 15/10/21.
//  Copyright © 2015年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
/*!
 @discussion WAUpdateInfo 更新包信息。
 - - -
 */
@interface WAUpdateInfo : NSObject<NSCoding,NSCopying>
@property(nonatomic)int code;
@property(nonatomic,copy)NSString* msg;
@property(nonatomic)Boolean upgrated;
@property(nonatomic)int patchId;
@property(nonatomic)int patchVersion;
@property(nonatomic,copy)NSString* patchEncrypt;
@property(nonatomic,copy)NSString* moduleId;
@property(nonatomic)Boolean isMandatory;
@property(nonatomic,strong)NSString* downloadUrl;
@property(nonatomic,copy)NSString* osign;
+(WAUpdateInfo*)parserWithDict:(NSDictionary*)dict;
@end
frameworks/WASdkIntf.framework/Headers/WAUserProxy.h
New file
@@ -0,0 +1,255 @@
//
//  WAUserProxy.h
//  WASdkIntfUI
//
//  Created by GHW-T-01 on 16/3/1.
//  Copyright © 2016年 GHW-T-01. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "WALoginResult.h"
#import "WABindingResult.h"
#import "WAAccount.h"
#import "WAAppUser.h"
/*!
 @discussion 登录协议
 - - -
 */
@protocol WALoginDelegate <NSObject>
@required
/*!
 @abstract 登录成功
 @param results 登录结果
 */
-(void)loginDidCompleteWithResults:(WALoginResult*)result;
/*!
 @abstract 登录失败
 @param result 登录的用户信息 注:这不是登录结果,由于登录失败所以userId是空的.但如果第三方平台(Facebook,Apple)授权成功,pUserId,pToken,extends不为空,可用于提示用户.
 @param error 错误
 */
-(void)loginDidFailWithError:(NSError*)error andResult:(WALoginResult*)result;
@optional
/*!
 @abstract 用户取消登录
 @param result 登录的账户信息 (注:返回的result只有platform有值)
 */
-(void)loginDidCancel:(WALoginResult*)result;
@end
/*!
 @discussion 账户绑定协议
 - - -
 */
@protocol WAAccountBindingDelegate <NSObject>
@required
/*!
 @abstract 绑定成功
 @param result 绑定的账户信息
 */
-(void)bindingDidCompleteWithResult:(WABindingResult*)result;
/*!
 @abstract 绑定失败
 @param result 绑定的账户信息
 @param error 错误
 */
-(void)bindingDidFailWithError:(NSError*)error andResult:(WABindingResult*)result;
@optional
/*!
 @abstract 绑定取消
 @param result 绑定的账户信息(注:返回的result只有platform有值)
 */
-(void)bindingDidCancel:(WABindingResult*)result;
@end
/*!
 @discussion 登录界面协议
 - - -
 */
@protocol WALoginViewDelegate <NSObject>
@required
/*!
 @abstract 登录成功
 @param result 登录的用户信息
 */
-(void)loginViewDidCompleteWithResult:(WALoginResult*)result;
/*!
 @abstract 登录失败
 @param result 登录的用户信息 注:这不是登录结果,由于登录失败所以userId是空的.但如果第三方平台(Facebook,Apple)授权成功,pUserId,pToken,extends不为空,可用于提示用户.
 @param error 错误
 */
-(void)loginViewDidFailWithError:(NSError*)error andResult:(WALoginResult*)result;
@optional
/*!
 @abstract 用户取消登录
 @param result 登录的用户信息(只有platform非空).
 */
-(void)loginViewDidCancel:(WALoginResult*)result;
@end
/*!
 @discussion 账号管理界面协议
 - - -
 */
@protocol WAAcctManagerDelegate <NSObject>
@required
/*!
 @abstract 新建账户回调接口
 @param result 新建账户的账户信息
 */
-(void)newAcctDidCompleteWithResult:(WALoginResult*)result;
/*!
 @abstract 切换账户回调接口
 @param result 切换账户的账户信息
 */
-(void)switchAcctDidCompleteWithResult:(WALoginResult*)result;
@end
/*!
 @discussion WAUserProxy 是用户模块的代理类。功能包括设置登录流程、登录、登出、绑定、解绑、查询当前用户绑定的第三方平台账户列表、切换账号、创建账号等等。
 - - -
 */
@interface WAUserProxy : NSObject
/*!
 @discussion 设置登录流程
 @param flowType 常量WA_LOGIN_FLOW_TYPE_DEFAULT是默认模式,表示切换新账户的时候不进行设备绑定操作,下次调用匿名登录还是登录之前的账户。常量WA_LOGIN_FLOW_TYPE_REBIND切换新账户的时候将当前设备的clientId绑定到新账户中,下一次匿名登录的时候将会登录到新账户。
 */
+(void)setLoginFlowType:(int)flowType;
/*!
 @discussion 获取登录流程
 */
+(int)getLoginFlowType;
/*!
 @discussion 登录接口
 @param platform 登录平台:目前的登录平台有Facebook,Apple,GUEST,对应的常量分别是WA_PLATFORM_FACEBOOK,WA_PLATFORM_APPLE,WA_PLATFORM_WINGA。
 @param extInfo 扩展信息
 @param delegate 委托
 */
+(void)loginWithPlatform:(NSString *const)platform extInfo:(NSString*)extInfo delegate:(id<WALoginDelegate>)delegate;
/*!
 @discussion 登出接口
 */
+(void)logout;
/*!
 @discussion 绑定账户接口
 @param platform 绑定平台:目前有Facebook,Apple,对应的常量分别为WA_PLATFORM_FACEBOOK,WA_PLATFORM_APPLE
 @param extInfo 扩展信息
 @param delegate 委托
 */
+(void)bindingAccountWithPlatform:(NSString *const)platform extInfo:(NSString*)extInfo delegate:(id<WAAccountBindingDelegate>)delegate;
/*!
 @discussion 查询绑定的第三方平台账户列表
 @param block 回调
 @error 错误
 @accounts 数组accounts存放着WAAccount类型的对象.
 */
+(void)queryBoundAccountWithCompleteBlock:(void(^)(NSError* error,NSArray<WAAccount *>* accounts))block;
/*!
 @discussion 解绑账号接口
 @param platform 解绑平台(WAAccount中的platform)
 @param pUserId 第三方平台用户id(WAAccount中的pUserId)
 */
+(void)unBindAccountWithPlatform:(NSString *const)platform platformUserId:(NSString*)pUserId completeBlock:(void(^)(NSError* error))completeBlock;
/*!
 @discussion 切换账号接口
 @param platform 切换平台
 @param error 错误
 @param result 登录结果
 */
+(void)switchAccountWithPlatform:(NSString *const)platform completeBlock:(void(^)(NSError* error,WALoginResult* result))completeBlock;
/*!
 @discussion 创建账号接口
 @param error 错误
 @param result 创建结果
 */
+(void)createNewAccountWithCompleteBlock:(void(^)(NSError* error,WALoginResult* result))completeBlock;
/*!
 @abstract 调用此方法打开登录界面
 @param delegate 委托
 @param cacheEnabled 是否缓存登录方式 当该参数为YES,默认以上次登录方式登录,不会弹出登录选择框。
 */
+(void)login:(id<WALoginViewDelegate>)delegate cacheEnabled:(BOOL)cacheEnabled;
/*!
 @abstract 调用此方法隐藏登录界面
 */
+(void)hide;
/*!
 @abstract 清除登录方式的缓存 清除缓存之后会再次弹出登录选择框
 */
+(void)clearLoginCache;
/*!
 @abstract 调用此方法打开账户管理界面
 @param delegate 委托
 */
+(void)openAccountManager:(id<WAAcctManagerDelegate>)delegate;
/*!
 @abstract 获取账户信息
 @param platform 平台
 */
+(WAAppUser*)getAccountInfoWithPlatform:(NSString *const)platform;
//+(NSString*)transferWithPlatform:(NSString *const)platform;
/*!
 @discussion 处理UIApplicationDelegate的方法[-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions]传递过来的参数。
 */
+ (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
/*!
 @discussion 处理UIApplicationDelegate的方法[+ (void)applicationDidBecomeActive:(UIApplication *)application]传递过来的参数。
 */
+ (void)applicationDidBecomeActive:(UIApplication *)application;
/*!
 @discussion 处理UIApplicationDelegate的方法[-(BOOL)application:(UIApplication *)application
 openURL:(NSURL *)url
 sourceApplication:(NSString *)sourceApplication
 annotation:(id)annotation]传递过来的参数。
 */
+(BOOL)application:(UIApplication *)application
           openURL:(NSURL *)url
 sourceApplication:(NSString *)sourceApplication
        annotation:(id)annotation;
/*!
 @discussion (tip:CP无需关注)此方法为成功登录第三方平台之后调用。根据第三方平台的pUserId,pToken,platform构建一个WALoginResult实例作为参数调用此方法。此方法将会调用WindAnalytics的登录接口。
 @param result 登录结果
 @param delegate 委托
 */
+(void)loginWithResult:(WALoginResult*)result delegate:(id<WALoginDelegate>)delegate;
+(void)loginWithResult:(WALoginResult*)result extInfo:(NSString*)extInfo delegate:(id<WALoginDelegate>)delegate;
/*!
 @discussion (tip:CP无需关注)设置当前的登录平台
 */
+(void)setCurrentLoginPlatform:(NSString *const)platform;
/*!
 @discussion (tip:CP无需关注)获取当前的登录平台
 */
+(NSString*)getCurrentLoginPlatform;
/*!
 @discussion (tip:CP无需关注)获取当前的登录结果
 */
+(WALoginResult*)getCurrentLoginResult;
/*!
 @discussion (tip:CP无需关注)获取用户模块组件
 */
+(NSArray*)getUserComponents;
@end
frameworks/WASdkIntf.framework/Info.plist
Binary files differ
frameworks/WASdkIntf.framework/Modules/module.modulemap
New file
@@ -0,0 +1,6 @@
framework module WASdkIntf {
  umbrella header "WASdkIntf.h"
  export *
  module * { export * }
}
frameworks/WASdkIntf.framework/WASdkIntf
Binary files differ
frameworks/WASdkIntf.framework/_CodeSignature/CodeDirectory
Binary files differ
frameworks/WASdkIntf.framework/_CodeSignature/CodeRequirements
Binary files differ
frameworks/WASdkIntf.framework/_CodeSignature/CodeResources
New file
@@ -0,0 +1,471 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>files</key>
    <dict>
        <key>Headers/WAAccount.h</key>
        <data>
        mPLGfDWmeBVPhSO3IfKMujJdbwk=
        </data>
        <key>Headers/WAAppInviteContent.h</key>
        <data>
        5QV/wDPZDQr+xzY+qjR1sy6Z9UE=
        </data>
        <key>Headers/WAAppInviteDialog.h</key>
        <data>
        bLlAAObn6loWAX8H/aXoWqAE0As=
        </data>
        <key>Headers/WAAppUser.h</key>
        <data>
        42Pmb2oFpRbkKHLvFpfJtNRg2us=
        </data>
        <key>Headers/WAApwProxy.h</key>
        <data>
        tOCJygnwEeUMaghcl8V/L3C7dpw=
        </data>
        <key>Headers/WABindingResult.h</key>
        <data>
        Jp82QhtdBBtwxsZUCeQYkntNLGo=
        </data>
        <key>Headers/WAClassGenerator.h</key>
        <data>
        XlfLFA3Q2o5w/+mSnUpy9pnmHbI=
        </data>
        <key>Headers/WACode.h</key>
        <data>
        UlLyj++V9sgqf4tCW/4V9WIctjs=
        </data>
        <key>Headers/WAComponent.h</key>
        <data>
        luonnU8Q1XZNDB1A4lLup24ob7o=
        </data>
        <key>Headers/WAConstants.h</key>
        <data>
        WDmenmv/VRToA416MNUaG152NCE=
        </data>
        <key>Headers/WACore.h</key>
        <data>
        cQy6cSvYVBa2gRGQDboqK1+9B5I=
        </data>
        <key>Headers/WACoreProxy.h</key>
        <data>
        WLCmt9dT8cZqb61Iqhy/MMORnfI=
        </data>
        <key>Headers/WAError.h</key>
        <data>
        q/8AzQKs007znBipUxijZTCyKBw=
        </data>
        <key>Headers/WAErrorCode.h</key>
        <data>
        BWMUY8lvwWLezGppa0Jybhcks/E=
        </data>
        <key>Headers/WAEvent.h</key>
        <data>
        tghaYCX+ot/mxteHkW/fF+HIu30=
        </data>
        <key>Headers/WAFBAppRequest.h</key>
        <data>
        aCoCODrmoMEINUqytRhrxS77jQY=
        </data>
        <key>Headers/WAFBApplication.h</key>
        <data>
        JQB9dTvONPXpkPdpha2ZSc2Fzq8=
        </data>
        <key>Headers/WAFBObject.h</key>
        <data>
        mGJd0WBhCoGPXyXJihAAqH5U7OY=
        </data>
        <key>Headers/WAGameRequestContent.h</key>
        <data>
        2qttZ/ixigWUFFHC6GVd8Lg050g=
        </data>
        <key>Headers/WAGameRequestDialog.h</key>
        <data>
        /Hi2uJ2K1zutcX38spbEXEtKdqo=
        </data>
        <key>Headers/WAGroup.h</key>
        <data>
        95Ook+32C0ANb+fcnHV3kPx0f5E=
        </data>
        <key>Headers/WAHotUpdate.h</key>
        <data>
        Qz7AV+xZ2ALKCTgT0LwcA3Qk3zk=
        </data>
        <key>Headers/WAHupProxy.h</key>
        <data>
        Pf4DNml5wZ0d42R4tr0cUQ0GrE8=
        </data>
        <key>Headers/WAIAppWall.h</key>
        <data>
        RsOfbNQyPjHI05/SNdYH85dI1CI=
        </data>
        <key>Headers/WAIPay.h</key>
        <data>
        wsDnBWW+UeaZSmMNp+VnZL4DPRo=
        </data>
        <key>Headers/WAISocial.h</key>
        <data>
        9CXo9+tTiap++1MNxkwVlG+WJ7I=
        </data>
        <key>Headers/WAITrack.h</key>
        <data>
        8X+ypjtELiRZcowbwt7V8ME1wxc=
        </data>
        <key>Headers/WAIUser.h</key>
        <data>
        F0snTUA6UbV37Tj4FMgW4Unv/Ok=
        </data>
        <key>Headers/WAIapProduct.h</key>
        <data>
        2Jnwjw1wlNRqsF6EQfd0YXO3gpE=
        </data>
        <key>Headers/WAIapResult.h</key>
        <data>
        sm4Snt9M+DGxSJY771vq0HUFUGI=
        </data>
        <key>Headers/WALoginResult.h</key>
        <data>
        wV3Olv9z3tBJntMHqGU3PMljKDI=
        </data>
        <key>Headers/WAPayChannel.h</key>
        <data>
        GGmMq0N+Ph/nQo87qL7GojBVKXk=
        </data>
        <key>Headers/WAPayProxy.h</key>
        <data>
        JemYp6qebO6rgl/7hRXY19VoMOA=
        </data>
        <key>Headers/WASdkIntf.h</key>
        <data>
        1ZEfn0T8R1Wc8cqfsXb4AeUtcq4=
        </data>
        <key>Headers/WAShareLinkContent.h</key>
        <data>
        l59sg1+q2rPnK/Hr5meS5Bo1puk=
        </data>
        <key>Headers/WASharePhoto.h</key>
        <data>
        qSgciuFTEQtMrzm0prZ+US4m+Yg=
        </data>
        <key>Headers/WASharePhotoContent.h</key>
        <data>
        bqs0RLnKlGQ3oxrMFQs+eadfe04=
        </data>
        <key>Headers/WAShareVideo.h</key>
        <data>
        YEt6+RQ6Ejl33Xm6blHLKtNduEQ=
        </data>
        <key>Headers/WAShareVideoContent.h</key>
        <data>
        Tm8bYgHtHJUWtPEtncfr0LtB9FI=
        </data>
        <key>Headers/WASharingContent.h</key>
        <data>
        qwO2A5KZi82gSVXSjkcVfusQSBg=
        </data>
        <key>Headers/WASocialProxy.h</key>
        <data>
        QWW2cXdMoIDLsRiLlFQta9xt5ao=
        </data>
        <key>Headers/WATrackProxy.h</key>
        <data>
        SvxICa/fvJ4i530LvzzYiekAvUc=
        </data>
        <key>Headers/WAUpdateInfo.h</key>
        <data>
        OZKNhkhoWzJ+BzXAwJ/9RN4w+lM=
        </data>
        <key>Headers/WAUserProxy.h</key>
        <data>
        J5Rjvsvb4FPqX3yd2ATbxNy6axo=
        </data>
        <key>Info.plist</key>
        <data>
        fqkISPnKl8FGxvvpKgABp+0UNnc=
        </data>
        <key>Modules/module.modulemap</key>
        <data>
        degAbkU8ZlFlBfMfAbcnbZ0a88M=
        </data>
    </dict>
    <key>files2</key>
    <dict>
        <key>Headers/WAAccount.h</key>
        <data>
        mPLGfDWmeBVPhSO3IfKMujJdbwk=
        </data>
        <key>Headers/WAAppInviteContent.h</key>
        <data>
        5QV/wDPZDQr+xzY+qjR1sy6Z9UE=
        </data>
        <key>Headers/WAAppInviteDialog.h</key>
        <data>
        bLlAAObn6loWAX8H/aXoWqAE0As=
        </data>
        <key>Headers/WAAppUser.h</key>
        <data>
        42Pmb2oFpRbkKHLvFpfJtNRg2us=
        </data>
        <key>Headers/WAApwProxy.h</key>
        <data>
        tOCJygnwEeUMaghcl8V/L3C7dpw=
        </data>
        <key>Headers/WABindingResult.h</key>
        <data>
        Jp82QhtdBBtwxsZUCeQYkntNLGo=
        </data>
        <key>Headers/WAClassGenerator.h</key>
        <data>
        XlfLFA3Q2o5w/+mSnUpy9pnmHbI=
        </data>
        <key>Headers/WACode.h</key>
        <data>
        UlLyj++V9sgqf4tCW/4V9WIctjs=
        </data>
        <key>Headers/WAComponent.h</key>
        <data>
        luonnU8Q1XZNDB1A4lLup24ob7o=
        </data>
        <key>Headers/WAConstants.h</key>
        <data>
        WDmenmv/VRToA416MNUaG152NCE=
        </data>
        <key>Headers/WACore.h</key>
        <data>
        cQy6cSvYVBa2gRGQDboqK1+9B5I=
        </data>
        <key>Headers/WACoreProxy.h</key>
        <data>
        WLCmt9dT8cZqb61Iqhy/MMORnfI=
        </data>
        <key>Headers/WAError.h</key>
        <data>
        q/8AzQKs007znBipUxijZTCyKBw=
        </data>
        <key>Headers/WAErrorCode.h</key>
        <data>
        BWMUY8lvwWLezGppa0Jybhcks/E=
        </data>
        <key>Headers/WAEvent.h</key>
        <data>
        tghaYCX+ot/mxteHkW/fF+HIu30=
        </data>
        <key>Headers/WAFBAppRequest.h</key>
        <data>
        aCoCODrmoMEINUqytRhrxS77jQY=
        </data>
        <key>Headers/WAFBApplication.h</key>
        <data>
        JQB9dTvONPXpkPdpha2ZSc2Fzq8=
        </data>
        <key>Headers/WAFBObject.h</key>
        <data>
        mGJd0WBhCoGPXyXJihAAqH5U7OY=
        </data>
        <key>Headers/WAGameRequestContent.h</key>
        <data>
        2qttZ/ixigWUFFHC6GVd8Lg050g=
        </data>
        <key>Headers/WAGameRequestDialog.h</key>
        <data>
        /Hi2uJ2K1zutcX38spbEXEtKdqo=
        </data>
        <key>Headers/WAGroup.h</key>
        <data>
        95Ook+32C0ANb+fcnHV3kPx0f5E=
        </data>
        <key>Headers/WAHotUpdate.h</key>
        <data>
        Qz7AV+xZ2ALKCTgT0LwcA3Qk3zk=
        </data>
        <key>Headers/WAHupProxy.h</key>
        <data>
        Pf4DNml5wZ0d42R4tr0cUQ0GrE8=
        </data>
        <key>Headers/WAIAppWall.h</key>
        <data>
        RsOfbNQyPjHI05/SNdYH85dI1CI=
        </data>
        <key>Headers/WAIPay.h</key>
        <data>
        wsDnBWW+UeaZSmMNp+VnZL4DPRo=
        </data>
        <key>Headers/WAISocial.h</key>
        <data>
        9CXo9+tTiap++1MNxkwVlG+WJ7I=
        </data>
        <key>Headers/WAITrack.h</key>
        <data>
        8X+ypjtELiRZcowbwt7V8ME1wxc=
        </data>
        <key>Headers/WAIUser.h</key>
        <data>
        F0snTUA6UbV37Tj4FMgW4Unv/Ok=
        </data>
        <key>Headers/WAIapProduct.h</key>
        <data>
        2Jnwjw1wlNRqsF6EQfd0YXO3gpE=
        </data>
        <key>Headers/WAIapResult.h</key>
        <data>
        sm4Snt9M+DGxSJY771vq0HUFUGI=
        </data>
        <key>Headers/WALoginResult.h</key>
        <data>
        wV3Olv9z3tBJntMHqGU3PMljKDI=
        </data>
        <key>Headers/WAPayChannel.h</key>
        <data>
        GGmMq0N+Ph/nQo87qL7GojBVKXk=
        </data>
        <key>Headers/WAPayProxy.h</key>
        <data>
        JemYp6qebO6rgl/7hRXY19VoMOA=
        </data>
        <key>Headers/WASdkIntf.h</key>
        <data>
        1ZEfn0T8R1Wc8cqfsXb4AeUtcq4=
        </data>
        <key>Headers/WAShareLinkContent.h</key>
        <data>
        l59sg1+q2rPnK/Hr5meS5Bo1puk=
        </data>
        <key>Headers/WASharePhoto.h</key>
        <data>
        qSgciuFTEQtMrzm0prZ+US4m+Yg=
        </data>
        <key>Headers/WASharePhotoContent.h</key>
        <data>
        bqs0RLnKlGQ3oxrMFQs+eadfe04=
        </data>
        <key>Headers/WAShareVideo.h</key>
        <data>
        YEt6+RQ6Ejl33Xm6blHLKtNduEQ=
        </data>
        <key>Headers/WAShareVideoContent.h</key>
        <data>
        Tm8bYgHtHJUWtPEtncfr0LtB9FI=
        </data>
        <key>Headers/WASharingContent.h</key>
        <data>
        qwO2A5KZi82gSVXSjkcVfusQSBg=
        </data>
        <key>Headers/WASocialProxy.h</key>
        <data>
        QWW2cXdMoIDLsRiLlFQta9xt5ao=
        </data>
        <key>Headers/WATrackProxy.h</key>
        <data>
        SvxICa/fvJ4i530LvzzYiekAvUc=
        </data>
        <key>Headers/WAUpdateInfo.h</key>
        <data>
        OZKNhkhoWzJ+BzXAwJ/9RN4w+lM=
        </data>
        <key>Headers/WAUserProxy.h</key>
        <data>
        J5Rjvsvb4FPqX3yd2ATbxNy6axo=
        </data>
        <key>Modules/module.modulemap</key>
        <data>
        degAbkU8ZlFlBfMfAbcnbZ0a88M=
        </data>
    </dict>
    <key>rules</key>
    <dict>
        <key>^</key>
        <true/>
        <key>^.*\.lproj/</key>
        <dict>
            <key>optional</key>
            <true/>
            <key>weight</key>
            <real>1000</real>
        </dict>
        <key>^.*\.lproj/locversion.plist$</key>
        <dict>
            <key>omit</key>
            <true/>
            <key>weight</key>
            <real>1100</real>
        </dict>
        <key>^version.plist$</key>
        <true/>
    </dict>
    <key>rules2</key>
    <dict>
        <key>.*\.dSYM($|/)</key>
        <dict>
            <key>weight</key>
            <real>11</real>
        </dict>
        <key>^</key>
        <dict>
            <key>weight</key>
            <real>20</real>
        </dict>
        <key>^(.*/)?\.DS_Store$</key>
        <dict>
            <key>omit</key>
            <true/>
            <key>weight</key>
            <real>2000</real>
        </dict>
        <key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
        <dict>
            <key>nested</key>
            <true/>
            <key>weight</key>
            <real>10</real>
        </dict>
        <key>^.*</key>
        <true/>
        <key>^.*\.lproj/</key>
        <dict>
            <key>optional</key>
            <true/>
            <key>weight</key>
            <real>1000</real>
        </dict>
        <key>^.*\.lproj/locversion.plist$</key>
        <dict>
            <key>omit</key>
            <true/>
            <key>weight</key>
            <real>1100</real>
        </dict>
        <key>^Info\.plist$</key>
        <dict>
            <key>omit</key>
            <true/>
            <key>weight</key>
            <real>20</real>
        </dict>
        <key>^PkgInfo$</key>
        <dict>
            <key>omit</key>
            <true/>
            <key>weight</key>
            <real>20</real>
        </dict>
        <key>^[^/]+$</key>
        <dict>
            <key>nested</key>
            <true/>
            <key>weight</key>
            <real>10</real>
        </dict>
        <key>^embedded\.provisionprofile$</key>
        <dict>
            <key>weight</key>
            <real>20</real>
        </dict>
        <key>^version\.plist$</key>
        <dict>
            <key>weight</key>
            <real>20</real>
        </dict>
    </dict>
</dict>
</plist>
frameworks/WASdkIntf.framework/_CodeSignature/CodeSignature
Binary files differ