lizhihui

更新 190110 版本1

Showing 34 changed files with 120 additions and 120 deletions
No preview for this file type
#import <UIKit/UIKit.h>
@interface AphelionIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* AphelionDingDanHao;
@property(nonatomic,strong) NSDictionary* AphelionHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* AphelionHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *AphelionHuoWuLieBiaoView;
- (void)AphelionHuaQianView:(UIViewController*)controller AphelionHuoWuD:(NSString*)products AphelionQian:(NSString*)amount AphelionHuoWuMing:(NSString*)productName AphelionDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface AphelionAllManager : NSObject
{
NSString* AphelionCKAPPID_;
NSString* AphelionCKAPPKEY_;
NSString* AphelionInviterCode_;
}
@property bool AphelionGeiWoHuaQianBa;
+ (AphelionAllManager *)AphelionInstance;
- (void)AphelionChuShiHua;
- (void)AphelionDengLu:(NSString *)AphelionCKAPPID : (NSString *)AphelionCKAPPKEY : (UIViewController *)controller;
- (void)AphelionYangShi:(NSString*)AphelionLeiXing;
- (void)AphelionCKQuery: (NSString *)AphelionFuWuQiID : (NSString *)AphelionNickName : (NSNumber *)AphelionAmount : (NSString *)AphelionCallBack : (UIViewController *)controller : (NSString *)AphelionServerName;
- (void)AphelionCKQueryOperation:(UIViewController*)controll AphelionHuoWuID:(NSString*)products AphelionJiaGe:(NSString*)amount AphelionHuoWuMing:(NSString*)productName AphelionDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const AphelionCKAssetsExitNotification;
extern NSString * const AphelionCKAssetsLoginNotification;
extern NSString * const AphelionCKAssetsErrorNotification;
@interface AphelionHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface AphelionHungry : NSObject
+(void)AphelionQsad;
-(void)AphelionQsad123;
+(void)AphelionQsagfhd;
-(void)AphelionQsavbnd;
+(void)AphelionQsavbnd;
-(void)AphelionQsafgd;
+(void)AphelionQsiuad;
@end
#import <UIKit/UIKit.h>
@interface CraftarIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* CraftarDingDanHao;
@property(nonatomic,strong) NSDictionary* CraftarHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* CraftarHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *CraftarHuoWuLieBiaoView;
- (void)CraftarHuaQianView:(UIViewController*)controller CraftarHuoWuD:(NSString*)products CraftarQian:(NSString*)amount CraftarHuoWuMing:(NSString*)productName CraftarDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface CraftarAllManager : NSObject
{
NSString* CraftarCKAPPID_;
NSString* CraftarCKAPPKEY_;
NSString* CraftarInviterCode_;
}
@property bool CraftarGeiWoHuaQianBa;
+ (CraftarAllManager *)CraftarInstance;
- (void)CraftarChuShiHua;
- (void)CraftarDengLu:(NSString *)CraftarCKAPPID : (NSString *)CraftarCKAPPKEY : (UIViewController *)controller;
- (void)CraftarYangShi:(NSString*)CraftarLeiXing;
- (void)CraftarCKQuery: (NSString *)CraftarFuWuQiID : (NSString *)CraftarNickName : (NSNumber *)CraftarAmount : (NSString *)CraftarCallBack : (UIViewController *)controller : (NSString *)CraftarServerName;
- (void)CraftarCKQueryOperation:(UIViewController*)controll CraftarHuoWuID:(NSString*)products CraftarJiaGe:(NSString*)amount CraftarHuoWuMing:(NSString*)productName CraftarDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const CraftarCKAssetsExitNotification;
extern NSString * const CraftarCKAssetsLoginNotification;
extern NSString * const CraftarCKAssetsErrorNotification;
@interface CraftarHuiTiaoNotification : NSObject
@end
#import <Foundation/Foundation.h>
@interface CraftarHungry : NSObject
+(void)CraftarQsad;
-(void)CraftarQsad123;
+(void)CraftarQsagfhd;
-(void)CraftarQsavbnd;
+(void)CraftarQsavbnd;
-(void)CraftarQsafgd;
+(void)CraftarQsiuad;
@end
#import <UIKit/UIKit.h>
@interface AphelionLocation : NSObject
@interface CraftarLocation : NSObject
+ (NSString *)AphelionSKCloudServiceSetupOptionsKey;
+ (NSString *)CraftarSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "AphelionMessage.h"
#import "CraftarMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface AphelionMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface CraftarMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL AphelionYouYuanJiao;
@property(assign) BOOL CraftarYouYuanJiao;
- (void)AphelionSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)AphelionChuShiHuaWebView;
- (void)CraftarSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)CraftarChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface AphelionMessage : NSObject
@interface CraftarMessage : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (AphelionMessage *)getInstance;
+ (CraftarMessage *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface AphelionMessageJM : NSObject
@interface CraftarMessageJM : NSObject
+(NSString *)AphelionJM:(NSString *)jm;
+(NSString *)CraftarJM:(NSString *)jm;
@end
......
......@@ -7,7 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
26463C6321DF643E0056B2C5 /* Aphelion.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26463C6221DF643E0056B2C5 /* Aphelion.framework */; };
2692FA4821E73CFE00371736 /* Craftar.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2692FA4721E73CFE00371736 /* Craftar.framework */; };
269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; };
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
846BD2241EE9342700E89A1D /* haibao_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* haibao_setting */; };
......@@ -59,7 +59,7 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
26463C6221DF643E0056B2C5 /* Aphelion.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Aphelion.framework; sourceTree = "<group>"; };
2692FA4721E73CFE00371736 /* Craftar.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Craftar.framework; sourceTree = "<group>"; };
269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.framework; sourceTree = "<group>"; };
845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; };
845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; };
......@@ -108,11 +108,11 @@
8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */,
8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */,
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
26463C6321DF643E0056B2C5 /* Aphelion.framework in Frameworks */,
8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
2692FA4821E73CFE00371736 /* Craftar.framework in Frameworks */,
8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */,
8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */,
......@@ -143,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
26463C6221DF643E0056B2C5 /* Aphelion.framework */,
2692FA4721E73CFE00371736 /* Craftar.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* haibao_setting */,
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface AphelionHaiBaoJuheBaseModel : NSObject
@interface CraftarHaiBaoJuheBaseModel : NSObject
- (NSString *)AphelionHaiBaoJuheObjectToJsonString;
- (NSString *)CraftarHaiBaoJuheObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
......
......@@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface AphelionHaiBaoJuheDGLogger : NSObject
@interface CraftarHaiBaoJuheDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
......@@ -15,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo;
- (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo;
- (void) AphelionHaiBaoJuhereportOpen;
- (void) AphelionHaiBaoJuhereportSDKOpen;
- (void)AphelionHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) CraftarHaiBaoJuhereportOpen;
- (void) CraftarHaiBaoJuhereportSDKOpen;
- (void)CraftarHaiBaoJuhehandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo;
- (void) AphelionHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void) CraftarHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo;
- (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -28,7 +28,7 @@
- (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo;
- (void)AphelionHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
- (void)CraftarHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
#import "HaiBaoJuheSDK/AphelionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : AphelionHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/CraftarHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheCreateOrderInfo : CraftarHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *serverId;//服务器ID
@property(nonatomic, strong)NSString *serverName;//服务器名称
......@@ -16,7 +16,7 @@
@property(nonatomic, strong)NSString *userId;//用户ID
@property(nonatomic, strong)NSString *timestamp;//时间戳
- (NSString *) AphelionHaiBaoJuheGetTsign ;
- (NSString *) AphelionHaiBaoJuheGetTimestamp ;
- (NSString *) CraftarHaiBaoJuheGetTsign ;
- (NSString *) CraftarHaiBaoJuheGetTimestamp ;
@end
......
#import "HaiBaoJuheSDK/AphelionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : AphelionHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/CraftarHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheGzyazfInfo : CraftarHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
#import "HaiBaoJuheSDK/AphelionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : AphelionHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/CraftarHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheLoginInfo : CraftarHaiBaoJuheBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;
......
//
// AphelionHaiBaoJuheReportInfo.h
// CraftarHaiBaoJuheReportInfo.h
// HaiBaoJuheSDK
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "HaiBaoJuheSDK/AphelionHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : AphelionHaiBaoJuheBaseModel
#import "HaiBaoJuheSDK/CraftarHaiBaoJuheBaseModel.h"
@interface HaiBaoJuheReportInfo : CraftarHaiBaoJuheBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......
......@@ -4,7 +4,7 @@
@interface HaiBaoJuheUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)AphelionHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)CraftarHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "Aphelion/AphelionAllManager.h"
#import "Aphelion/AphelionHuiTiaoNotification.h"
#import "Aphelion/AphelionMessage.h"
#import "Craftar/CraftarAllManager.h"
#import "Craftar/CraftarHuiTiaoNotification.h"
#import "Craftar/CraftarMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *AphelionAppId;
NSString *AphelionAppKey;
NSString *CraftarAppId;
NSString *CraftarAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *AphelionAppKey;
[super SDKinit:control];
[HaiBaoJuheConfig getInstance];
[[AphelionAllManager AphelionInstance]AphelionChuShiHua];
[[AphelionAllManager AphelionInstance]AphelionYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:AphelionCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"AphelionCKAssetsToolCallBack" object:nil];
[[CraftarAllManager CraftarInstance]CraftarChuShiHua];
[[CraftarAllManager CraftarInstance]CraftarYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:CraftarCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"CraftarCKAssetsToolCallBack" object:nil];
[[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *AphelionAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
AphelionAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
AphelionAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[AphelionAllManager AphelionInstance]AphelionDengLu:AphelionAppId :AphelionAppKey :self.controller];
CraftarAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"];
CraftarAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"];
[[CraftarAllManager CraftarInstance]CraftarDengLu:CraftarAppId :CraftarAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *AphelionAppKey;
{
NSLog(@"loginchek");
HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc];
loginInfo.openId = [[AphelionMessage getInstance]openId];
loginInfo.sign = [[AphelionMessage getInstance] token];
loginInfo.timestamp = [[AphelionMessage getInstance] timestamp];
loginInfo.openId = [[CraftarMessage getInstance]openId];
loginInfo.sign = [[CraftarMessage getInstance] token];
loginInfo.timestamp = [[CraftarMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[HaiBaoJuheChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *AphelionAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"AphelionCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"CraftarCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *AphelionAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[AphelionAllManager AphelionInstance] AphelionCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[CraftarAllManager CraftarInstance] CraftarCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[AphelionAllManager AphelionInstance] AphelionCKQueryOperation:self.controller AphelionHuoWuID:products AphelionJiaGe:[payInfo postAmount] AphelionHuoWuMing:[payInfo productName] AphelionDingDanHao:queryId];
[[CraftarAllManager CraftarInstance] CraftarCKQueryOperation:self.controller CraftarHuoWuID:products CraftarJiaGe:[payInfo postAmount] CraftarHuoWuMing:[payInfo productName] CraftarDingDanHao:queryId];
}
}
......
......@@ -10,8 +10,8 @@
7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br>
已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年01月04日版本方法<br>
已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年01月10日版本方法<br>
1、``` 删除poolsdk_file文件夹中原来framework ``` <br>
2、``` 引入poolsdk_file文件夹中Aphelion.framework ``` <br>
2、``` 引入poolsdk_file文件夹中Craftar.framework ``` <br>
3、``` 替换SDKInterface.m文件 ``` <br>
4、``` 替换HaiBaoJuheSDK.framework ``` <br>
\ No newline at end of file
......