lizhihui

update

Showing 32 changed files with 142 additions and 218 deletions
No preview for this file type
......@@ -7,7 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
26B975C020AD7A66001E5EF9 /* XiongDiSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26B975BF20AD7A66001E5EF9 /* XiongDiSDK.framework */; };
2691DA4620BB9E6400FEF5C3 /* HMHomeSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2691DA4520BB9E6300FEF5C3 /* HMHomeSDK.framework */; };
8425EC1A1F0E3CBD00B0D868 /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8425EC191F0E3CBD00B0D868 /* PoolSdk.framework */; };
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
846BD2241EE9342700E89A1D /* pool_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* pool_setting */; };
......@@ -60,7 +60,7 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
26B975BF20AD7A66001E5EF9 /* XiongDiSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = XiongDiSDK.framework; sourceTree = "<group>"; };
2691DA4520BB9E6300FEF5C3 /* HMHomeSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HMHomeSDK.framework; sourceTree = "<group>"; };
8425EC191F0E3CBD00B0D868 /* 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>"; };
......@@ -106,7 +106,7 @@
8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */,
8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */,
8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */,
26B975C020AD7A66001E5EF9 /* XiongDiSDK.framework in Frameworks */,
2691DA4620BB9E6400FEF5C3 /* HMHomeSDK.framework in Frameworks */,
8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */,
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
......@@ -144,7 +144,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
26B975BF20AD7A66001E5EF9 /* XiongDiSDK.framework */,
2691DA4520BB9E6300FEF5C3 /* HMHomeSDK.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* pool_setting */,
......
No preview for this file type
#import <UIKit/UIKit.h>
#import "XiongDiLoginInfo.h"
#import "HMUser.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface XiongDiViewController : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface HMHome : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
//@property(assign) int webViewWidth;
//@property(assign) int webViewHeight;
//@property(assign) int screenwidth;
//@property(assign) int screenHeight;
@property(assign) BOOL hasCorner;
-(void)setXiongDiView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)initXiongDiWebView;
-(void)settingHMZoneView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)initHMZoneWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface HMHomeManager : NSObject
{
NSString* HMAPPID_;
NSString* HMAPPKEY_;
NSString* inviterCode_;
}
@property bool banana;
+ (HMHomeManager *)getInstance;
- (void)initHMZoneSDK;
- (void)startHMZoneLogin:(NSString *)HMAPPID : (NSString *)HMAPPKEY : (UIViewController *)controller;
- (void)setBabyStyleName:(NSString*)styleName;
- (void)startHMZoneAlisha: (NSString *)fwqid : (NSString *)nickName : (NSNumber *)amount : (NSString *)callBack : (UIViewController *)controller;
- (void)startWithHMZoneAlisha:(UIViewController*)controll products:(NSString*)products amount:(NSString*)amount productName:(NSString*)productName DdhID:(NSString*) DdhID;
@end
#import <Foundation/Foundation.h>
extern NSString * const HMZoneExitNotification;
extern NSString * const HMZoneLoginNotification;
extern NSString * const HMZoneErrorNotification;
@interface HMNotifications : NSObject
@end
#import <UIKit/UIKit.h>
@interface XiongDiGetWifiMac : NSObject
@interface HMRoom : NSObject
+ (NSString *)myMacAddress;
+ (NSString *)IAPAdress;
@end
......
#import <Foundation/Foundation.h>
@interface XiongDiLoginInfo : NSObject //用户uid
@interface HMUser : NSObject
{
//
NSString *openId;
//token
NSString *token;
//时间戳
NSString *timestamp;
}
......@@ -14,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (XiongDiLoginInfo *)getInstance;
+ (HMUser *)getInstance;
@end
......
#import <Foundation/Foundation.h>
extern NSString * const XiongDiExitNotification; /**< 退出 */
extern NSString * const XiongDiLoginNotification; /**< 登录完成的通知*/
extern NSString * const XiongDiErrorNotification; /**< 出错 */
@interface XiongDiNotifications : NSObject
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface XiongDiSDKMgr : NSObject
{
NSString* appId_;
NSString* appKey_;
NSString* inviterCode_;
}
@property bool banana;
+ (XiongDiSDKMgr *)getInstance;
- (void)initXiongDiSDK;
- (void)startXiongDiLogin:(NSString *)appId : (NSString *)appKey : (UIViewController *)controller;
- (void)setCoolStyleName:(NSString*)styleName;
- (void)startXiongDiDelia: (NSString *)serverId : (NSString *)nickName : (NSNumber *)amount : (NSString *)callBack : (UIViewController *)controller;
- (void)startWithXiongDiDelia:(UIViewController*)controll products:(NSString*)products amount:(NSString*)amount productName:(NSString*)productName queryId:(NSString*) queryId;
@end
......@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.1.408</string>
<string>1.1.407</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
......
//
// PPInterface.h
// PoolSdk
//
// Created by winFan on 11/23/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import <PoolSdk/PoolSdk2.h>
@interface SDKInterface : Interface
@end
......
//
// UnionInterface.m
// PoolSdk
//
// Created by winFan on 11/23/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "XiongDiSDK/XiongDiSDKMgr.h"
#import "XiongDiSDK/XiongDiNotifications.h"
#import "XiongDiSDK/XiongDiLoginInfo.h"
#import "HMHomeSDK/HMHomeManager.h"
#import "HMHomeSDK/HMNotifications.h"
#import "HMHomeSDK/HMUser.h"
#import "TrackingIO.h"
//SDK
@implementation SDKInterface : Interface
int mExchange;
NSString *sdkAppId;
NSString *sdkAppKey;
/**
初始化SDK
*/
- (void)SDKinit:(UIViewController *) control
{
//必须继承
[super SDKinit:control];
[PoolConfig getInstance];
[[XiongDiSDKMgr getInstance]initXiongDiSDK];
[[XiongDiSDKMgr getInstance]setCoolStyleName:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:XiongDiLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(XiongDiToolCallBack:) name:@"XiongDiToolCallBack" object:nil];
[[HMHomeManager getInstance]initHMZoneSDK];
[[HMHomeManager getInstance]setBabyStyleName:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:HMZoneLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HMZoneToolCallBack:) name:@"HMZoneToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -45,10 +30,6 @@ NSString *sdkAppKey;
channelId = @"unknown";
}
[TrackingIO initWithappKey:[[PoolConfig getInstance] getValueByKey:@"renyunAppKey"] withChannelId:channelId];
//APPID APPKEY
sdkAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
sdkAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
}
/**
......@@ -56,12 +37,10 @@ NSString *sdkAppKey;
*/
- (void)SDKloginSDK
{
NSLog(@"调用了LoginSDK");
//NSString *appId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
//NSString *appKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
NSLog(@"%@",sdkAppId);
NSLog(@"%@",sdkAppId);
[[XiongDiSDKMgr getInstance]startXiongDiLogin:sdkAppId :sdkAppKey :self.controller];
//APPID APPKEY
sdkAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
sdkAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[HMHomeManager getInstance]startHMZoneLogin:sdkAppId :sdkAppKey :self.controller];
}
......@@ -72,9 +51,9 @@ NSString *sdkAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[XiongDiLoginInfo getInstance]openId];
loginInfo.sign = [[XiongDiLoginInfo getInstance] token];
loginInfo.timestamp = [XiongDiLoginInfo getInstance].timestamp;
loginInfo.openId = [[HMUser getInstance]openId];
loginInfo.sign = [[HMUser getInstance] token];
loginInfo.timestamp = [HMUser getInstance].timestamp;
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -98,11 +77,11 @@ NSString *sdkAppKey;
苹果支付结果回调
*/
- (void)XiongDiToolCallBack:(NSNotification *)notification
- (void)HMZoneToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"XiongDiToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"HMZoneToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -195,7 +174,7 @@ NSString *sdkAppKey;
NSLog(@"orderDic%@",queryIdArray);
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSMutableArray* failQueryIdArray = [[NSMutableArray alloc]initWithCapacity:10];//补单失败的queryid集合
NSMutableArray* failQueryIdArray = [[NSMutableArray alloc]initWithCapacity:10];
if(queryIdArray){
for (NSString* queryId in queryIdArray) {
......@@ -236,10 +215,10 @@ NSString *sdkAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[XiongDiSDKMgr getInstance] startXiongDiDelia:serverId :roleName :amount :[payInfo queryId] :self.controller];
[[HMHomeManager getInstance] startHMZoneAlisha:serverId :roleName :amount :[payInfo queryId] :self.controller];
}else{
NSString* products = [payInfo products];
[[XiongDiSDKMgr getInstance] startWithXiongDiDelia:self.controller products:products amount:[payInfo postAmount] productName:[payInfo productName] queryId:queryId];
[[HMHomeManager getInstance] startWithHMZoneAlisha:self.controller products:products amount:[payInfo postAmount] productName:[payInfo productName] DdhID:queryId];
}
}
......
新接入请参考对接文档和demo<br>
2018-05-23:<br>
已接入快速更新方法<br>
1、 删除HaibaoSDK.framework<br>
2、 引入XiongDiSDK.framework<br>
3、 替换SDKInterface.h和SDKInterface.m文件<br>
2018-05-28:<br>
已接入快速更新方法<br>
1、删除XingDiSDK.framework 删除HaibaoSDK.framework<br>
2、引入HMHomeSDK.framework<br>
3、替换SDKInterface.h和SDKInterface.m文件<br>
4、 替换PoolSdk.framework<br>
5、 支付接口[[PoolSdk shareSDK] payWithPaymentInfo:orderInfo];修改为[[PoolSdk shareSDK] gzyazfWithGzyazfmentInfo:orderInfo];<br>
6、 回调PoolSDKNotificationPay 修改为 PoolSDKNotificationGzyazf<br>
......
#import <UIKit/UIKit.h>
#import "XiongDiLoginInfo.h"
#import "HMUser.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface XiongDiViewController : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface HMHome : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
//@property(assign) int webViewWidth;
//@property(assign) int webViewHeight;
//@property(assign) int screenwidth;
//@property(assign) int screenHeight;
@property(assign) BOOL hasCorner;
-(void)setXiongDiView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)initXiongDiWebView;
-(void)settingHMZoneView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)initHMZoneWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface HMHomeManager : NSObject
{
NSString* HMAPPID_;
NSString* HMAPPKEY_;
NSString* inviterCode_;
}
@property bool banana;
+ (HMHomeManager *)getInstance;
- (void)initHMZoneSDK;
- (void)startHMZoneLogin:(NSString *)HMAPPID : (NSString *)HMAPPKEY : (UIViewController *)controller;
- (void)setBabyStyleName:(NSString*)styleName;
- (void)startHMZoneAlisha: (NSString *)fwqid : (NSString *)nickName : (NSNumber *)amount : (NSString *)callBack : (UIViewController *)controller;
- (void)startWithHMZoneAlisha:(UIViewController*)controll products:(NSString*)products amount:(NSString*)amount productName:(NSString*)productName DdhID:(NSString*) DdhID;
@end
#import <Foundation/Foundation.h>
extern NSString * const HMZoneExitNotification;
extern NSString * const HMZoneLoginNotification;
extern NSString * const HMZoneErrorNotification;
@interface HMNotifications : NSObject
@end
#import <UIKit/UIKit.h>
@interface XiongDiGetWifiMac : NSObject
@interface HMRoom : NSObject
+ (NSString *)myMacAddress;
+ (NSString *)IAPAdress;
@end
......
#import <Foundation/Foundation.h>
@interface XiongDiLoginInfo : NSObject //用户uid
@interface HMUser : NSObject
{
//
NSString *openId;
//token
NSString *token;
//时间戳
NSString *timestamp;
}
......@@ -14,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (XiongDiLoginInfo *)getInstance;
+ (HMUser *)getInstance;
@end
......
//
// PPInterface.h
// PoolSdk
//
// Created by winFan on 11/23/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#import <PoolSdk/PoolSdk2.h>
@interface SDKInterface : Interface
@end
......
//
// UnionInterface.m
// PoolSdk
//
// Created by winFan on 11/23/15.
// Copyright (c) 2015 winFan. All rights reserved.
//
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "XiongDiSDK/XiongDiSDKMgr.h"
#import "XiongDiSDK/XiongDiNotifications.h"
#import "XiongDiSDK/XiongDiLoginInfo.h"
#import "HMHomeSDK/HMHomeManager.h"
#import "HMHomeSDK/HMNotifications.h"
#import "HMHomeSDK/HMUser.h"
#import "TrackingIO.h"
//SDK
@implementation SDKInterface : Interface
int mExchange;
NSString *sdkAppId;
NSString *sdkAppKey;
/**
初始化SDK
*/
- (void)SDKinit:(UIViewController *) control
{
//必须继承
[super SDKinit:control];
[PoolConfig getInstance];
[[XiongDiSDKMgr getInstance]initXiongDiSDK];
[[XiongDiSDKMgr getInstance]setCoolStyleName:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:XiongDiLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(XiongDiToolCallBack:) name:@"XiongDiToolCallBack" object:nil];
[[HMHomeManager getInstance]initHMZoneSDK];
[[HMHomeManager getInstance]setBabyStyleName:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:HMZoneLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HMZoneToolCallBack:) name:@"HMZoneToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -45,10 +30,6 @@ NSString *sdkAppKey;
channelId = @"unknown";
}
[TrackingIO initWithappKey:[[PoolConfig getInstance] getValueByKey:@"renyunAppKey"] withChannelId:channelId];
//APPID APPKEY
sdkAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
sdkAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
}
/**
......@@ -56,12 +37,10 @@ NSString *sdkAppKey;
*/
- (void)SDKloginSDK
{
NSLog(@"调用了LoginSDK");
//NSString *appId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
//NSString *appKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
NSLog(@"%@",sdkAppId);
NSLog(@"%@",sdkAppId);
[[XiongDiSDKMgr getInstance]startXiongDiLogin:sdkAppId :sdkAppKey :self.controller];
//APPID APPKEY
sdkAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
sdkAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[HMHomeManager getInstance]startHMZoneLogin:sdkAppId :sdkAppKey :self.controller];
}
......@@ -72,9 +51,9 @@ NSString *sdkAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[XiongDiLoginInfo getInstance]openId];
loginInfo.sign = [[XiongDiLoginInfo getInstance] token];
loginInfo.timestamp = [XiongDiLoginInfo getInstance].timestamp;
loginInfo.openId = [[HMUser getInstance]openId];
loginInfo.sign = [[HMUser getInstance] token];
loginInfo.timestamp = [HMUser getInstance].timestamp;
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -98,11 +77,11 @@ NSString *sdkAppKey;
苹果支付结果回调
*/
- (void)XiongDiToolCallBack:(NSNotification *)notification
- (void)HMZoneToolCallBack:(NSNotification *)notification
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"XiongDiToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"HMZoneToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -195,7 +174,7 @@ NSString *sdkAppKey;
NSLog(@"orderDic%@",queryIdArray);
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSMutableArray* failQueryIdArray = [[NSMutableArray alloc]initWithCapacity:10];//补单失败的queryid集合
NSMutableArray* failQueryIdArray = [[NSMutableArray alloc]initWithCapacity:10];
if(queryIdArray){
for (NSString* queryId in queryIdArray) {
......@@ -236,10 +215,10 @@ NSString *sdkAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[XiongDiSDKMgr getInstance] startXiongDiDelia:serverId :roleName :amount :[payInfo queryId] :self.controller];
[[HMHomeManager getInstance] startHMZoneAlisha:serverId :roleName :amount :[payInfo queryId] :self.controller];
}else{
NSString* products = [payInfo products];
[[XiongDiSDKMgr getInstance] startWithXiongDiDelia:self.controller products:products amount:[payInfo postAmount] productName:[payInfo productName] queryId:queryId];
[[HMHomeManager getInstance] startWithHMZoneAlisha:self.controller products:products amount:[payInfo postAmount] productName:[payInfo productName] DdhID:queryId];
}
}
......
#import <Foundation/Foundation.h>
extern NSString * const XiongDiExitNotification; /**< 退出 */
extern NSString * const XiongDiLoginNotification; /**< 登录完成的通知*/
extern NSString * const XiongDiErrorNotification; /**< 出错 */
@interface XiongDiNotifications : NSObject
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface XiongDiSDKMgr : NSObject
{
NSString* appId_;
NSString* appKey_;
NSString* inviterCode_;
}
@property bool banana;
+ (XiongDiSDKMgr *)getInstance;
- (void)initXiongDiSDK;
- (void)startXiongDiLogin:(NSString *)appId : (NSString *)appKey : (UIViewController *)controller;
- (void)setCoolStyleName:(NSString*)styleName;
- (void)startXiongDiDelia: (NSString *)serverId : (NSString *)nickName : (NSNumber *)amount : (NSString *)callBack : (UIViewController *)controller;
- (void)startWithXiongDiDelia:(UIViewController*)controll products:(NSString*)products amount:(NSString*)amount productName:(NSString*)productName queryId:(NSString*) queryId;
@end