lizhihui

更新 181114 版本

Showing 43 changed files with 112 additions and 543 deletions
No preview for this file type
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
7 objects = { 7 objects = {
8 8
9 /* Begin PBXBuildFile section */ 9 /* Begin PBXBuildFile section */
10 - 260A34CB2130061A003C083C /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 260A34CA21300619003C083C /* PoolSdk.framework */; };
11 263A4CBB219AC90000DE9B28 /* PepsiSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 263A4CBA219AC90000DE9B28 /* PepsiSDK.framework */; }; 10 263A4CBB219AC90000DE9B28 /* PepsiSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 263A4CBA219AC90000DE9B28 /* PepsiSDK.framework */; };
11 + 26A4D548219BC8D4008B64B5 /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26A4D547219BC8D4008B64B5 /* PoolSdk.framework */; };
12 845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; }; 12 845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
13 846BD2241EE9342700E89A1D /* pool_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* pool_setting */; }; 13 846BD2241EE9342700E89A1D /* pool_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* pool_setting */; };
14 846BD2261EE9342700E89A1D /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 846BD2231EE9342700E89A1D /* SDKInterface.m */; }; 14 846BD2261EE9342700E89A1D /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 846BD2231EE9342700E89A1D /* SDKInterface.m */; };
...@@ -59,8 +59,8 @@ ...@@ -59,8 +59,8 @@
59 /* End PBXCopyFilesBuildPhase section */ 59 /* End PBXCopyFilesBuildPhase section */
60 60
61 /* Begin PBXFileReference section */ 61 /* Begin PBXFileReference section */
62 - 260A34CA21300619003C083C /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.framework; sourceTree = "<group>"; };
63 263A4CBA219AC90000DE9B28 /* PepsiSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PepsiSDK.framework; sourceTree = "<group>"; }; 62 263A4CBA219AC90000DE9B28 /* PepsiSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PepsiSDK.framework; sourceTree = "<group>"; };
63 + 26A4D547219BC8D4008B64B5 /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.framework; sourceTree = "<group>"; };
64 845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; }; 64 845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; };
65 845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; }; 65 845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; };
66 846BD21F1EE9342700E89A1D /* pool_setting */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = pool_setting; path = poolsdk_file/poolsdk/pool_setting; sourceTree = "<group>"; }; 66 846BD21F1EE9342700E89A1D /* pool_setting */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = pool_setting; path = poolsdk_file/poolsdk/pool_setting; sourceTree = "<group>"; };
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
116 8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */, 116 8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
117 8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */, 117 8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */,
118 8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */, 118 8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */,
119 - 260A34CB2130061A003C083C /* PoolSdk.framework in Frameworks */, 119 + 26A4D548219BC8D4008B64B5 /* PoolSdk.framework in Frameworks */,
120 8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */, 120 8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */,
121 84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */, 121 84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */,
122 ); 122 );
...@@ -191,7 +191,7 @@ ...@@ -191,7 +191,7 @@
191 BB5F3C8A1C1811BC00DA339D /* Demo */ = { 191 BB5F3C8A1C1811BC00DA339D /* Demo */ = {
192 isa = PBXGroup; 192 isa = PBXGroup;
193 children = ( 193 children = (
194 - 260A34CA21300619003C083C /* PoolSdk.framework */, 194 + 26A4D547219BC8D4008B64B5 /* PoolSdk.framework */,
195 8484E4F11EE7E0DC00B402D1 /* AppDelegate.h */, 195 8484E4F11EE7E0DC00B402D1 /* AppDelegate.h */,
196 8484E4F21EE7E0DC00B402D1 /* AppDelegate.m */, 196 8484E4F21EE7E0DC00B402D1 /* AppDelegate.m */,
197 8484E4F31EE7E0DC00B402D1 /* ViewController.h */, 197 8484E4F31EE7E0DC00B402D1 /* ViewController.h */,
......
1 -//
2 -// NetCenter.h
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/2/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
10 2
11 @interface NetCenter : NSObject 3 @interface NetCenter : NSObject
......
1 -//
2 -// OtherSetting.h
3 -// PoolSdk
4 -//
5 -// Created by winFan on 11/23/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 #ifndef __PoolSdk__OtherSetting__ 1 #ifndef __PoolSdk__OtherSetting__
10 #define __PoolSdk__OtherSetting__ 2 #define __PoolSdk__OtherSetting__
11 3
......
1 -//
2 -// PGLogger.h
3 -// PanguCommonLib
4 -//
5 -// Created by ouyanghua on 14-2-22.
6 -// Copyright (c) 2014年 pangu. All rights reserved.
7 -//
8 -
9 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
10 2
11 void DGLog(NSString *fmt, ...); 3 void DGLog(NSString *fmt, ...);
...@@ -19,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel) ...@@ -19,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
19 ELogError 11 ELogError
20 }; 12 };
21 13
22 -@interface DGLogger : NSObject 14 +@interface PepsiDGLogger : NSObject
23 15
24 + (void)showLog:(NSString *)fmt,...; 16 + (void)showLog:(NSString *)fmt,...;
25 17
......
1 +#import <Foundation/Foundation.h>
2 +#import "OtherSetting.h"
3 +
4 +@interface PepsiPoolBaseModel : NSObject
5 +
6 +- (NSString *)PepsiObjectToJsonString;
7 +- (NSMutableString *)paramAddToString;
8 +- (id)initWithDiction:(NSDictionary *)diction;
9 +
10 +@end
1 -//
2 -// PoolBaseModel.h
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/2/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 -
10 -#import <Foundation/Foundation.h>
11 -#import "OtherSetting.h"
12 -@interface PoolBaseModel : NSObject
13 -
14 -- (NSString *)objectToJsonString;
15 -- (NSMutableString *)paramAddToString;
16 -- (id)initWithDiction:(NSDictionary *)diction;
17 -
18 -@end
...\ No newline at end of file ...\ No newline at end of file
1 -//
2 -// PoolLoginChecker.h
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/1/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
9 #import "PoolSdk/PoolLoginInfo.h" 2 #import "PoolSdk/PoolLoginInfo.h"
10 #import "PoolSdk/PoolNotification.h" 3 #import "PoolSdk/PoolNotification.h"
...@@ -22,11 +15,11 @@ ...@@ -22,11 +15,11 @@
22 - (void)initChecker; 15 - (void)initChecker;
23 - (void)startCheck:(PoolLoginInfo *)loginInfo; 16 - (void)startCheck:(PoolLoginInfo *)loginInfo;
24 - (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo; 17 - (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo;
25 -- (void) reportOpen; 18 +- (void) PepsireportOpen;
26 -- (void) reportSDKOpen; 19 +- (void) PepsireportSDKOpen;
27 -- (void)handleFirstOpenApp:(NSString*) path; 20 +- (void)PepsihandleFirstOpenApp:(NSString*) path;
28 - (void) reportEnter:(PoolReportInfo *)reInfo; 21 - (void) reportEnter:(PoolReportInfo *)reInfo;
29 -- (void) report:(NSString *)_action :(PoolReportInfo *)reInfo; 22 +- (void) PepsiReport:(NSString *)_action :(PoolReportInfo *)reInfo;
30 - (void)sendNotice:(PoolSDKNotificationType)notiType 23 - (void)sendNotice:(PoolSDKNotificationType)notiType
31 notiName:(NSString *)notiName 24 notiName:(NSString *)notiName
32 statusCode:(int)nCode 25 statusCode:(int)nCode
...@@ -35,10 +28,7 @@ ...@@ -35,10 +28,7 @@
35 28
36 - (void)startCheckDelegate:(PoolLoginInfo *)loginInfo; 29 - (void)startCheckDelegate:(PoolLoginInfo *)loginInfo;
37 30
38 -/** 31 +- (void)PepsiStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
39 - *type PoolSDKNotificationLogin 为登录验证 PoolSDKNotificationSwitchAccount 为切换账号成功验证
40 - */
41 -- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
42 32
43 /* 33 /*
44 *初始化时调用 34 *初始化时调用
......
1 -//
2 -// PoolConfig.h
3 -// PoolSdk
4 -//
5 -// Created by winFan on 12/11/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
10 2
11 @interface PoolConfig : NSObject 3 @interface PoolConfig : NSObject
......
1 -// 1 +#import "PoolSdk/PepsiPoolBaseModel.h"
2 -// GzyazfInfo.h 2 +@interface PoolCreateOrderInfo : PepsiPoolBaseModel
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/3/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 -
10 -#import "PoolSdk/PoolBaseModel.h"
11 -@interface PoolCreateOrderInfo : PoolBaseModel
12 3
13 @property(nonatomic,strong)NSString *serverId;//服务器ID 4 @property(nonatomic,strong)NSString *serverId;//服务器ID
14 @property(nonatomic, strong)NSString *serverName;//服务器名称 5 @property(nonatomic, strong)NSString *serverName;//服务器名称
...@@ -25,7 +16,7 @@ ...@@ -25,7 +16,7 @@
25 @property(nonatomic, strong)NSString *userId;//用户ID 16 @property(nonatomic, strong)NSString *userId;//用户ID
26 @property(nonatomic, strong)NSString *timestamp;//时间戳 17 @property(nonatomic, strong)NSString *timestamp;//时间戳
27 18
28 -- (NSString *) getTsign ; 19 +- (NSString *) PepsiGetTsign ;
29 -- (NSString *) getTimestamp ; 20 +- (NSString *) PepsiGetTimestamp ;
30 21
31 @end 22 @end
......
1 -// 1 +#import "PoolSdk/PepsiPoolBaseModel.h"
2 -// PoolLoginInfo.h 2 +@interface PoolLoginInfo : PepsiPoolBaseModel
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/1/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 -#import "PoolSdk/PoolBaseModel.h"
10 -@interface PoolLoginInfo : PoolBaseModel
11 3
12 @property(nonatomic,strong)NSString *timestamp; 4 @property(nonatomic,strong)NSString *timestamp;
13 -@property(nonatomic, strong)NSString *sign;//serverSign 5 +@property(nonatomic, strong)NSString *sign;
14 -@property(nonatomic, strong)NSString *other;//透传 6 +@property(nonatomic, strong)NSString *other;
15 @property(nonatomic, strong)NSString *openId; 7 @property(nonatomic, strong)NSString *openId;
16 @property(nonatomic, strong)NSString *userType; 8 @property(nonatomic, strong)NSString *userType;
17 9
......
1 -// 1 +#import "PoolSdk/PepsiPoolBaseModel.h"
2 -// PoolGzyazfInfo.h 2 +@interface PoolGzyazfInfo : PepsiPoolBaseModel
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/3/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 -
10 -#import "PoolSdk/PoolBaseModel.h"
11 -@interface PoolGzyazfInfo : PoolBaseModel
12 3
13 @property(nonatomic, strong)NSString *serverId; 4 @property(nonatomic, strong)NSString *serverId;
14 @property(nonatomic, strong)NSString *queryId; 5 @property(nonatomic, strong)NSString *queryId;
......
1 // 1 //
2 -// PoolReportInfo.h 2 +// PepsiPoolReportInfo.h
3 // PoolSdk 3 // PoolSdk
4 // 4 //
5 // Created by winFan on 12/21/15. 5 // Created by winFan on 12/21/15.
6 // Copyright (c) 2015 winFan. All rights reserved. 6 // Copyright (c) 2015 winFan. All rights reserved.
7 // 7 //
8 8
9 -#import "PoolSdk/PoolBaseModel.h" 9 +#import "PoolSdk/PepsiPoolBaseModel.h"
10 -@interface PoolReportInfo : PoolBaseModel 10 +@interface PoolReportInfo : PepsiPoolBaseModel
11 11
12 @property(nonatomic, strong)NSString *reportType;//类型 12 @property(nonatomic, strong)NSString *reportType;//类型
13 @property(nonatomic, strong)NSString *playerId;//玩家ID 13 @property(nonatomic, strong)NSString *playerId;//玩家ID
...@@ -30,14 +30,16 @@ ...@@ -30,14 +30,16 @@
30 30
31 @property(nonatomic, strong)NSString *openId; 31 @property(nonatomic, strong)NSString *openId;
32 32
33 -#define REPORT_URL @"https://statistic.public.sdk.gzyouai.com/sdk/statistic" //http://183.57.76.181:9030/sdk/statistic 33 +#define REPORT_URL @"https://statistic.public.sdk.gzyouai.com/sdk/statistic"
34 34
35 -#define REPORT_IDFA_URL @"https://statistic.public.sdk.gzyouai.com/sdk/last_channel?idfa=%@&sdkSimpleName=%@&gameSimpleName=%@" //@"http://183.57.76.181:9030/sdk/last_channel?idfa="// 35 +#define REPORT_IDFA_URL @"https://statistic.public.sdk.gzyouai.com/sdk/last_channel?idfa=%@&sdkSimpleName=%@&gameSimpleName=%@"
36 36
37 #define REPORT_OPEN @"open" 37 #define REPORT_OPEN @"open"
38 #define REPORT_ENTER @"enter" 38 #define REPORT_ENTER @"enter"
39 #define REPORT_CREATEROLE @"createrole" 39 #define REPORT_CREATEROLE @"createrole"
40 #define REPORT_ROLEUPGRADE @"roleupgrade" 40 #define REPORT_ROLEUPGRADE @"roleupgrade"
41 #define REPORT_SDK_OPEN @"opensdk" 41 #define REPORT_SDK_OPEN @"opensdk"
42 +#define REPORT_EXIT @"exit"
43 +#define REPORT_SELECT_SERVER @"selectserver"
42 44
43 @end 45 @end
......
1 -//
2 -// PoolSdk.h
3 -// PoolSdk
4 -//
5 -// Created by winFan on 11/23/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
10 #import "PoolSdk2.h" 2 #import "PoolSdk2.h"
3 +
11 #import <UIKit/UIKit.h> 4 #import <UIKit/UIKit.h>
12 5
13 @interface PoolSdk : NSObject 6 @interface PoolSdk : NSObject
14 -/** 7 +
15 - * 当前SDK的版本
16 - */
17 @property(nonatomic, strong, readonly)NSString *sdkVersion; 8 @property(nonatomic, strong, readonly)NSString *sdkVersion;
18 9
19 -/** 10 +
20 - * 用于设置url types schemes 默认为工程名
21 - */
22 @property(nonatomic, strong)NSString *urlSchemes; 11 @property(nonatomic, strong)NSString *urlSchemes;
23 12
24 @property BOOL isAppleGzyazfing; 13 @property BOOL isAppleGzyazfing;
25 -/** 14 +
26 - 获取SDK实例对象
27 - */
28 + (PoolSdk *)shareSDK; 15 + (PoolSdk *)shareSDK;
29 16
30 -/** 17 +
31 - 初始化SDK
32 - */
33 - (void)initSDK:(UIViewController *) control; 18 - (void)initSDK:(UIViewController *) control;
34 19
35 20
...@@ -37,130 +22,59 @@ ...@@ -37,130 +22,59 @@
37 22
38 - (void)setViewController:(UIViewController *)viewController; 23 - (void)setViewController:(UIViewController *)viewController;
39 24
40 -/** 25 +
41 - 登录SDK
42 - */
43 - (void)loginSDK; 26 - (void)loginSDK;
44 27
45 - (void)loginSDK:(UIViewController *)viewController; 28 - (void)loginSDK:(UIViewController *)viewController;
46 29
47 -/** 30 +
48 - 进行支付
49 - */
50 - (void)gzyazfWithGzyazfmentInfo:(PoolCreateOrderInfo *)gzyazfInfo; 31 - (void)gzyazfWithGzyazfmentInfo:(PoolCreateOrderInfo *)gzyazfInfo;
51 32
52 33
53 -/**
54 - *是否含有用户中心接口
55 - **/
56 - (BOOL)hasUserCenter; 34 - (BOOL)hasUserCenter;
57 35
58 -/** 36 +
59 - 用户中心
60 - */
61 - (void)gotoUserCenter; 37 - (void)gotoUserCenter;
62 38
63 -/** 39 +
64 - report
65 - */
66 - (void)reportSDK:(PoolReportInfo *)reportInfo; 40 - (void)reportSDK:(PoolReportInfo *)reportInfo;
67 41
68 -/** 42 +
69 - *是否含有注销接口
70 - */
71 - (BOOL)hasLogout; 43 - (BOOL)hasLogout;
72 44
73 -/** 45 +
74 - 注销
75 - */
76 - (void)logoutSDK; 46 - (void)logoutSDK;
77 47
78 -/** 48 +
79 - *是否含有切换账号接口
80 - **/
81 - (BOOL)hasSwitchAccount; 49 - (BOOL)hasSwitchAccount;
82 50
83 -/** 51 +
84 - *切换账号
85 - **/
86 - (void)switchAccount; 52 - (void)switchAccount;
87 53
88 54
89 -/**
90 - *是否含有退出接口
91 - **/
92 - (BOOL)hasExit; 55 - (BOOL)hasExit;
93 56
94 -/** 57 +
95 - 退出
96 - */
97 - (void)exitSDK; 58 - (void)exitSDK;
98 59
99 -/**
100 - *SDK销毁操作(游戏退出时调用)
101 - */
102 - (void)destroySDK; 60 - (void)destroySDK;
103 61
104 -/**
105 - 显示/隐藏浮标
106 - */
107 -//- (void)showFloatIcon:(BOOL)bFlag;
108 -
109 -
110 -/**
111 - // called in - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
112 - */
113 -
114 -/**
115 - 应用 appid
116 - */
117 -
118 -/**
119 - 应用支持的方向 默认为 EDreamSDKOrientationLandscape
120 - */
121 @property(nonatomic, assign)ESDKOrientation sdkOrientation; 62 @property(nonatomic, assign)ESDKOrientation sdkOrientation;
122 63
123 -/**
124 - 浮标是否已经显示,默认为NO
125 - */
126 @property(nonatomic, assign)BOOL bShowedFloat; 64 @property(nonatomic, assign)BOOL bShowedFloat;
127 65
128 66
129 -/**
130 - serverId
131 - */
132 @property(nonatomic, assign)int serverId; 67 @property(nonatomic, assign)int serverId;
133 68
134 -/** 69 +
135 - 获取gamechannelid
136 - */
137 -(NSString *) getGameChannelId; 70 -(NSString *) getGameChannelId;
138 71
139 -/**
140 - 获取Custom
141 - */
142 - (NSString *) getCustomValue; 72 - (NSString *) getCustomValue;
143 73
144 -/**
145 - 获取ChannelParameter1
146 - */
147 - (NSString *) getChannelParameter1; 74 - (NSString *) getChannelParameter1;
148 75
149 -/**
150 - 获取ChannelParameter2
151 - */
152 - (NSString *) getChannelParameter2; 76 - (NSString *) getChannelParameter2;
153 77
154 -
155 -/**
156 - *充值统计参数
157 - *accountId 账号ID,必填项, 和登陆、注册使用的accountId保持一致即可。
158 - *orderId 订单Id,必填项,请保证该值的全局唯一,系统会使用订单Id进行付费订单排重。
159 - *currencyAmount 货币金额,单位为元,支持小数
160 - *currencyType 货币类型
161 - *gzyazfType 支付类型(渠道)
162 - *custom 自定义扩展参数
163 - */
164 -(void)gzyazfmentSuccess:(NSString*)accountId orderId:(NSString*)orderId currencyAmount:(double)amount currencyType:(NSString*)currencyType gzyazfType:(NSString*)gzyazfType custom:(NSArray*)customArray; 78 -(void)gzyazfmentSuccess:(NSString*)accountId orderId:(NSString*)orderId currencyAmount:(double)amount currencyType:(NSString*)currencyType gzyazfType:(NSString*)gzyazfType custom:(NSArray*)customArray;
165 79
166 80
...@@ -172,9 +86,9 @@ ...@@ -172,9 +86,9 @@
172 86
173 - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken; 87 - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
174 88
175 -//推送 89 +
176 - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo ; 90 - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo ;
177 -//推送 91 +
178 - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler; 92 - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
179 93
180 94
......
1 -//
2 -// PoolSdk.h
3 -// PoolSdk
4 -//
5 -// Created by 许 on 16/1/15.
6 -// Copyright © 2016年 许. All rights reserved.
7 -//
8 -// In this header, you should import all the public headers of your framework using statements like #import <PoolSdk/PublicHeader.h>
9 -
10 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
11 #import "PoolChecker.h" 2 #import "PoolChecker.h"
12 -#import "Interface.h"
13 #import "PoolReportInfo.h" 3 #import "PoolReportInfo.h"
14 #import "PoolLoginInfo.h" 4 #import "PoolLoginInfo.h"
5 +#import "Interface.h"
15 #import "PoolNotification.h" 6 #import "PoolNotification.h"
16 #import "PoolPayInfo.h" 7 #import "PoolPayInfo.h"
17 #import "UnionInterface.h" 8 #import "UnionInterface.h"
...@@ -21,4 +12,3 @@ ...@@ -21,4 +12,3 @@
21 #import "NetCenter.h" 12 #import "NetCenter.h"
22 #import "PoolSdk.h" 13 #import "PoolSdk.h"
23 #import "PoolSdkDelegate.h" 14 #import "PoolSdkDelegate.h"
24 -
......
1 -//
2 -// PoolSdkDelegate.h
3 -// PoolSdk_i9133
4 -//
5 -// Created by 许 on 17/6/30.
6 -// Copyright © 2017年 许. All rights reserved.
7 -//
8 -
9 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
10 2
11 @protocol PoolSdkDelegate <NSObject> 3 @protocol PoolSdkDelegate <NSObject>
......
1 -//
2 -// PoolUtils.h
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/3/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 -
10 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
11 #import <UIKit/UIKit.h> 2 #import <UIKit/UIKit.h>
12 3
13 @interface PoolUtils : NSObject 4 @interface PoolUtils : NSObject
14 5
15 +(NSString *)md5:(NSString *)str; 6 +(NSString *)md5:(NSString *)str;
16 -+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString; 7 ++ (NSDictionary *)PepsiDictionaryWithJsonString:(NSString *)jsonString;
17 +(NSString *)createGzyazfOrderUrl; 8 +(NSString *)createGzyazfOrderUrl;
18 //*充值回调地址 9 //*充值回调地址
19 +(NSString *)createGzyazfUrl; 10 +(NSString *)createGzyazfUrl;
......
1 -//
2 -// NewTtack.h
3 -// NewTtack
4 -//
5 -// Created by yun on 16/1/11.
6 -// Copyright © 2016年 yun. All rights reserved.
7 -//
8 #define TRACK_VERSION @"1.0.1" 1 #define TRACK_VERSION @"1.0.1"
9 -
10 #import <Foundation/Foundation.h> 2 #import <Foundation/Foundation.h>
11 #import <UIKit/UIKit.h> 3 #import <UIKit/UIKit.h>
12 4
13 -
14 -/*
15 - 热云移动广告效果监测 平台 api 请选择对应的api进行使用
16 - */
17 NS_ASSUME_NONNULL_BEGIN 5 NS_ASSUME_NONNULL_BEGIN
18 @interface TrackingIO : NSObject 6 @interface TrackingIO : NSObject
19 -//开启打印日志 正式上线包请关掉
20 +(void) setPrintLog :(BOOL)print; 7 +(void) setPrintLog :(BOOL)print;
21 -// 开启数据统计
22 + (void)initWithappKey:(NSString *)appKey withChannelId:(NSString *)channelId; 8 + (void)initWithappKey:(NSString *)appKey withChannelId:(NSString *)channelId;
23 -//注册成功后调用
24 + (void)setRegisterWithAccountID:(NSString *)account; 9 + (void)setRegisterWithAccountID:(NSString *)account;
25 -//登陆成功后调用
26 + (void)setLoginWithAccountID:(NSString *)account; 10 + (void)setLoginWithAccountID:(NSString *)account;
27 -//开始付费时 调用(人民币单位是元)
28 +(void)setGzyazfmentStart:(NSString *)transactionId gzyazfmentType:(NSString*)gzyazfmentType currentType:(NSString*)currencyType currencyAmount:(float)currencyAmount; 11 +(void)setGzyazfmentStart:(NSString *)transactionId gzyazfmentType:(NSString*)gzyazfmentType currentType:(NSString*)currencyType currencyAmount:(float)currencyAmount;
29 -// 支付完成,付费分析,记录玩家充值的金额(人民币单位是元)
30 +(void)setGzyazfment:(NSString *)transactionId gzyazfmentType:(NSString*)gzyazfmentType currentType:(NSString*)currencyType currencyAmount:(float)currencyAmount; 12 +(void)setGzyazfment:(NSString *)transactionId gzyazfmentType:(NSString*)gzyazfmentType currentType:(NSString*)currencyType currencyAmount:(float)currencyAmount;
31 -//自定义事件
32 +(void)setEvent:(NSString *)eventName andExtra:(nullable NSDictionary *)extra; 13 +(void)setEvent:(NSString *)eventName andExtra:(nullable NSDictionary *)extra;
33 -//标准接口
34 +(void)setProfile:(NSDictionary *)dataDic; 14 +(void)setProfile:(NSDictionary *)dataDic;
35 -//获取设备信息
36 +(NSString*)getDeviceId; 15 +(NSString*)getDeviceId;
37 @end 16 @end
38 NS_ASSUME_NONNULL_END 17 NS_ASSUME_NONNULL_END
......
1 -//
2 -// UnionInterface.h
3 -// PoolSdk
4 -//
5 -// Created by winFan on 11/23/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
9 #import <UIKit/UIKit.h> 2 #import <UIKit/UIKit.h>
10 -#import "PoolCreateOrderInfo.h" 3 +#import "PoolSdk2.h"
11 -#import "PoolReportInfo.h"
12 4
13 @protocol UnionInterface 5 @protocol UnionInterface
14 /** 6 /**
......
1 新接入请参考对接文档和demo<br> 1 新接入请参考对接文档和demo<br>
2 2
3 -2018-11-13:<br> 3 +2018-11-14:<br>
4 1、``` 删除pool_file文件夹中SingleSDK.framework ``` <br> 4 1、``` 删除pool_file文件夹中SingleSDK.framework ``` <br>
5 2、引入 ``` PepsiSDK.framework ``` <br> 5 2、引入 ``` PepsiSDK.framework ``` <br>
6 3、替换 ``` SDKInterface.m文件 ``` <br> 6 3、替换 ``` SDKInterface.m文件 ``` <br>
7 +4、替换 ``` PoolSdk.framework ``` <br>
...\ No newline at end of file ...\ No newline at end of file
......
1 -//
2 -// NetCenter.h
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/2/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
10 2
11 @interface NetCenter : NSObject 3 @interface NetCenter : NSObject
......
1 -//
2 -// OtherSetting.h
3 -// PoolSdk
4 -//
5 -// Created by winFan on 11/23/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 #ifndef __PoolSdk__OtherSetting__ 1 #ifndef __PoolSdk__OtherSetting__
10 #define __PoolSdk__OtherSetting__ 2 #define __PoolSdk__OtherSetting__
11 3
......
1 -//
2 -// PGLogger.h
3 -// PanguCommonLib
4 -//
5 -// Created by ouyanghua on 14-2-22.
6 -// Copyright (c) 2014年 pangu. All rights reserved.
7 -//
8 -
9 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
10 2
11 void DGLog(NSString *fmt, ...); 3 void DGLog(NSString *fmt, ...);
...@@ -19,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel) ...@@ -19,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
19 ELogError 11 ELogError
20 }; 12 };
21 13
22 -@interface DGLogger : NSObject 14 +@interface PepsiDGLogger : NSObject
23 15
24 + (void)showLog:(NSString *)fmt,...; 16 + (void)showLog:(NSString *)fmt,...;
25 17
......
1 +#import <Foundation/Foundation.h>
2 +#import "OtherSetting.h"
3 +
4 +@interface PepsiPoolBaseModel : NSObject
5 +
6 +- (NSString *)PepsiObjectToJsonString;
7 +- (NSMutableString *)paramAddToString;
8 +- (id)initWithDiction:(NSDictionary *)diction;
9 +
10 +@end
1 -//
2 -// PoolBaseModel.h
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/2/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 -
10 -#import <Foundation/Foundation.h>
11 -#import "OtherSetting.h"
12 -@interface PoolBaseModel : NSObject
13 -
14 -- (NSString *)objectToJsonString;
15 -- (NSMutableString *)paramAddToString;
16 -- (id)initWithDiction:(NSDictionary *)diction;
17 -
18 -@end
...\ No newline at end of file ...\ No newline at end of file
1 -//
2 -// PoolLoginChecker.h
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/1/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
9 #import "PoolSdk/PoolLoginInfo.h" 2 #import "PoolSdk/PoolLoginInfo.h"
10 #import "PoolSdk/PoolNotification.h" 3 #import "PoolSdk/PoolNotification.h"
...@@ -22,11 +15,11 @@ ...@@ -22,11 +15,11 @@
22 - (void)initChecker; 15 - (void)initChecker;
23 - (void)startCheck:(PoolLoginInfo *)loginInfo; 16 - (void)startCheck:(PoolLoginInfo *)loginInfo;
24 - (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo; 17 - (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo;
25 -- (void) reportOpen; 18 +- (void) PepsireportOpen;
26 -- (void) reportSDKOpen; 19 +- (void) PepsireportSDKOpen;
27 -- (void)handleFirstOpenApp:(NSString*) path; 20 +- (void)PepsihandleFirstOpenApp:(NSString*) path;
28 - (void) reportEnter:(PoolReportInfo *)reInfo; 21 - (void) reportEnter:(PoolReportInfo *)reInfo;
29 -- (void) report:(NSString *)_action :(PoolReportInfo *)reInfo; 22 +- (void) PepsiReport:(NSString *)_action :(PoolReportInfo *)reInfo;
30 - (void)sendNotice:(PoolSDKNotificationType)notiType 23 - (void)sendNotice:(PoolSDKNotificationType)notiType
31 notiName:(NSString *)notiName 24 notiName:(NSString *)notiName
32 statusCode:(int)nCode 25 statusCode:(int)nCode
...@@ -35,10 +28,7 @@ ...@@ -35,10 +28,7 @@
35 28
36 - (void)startCheckDelegate:(PoolLoginInfo *)loginInfo; 29 - (void)startCheckDelegate:(PoolLoginInfo *)loginInfo;
37 30
38 -/** 31 +- (void)PepsiStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
39 - *type PoolSDKNotificationLogin 为登录验证 PoolSDKNotificationSwitchAccount 为切换账号成功验证
40 - */
41 -- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
42 32
43 /* 33 /*
44 *初始化时调用 34 *初始化时调用
......
1 -//
2 -// PoolConfig.h
3 -// PoolSdk
4 -//
5 -// Created by winFan on 12/11/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
10 2
11 @interface PoolConfig : NSObject 3 @interface PoolConfig : NSObject
......
1 -// 1 +#import "PoolSdk/PepsiPoolBaseModel.h"
2 -// GzyazfInfo.h 2 +@interface PoolCreateOrderInfo : PepsiPoolBaseModel
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/3/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 -
10 -#import "PoolSdk/PoolBaseModel.h"
11 -@interface PoolCreateOrderInfo : PoolBaseModel
12 3
13 @property(nonatomic,strong)NSString *serverId;//服务器ID 4 @property(nonatomic,strong)NSString *serverId;//服务器ID
14 @property(nonatomic, strong)NSString *serverName;//服务器名称 5 @property(nonatomic, strong)NSString *serverName;//服务器名称
...@@ -25,7 +16,7 @@ ...@@ -25,7 +16,7 @@
25 @property(nonatomic, strong)NSString *userId;//用户ID 16 @property(nonatomic, strong)NSString *userId;//用户ID
26 @property(nonatomic, strong)NSString *timestamp;//时间戳 17 @property(nonatomic, strong)NSString *timestamp;//时间戳
27 18
28 -- (NSString *) getTsign ; 19 +- (NSString *) PepsiGetTsign ;
29 -- (NSString *) getTimestamp ; 20 +- (NSString *) PepsiGetTimestamp ;
30 21
31 @end 22 @end
......
1 -// 1 +#import "PoolSdk/PepsiPoolBaseModel.h"
2 -// PoolLoginInfo.h 2 +@interface PoolLoginInfo : PepsiPoolBaseModel
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/1/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 -#import "PoolSdk/PoolBaseModel.h"
10 -@interface PoolLoginInfo : PoolBaseModel
11 3
12 @property(nonatomic,strong)NSString *timestamp; 4 @property(nonatomic,strong)NSString *timestamp;
13 -@property(nonatomic, strong)NSString *sign;//serverSign 5 +@property(nonatomic, strong)NSString *sign;
14 -@property(nonatomic, strong)NSString *other;//透传 6 +@property(nonatomic, strong)NSString *other;
15 @property(nonatomic, strong)NSString *openId; 7 @property(nonatomic, strong)NSString *openId;
16 @property(nonatomic, strong)NSString *userType; 8 @property(nonatomic, strong)NSString *userType;
17 9
......
1 -// 1 +#import "PoolSdk/PepsiPoolBaseModel.h"
2 -// PoolGzyazfInfo.h 2 +@interface PoolGzyazfInfo : PepsiPoolBaseModel
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/3/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 -
10 -#import "PoolSdk/PoolBaseModel.h"
11 -@interface PoolGzyazfInfo : PoolBaseModel
12 3
13 @property(nonatomic, strong)NSString *serverId; 4 @property(nonatomic, strong)NSString *serverId;
14 @property(nonatomic, strong)NSString *queryId; 5 @property(nonatomic, strong)NSString *queryId;
......
1 // 1 //
2 -// PoolReportInfo.h 2 +// PepsiPoolReportInfo.h
3 // PoolSdk 3 // PoolSdk
4 // 4 //
5 // Created by winFan on 12/21/15. 5 // Created by winFan on 12/21/15.
6 // Copyright (c) 2015 winFan. All rights reserved. 6 // Copyright (c) 2015 winFan. All rights reserved.
7 // 7 //
8 8
9 -#import "PoolSdk/PoolBaseModel.h" 9 +#import "PoolSdk/PepsiPoolBaseModel.h"
10 -@interface PoolReportInfo : PoolBaseModel 10 +@interface PoolReportInfo : PepsiPoolBaseModel
11 11
12 @property(nonatomic, strong)NSString *reportType;//类型 12 @property(nonatomic, strong)NSString *reportType;//类型
13 @property(nonatomic, strong)NSString *playerId;//玩家ID 13 @property(nonatomic, strong)NSString *playerId;//玩家ID
...@@ -30,14 +30,16 @@ ...@@ -30,14 +30,16 @@
30 30
31 @property(nonatomic, strong)NSString *openId; 31 @property(nonatomic, strong)NSString *openId;
32 32
33 -#define REPORT_URL @"https://statistic.public.sdk.gzyouai.com/sdk/statistic" //http://183.57.76.181:9030/sdk/statistic 33 +#define REPORT_URL @"https://statistic.public.sdk.gzyouai.com/sdk/statistic"
34 34
35 -#define REPORT_IDFA_URL @"https://statistic.public.sdk.gzyouai.com/sdk/last_channel?idfa=%@&sdkSimpleName=%@&gameSimpleName=%@" //@"http://183.57.76.181:9030/sdk/last_channel?idfa="// 35 +#define REPORT_IDFA_URL @"https://statistic.public.sdk.gzyouai.com/sdk/last_channel?idfa=%@&sdkSimpleName=%@&gameSimpleName=%@"
36 36
37 #define REPORT_OPEN @"open" 37 #define REPORT_OPEN @"open"
38 #define REPORT_ENTER @"enter" 38 #define REPORT_ENTER @"enter"
39 #define REPORT_CREATEROLE @"createrole" 39 #define REPORT_CREATEROLE @"createrole"
40 #define REPORT_ROLEUPGRADE @"roleupgrade" 40 #define REPORT_ROLEUPGRADE @"roleupgrade"
41 #define REPORT_SDK_OPEN @"opensdk" 41 #define REPORT_SDK_OPEN @"opensdk"
42 +#define REPORT_EXIT @"exit"
43 +#define REPORT_SELECT_SERVER @"selectserver"
42 44
43 @end 45 @end
......
1 -//
2 -// PoolSdk.h
3 -// PoolSdk
4 -//
5 -// Created by winFan on 11/23/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
10 #import "PoolSdk2.h" 2 #import "PoolSdk2.h"
3 +
11 #import <UIKit/UIKit.h> 4 #import <UIKit/UIKit.h>
12 5
13 @interface PoolSdk : NSObject 6 @interface PoolSdk : NSObject
14 -/** 7 +
15 - * 当前SDK的版本
16 - */
17 @property(nonatomic, strong, readonly)NSString *sdkVersion; 8 @property(nonatomic, strong, readonly)NSString *sdkVersion;
18 9
19 -/** 10 +
20 - * 用于设置url types schemes 默认为工程名
21 - */
22 @property(nonatomic, strong)NSString *urlSchemes; 11 @property(nonatomic, strong)NSString *urlSchemes;
23 12
24 @property BOOL isAppleGzyazfing; 13 @property BOOL isAppleGzyazfing;
25 -/** 14 +
26 - 获取SDK实例对象
27 - */
28 + (PoolSdk *)shareSDK; 15 + (PoolSdk *)shareSDK;
29 16
30 -/** 17 +
31 - 初始化SDK
32 - */
33 - (void)initSDK:(UIViewController *) control; 18 - (void)initSDK:(UIViewController *) control;
34 19
35 20
...@@ -37,130 +22,59 @@ ...@@ -37,130 +22,59 @@
37 22
38 - (void)setViewController:(UIViewController *)viewController; 23 - (void)setViewController:(UIViewController *)viewController;
39 24
40 -/** 25 +
41 - 登录SDK
42 - */
43 - (void)loginSDK; 26 - (void)loginSDK;
44 27
45 - (void)loginSDK:(UIViewController *)viewController; 28 - (void)loginSDK:(UIViewController *)viewController;
46 29
47 -/** 30 +
48 - 进行支付
49 - */
50 - (void)gzyazfWithGzyazfmentInfo:(PoolCreateOrderInfo *)gzyazfInfo; 31 - (void)gzyazfWithGzyazfmentInfo:(PoolCreateOrderInfo *)gzyazfInfo;
51 32
52 33
53 -/**
54 - *是否含有用户中心接口
55 - **/
56 - (BOOL)hasUserCenter; 34 - (BOOL)hasUserCenter;
57 35
58 -/** 36 +
59 - 用户中心
60 - */
61 - (void)gotoUserCenter; 37 - (void)gotoUserCenter;
62 38
63 -/** 39 +
64 - report
65 - */
66 - (void)reportSDK:(PoolReportInfo *)reportInfo; 40 - (void)reportSDK:(PoolReportInfo *)reportInfo;
67 41
68 -/** 42 +
69 - *是否含有注销接口
70 - */
71 - (BOOL)hasLogout; 43 - (BOOL)hasLogout;
72 44
73 -/** 45 +
74 - 注销
75 - */
76 - (void)logoutSDK; 46 - (void)logoutSDK;
77 47
78 -/** 48 +
79 - *是否含有切换账号接口
80 - **/
81 - (BOOL)hasSwitchAccount; 49 - (BOOL)hasSwitchAccount;
82 50
83 -/** 51 +
84 - *切换账号
85 - **/
86 - (void)switchAccount; 52 - (void)switchAccount;
87 53
88 54
89 -/**
90 - *是否含有退出接口
91 - **/
92 - (BOOL)hasExit; 55 - (BOOL)hasExit;
93 56
94 -/** 57 +
95 - 退出
96 - */
97 - (void)exitSDK; 58 - (void)exitSDK;
98 59
99 -/**
100 - *SDK销毁操作(游戏退出时调用)
101 - */
102 - (void)destroySDK; 60 - (void)destroySDK;
103 61
104 -/**
105 - 显示/隐藏浮标
106 - */
107 -//- (void)showFloatIcon:(BOOL)bFlag;
108 -
109 -
110 -/**
111 - // called in - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
112 - */
113 -
114 -/**
115 - 应用 appid
116 - */
117 -
118 -/**
119 - 应用支持的方向 默认为 EDreamSDKOrientationLandscape
120 - */
121 @property(nonatomic, assign)ESDKOrientation sdkOrientation; 62 @property(nonatomic, assign)ESDKOrientation sdkOrientation;
122 63
123 -/**
124 - 浮标是否已经显示,默认为NO
125 - */
126 @property(nonatomic, assign)BOOL bShowedFloat; 64 @property(nonatomic, assign)BOOL bShowedFloat;
127 65
128 66
129 -/**
130 - serverId
131 - */
132 @property(nonatomic, assign)int serverId; 67 @property(nonatomic, assign)int serverId;
133 68
134 -/** 69 +
135 - 获取gamechannelid
136 - */
137 -(NSString *) getGameChannelId; 70 -(NSString *) getGameChannelId;
138 71
139 -/**
140 - 获取Custom
141 - */
142 - (NSString *) getCustomValue; 72 - (NSString *) getCustomValue;
143 73
144 -/**
145 - 获取ChannelParameter1
146 - */
147 - (NSString *) getChannelParameter1; 74 - (NSString *) getChannelParameter1;
148 75
149 -/**
150 - 获取ChannelParameter2
151 - */
152 - (NSString *) getChannelParameter2; 76 - (NSString *) getChannelParameter2;
153 77
154 -
155 -/**
156 - *充值统计参数
157 - *accountId 账号ID,必填项, 和登陆、注册使用的accountId保持一致即可。
158 - *orderId 订单Id,必填项,请保证该值的全局唯一,系统会使用订单Id进行付费订单排重。
159 - *currencyAmount 货币金额,单位为元,支持小数
160 - *currencyType 货币类型
161 - *gzyazfType 支付类型(渠道)
162 - *custom 自定义扩展参数
163 - */
164 -(void)gzyazfmentSuccess:(NSString*)accountId orderId:(NSString*)orderId currencyAmount:(double)amount currencyType:(NSString*)currencyType gzyazfType:(NSString*)gzyazfType custom:(NSArray*)customArray; 78 -(void)gzyazfmentSuccess:(NSString*)accountId orderId:(NSString*)orderId currencyAmount:(double)amount currencyType:(NSString*)currencyType gzyazfType:(NSString*)gzyazfType custom:(NSArray*)customArray;
165 79
166 80
...@@ -172,9 +86,9 @@ ...@@ -172,9 +86,9 @@
172 86
173 - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken; 87 - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
174 88
175 -//推送 89 +
176 - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo ; 90 - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo ;
177 -//推送 91 +
178 - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler; 92 - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
179 93
180 94
......
1 -//
2 -// PoolSdk.h
3 -// PoolSdk
4 -//
5 -// Created by 许 on 16/1/15.
6 -// Copyright © 2016年 许. All rights reserved.
7 -//
8 -// In this header, you should import all the public headers of your framework using statements like #import <PoolSdk/PublicHeader.h>
9 -
10 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
11 #import "PoolChecker.h" 2 #import "PoolChecker.h"
12 -#import "Interface.h"
13 #import "PoolReportInfo.h" 3 #import "PoolReportInfo.h"
14 #import "PoolLoginInfo.h" 4 #import "PoolLoginInfo.h"
5 +#import "Interface.h"
15 #import "PoolNotification.h" 6 #import "PoolNotification.h"
16 #import "PoolPayInfo.h" 7 #import "PoolPayInfo.h"
17 #import "UnionInterface.h" 8 #import "UnionInterface.h"
...@@ -21,4 +12,3 @@ ...@@ -21,4 +12,3 @@
21 #import "NetCenter.h" 12 #import "NetCenter.h"
22 #import "PoolSdk.h" 13 #import "PoolSdk.h"
23 #import "PoolSdkDelegate.h" 14 #import "PoolSdkDelegate.h"
24 -
......
1 -//
2 -// PoolSdkDelegate.h
3 -// PoolSdk_i9133
4 -//
5 -// Created by 许 on 17/6/30.
6 -// Copyright © 2017年 许. All rights reserved.
7 -//
8 -
9 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
10 2
11 @protocol PoolSdkDelegate <NSObject> 3 @protocol PoolSdkDelegate <NSObject>
......
1 -//
2 -// PoolUtils.h
3 -// public_i9133
4 -//
5 -// Created by winFan on 12/3/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 -
9 -
10 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
11 #import <UIKit/UIKit.h> 2 #import <UIKit/UIKit.h>
12 3
13 @interface PoolUtils : NSObject 4 @interface PoolUtils : NSObject
14 5
15 +(NSString *)md5:(NSString *)str; 6 +(NSString *)md5:(NSString *)str;
16 -+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString; 7 ++ (NSDictionary *)PepsiDictionaryWithJsonString:(NSString *)jsonString;
17 +(NSString *)createGzyazfOrderUrl; 8 +(NSString *)createGzyazfOrderUrl;
18 //*充值回调地址 9 //*充值回调地址
19 +(NSString *)createGzyazfUrl; 10 +(NSString *)createGzyazfUrl;
......
1 -//
2 -// NewTtack.h
3 -// NewTtack
4 -//
5 -// Created by yun on 16/1/11.
6 -// Copyright © 2016年 yun. All rights reserved.
7 -//
8 #define TRACK_VERSION @"1.0.1" 1 #define TRACK_VERSION @"1.0.1"
9 -
10 #import <Foundation/Foundation.h> 2 #import <Foundation/Foundation.h>
11 #import <UIKit/UIKit.h> 3 #import <UIKit/UIKit.h>
12 4
13 -
14 -/*
15 - 热云移动广告效果监测 平台 api 请选择对应的api进行使用
16 - */
17 NS_ASSUME_NONNULL_BEGIN 5 NS_ASSUME_NONNULL_BEGIN
18 @interface TrackingIO : NSObject 6 @interface TrackingIO : NSObject
19 -//开启打印日志 正式上线包请关掉
20 +(void) setPrintLog :(BOOL)print; 7 +(void) setPrintLog :(BOOL)print;
21 -// 开启数据统计
22 + (void)initWithappKey:(NSString *)appKey withChannelId:(NSString *)channelId; 8 + (void)initWithappKey:(NSString *)appKey withChannelId:(NSString *)channelId;
23 -//注册成功后调用
24 + (void)setRegisterWithAccountID:(NSString *)account; 9 + (void)setRegisterWithAccountID:(NSString *)account;
25 -//登陆成功后调用
26 + (void)setLoginWithAccountID:(NSString *)account; 10 + (void)setLoginWithAccountID:(NSString *)account;
27 -//开始付费时 调用(人民币单位是元)
28 +(void)setGzyazfmentStart:(NSString *)transactionId gzyazfmentType:(NSString*)gzyazfmentType currentType:(NSString*)currencyType currencyAmount:(float)currencyAmount; 11 +(void)setGzyazfmentStart:(NSString *)transactionId gzyazfmentType:(NSString*)gzyazfmentType currentType:(NSString*)currencyType currencyAmount:(float)currencyAmount;
29 -// 支付完成,付费分析,记录玩家充值的金额(人民币单位是元)
30 +(void)setGzyazfment:(NSString *)transactionId gzyazfmentType:(NSString*)gzyazfmentType currentType:(NSString*)currencyType currencyAmount:(float)currencyAmount; 12 +(void)setGzyazfment:(NSString *)transactionId gzyazfmentType:(NSString*)gzyazfmentType currentType:(NSString*)currencyType currencyAmount:(float)currencyAmount;
31 -//自定义事件
32 +(void)setEvent:(NSString *)eventName andExtra:(nullable NSDictionary *)extra; 13 +(void)setEvent:(NSString *)eventName andExtra:(nullable NSDictionary *)extra;
33 -//标准接口
34 +(void)setProfile:(NSDictionary *)dataDic; 14 +(void)setProfile:(NSDictionary *)dataDic;
35 -//获取设备信息
36 +(NSString*)getDeviceId; 15 +(NSString*)getDeviceId;
37 @end 16 @end
38 NS_ASSUME_NONNULL_END 17 NS_ASSUME_NONNULL_END
......
1 -//
2 -// UnionInterface.h
3 -// PoolSdk
4 -//
5 -// Created by winFan on 11/23/15.
6 -// Copyright (c) 2015 winFan. All rights reserved.
7 -//
8 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
9 #import <UIKit/UIKit.h> 2 #import <UIKit/UIKit.h>
10 -#import "PoolCreateOrderInfo.h" 3 +#import "PoolSdk2.h"
11 -#import "PoolReportInfo.h"
12 4
13 @protocol UnionInterface 5 @protocol UnionInterface
14 /** 6 /**
......