lizhihui

更新 181114 版本

Showing 43 changed files with 127 additions and 558 deletions
No preview for this file type
......@@ -7,8 +7,8 @@
objects = {
/* Begin PBXBuildFile section */
260A34CB2130061A003C083C /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 260A34CA21300619003C083C /* PoolSdk.framework */; };
263A4CBB219AC90000DE9B28 /* PepsiSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 263A4CBA219AC90000DE9B28 /* PepsiSDK.framework */; };
26A4D548219BC8D4008B64B5 /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26A4D547219BC8D4008B64B5 /* PoolSdk.framework */; };
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
846BD2241EE9342700E89A1D /* pool_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* pool_setting */; };
846BD2261EE9342700E89A1D /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 846BD2231EE9342700E89A1D /* SDKInterface.m */; };
......@@ -59,8 +59,8 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
260A34CA21300619003C083C /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.framework; sourceTree = "<group>"; };
263A4CBA219AC90000DE9B28 /* PepsiSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PepsiSDK.framework; sourceTree = "<group>"; };
26A4D547219BC8D4008B64B5 /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.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>"; };
846BD21F1EE9342700E89A1D /* pool_setting */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = pool_setting; path = poolsdk_file/poolsdk/pool_setting; sourceTree = "<group>"; };
......@@ -116,7 +116,7 @@
8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */,
8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */,
260A34CB2130061A003C083C /* PoolSdk.framework in Frameworks */,
26A4D548219BC8D4008B64B5 /* PoolSdk.framework in Frameworks */,
8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */,
84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */,
);
......@@ -191,7 +191,7 @@
BB5F3C8A1C1811BC00DA339D /* Demo */ = {
isa = PBXGroup;
children = (
260A34CA21300619003C083C /* PoolSdk.framework */,
26A4D547219BC8D4008B64B5 /* PoolSdk.framework */,
8484E4F11EE7E0DC00B402D1 /* AppDelegate.h */,
8484E4F21EE7E0DC00B402D1 /* AppDelegate.m */,
8484E4F31EE7E0DC00B402D1 /* ViewController.h */,
......
//
// NetCenter.h
// public_i9133
//
// Created by winFan on 12/2/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NetCenter : NSObject
......
//
// OtherSetting.h
// PoolSdk
//
// Created by winFan on 11/23/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#ifndef __PoolSdk__OtherSetting__
#define __PoolSdk__OtherSetting__
......
//
// PGLogger.h
// PanguCommonLib
//
// Created by ouyanghua on 14-2-22.
// Copyright (c) 2014年 pangu. All rights reserved.
//
#import <Foundation/Foundation.h>
void DGLog(NSString *fmt, ...);
typedef NS_ENUM(NSInteger, DGLoggerLevel)
......@@ -19,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface DGLogger : NSObject
@interface PepsiDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface PepsiPoolBaseModel : NSObject
- (NSString *)PepsiObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
@end
//
// PoolBaseModel.h
// public_i9133
//
// Created by winFan on 12/2/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface PoolBaseModel : NSObject
- (NSString *)objectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
@end
\ No newline at end of file
//
// PoolLoginChecker.h
// public_i9133
//
// Created by winFan on 12/1/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PoolSdk/PoolLoginInfo.h"
#import "PoolSdk/PoolNotification.h"
......@@ -12,7 +5,7 @@
#import "PoolSdk/PoolPayInfo.h"
#import "PoolReportInfo.h"
#import "PoolSdkDelegate.h"
@interface PoolChecker : NSObject<PoolSdkDelegate>
@property(nonatomic, strong)NSString *userId;
@property(nonatomic, strong)id<PoolSdkDelegate> mPoolSdkDelegate;
......@@ -22,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(PoolLoginInfo *)loginInfo;
- (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo;
- (void) reportOpen;
- (void) reportSDKOpen;
- (void)handleFirstOpenApp:(NSString*) path;
- (void) PepsireportOpen;
- (void) PepsireportSDKOpen;
- (void)PepsihandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(PoolReportInfo *)reInfo;
- (void) report:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void) PepsiReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void)sendNotice:(PoolSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -35,10 +28,7 @@
- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo;
/**
*type PoolSDKNotificationLogin 为登录验证 PoolSDKNotificationSwitchAccount 为切换账号成功验证
*/
- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
- (void)PepsiStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
//
// PoolConfig.h
// PoolSdk
//
// Created by winFan on 12/11/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface PoolConfig : NSObject
@property(nonatomic, strong)NSString *gameSimpleName;
......
//
// GzyazfInfo.h
// public_i9133
//
// Created by winFan on 12/3/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/PoolBaseModel.h"
@interface PoolCreateOrderInfo : PoolBaseModel
#import "PoolSdk/PepsiPoolBaseModel.h"
@interface PoolCreateOrderInfo : PepsiPoolBaseModel
@property(nonatomic,strong)NSString *serverId;//服务器ID
@property(nonatomic, strong)NSString *serverName;//服务器名称
......@@ -25,7 +16,7 @@
@property(nonatomic, strong)NSString *userId;//用户ID
@property(nonatomic, strong)NSString *timestamp;//时间戳
- (NSString *) getTsign ;
- (NSString *) getTimestamp ;
- (NSString *) PepsiGetTsign ;
- (NSString *) PepsiGetTimestamp ;
@end
......
//
// PoolLoginInfo.h
// public_i9133
//
// Created by winFan on 12/1/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/PoolBaseModel.h"
@interface PoolLoginInfo : PoolBaseModel
#import "PoolSdk/PepsiPoolBaseModel.h"
@interface PoolLoginInfo : PepsiPoolBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;//serverSign
@property(nonatomic, strong)NSString *other;//透传
@property(nonatomic, strong)NSString *sign;
@property(nonatomic, strong)NSString *other;
@property(nonatomic, strong)NSString *openId;
@property(nonatomic, strong)NSString *userType;
@end
\ No newline at end of file
@end
......
//
// PoolGzyazfInfo.h
// public_i9133
//
// Created by winFan on 12/3/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/PoolBaseModel.h"
@interface PoolGzyazfInfo : PoolBaseModel
#import "PoolSdk/PepsiPoolBaseModel.h"
@interface PoolGzyazfInfo : PepsiPoolBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
//
// PoolReportInfo.h
// PepsiPoolReportInfo.h
// PoolSdk
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/PoolBaseModel.h"
@interface PoolReportInfo : PoolBaseModel
#import "PoolSdk/PepsiPoolBaseModel.h"
@interface PoolReportInfo : PepsiPoolBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......@@ -30,14 +30,16 @@
@property(nonatomic, strong)NSString *openId;
#define REPORT_URL @"https://statistic.public.sdk.gzyouai.com/sdk/statistic" //http://183.57.76.181:9030/sdk/statistic
#define REPORT_URL @"https://statistic.public.sdk.gzyouai.com/sdk/statistic"
#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="//
#define REPORT_IDFA_URL @"https://statistic.public.sdk.gzyouai.com/sdk/last_channel?idfa=%@&sdkSimpleName=%@&gameSimpleName=%@"
#define REPORT_OPEN @"open"
#define REPORT_ENTER @"enter"
#define REPORT_CREATEROLE @"createrole"
#define REPORT_ROLEUPGRADE @"roleupgrade"
#define REPORT_SDK_OPEN @"opensdk"
#define REPORT_EXIT @"exit"
#define REPORT_SELECT_SERVER @"selectserver"
@end
......
//
// PoolSdk.h
// PoolSdk
//
// Created by winFan on 11/23/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PoolSdk2.h"
#import <UIKit/UIKit.h>
@interface PoolSdk : NSObject
/**
* 当前SDK的版本
*/
@property(nonatomic, strong, readonly)NSString *sdkVersion;
/**
* 用于设置url types schemes 默认为工程名
*/
@property(nonatomic, strong)NSString *urlSchemes;
@property BOOL isAppleGzyazfing;
/**
获取SDK实例对象
*/
+ (PoolSdk *)shareSDK;
/**
初始化SDK
*/
- (void)initSDK:(UIViewController *) control;
......@@ -37,130 +22,59 @@
- (void)setViewController:(UIViewController *)viewController;
/**
登录SDK
*/
- (void)loginSDK;
- (void)loginSDK:(UIViewController *)viewController;
/**
进行支付
*/
- (void)gzyazfWithGzyazfmentInfo:(PoolCreateOrderInfo *)gzyazfInfo;
/**
*是否含有用户中心接口
**/
- (BOOL)hasUserCenter;
/**
用户中心
*/
- (void)gotoUserCenter;
/**
report
*/
- (void)reportSDK:(PoolReportInfo *)reportInfo;
/**
*是否含有注销接口
*/
- (BOOL)hasLogout;
/**
注销
*/
- (void)logoutSDK;
/**
*是否含有切换账号接口
**/
- (BOOL)hasSwitchAccount;
/**
*切换账号
**/
- (void)switchAccount;
/**
*是否含有退出接口
**/
- (BOOL)hasExit;
/**
退出
*/
- (void)exitSDK;
/**
*SDK销毁操作(游戏退出时调用)
*/
- (void)destroySDK;
/**
显示/隐藏浮标
*/
//- (void)showFloatIcon:(BOOL)bFlag;
/**
// called in - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
*/
/**
应用 appid
*/
/**
应用支持的方向 默认为 EDreamSDKOrientationLandscape
*/
@property(nonatomic, assign)ESDKOrientation sdkOrientation;
/**
浮标是否已经显示,默认为NO
*/
@property(nonatomic, assign)BOOL bShowedFloat;
/**
serverId
*/
@property(nonatomic, assign)int serverId;
/**
获取gamechannelid
*/
-(NSString *) getGameChannelId;
/**
获取Custom
*/
- (NSString *) getCustomValue;
/**
获取ChannelParameter1
*/
- (NSString *) getChannelParameter1;
/**
获取ChannelParameter2
*/
- (NSString *) getChannelParameter2;
/**
*充值统计参数
*accountId 账号ID,必填项, 和登陆、注册使用的accountId保持一致即可。
*orderId 订单Id,必填项,请保证该值的全局唯一,系统会使用订单Id进行付费订单排重。
*currencyAmount 货币金额,单位为元,支持小数
*currencyType 货币类型
*gzyazfType 支付类型(渠道)
*custom 自定义扩展参数
*/
-(void)gzyazfmentSuccess:(NSString*)accountId orderId:(NSString*)orderId currencyAmount:(double)amount currencyType:(NSString*)currencyType gzyazfType:(NSString*)gzyazfType custom:(NSArray*)customArray;
......@@ -172,9 +86,9 @@
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
//推送
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo ;
//推送
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
......
//
// PoolSdk.h
// PoolSdk
//
// Created by 许 on 16/1/15.
// Copyright © 2016年 许. All rights reserved.
//
// In this header, you should import all the public headers of your framework using statements like #import <PoolSdk/PublicHeader.h>
#import <UIKit/UIKit.h>
#import "PoolChecker.h"
#import "Interface.h"
#import "PoolReportInfo.h"
#import "PoolLoginInfo.h"
#import "Interface.h"
#import "PoolNotification.h"
#import "PoolPayInfo.h"
#import "UnionInterface.h"
......@@ -21,4 +12,3 @@
#import "NetCenter.h"
#import "PoolSdk.h"
#import "PoolSdkDelegate.h"
......
//
// PoolSdkDelegate.h
// PoolSdk_i9133
//
// Created by 许 on 17/6/30.
// Copyright © 2017年 许. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol PoolSdkDelegate <NSObject>
@optional
-(void)PoolSdkLoginSuccess:(PoolLoginInfo*)loginInfo;
......
//
// PoolUtils.h
// public_i9133
//
// Created by winFan on 12/3/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface PoolUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)PepsiDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
//
// NewTtack.h
// NewTtack
//
// Created by yun on 16/1/11.
// Copyright © 2016年 yun. All rights reserved.
//
#define TRACK_VERSION @"1.0.1"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
/*
热云移动广告效果监测 平台 api 请选择对应的api进行使用
*/
NS_ASSUME_NONNULL_BEGIN
@interface TrackingIO : NSObject
//开启打印日志 正式上线包请关掉
+(void) setPrintLog :(BOOL)print;
// 开启数据统计
+ (void)initWithappKey:(NSString *)appKey withChannelId:(NSString *)channelId;
//注册成功后调用
+ (void)setRegisterWithAccountID:(NSString *)account;
//登陆成功后调用
+ (void)setLoginWithAccountID:(NSString *)account;
//开始付费时 调用(人民币单位是元)
+(void)setGzyazfmentStart:(NSString *)transactionId gzyazfmentType:(NSString*)gzyazfmentType currentType:(NSString*)currencyType currencyAmount:(float)currencyAmount;
// 支付完成,付费分析,记录玩家充值的金额(人民币单位是元)
+(void)setGzyazfment:(NSString *)transactionId gzyazfmentType:(NSString*)gzyazfmentType currentType:(NSString*)currencyType currencyAmount:(float)currencyAmount;
//自定义事件
+(void)setEvent:(NSString *)eventName andExtra:(nullable NSDictionary *)extra;
//标准接口
+(void)setProfile:(NSDictionary *)dataDic;
//获取设备信息
+(NSString*)getDeviceId;
@end
NS_ASSUME_NONNULL_END
......
//
// UnionInterface.h
// PoolSdk
//
// Created by winFan on 11/23/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "PoolCreateOrderInfo.h"
#import "PoolReportInfo.h"
#import "PoolSdk2.h"
@protocol UnionInterface
/**
初始化SDK
......
新接入请参考对接文档和demo<br>
2018-11-13:<br>
2018-11-14:<br>
1、``` 删除pool_file文件夹中SingleSDK.framework ``` <br>
2、引入 ``` PepsiSDK.framework ``` <br>
3、替换 ``` SDKInterface.m文件 ``` <br>
\ No newline at end of file
3、替换 ``` SDKInterface.m文件 ``` <br>
4、替换 ``` PoolSdk.framework ``` <br>
\ No newline at end of file
......
//
// NetCenter.h
// public_i9133
//
// Created by winFan on 12/2/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NetCenter : NSObject
......
//
// OtherSetting.h
// PoolSdk
//
// Created by winFan on 11/23/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#ifndef __PoolSdk__OtherSetting__
#define __PoolSdk__OtherSetting__
......
//
// PGLogger.h
// PanguCommonLib
//
// Created by ouyanghua on 14-2-22.
// Copyright (c) 2014年 pangu. All rights reserved.
//
#import <Foundation/Foundation.h>
void DGLog(NSString *fmt, ...);
typedef NS_ENUM(NSInteger, DGLoggerLevel)
......@@ -19,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel)
ELogError
};
@interface DGLogger : NSObject
@interface PepsiDGLogger : NSObject
+ (void)showLog:(NSString *)fmt,...;
......
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface PepsiPoolBaseModel : NSObject
- (NSString *)PepsiObjectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
@end
//
// PoolBaseModel.h
// public_i9133
//
// Created by winFan on 12/2/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "OtherSetting.h"
@interface PoolBaseModel : NSObject
- (NSString *)objectToJsonString;
- (NSMutableString *)paramAddToString;
- (id)initWithDiction:(NSDictionary *)diction;
@end
\ No newline at end of file
//
// PoolLoginChecker.h
// public_i9133
//
// Created by winFan on 12/1/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PoolSdk/PoolLoginInfo.h"
#import "PoolSdk/PoolNotification.h"
......@@ -12,7 +5,7 @@
#import "PoolSdk/PoolPayInfo.h"
#import "PoolReportInfo.h"
#import "PoolSdkDelegate.h"
@interface PoolChecker : NSObject<PoolSdkDelegate>
@property(nonatomic, strong)NSString *userId;
@property(nonatomic, strong)id<PoolSdkDelegate> mPoolSdkDelegate;
......@@ -22,11 +15,11 @@
- (void)initChecker;
- (void)startCheck:(PoolLoginInfo *)loginInfo;
- (void) createOrder:(PoolCreateOrderInfo *)gzyazfInfo;
- (void) reportOpen;
- (void) reportSDKOpen;
- (void)handleFirstOpenApp:(NSString*) path;
- (void) PepsireportOpen;
- (void) PepsireportSDKOpen;
- (void)PepsihandleFirstOpenApp:(NSString*) path;
- (void) reportEnter:(PoolReportInfo *)reInfo;
- (void) report:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void) PepsiReport:(NSString *)_action :(PoolReportInfo *)reInfo;
- (void)sendNotice:(PoolSDKNotificationType)notiType
notiName:(NSString *)notiName
statusCode:(int)nCode
......@@ -35,10 +28,7 @@
- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo;
/**
*type PoolSDKNotificationLogin 为登录验证 PoolSDKNotificationSwitchAccount 为切换账号成功验证
*/
- (void)startCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
- (void)PepsiStartCheckDelegate:(PoolLoginInfo *)loginInfo type:(int)type;
/*
*初始化时调用
......
//
// PoolConfig.h
// PoolSdk
//
// Created by winFan on 12/11/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface PoolConfig : NSObject
@property(nonatomic, strong)NSString *gameSimpleName;
......
//
// GzyazfInfo.h
// public_i9133
//
// Created by winFan on 12/3/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/PoolBaseModel.h"
@interface PoolCreateOrderInfo : PoolBaseModel
#import "PoolSdk/PepsiPoolBaseModel.h"
@interface PoolCreateOrderInfo : PepsiPoolBaseModel
@property(nonatomic,strong)NSString *serverId;//服务器ID
@property(nonatomic, strong)NSString *serverName;//服务器名称
......@@ -25,7 +16,7 @@
@property(nonatomic, strong)NSString *userId;//用户ID
@property(nonatomic, strong)NSString *timestamp;//时间戳
- (NSString *) getTsign ;
- (NSString *) getTimestamp ;
- (NSString *) PepsiGetTsign ;
- (NSString *) PepsiGetTimestamp ;
@end
......
//
// PoolLoginInfo.h
// public_i9133
//
// Created by winFan on 12/1/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/PoolBaseModel.h"
@interface PoolLoginInfo : PoolBaseModel
#import "PoolSdk/PepsiPoolBaseModel.h"
@interface PoolLoginInfo : PepsiPoolBaseModel
@property(nonatomic,strong)NSString *timestamp;
@property(nonatomic, strong)NSString *sign;//serverSign
@property(nonatomic, strong)NSString *other;//透传
@property(nonatomic, strong)NSString *sign;
@property(nonatomic, strong)NSString *other;
@property(nonatomic, strong)NSString *openId;
@property(nonatomic, strong)NSString *userType;
@end
\ No newline at end of file
@end
......
//
// PoolGzyazfInfo.h
// public_i9133
//
// Created by winFan on 12/3/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/PoolBaseModel.h"
@interface PoolGzyazfInfo : PoolBaseModel
#import "PoolSdk/PepsiPoolBaseModel.h"
@interface PoolGzyazfInfo : PepsiPoolBaseModel
@property(nonatomic, strong)NSString *serverId;
@property(nonatomic, strong)NSString *queryId;
......
//
// PoolReportInfo.h
// PepsiPoolReportInfo.h
// PoolSdk
//
// Created by winFan on 12/21/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import "PoolSdk/PoolBaseModel.h"
@interface PoolReportInfo : PoolBaseModel
#import "PoolSdk/PepsiPoolBaseModel.h"
@interface PoolReportInfo : PepsiPoolBaseModel
@property(nonatomic, strong)NSString *reportType;//类型
@property(nonatomic, strong)NSString *playerId;//玩家ID
......@@ -30,14 +30,16 @@
@property(nonatomic, strong)NSString *openId;
#define REPORT_URL @"https://statistic.public.sdk.gzyouai.com/sdk/statistic" //http://183.57.76.181:9030/sdk/statistic
#define REPORT_URL @"https://statistic.public.sdk.gzyouai.com/sdk/statistic"
#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="//
#define REPORT_IDFA_URL @"https://statistic.public.sdk.gzyouai.com/sdk/last_channel?idfa=%@&sdkSimpleName=%@&gameSimpleName=%@"
#define REPORT_OPEN @"open"
#define REPORT_ENTER @"enter"
#define REPORT_CREATEROLE @"createrole"
#define REPORT_ROLEUPGRADE @"roleupgrade"
#define REPORT_SDK_OPEN @"opensdk"
#define REPORT_EXIT @"exit"
#define REPORT_SELECT_SERVER @"selectserver"
@end
......
//
// PoolSdk.h
// PoolSdk
//
// Created by winFan on 11/23/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PoolSdk2.h"
#import <UIKit/UIKit.h>
@interface PoolSdk : NSObject
/**
* 当前SDK的版本
*/
@property(nonatomic, strong, readonly)NSString *sdkVersion;
/**
* 用于设置url types schemes 默认为工程名
*/
@property(nonatomic, strong)NSString *urlSchemes;
@property BOOL isAppleGzyazfing;
/**
获取SDK实例对象
*/
+ (PoolSdk *)shareSDK;
/**
初始化SDK
*/
- (void)initSDK:(UIViewController *) control;
......@@ -37,130 +22,59 @@
- (void)setViewController:(UIViewController *)viewController;
/**
登录SDK
*/
- (void)loginSDK;
- (void)loginSDK:(UIViewController *)viewController;
/**
进行支付
*/
- (void)gzyazfWithGzyazfmentInfo:(PoolCreateOrderInfo *)gzyazfInfo;
/**
*是否含有用户中心接口
**/
- (BOOL)hasUserCenter;
/**
用户中心
*/
- (void)gotoUserCenter;
/**
report
*/
- (void)reportSDK:(PoolReportInfo *)reportInfo;
/**
*是否含有注销接口
*/
- (BOOL)hasLogout;
/**
注销
*/
- (void)logoutSDK;
/**
*是否含有切换账号接口
**/
- (BOOL)hasSwitchAccount;
/**
*切换账号
**/
- (void)switchAccount;
/**
*是否含有退出接口
**/
- (BOOL)hasExit;
/**
退出
*/
- (void)exitSDK;
/**
*SDK销毁操作(游戏退出时调用)
*/
- (void)destroySDK;
/**
显示/隐藏浮标
*/
//- (void)showFloatIcon:(BOOL)bFlag;
/**
// called in - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
*/
/**
应用 appid
*/
/**
应用支持的方向 默认为 EDreamSDKOrientationLandscape
*/
@property(nonatomic, assign)ESDKOrientation sdkOrientation;
/**
浮标是否已经显示,默认为NO
*/
@property(nonatomic, assign)BOOL bShowedFloat;
/**
serverId
*/
@property(nonatomic, assign)int serverId;
/**
获取gamechannelid
*/
-(NSString *) getGameChannelId;
/**
获取Custom
*/
- (NSString *) getCustomValue;
/**
获取ChannelParameter1
*/
- (NSString *) getChannelParameter1;
/**
获取ChannelParameter2
*/
- (NSString *) getChannelParameter2;
/**
*充值统计参数
*accountId 账号ID,必填项, 和登陆、注册使用的accountId保持一致即可。
*orderId 订单Id,必填项,请保证该值的全局唯一,系统会使用订单Id进行付费订单排重。
*currencyAmount 货币金额,单位为元,支持小数
*currencyType 货币类型
*gzyazfType 支付类型(渠道)
*custom 自定义扩展参数
*/
-(void)gzyazfmentSuccess:(NSString*)accountId orderId:(NSString*)orderId currencyAmount:(double)amount currencyType:(NSString*)currencyType gzyazfType:(NSString*)gzyazfType custom:(NSArray*)customArray;
......@@ -172,9 +86,9 @@
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
//推送
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo ;
//推送
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler;
......
//
// PoolSdk.h
// PoolSdk
//
// Created by 许 on 16/1/15.
// Copyright © 2016年 许. All rights reserved.
//
// In this header, you should import all the public headers of your framework using statements like #import <PoolSdk/PublicHeader.h>
#import <UIKit/UIKit.h>
#import "PoolChecker.h"
#import "Interface.h"
#import "PoolReportInfo.h"
#import "PoolLoginInfo.h"
#import "Interface.h"
#import "PoolNotification.h"
#import "PoolPayInfo.h"
#import "UnionInterface.h"
......@@ -21,4 +12,3 @@
#import "NetCenter.h"
#import "PoolSdk.h"
#import "PoolSdkDelegate.h"
......
//
// PoolSdkDelegate.h
// PoolSdk_i9133
//
// Created by 许 on 17/6/30.
// Copyright © 2017年 许. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol PoolSdkDelegate <NSObject>
@optional
-(void)PoolSdkLoginSuccess:(PoolLoginInfo*)loginInfo;
......
//
// PoolUtils.h
// public_i9133
//
// Created by winFan on 12/3/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface PoolUtils : NSObject
+(NSString *)md5:(NSString *)str;
+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString;
+ (NSDictionary *)PepsiDictionaryWithJsonString:(NSString *)jsonString;
+(NSString *)createGzyazfOrderUrl;
//*充值回调地址
+(NSString *)createGzyazfUrl;
......
//
// NewTtack.h
// NewTtack
//
// Created by yun on 16/1/11.
// Copyright © 2016年 yun. All rights reserved.
//
#define TRACK_VERSION @"1.0.1"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
/*
热云移动广告效果监测 平台 api 请选择对应的api进行使用
*/
NS_ASSUME_NONNULL_BEGIN
@interface TrackingIO : NSObject
//开启打印日志 正式上线包请关掉
+(void) setPrintLog :(BOOL)print;
// 开启数据统计
+ (void)initWithappKey:(NSString *)appKey withChannelId:(NSString *)channelId;
//注册成功后调用
+ (void)setRegisterWithAccountID:(NSString *)account;
//登陆成功后调用
+ (void)setLoginWithAccountID:(NSString *)account;
//开始付费时 调用(人民币单位是元)
+(void)setGzyazfmentStart:(NSString *)transactionId gzyazfmentType:(NSString*)gzyazfmentType currentType:(NSString*)currencyType currencyAmount:(float)currencyAmount;
// 支付完成,付费分析,记录玩家充值的金额(人民币单位是元)
+(void)setGzyazfment:(NSString *)transactionId gzyazfmentType:(NSString*)gzyazfmentType currentType:(NSString*)currencyType currencyAmount:(float)currencyAmount;
//自定义事件
+(void)setEvent:(NSString *)eventName andExtra:(nullable NSDictionary *)extra;
//标准接口
+(void)setProfile:(NSDictionary *)dataDic;
//获取设备信息
+(NSString*)getDeviceId;
@end
NS_ASSUME_NONNULL_END
......
//
// UnionInterface.h
// PoolSdk
//
// Created by winFan on 11/23/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "PoolCreateOrderInfo.h"
#import "PoolReportInfo.h"
#import "PoolSdk2.h"
@protocol UnionInterface
/**
初始化SDK
......