lizhihui

更新 181109 版本

Showing 41 changed files with 165 additions and 165 deletions
No preview for this file type
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
8 8
9 /* Begin PBXBuildFile section */ 9 /* Begin PBXBuildFile section */
10 260A34CB2130061A003C083C /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 260A34CA21300619003C083C /* PoolSdk.framework */; }; 10 260A34CB2130061A003C083C /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 260A34CA21300619003C083C /* PoolSdk.framework */; };
11 - 2649978521894D4100EC956C /* HalloweenSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2649978421894D4100EC956C /* HalloweenSDK.framework */; }; 11 + 263A4CB921958B0B00DE9B28 /* SingleSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 263A4CB821958B0B00DE9B28 /* SingleSDK.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 */; };
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
60 60
61 /* Begin PBXFileReference section */ 61 /* Begin PBXFileReference section */
62 260A34CA21300619003C083C /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.framework; sourceTree = "<group>"; }; 62 260A34CA21300619003C083C /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.framework; sourceTree = "<group>"; };
63 - 2649978421894D4100EC956C /* HalloweenSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HalloweenSDK.framework; sourceTree = "<group>"; }; 63 + 263A4CB821958B0B00DE9B28 /* SingleSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = SingleSDK.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>"; };
...@@ -110,10 +110,10 @@ ...@@ -110,10 +110,10 @@
110 8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */, 110 8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */,
111 8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */, 111 8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */,
112 8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */, 112 8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */,
113 - 2649978521894D4100EC956C /* HalloweenSDK.framework in Frameworks */,
114 8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */, 113 8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */,
115 8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */, 114 8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */,
116 8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */, 115 8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */,
116 + 263A4CB921958B0B00DE9B28 /* SingleSDK.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 260A34CB2130061A003C083C /* PoolSdk.framework in Frameworks */,
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
143 8476DF641C4DD71D00EC42BA /* poolsdk */ = { 143 8476DF641C4DD71D00EC42BA /* poolsdk */ = {
144 isa = PBXGroup; 144 isa = PBXGroup;
145 children = ( 145 children = (
146 - 2649978421894D4100EC956C /* HalloweenSDK.framework */, 146 + 263A4CB821958B0B00DE9B28 /* SingleSDK.framework */,
147 84A090AC1F174E21003D23FB /* TrackingIO.h */, 147 84A090AC1F174E21003D23FB /* TrackingIO.h */,
148 84A090AA1F160A69003D23FB /* TrackingIO.a */, 148 84A090AA1F160A69003D23FB /* TrackingIO.a */,
149 846BD21F1EE9342700E89A1D /* pool_setting */, 149 846BD21F1EE9342700E89A1D /* pool_setting */,
......
1 -#import <UIKit/UIKit.h>
2 -
3 -@interface HalloweenIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
4 -
5 -@property(nonatomic,strong) NSString* HalloweenDingDanHao;
6 -@property(nonatomic,strong) NSDictionary* HalloweenHuoWuLieBiao;
7 -@property(nonatomic,strong) NSMutableArray* HalloweenHuoWuIDLieBiao;
8 -@property(nonatomic, strong) UITableView *HalloweenHuoWuLieBiaoView;
9 -
10 -- (void)HalloweenHuaQianView:(UIViewController*)controller HalloweenHuoWuD:(NSString*)products HalloweenQian:(NSString*)amount HalloweenHuoWuMing:(NSString*)productName HalloweenDingDanHao:(NSString*)DingDanHao;
11 -
12 -@end
1 -#import <UIKit/UIKit.h>
2 -#import "StoreKit/StoreKit.h"
3 -
4 -@interface HalloweenAllManager : NSObject
5 -{
6 - NSString* HalloweenCKAPPID_;
7 - NSString* HalloweenCKAPPKEY_;
8 -
9 - NSString* HalloweenInviterCode_;
10 -}
11 -
12 -@property bool HalloweenGeiWoHuaQianBa;
13 -
14 -+ (HalloweenAllManager *)HalloweenInstance;
15 -
16 -- (void)HalloweenChuShiHua;
17 -
18 -- (void)HalloweenDengLu:(NSString *)HalloweenCKAPPID : (NSString *)HalloweenCKAPPKEY : (UIViewController *)controller;
19 -
20 -- (void)HalloweenYangShi:(NSString*)HalloweenLeiXing;
21 -
22 -- (void)HalloweenCKQuery: (NSString *)HalloweenFuWuQiID : (NSString *)HalloweenNickName : (NSNumber *)HalloweenAmount : (NSString *)HalloweenCallBack : (UIViewController *)controller : (NSString *)HalloweenServerName;
23 -
24 -- (void)HalloweenCKQueryOperation:(UIViewController*)controll HalloweenHuoWuID:(NSString*)products HalloweenJiaGe:(NSString*)amount HalloweenHuoWuMing:(NSString*)productName HalloweenDingDanHao:(NSString*) DingDanHao;
25 -
26 -
27 -
28 -@end
1 -#import <Foundation/Foundation.h>
2 -
3 -extern NSString * const HalloweenCKAssetsExitNotification;
4 -extern NSString * const HalloweenCKAssetsLoginNotification;
5 -extern NSString * const HalloweenCKAssetsErrorNotification;
6 -
7 -
8 -@interface HalloweenHuiTiaoNotification : NSObject
9 -
10 -@end
1 +#import <UIKit/UIKit.h>
2 +
3 +@interface SingleIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
4 +
5 +@property(nonatomic,strong) NSString* SingleDingDanHao;
6 +@property(nonatomic,strong) NSDictionary* SingleHuoWuLieBiao;
7 +@property(nonatomic,strong) NSMutableArray* SingleHuoWuIDLieBiao;
8 +@property(nonatomic, strong) UITableView *SingleHuoWuLieBiaoView;
9 +
10 +- (void)SingleHuaQianView:(UIViewController*)controller SingleHuoWuD:(NSString*)products SingleQian:(NSString*)amount SingleHuoWuMing:(NSString*)productName SingleDingDanHao:(NSString*)DingDanHao;
11 +
12 +@end
1 +#import <UIKit/UIKit.h>
2 +#import "StoreKit/StoreKit.h"
3 +
4 +@interface SingleAllManager : NSObject
5 +{
6 + NSString* SingleCKAPPID_;
7 + NSString* SingleCKAPPKEY_;
8 +
9 + NSString* SingleInviterCode_;
10 +}
11 +
12 +@property bool SingleGeiWoHuaQianBa;
13 +
14 ++ (SingleAllManager *)SingleInstance;
15 +
16 +- (void)SingleChuShiHua;
17 +
18 +- (void)SingleDengLu:(NSString *)SingleCKAPPID : (NSString *)SingleCKAPPKEY : (UIViewController *)controller;
19 +
20 +- (void)SingleYangShi:(NSString*)SingleLeiXing;
21 +
22 +- (void)SingleCKQuery: (NSString *)SingleFuWuQiID : (NSString *)SingleNickName : (NSNumber *)SingleAmount : (NSString *)SingleCallBack : (UIViewController *)controller : (NSString *)SingleServerName;
23 +
24 +- (void)SingleCKQueryOperation:(UIViewController*)controll SingleHuoWuID:(NSString*)products SingleJiaGe:(NSString*)amount SingleHuoWuMing:(NSString*)productName SingleDingDanHao:(NSString*) DingDanHao;
25 +
26 +
27 +
28 +@end
1 +#import <Foundation/Foundation.h>
2 +
3 +extern NSString * const SingleCKAssetsExitNotification;
4 +extern NSString * const SingleCKAssetsLoginNotification;
5 +extern NSString * const SingleCKAssetsErrorNotification;
6 +
7 +
8 +@interface SingleHuiTiaoNotification : NSObject
9 +
10 +@end
1 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
2 2
3 -@interface HalloweenLocation : NSObject 3 +@interface SingleLocation : NSObject
4 4
5 -+ (NSString *)HalloweenSKCloudServiceSetupOptionsKey; 5 ++ (NSString *)SingleSKCloudServiceSetupOptionsKey;
6 @end 6 @end
7 7
......
1 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
2 -#import "HalloweenMessage.h" 2 +#import "SingleMessage.h"
3 #import <JavaScriptCore/JavaScriptCore.h> 3 #import <JavaScriptCore/JavaScriptCore.h>
4 4
5 -@interface HalloweenMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> 5 +@interface SingleMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
6 { 6 {
7 UIWebView *webView_; 7 UIWebView *webView_;
8 UIActivityIndicatorView *activityIndicator; 8 UIActivityIndicatorView *activityIndicator;
9 } 9 }
10 10
11 -@property(assign) BOOL HalloweenYouYuanJiao; 11 +@property(assign) BOOL SingleYouYuanJiao;
12 12
13 -- (void)HalloweenSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; 13 +- (void)SingleSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
14 -- (void)HalloweenChuShiHuaWebView; 14 +- (void)SingleChuShiHuaWebView;
15 - (void)loadWebPageWithString:(NSString *)url; 15 - (void)loadWebPageWithString:(NSString *)url;
16 - (void)loadWebPageWithJs:(NSString *)content; 16 - (void)loadWebPageWithJs:(NSString *)content;
17 - (void)postNotification:(NSString *)name : (NSString *)code; 17 - (void)postNotification:(NSString *)name : (NSString *)code;
......
1 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
2 2
3 -@interface HalloweenMessage : NSObject 3 +@interface SingleMessage : NSObject
4 { 4 {
5 // 5 //
6 NSString *openId; 6 NSString *openId;
...@@ -12,5 +12,5 @@ NSString *timestamp; ...@@ -12,5 +12,5 @@ NSString *timestamp;
12 @property(retain,nonatomic) NSString *openId; 12 @property(retain,nonatomic) NSString *openId;
13 @property(retain,nonatomic) NSString *token; 13 @property(retain,nonatomic) NSString *token;
14 @property(retain,nonatomic) NSString *timestamp; 14 @property(retain,nonatomic) NSString *timestamp;
15 -+ (HalloweenMessage *)getInstance; 15 ++ (SingleMessage *)getInstance;
16 @end 16 @end
......
1 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
2 2
3 -@interface HalloweenMessageJM : NSObject 3 +@interface SingleMessageJM : NSObject
4 4
5 -+(NSString *)HalloweenJM:(NSString *)jm; 5 ++(NSString *)SingleJM:(NSString *)jm;
6 6
7 @end 7 @end
......
1 #include "SDKInterface.h" 1 #include "SDKInterface.h"
2 #import <UIKit/UIKit.h> 2 #import <UIKit/UIKit.h>
3 3
4 -#import "HalloweenSDK/HalloweenAllManager.h" 4 +#import "SingleSDK/SingleAllManager.h"
5 -#import "HalloweenSDK/HalloweenHuiTiaoNotification.h" 5 +#import "SingleSDK/SingleHuiTiaoNotification.h"
6 -#import "HalloweenSDK/HalloweenMessage.h" 6 +#import "SingleSDK/SingleMessage.h"
7 7
8 #import "TrackingIO.h" 8 #import "TrackingIO.h"
9 9
10 @implementation SDKInterface : Interface 10 @implementation SDKInterface : Interface
11 11
12 int mExchange; 12 int mExchange;
13 -NSString *HalloweenSDKAppId; 13 +NSString *SingleSDKAppId;
14 -NSString *HalloweenSDKAppKey; 14 +NSString *SingleSDKAppKey;
15 15
16 - (void)SDKinit:(UIViewController *) control 16 - (void)SDKinit:(UIViewController *) control
17 { 17 {
...@@ -19,10 +19,10 @@ NSString *HalloweenSDKAppKey; ...@@ -19,10 +19,10 @@ NSString *HalloweenSDKAppKey;
19 [super SDKinit:control]; 19 [super SDKinit:control];
20 20
21 [PoolConfig getInstance]; 21 [PoolConfig getInstance];
22 - [[HalloweenAllManager HalloweenInstance]HalloweenChuShiHua]; 22 + [[SingleAllManager SingleInstance]SingleChuShiHua];
23 - [[HalloweenAllManager HalloweenInstance]HalloweenYangShi:@"sdk"]; 23 + [[SingleAllManager SingleInstance]SingleYangShi:@"sdk"];
24 - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:HalloweenCKAssetsLoginNotification object:nil]; 24 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:SingleCKAssetsLoginNotification object:nil];
25 - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"HalloweenCKAssetsToolCallBack" object:nil]; 25 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"SingleCKAssetsToolCallBack" object:nil];
26 26
27 [[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil]; 27 [[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
28 28
...@@ -39,9 +39,9 @@ NSString *HalloweenSDKAppKey; ...@@ -39,9 +39,9 @@ NSString *HalloweenSDKAppKey;
39 - (void)SDKloginSDK 39 - (void)SDKloginSDK
40 { 40 {
41 //APPID APPKEY 41 //APPID APPKEY
42 - HalloweenSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"]; 42 + SingleSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
43 - HalloweenSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"]; 43 + SingleSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
44 - [[HalloweenAllManager HalloweenInstance]HalloweenDengLu:HalloweenSDKAppId :HalloweenSDKAppKey :self.controller]; 44 + [[SingleAllManager SingleInstance]SingleDengLu:SingleSDKAppId :SingleSDKAppKey :self.controller];
45 45
46 } 46 }
47 47
...@@ -52,9 +52,9 @@ NSString *HalloweenSDKAppKey; ...@@ -52,9 +52,9 @@ NSString *HalloweenSDKAppKey;
52 { 52 {
53 NSLog(@"loginchek"); 53 NSLog(@"loginchek");
54 PoolLoginInfo *loginInfo = [PoolLoginInfo alloc]; 54 PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
55 - loginInfo.openId = [[HalloweenMessage getInstance]openId]; 55 + loginInfo.openId = [[SingleMessage getInstance]openId];
56 - loginInfo.sign = [[HalloweenMessage getInstance] token]; 56 + loginInfo.sign = [[SingleMessage getInstance] token];
57 - loginInfo.timestamp = [[HalloweenMessage getInstance] timestamp]; 57 + loginInfo.timestamp = [[SingleMessage getInstance] timestamp];
58 58
59 dispatch_async(dispatch_get_global_queue(0, 0), ^{ 59 dispatch_async(dispatch_get_global_queue(0, 0), ^{
60 [[PoolChecker getInstance] startCheck:loginInfo]; 60 [[PoolChecker getInstance] startCheck:loginInfo];
...@@ -82,7 +82,7 @@ NSString *HalloweenSDKAppKey; ...@@ -82,7 +82,7 @@ NSString *HalloweenSDKAppKey;
82 { 82 {
83 NSDictionary* payResultDic = notification.object; 83 NSDictionary* payResultDic = notification.object;
84 84
85 - NSString* receiptStr = [payResultDic objectForKey:@"HalloweenCKAssetsToolResult"]; 85 + NSString* receiptStr = [payResultDic objectForKey:@"SingleCKAssetsToolResult"];
86 NSString* queryId = [payResultDic objectForKey:@"query_id"]; 86 NSString* queryId = [payResultDic objectForKey:@"query_id"];
87 87
88 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; 88 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
...@@ -216,10 +216,10 @@ NSString *HalloweenSDKAppKey; ...@@ -216,10 +216,10 @@ NSString *HalloweenSDKAppKey;
216 NSString *other = [payInfo other]; 216 NSString *other = [payInfo other];
217 217
218 if (other && [other length] > 0) { 218 if (other && [other length] > 0) {
219 - [[HalloweenAllManager HalloweenInstance] HalloweenCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; 219 + [[SingleAllManager SingleInstance] SingleCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
220 }else{ 220 }else{
221 NSString* products = [payInfo products]; 221 NSString* products = [payInfo products];
222 - [[HalloweenAllManager HalloweenInstance] HalloweenCKQueryOperation:self.controller HalloweenHuoWuID:products HalloweenJiaGe:[payInfo postAmount] HalloweenHuoWuMing:[payInfo productName] HalloweenDingDanHao:queryId]; 222 + [[SingleAllManager SingleInstance] SingleCKQueryOperation:self.controller SingleHuoWuID:products SingleJiaGe:[payInfo postAmount] SingleHuoWuMing:[payInfo productName] SingleDingDanHao:queryId];
223 } 223 }
224 } 224 }
225 225
......
1 新接入请参考对接文档和demo<br> 1 新接入请参考对接文档和demo<br>
2 2
3 -2018-10-31:<br> 3 +2018-11-09:<br>
4 -1、``` 删除pool_file文件夹中TurningSDK.framework ``` <br> 4 +1、``` 删除pool_file文件夹中HalloweenSDK.framework ``` <br>
5 -2、引入 ``` HalloweenSDK.framework ``` <br> 5 +2、引入 ``` SingleSDK.framework ``` <br>
6 3、替换 ``` SDKInterface.m文件 ``` <br> 6 3、替换 ``` SDKInterface.m文件 ``` <br>
...\ No newline at end of file ...\ No newline at end of file
......
1 -#import <UIKit/UIKit.h>
2 -
3 -@interface HalloweenIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
4 -
5 -@property(nonatomic,strong) NSString* HalloweenDingDanHao;
6 -@property(nonatomic,strong) NSDictionary* HalloweenHuoWuLieBiao;
7 -@property(nonatomic,strong) NSMutableArray* HalloweenHuoWuIDLieBiao;
8 -@property(nonatomic, strong) UITableView *HalloweenHuoWuLieBiaoView;
9 -
10 -- (void)HalloweenHuaQianView:(UIViewController*)controller HalloweenHuoWuD:(NSString*)products HalloweenQian:(NSString*)amount HalloweenHuoWuMing:(NSString*)productName HalloweenDingDanHao:(NSString*)DingDanHao;
11 -
12 -@end
1 -#import <UIKit/UIKit.h>
2 -#import "StoreKit/StoreKit.h"
3 -
4 -@interface HalloweenAllManager : NSObject
5 -{
6 - NSString* HalloweenCKAPPID_;
7 - NSString* HalloweenCKAPPKEY_;
8 -
9 - NSString* HalloweenInviterCode_;
10 -}
11 -
12 -@property bool HalloweenGeiWoHuaQianBa;
13 -
14 -+ (HalloweenAllManager *)HalloweenInstance;
15 -
16 -- (void)HalloweenChuShiHua;
17 -
18 -- (void)HalloweenDengLu:(NSString *)HalloweenCKAPPID : (NSString *)HalloweenCKAPPKEY : (UIViewController *)controller;
19 -
20 -- (void)HalloweenYangShi:(NSString*)HalloweenLeiXing;
21 -
22 -- (void)HalloweenCKQuery: (NSString *)HalloweenFuWuQiID : (NSString *)HalloweenNickName : (NSNumber *)HalloweenAmount : (NSString *)HalloweenCallBack : (UIViewController *)controller : (NSString *)HalloweenServerName;
23 -
24 -- (void)HalloweenCKQueryOperation:(UIViewController*)controll HalloweenHuoWuID:(NSString*)products HalloweenJiaGe:(NSString*)amount HalloweenHuoWuMing:(NSString*)productName HalloweenDingDanHao:(NSString*) DingDanHao;
25 -
26 -
27 -
28 -@end
1 -#import <Foundation/Foundation.h>
2 -
3 -extern NSString * const HalloweenCKAssetsExitNotification;
4 -extern NSString * const HalloweenCKAssetsLoginNotification;
5 -extern NSString * const HalloweenCKAssetsErrorNotification;
6 -
7 -
8 -@interface HalloweenHuiTiaoNotification : NSObject
9 -
10 -@end
1 #include "SDKInterface.h" 1 #include "SDKInterface.h"
2 #import <UIKit/UIKit.h> 2 #import <UIKit/UIKit.h>
3 3
4 -#import "HalloweenSDK/HalloweenAllManager.h" 4 +#import "SingleSDK/SingleAllManager.h"
5 -#import "HalloweenSDK/HalloweenHuiTiaoNotification.h" 5 +#import "SingleSDK/SingleHuiTiaoNotification.h"
6 -#import "HalloweenSDK/HalloweenMessage.h" 6 +#import "SingleSDK/SingleMessage.h"
7 7
8 #import "TrackingIO.h" 8 #import "TrackingIO.h"
9 9
10 @implementation SDKInterface : Interface 10 @implementation SDKInterface : Interface
11 11
12 int mExchange; 12 int mExchange;
13 -NSString *HalloweenSDKAppId; 13 +NSString *SingleSDKAppId;
14 -NSString *HalloweenSDKAppKey; 14 +NSString *SingleSDKAppKey;
15 15
16 - (void)SDKinit:(UIViewController *) control 16 - (void)SDKinit:(UIViewController *) control
17 { 17 {
...@@ -19,10 +19,10 @@ NSString *HalloweenSDKAppKey; ...@@ -19,10 +19,10 @@ NSString *HalloweenSDKAppKey;
19 [super SDKinit:control]; 19 [super SDKinit:control];
20 20
21 [PoolConfig getInstance]; 21 [PoolConfig getInstance];
22 - [[HalloweenAllManager HalloweenInstance]HalloweenChuShiHua]; 22 + [[SingleAllManager SingleInstance]SingleChuShiHua];
23 - [[HalloweenAllManager HalloweenInstance]HalloweenYangShi:@"sdk"]; 23 + [[SingleAllManager SingleInstance]SingleYangShi:@"sdk"];
24 - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:HalloweenCKAssetsLoginNotification object:nil]; 24 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:SingleCKAssetsLoginNotification object:nil];
25 - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"HalloweenCKAssetsToolCallBack" object:nil]; 25 + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"SingleCKAssetsToolCallBack" object:nil];
26 26
27 [[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil]; 27 [[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
28 28
...@@ -39,9 +39,9 @@ NSString *HalloweenSDKAppKey; ...@@ -39,9 +39,9 @@ NSString *HalloweenSDKAppKey;
39 - (void)SDKloginSDK 39 - (void)SDKloginSDK
40 { 40 {
41 //APPID APPKEY 41 //APPID APPKEY
42 - HalloweenSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"]; 42 + SingleSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
43 - HalloweenSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"]; 43 + SingleSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
44 - [[HalloweenAllManager HalloweenInstance]HalloweenDengLu:HalloweenSDKAppId :HalloweenSDKAppKey :self.controller]; 44 + [[SingleAllManager SingleInstance]SingleDengLu:SingleSDKAppId :SingleSDKAppKey :self.controller];
45 45
46 } 46 }
47 47
...@@ -52,9 +52,9 @@ NSString *HalloweenSDKAppKey; ...@@ -52,9 +52,9 @@ NSString *HalloweenSDKAppKey;
52 { 52 {
53 NSLog(@"loginchek"); 53 NSLog(@"loginchek");
54 PoolLoginInfo *loginInfo = [PoolLoginInfo alloc]; 54 PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
55 - loginInfo.openId = [[HalloweenMessage getInstance]openId]; 55 + loginInfo.openId = [[SingleMessage getInstance]openId];
56 - loginInfo.sign = [[HalloweenMessage getInstance] token]; 56 + loginInfo.sign = [[SingleMessage getInstance] token];
57 - loginInfo.timestamp = [[HalloweenMessage getInstance] timestamp]; 57 + loginInfo.timestamp = [[SingleMessage getInstance] timestamp];
58 58
59 dispatch_async(dispatch_get_global_queue(0, 0), ^{ 59 dispatch_async(dispatch_get_global_queue(0, 0), ^{
60 [[PoolChecker getInstance] startCheck:loginInfo]; 60 [[PoolChecker getInstance] startCheck:loginInfo];
...@@ -82,7 +82,7 @@ NSString *HalloweenSDKAppKey; ...@@ -82,7 +82,7 @@ NSString *HalloweenSDKAppKey;
82 { 82 {
83 NSDictionary* payResultDic = notification.object; 83 NSDictionary* payResultDic = notification.object;
84 84
85 - NSString* receiptStr = [payResultDic objectForKey:@"HalloweenCKAssetsToolResult"]; 85 + NSString* receiptStr = [payResultDic objectForKey:@"SingleCKAssetsToolResult"];
86 NSString* queryId = [payResultDic objectForKey:@"query_id"]; 86 NSString* queryId = [payResultDic objectForKey:@"query_id"];
87 87
88 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil]; 88 NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
...@@ -216,10 +216,10 @@ NSString *HalloweenSDKAppKey; ...@@ -216,10 +216,10 @@ NSString *HalloweenSDKAppKey;
216 NSString *other = [payInfo other]; 216 NSString *other = [payInfo other];
217 217
218 if (other && [other length] > 0) { 218 if (other && [other length] > 0) {
219 - [[HalloweenAllManager HalloweenInstance] HalloweenCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; 219 + [[SingleAllManager SingleInstance] SingleCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
220 }else{ 220 }else{
221 NSString* products = [payInfo products]; 221 NSString* products = [payInfo products];
222 - [[HalloweenAllManager HalloweenInstance] HalloweenCKQueryOperation:self.controller HalloweenHuoWuID:products HalloweenJiaGe:[payInfo postAmount] HalloweenHuoWuMing:[payInfo productName] HalloweenDingDanHao:queryId]; 222 + [[SingleAllManager SingleInstance] SingleCKQueryOperation:self.controller SingleHuoWuID:products SingleJiaGe:[payInfo postAmount] SingleHuoWuMing:[payInfo productName] SingleDingDanHao:queryId];
223 } 223 }
224 } 224 }
225 225
......
1 +#import <UIKit/UIKit.h>
2 +
3 +@interface SingleIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
4 +
5 +@property(nonatomic,strong) NSString* SingleDingDanHao;
6 +@property(nonatomic,strong) NSDictionary* SingleHuoWuLieBiao;
7 +@property(nonatomic,strong) NSMutableArray* SingleHuoWuIDLieBiao;
8 +@property(nonatomic, strong) UITableView *SingleHuoWuLieBiaoView;
9 +
10 +- (void)SingleHuaQianView:(UIViewController*)controller SingleHuoWuD:(NSString*)products SingleQian:(NSString*)amount SingleHuoWuMing:(NSString*)productName SingleDingDanHao:(NSString*)DingDanHao;
11 +
12 +@end
1 +#import <UIKit/UIKit.h>
2 +#import "StoreKit/StoreKit.h"
3 +
4 +@interface SingleAllManager : NSObject
5 +{
6 + NSString* SingleCKAPPID_;
7 + NSString* SingleCKAPPKEY_;
8 +
9 + NSString* SingleInviterCode_;
10 +}
11 +
12 +@property bool SingleGeiWoHuaQianBa;
13 +
14 ++ (SingleAllManager *)SingleInstance;
15 +
16 +- (void)SingleChuShiHua;
17 +
18 +- (void)SingleDengLu:(NSString *)SingleCKAPPID : (NSString *)SingleCKAPPKEY : (UIViewController *)controller;
19 +
20 +- (void)SingleYangShi:(NSString*)SingleLeiXing;
21 +
22 +- (void)SingleCKQuery: (NSString *)SingleFuWuQiID : (NSString *)SingleNickName : (NSNumber *)SingleAmount : (NSString *)SingleCallBack : (UIViewController *)controller : (NSString *)SingleServerName;
23 +
24 +- (void)SingleCKQueryOperation:(UIViewController*)controll SingleHuoWuID:(NSString*)products SingleJiaGe:(NSString*)amount SingleHuoWuMing:(NSString*)productName SingleDingDanHao:(NSString*) DingDanHao;
25 +
26 +
27 +
28 +@end
1 +#import <Foundation/Foundation.h>
2 +
3 +extern NSString * const SingleCKAssetsExitNotification;
4 +extern NSString * const SingleCKAssetsLoginNotification;
5 +extern NSString * const SingleCKAssetsErrorNotification;
6 +
7 +
8 +@interface SingleHuiTiaoNotification : NSObject
9 +
10 +@end
1 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
2 2
3 -@interface HalloweenLocation : NSObject 3 +@interface SingleLocation : NSObject
4 4
5 -+ (NSString *)HalloweenSKCloudServiceSetupOptionsKey; 5 ++ (NSString *)SingleSKCloudServiceSetupOptionsKey;
6 @end 6 @end
7 7
......
1 #import <UIKit/UIKit.h> 1 #import <UIKit/UIKit.h>
2 -#import "HalloweenMessage.h" 2 +#import "SingleMessage.h"
3 #import <JavaScriptCore/JavaScriptCore.h> 3 #import <JavaScriptCore/JavaScriptCore.h>
4 4
5 -@interface HalloweenMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> 5 +@interface SingleMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
6 { 6 {
7 UIWebView *webView_; 7 UIWebView *webView_;
8 UIActivityIndicatorView *activityIndicator; 8 UIActivityIndicatorView *activityIndicator;
9 } 9 }
10 10
11 -@property(assign) BOOL HalloweenYouYuanJiao; 11 +@property(assign) BOOL SingleYouYuanJiao;
12 12
13 -- (void)HalloweenSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; 13 +- (void)SingleSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
14 -- (void)HalloweenChuShiHuaWebView; 14 +- (void)SingleChuShiHuaWebView;
15 - (void)loadWebPageWithString:(NSString *)url; 15 - (void)loadWebPageWithString:(NSString *)url;
16 - (void)loadWebPageWithJs:(NSString *)content; 16 - (void)loadWebPageWithJs:(NSString *)content;
17 - (void)postNotification:(NSString *)name : (NSString *)code; 17 - (void)postNotification:(NSString *)name : (NSString *)code;
......
1 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
2 2
3 -@interface HalloweenMessage : NSObject 3 +@interface SingleMessage : NSObject
4 { 4 {
5 // 5 //
6 NSString *openId; 6 NSString *openId;
...@@ -12,5 +12,5 @@ NSString *timestamp; ...@@ -12,5 +12,5 @@ NSString *timestamp;
12 @property(retain,nonatomic) NSString *openId; 12 @property(retain,nonatomic) NSString *openId;
13 @property(retain,nonatomic) NSString *token; 13 @property(retain,nonatomic) NSString *token;
14 @property(retain,nonatomic) NSString *timestamp; 14 @property(retain,nonatomic) NSString *timestamp;
15 -+ (HalloweenMessage *)getInstance; 15 ++ (SingleMessage *)getInstance;
16 @end 16 @end
......
1 #import <Foundation/Foundation.h> 1 #import <Foundation/Foundation.h>
2 2
3 -@interface HalloweenMessageJM : NSObject 3 +@interface SingleMessageJM : NSObject
4 4
5 -+(NSString *)HalloweenJM:(NSString *)jm; 5 ++(NSString *)SingleJM:(NSString *)jm;
6 6
7 @end 7 @end
......