iOS/lua/WACcLua/include/WACcLua.h
New file @@ -0,0 +1,16 @@ // // WACcLua.h // WACcLua // // Created by wuyx on 16/11/21. // Copyright © 2016年 GHW. All rights reserved. // #import "WALuaApwProxy.h" #import "WALuaCoreProxy.h" #import "WALuaPayProxy.h" #import "WALuaSocialProxy.h" #import "WALuaTrackProxy" #import "WALuaUserProxy.h" #import "WALuaConstants.h" #import "WALuaFuncIdManager.h" iOS/lua/WACcLua/include/WALuaApwProxy.h
New file @@ -0,0 +1,20 @@ // // WALuaApwProxy.h // WACocos2dxLua // // Created by wuyx on 16/9/20. // // #import <Foundation/Foundation.h> #import <WASdkIntf/WASdkIntf.h> @interface WALuaApwProxy : NSObject /*! @abstract 显示浮动按钮 */ +(void)showEntryFlowIcon; /*! @abstract 隐藏浮动按钮 */ +(void)hideEntryFlowIcon; @end iOS/lua/WACcLua/include/WALuaConstants.h
New file @@ -0,0 +1,134 @@ // // WALuaConstants.h // WACocos2dxLua // // Created by wuyx on 16/9/7. // // #import <Foundation/Foundation.h> #ifndef WALuaConstants_h #define WALuaConstants_h extern NSString *const WA_LUA_PARAM_PARAM; extern NSString *const WA_LUA_PARAM_PLATFORM; extern NSString *const WA_LUA_PARAM_USER_ID; extern NSString *const WA_LUA_PARAM_TOKEN; extern NSString *const WA_LUA_PARAM_PUSER_ID; extern NSString *const WA_LUA_PARAM_PTOKEN; extern NSString *const WA_LUA_PARAM_MSG; extern NSString *const WA_LUA_PARAM_CODE; extern NSString *const WA_LUA_PARAM_EXTENDS; extern NSString *const WA_LUA_PARAM_EXT_INFO; extern NSString *const WA_LUA_PARAM_ACCESS_TOKEN; extern NSString *const WA_LUA_PARAM_CACHE_ENABLED; extern NSString *const WA_LUA_PARAM_DEBUG_MODE; extern NSString *const WA_LUA_PARAM_SERVER_ID; extern NSString *const WA_LUA_PARAM_LEVEL; extern NSString *const WA_LUA_PARAM_GAME_USER_ID; extern NSString *const WA_LUA_PARAM_FLOW_TYPE; extern NSString *const WA_LUA_PARAM_EVENT_NAME; extern NSString *const WA_LUA_PARAM_VALUE; extern NSString *const WA_LUA_PARAM_EVENT_PARAM; extern NSString *const WA_LUA_PARAM_DEFAULT_EVENT_NAME; extern NSString *const WA_LUA_PARAM_DEFAULT_VALUE; extern NSString *const WA_LUA_PARAM_DEFAULT_PARAM_VALUES; extern NSString *const WA_LUA_PARAM_CHANNEL_SWITCHER_DICT; extern NSString *const WA_LUA_PARAM_EVENT_NAME_DICT; extern NSString *const WA_LUA_PARAM_VALUE_DICT; extern NSString *const WA_LUA_PARAM_PARAM_VALUES_DICT; extern NSString *const WA_LUA_PARAM_AUTO_TRIGGER_AFTER_PAYMENT; extern NSString *const WA_LUA_PARAM_SHARE_CONTENT; extern NSString *const WA_LUA_PARAM_SHARE_WITH_UI; extern NSString *const WA_LUA_PARAM_SHARER; extern NSString *const WA_LUA_PARAM_APP_INVITE_PREVIEW_IMAGE_URL; extern NSString *const WA_LUA_PARAM_APP_LINK_URL; extern NSString *const WA_LUA_PARAM_APP_INVITE_DIALOG; extern NSString *const WA_LUA_PARAM_DURATION; extern NSString *const WA_LUA_PARAM_ACTION_TYPE; extern NSString *const WA_LUA_PARAM_DATA; extern NSString *const WA_LUA_PARAM_MESSAGE; extern NSString *const WA_LUA_PARAM_OBJECT_ID; extern NSString *const WA_LUA_PARAM_RECIPIENTS; extern NSString *const WA_LUA_PARAM_RECIPIENT_SUGGESTIONS; extern NSString *const WA_LUA_PARAM_TITLE; extern NSString *const WA_LUA_PARAM_REQUEST_TYPE; extern NSString *const WA_LUA_PARAM_SHARE_TYPE; extern NSString *const WA_LUA_PARAM_CONTENT_URL; extern NSString *const WA_LUA_PARAM_PEOPLE_IDS; extern NSString *const WA_LUA_PARAM_PLACE_ID; extern NSString *const WA_LUA_PARAM_REF; extern NSString *const WA_LUA_PARAM_CONTENT_DESCRIPTION; extern NSString *const WA_LUA_PARAM_CONTENT_TITLE; extern NSString *const WA_LUA_PARAM_CONTENT_IMAGE_URL; extern NSString *const WA_LUA_PARAM_IMAGE; extern NSString *const WA_LUA_PARAM_IMAGE_URL; extern NSString *const WA_LUA_PARAM_USER_GENERATED; extern NSString *const WA_LUA_PARAM_CAPTION; extern NSString *const WA_LUA_PARAM_PHOTOS; extern NSString *const WA_LUA_PARAM_VIDEO_URL; extern NSString *const WA_LUA_PARAM_PREVIEW_PHOTO; extern NSString *const WA_LUA_PARAM_VIDEO; extern NSString *const WA_LUA_PARAM_LINK_CONTENT; extern NSString *const WA_LUA_PARAM_PHOTO_CONTENT; extern NSString *const WA_LUA_PARAM_VIDEO_CONTENT; extern NSString *const WA_LUA_PARAM_GAME_REQUEST_DIALOG; extern NSString *const WA_LUA_PARAM_GROUP_IDS; extern NSString *const WA_LUA_PARAM_GROUP_ID; extern NSString *const WA_LUA_PARAM_GROUP_URI; extern NSString *const WA_LUA_PARAM_OBJECT_TYPE; extern NSString *const WA_LUA_PARAM_REQUEST_ID; extern NSString *const WA_LUA_PARAM_TOKEN_STRING; extern NSString *const WA_LUA_PARAM_UPGRATED; extern NSString *const WA_LUA_PARAM_PATCH_ID; extern NSString *const WA_LUA_PARAM_PATCH_VERSION; extern NSString *const WA_LUA_PARAM_PATCH_ENCRYPT; extern NSString *const WA_LUA_PARAM_MODULE_ID; extern NSString *const WA_LUA_PARAM_IS_MANDATORY; extern NSString *const WA_LUA_PARAM_DOWNLOAD_URL; extern NSString *const WA_LUA_PARAM_OSIGN; extern NSString *const WA_LUA_PARAM_ERROR; extern NSString *const WA_LUA_PARAM_RESULT; extern NSString *const WA_LUA_PARAM_PRODUCT_ID; extern NSString *const WA_LUA_PARAM_NOTI_TYPE; extern NSString *const WA_LUA_VALUE_BIND_DID_SUCCEED; extern NSString *const WA_LUA_VALUE_BIND_DID_FAIL; extern NSString *const WA_LUA_VALUE_UNBIND_DID_SUCCEED; extern NSString *const WA_LUA_VALUE_UNBIND_DID_FAIL; extern NSString *const WA_LUA_PLATFORM_NONE; extern NSString *const WA_LUA_PARAM_EVENT_PARAM; extern NSString *const WA_LUA_PARAM_EVENT_PARAM; extern NSString *const WA_LUA_PARAM_EVENT_PARAM; extern NSString *const WA_LUA_PARAM_EVENT_PARAM; extern NSString *const WA_LUA_FUNC_SUCCESS; extern NSString *const WA_LUA_FUNC_FAILURE; extern NSString *const WA_LUA_FUNC_CANCEL; extern NSString *const WA_LUA_FUNC_NEW_ACCT; extern NSString *const WA_LUA_FUNC_SWITCH_ACCT; extern NSString *const WA_LUA_FUNC_ACCT_MANAGER_NOTI; extern NSString *const WA_LUA_OBJ_KEY_ID; extern NSString *const WA_LUA_OBJ_KEY_WA_USER_ID; extern NSString *const WA_LUA_OBJ_KEY_NAME; extern NSString *const WA_LUA_OBJ_KEY_PICTURE_URL; extern NSString *const WA_LUA_OBJ_KEY_IS_SILHOUETTE; extern NSString *const WA_LUA_OBJ_KEY_INVITE_TIME; #endif /* WALuaConstants_h */ iOS/lua/WACcLua/include/WALuaCoreProxy.h
New file @@ -0,0 +1,60 @@ // // WALuaCoreProxy.h // WACocos2dxLua // // Created by wuyx on 16/9/8. // // #import <Foundation/Foundation.h> #import <WASdkIntf/WASdkIntf.h> @interface WALuaCoreProxy : NSObject /*! @abstract 初始化 */ +(void)init; /*! @abstract 开启数据收集 */ +(void)initAppEventTracker; /*! @abstract 是否调试模式 */ +(NSNumber*)isDebugMode; /*! @abstract 设置调试模式 */ +(void)setDebugMode:(NSDictionary*)dict; /*! @abstract 获取userId */ +(NSString*)getUserId; /*! @abstract 设置serverId @param serverId */ +(void)setServerId:(NSDictionary*)dict; /*! @abstract 获取serverId */ +(NSString*)getServerId; /*! @abstract 设置level @param level */ +(void)setLevel:(NSDictionary*)dict; /*! @abstract 获取level */ +(NSNumber*)getLevel; /*! @abstract 设置gameUserId @param gameUserId */ +(void)setGameUserId:(NSDictionary*)dict; /*! @abstract 获取gameUserId */ +(NSString*)getGameUserId; @end iOS/lua/WACcLua/include/WALuaFuncIdManager.h
New file @@ -0,0 +1,28 @@ // // WALuaFuncIdManager.h // WACocos2dxLua // // Created by wuyx on 16/9/9. // // #import <Foundation/Foundation.h> typedef enum WALuaExecOption{ WALuaExecOptionSucc, WALuaExecOptionFail, WALuaExecOptionCancel }WALuaExecOption; typedef enum WALuaReleaseOption{ WALuaReleaseOptionNone, WALuaReleaseOptionSingle, WALuaReleaseOptionAll }WALuaReleaseOption; @interface WALuaFuncIdManager : NSObject +(WALuaFuncIdManager*)sharedInstance; +(void)addObjWithKey:(NSString*)aKey succFuncId:(NSNumber*)succFuncId failFuncId:(NSNumber*)failFuncId cancelFuncId:(NSNumber*)cancelFuncId; +(void)execWithKey:(NSString*)key option:(WALuaExecOption)option result:(NSObject*)result; +(void)execWithKey:(NSString*)key option:(WALuaExecOption)option releaseOption:(WALuaReleaseOption)releaseOption result:(NSObject*)result; +(NSNumber*)getObjWithKey:(NSString*)key option:(WALuaExecOption)option; @end iOS/lua/WACcLua/include/WALuaHupProxy.h
New file @@ -0,0 +1,27 @@ // // WALuaHupProxy.h // WACocos2dxLua // // Created by wuyx on 16/9/20. // // #import <Foundation/Foundation.h> #import <WASdkIntf/WASdkIntf.h> @interface WALuaHupProxy : NSObject /*! @abstract 检查更新 @param handler 回调 */ +(void)checkUpdate:(NSDictionary*)dict; /*! @abstract 开始更新 @param handler 回调 */ +(void)startUpdate:(NSDictionary*)dict; /*! @abstract 获取更新包信息 @return WAUpdateInfo 更新包信息 */ +(WAUpdateInfo*)getPatchInfo; @end iOS/lua/WACcLua/include/WALuaPayProxy.h
New file @@ -0,0 +1,16 @@ // // WALuaPayProxy.h // WACocos2dxLua // // Created by wuyx on 16/9/8. // // #import <Foundation/Foundation.h> #import <WASdkIntf/WASdkIntf.h> @interface WALuaPayProxy : NSObject<WAInventoryDelegate,WAPaymentDelegate> +(void)init4Iap; +(void)queryInventory:(NSDictionary*)dict; +(void)payUI:(NSDictionary*)dict; +(BOOL)isPayServiceAvailable:(NSDictionary*)dict; @end iOS/lua/WACcLua/include/WALuaSocialProxy.h
New file @@ -0,0 +1,165 @@ // // WALuaSocialProxy.h // WACocos2dxLua // // Created by wuyx on 16/9/19. // // #import <Foundation/Foundation.h> #import <WASdkIntf/WASdkIntf.h> #import <AssetsLibrary/AssetsLibrary.h> @interface WALuaSocialProxy : NSObject<WASharingDelegate,WAAppInviteDialogDelegate,WAGameRequestDialogDelegate> /*! #分享调用方法 */ /*! @abstract 分享调用方法 @param platform 平台 @param shareContent 分享内容 @param delegate 委托 */ +(void)share:(NSDictionary*)dict; /*! @abstract 应用邀请调用方法 @param content 内容 @param delegate 委托 */ +(void)appInvite:(NSDictionary*)dict; /*! @abstract Game Service - 获取可邀请好友列表 @param duration 邀请有效时段,既是邀请好友成功之后,该好友在有效时段之内,不会再出现在可邀请好友列表之中.单位为分钟,不设置默认为0. @param platform 平台 @param block 回调 */ +(void)queryInvitableFriends:(NSDictionary*)dict; /*! @abstract Game Service - 向好友发送邀请 @param content 内容 @param delegate 委托 */ +(void)gameInviteWithDict:(NSDictionary*)dict; /*! @abstract Game Service - 查询赠送/索要礼物的好友列表 @param platform 平台 @param block 回调 */ +(void)queryFriends:(NSDictionary*)dict; /*! @abstract 获取当前App所属的group @param platform 平台 @param block 回调 */ +(void)getCurrentAppLinkedGroup:(NSDictionary*)dict; /*! @abstract 获取当前user所属的group @param platform 平台 @param block 回调 */ +(void)getCurrentUserGroup:(NSDictionary*)dict; /*! @abstract 根据groupId查询对应的group @param platform 平台 @param groupIds groupId数组 @param block 回调 */ +(void)getGroup:(NSDictionary*)dict; /*! @abstract 返回当前应用推荐的所有group @param platform 平台 @param extInfo 扩展字段 @param block 回调 */ +(void)getGroups:(NSDictionary*)dict; /*! @abstract 加入group @param platform 平台 @param groupId group标识 @param extInfo 扩展信息 @param block 回调 */ +(void)joinGroup:(NSDictionary*)dict; /*! @abstract 打开group @param platform 平台 @param groupUri @param extInfo 扩展信息 @param block 回调 */ +(void)openGroupPage:(NSDictionary*)dict; /*! @abstract Game Service - 查询礼物列表 @param objectType 内容 @param block 回调 */ +(void)queryFBGraphObjects:(NSDictionary*)dict; /*! @abstract Game Service - 赠送礼物 @param content 内容 @param delegate 委托 */ +(void)fbSendGift:(NSDictionary*)dict; /*! @abstract Game Service - 索要礼物 @param content 内容 @param delegate 委托 */ +(void)fbAskForGift:(NSDictionary*)dict; /*! @abstract Game Service - 查看收到的礼物 @param block 回调 */ +(void)fbQueryReceivedGifts:(NSDictionary*)dict; /*! @abstract Game Service - 查看好友向自己索要礼物请求 @param block 回调 */ +(void)fbQueryAskForGiftRequests:(NSDictionary*)dict; /*! @abstract Game Service - 删除请求 @param block 回调 */ +(void)fbDeleteRequest:(NSDictionary*)dict; /*! @abstract 此方法用来取代gameInviteWithPlatform,fbSendGiftWithContent,fbAskForGiftWithContent @param platform 平台 @param requestType 请求类型 @param title 标题 @param message 信息 @param objectId @param receiptIds 接受者id @param delegate 委托 */ +(void)sendRequest:(NSDictionary*)dict; /*! @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)createInviteRecord:(NSDictionary*)dict; /*! @discussion 触发Facebook被邀请人安装应用事件接口。在玩家登录facebook或者用facebook账号绑定的时候可以触发安装事件 @param platform 平台 @param tokenString facebook accesstoken @param handler 回调block 当code为200时成功 */ +(void)inviteInstallReward:(NSDictionary*)dict; /*! @discussion 发送Facebook邀请奖励事件统计接口 @param platform 平台 @param eventName 奖励事件名称 @param handler 回调block 当code为200时成功 */ +(void)inviteEventReward:(NSDictionary*)dict; @end iOS/lua/WACcLua/include/WALuaTrackProxy.h
New file @@ -0,0 +1,16 @@ // // WALuaTrackProxy.h // WACocos2dxLua // // Created by wuyx on 16/9/8. // // #import <Foundation/Foundation.h> #import <WASdkIntf/WASdkIntf.h> @interface WALuaTrackProxy : NSObject +(void)trackEvent:(NSDictionary*)dict; +(void)trackEventExt:(NSDictionary*)dict; +(void)autoTriggerAfterPayment:(NSDictionary*)dict; @end iOS/lua/WACcLua/include/WALuaUserProxy.h
New file @@ -0,0 +1,26 @@ // // WALuaUserProxy.h // CocosTestLua // // Created by wuyx on 16/9/2. // // #import <Foundation/Foundation.h> #import <WASdkIntf/WASdkIntf.h> @interface WALuaUserProxy : NSObject<WALoginDelegate,WAAccountBindingDelegate,WALoginViewDelegate,WAAcctManagerDelegate> +(void)login:(NSDictionary*)dict; +(void)loginUI:(NSDictionary*)dict; +(void)hide; +(void)setLoginFlowType:(NSDictionary*)dict; +(int)getLoginFlowType; +(void)logout; +(void)bindingAccount:(NSDictionary*)dict; +(void)queryBoundAccount:(NSDictionary*)dict; +(void)unBindAccount:(NSDictionary*)dict; +(void)switchAccount:(NSDictionary*)dict; +(void)createNewAccount:(NSDictionary*)dict; +(void)clearLoginCache; +(NSString*)getAccountInfo:(NSDictionary*)dict; +(NSString*)getCurrentLoginResult; @end iOS/lua/WACcLua/libWACcLua.aBinary files differ
iOS/lua/wasdkluac/WAApwProxy.luac
New file @@ -0,0 +1,2 @@ XXTEAÈgÉ£ú½òù` aàiCîÊj,äæßé"êsÆ_Á!~,Y*\.3f¼B[Oá:ÕN}Svýa?(Wv¢ÖÈ©UÌüÎ88ʨ,DÒÒÀµ¨ë¿sϪNîײX"ï6ºQþ,ÞþP$ú¾¸ ×yd(ìÃ9èÆ7=°Øhnµ]Í 'L>°Þ¸Ùª¯ã*0çR¾1dJÇu©áf¼>õôÅ£ÐÃRf]]dÙòþ¸«¶«%b[Z2bB iOS/lua/wasdkluac/WACallback.luacBinary files differ
iOS/lua/wasdkluac/WACoreProxy.luacBinary files differ
iOS/lua/wasdkluac/WAPayProxy.luacBinary files differ
iOS/lua/wasdkluac/WASocialProxy.luacBinary files differ
iOS/lua/wasdkluac/WATrackProxy.luacBinary files differ
iOS/lua/wasdkluac/WAUserProxy.luacBinary files differ
iOS/lua/wasdkluac/WAUtil.luacBinary files differ