Showing
45 changed files
with
205 additions
and
197 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 | - 26449088212E685800EA3BCC /* OtakusSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26449087212E685800EA3BCC /* OtakusSDK.framework */; }; | 10 | + 260A34CB2130061A003C083C /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 260A34CA21300619003C083C /* PoolSdk.framework */; }; |
11 | - 8425EC1A1F0E3CBD00B0D868 /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8425EC191F0E3CBD00B0D868 /* PoolSdk.framework */; }; | 11 | + 260A34CD2138E910003C083C /* DevisionSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 260A34CC2138E910003C083C /* DevisionSDK.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,8 +60,8 @@ | ... | @@ -60,8 +60,8 @@ |
60 | /* End PBXCopyFilesBuildPhase section */ | 60 | /* End PBXCopyFilesBuildPhase section */ |
61 | 61 | ||
62 | /* Begin PBXFileReference section */ | 62 | /* Begin PBXFileReference section */ |
63 | - 26449087212E685800EA3BCC /* OtakusSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = OtakusSDK.framework; sourceTree = "<group>"; }; | 63 | + 260A34CA21300619003C083C /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.framework; sourceTree = "<group>"; }; |
64 | - 8425EC191F0E3CBD00B0D868 /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.framework; sourceTree = "<group>"; }; | 64 | + 260A34CC2138E910003C083C /* DevisionSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = DevisionSDK.framework; sourceTree = "<group>"; }; |
65 | 845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; }; | 65 | 845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; }; |
66 | 845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; }; | 66 | 845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; }; |
67 | 846BD21F1EE9342700E89A1D /* pool_setting */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = pool_setting; path = poolsdk_file/poolsdk/pool_setting; sourceTree = "<group>"; }; | 67 | 846BD21F1EE9342700E89A1D /* pool_setting */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = pool_setting; path = poolsdk_file/poolsdk/pool_setting; sourceTree = "<group>"; }; |
... | @@ -109,15 +109,15 @@ | ... | @@ -109,15 +109,15 @@ |
109 | 8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */, | 109 | 8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */, |
110 | 8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */, | 110 | 8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */, |
111 | 8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */, | 111 | 8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */, |
112 | - 26449088212E685800EA3BCC /* OtakusSDK.framework in Frameworks */, | ||
113 | 8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */, | 112 | 8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */, |
114 | 8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */, | 113 | 8484E50C1EE7E27100B402D1 /* CoreGraphics.framework in Frameworks */, |
115 | 8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */, | 114 | 8484E5081EE7E25600B402D1 /* CoreText.framework in Frameworks */, |
116 | 8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */, | 115 | 8484E50E1EE7E28000B402D1 /* QuartzCore.framework in Frameworks */, |
117 | 8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */, | 116 | 8484E5141EE7E2DE00B402D1 /* Foundation.framework in Frameworks */, |
118 | 8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */, | 117 | 8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */, |
118 | + 260A34CD2138E910003C083C /* DevisionSDK.framework in Frameworks */, | ||
119 | 8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */, | 119 | 8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */, |
120 | - 8425EC1A1F0E3CBD00B0D868 /* PoolSdk.framework in Frameworks */, | 120 | + 260A34CB2130061A003C083C /* PoolSdk.framework in Frameworks */, |
121 | 8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */, | 121 | 8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */, |
122 | 84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */, | 122 | 84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */, |
123 | ); | 123 | ); |
... | @@ -136,7 +136,6 @@ | ... | @@ -136,7 +136,6 @@ |
136 | 8476DF631C4DD70500EC42BA /* poolsdk_file */ = { | 136 | 8476DF631C4DD70500EC42BA /* poolsdk_file */ = { |
137 | isa = PBXGroup; | 137 | isa = PBXGroup; |
138 | children = ( | 138 | children = ( |
139 | - 26449087212E685800EA3BCC /* OtakusSDK.framework */, | ||
140 | 8476DF641C4DD71D00EC42BA /* poolsdk */, | 139 | 8476DF641C4DD71D00EC42BA /* poolsdk */, |
141 | ); | 140 | ); |
142 | name = poolsdk_file; | 141 | name = poolsdk_file; |
... | @@ -145,6 +144,7 @@ | ... | @@ -145,6 +144,7 @@ |
145 | 8476DF641C4DD71D00EC42BA /* poolsdk */ = { | 144 | 8476DF641C4DD71D00EC42BA /* poolsdk */ = { |
146 | isa = PBXGroup; | 145 | isa = PBXGroup; |
147 | children = ( | 146 | children = ( |
147 | + 260A34CC2138E910003C083C /* DevisionSDK.framework */, | ||
148 | 84A090AC1F174E21003D23FB /* TrackingIO.h */, | 148 | 84A090AC1F174E21003D23FB /* TrackingIO.h */, |
149 | 84A090AA1F160A69003D23FB /* TrackingIO.a */, | 149 | 84A090AA1F160A69003D23FB /* TrackingIO.a */, |
150 | 846BD21F1EE9342700E89A1D /* pool_setting */, | 150 | 846BD21F1EE9342700E89A1D /* pool_setting */, |
... | @@ -192,7 +192,7 @@ | ... | @@ -192,7 +192,7 @@ |
192 | BB5F3C8A1C1811BC00DA339D /* Demo */ = { | 192 | BB5F3C8A1C1811BC00DA339D /* Demo */ = { |
193 | isa = PBXGroup; | 193 | isa = PBXGroup; |
194 | children = ( | 194 | children = ( |
195 | - 8425EC191F0E3CBD00B0D868 /* PoolSdk.framework */, | 195 | + 260A34CA21300619003C083C /* PoolSdk.framework */, |
196 | 8484E4F11EE7E0DC00B402D1 /* AppDelegate.h */, | 196 | 8484E4F11EE7E0DC00B402D1 /* AppDelegate.h */, |
197 | 8484E4F21EE7E0DC00B402D1 /* AppDelegate.m */, | 197 | 8484E4F21EE7E0DC00B402D1 /* AppDelegate.m */, |
198 | 8484E4F31EE7E0DC00B402D1 /* ViewController.h */, | 198 | 8484E4F31EE7E0DC00B402D1 /* ViewController.h */, | ... | ... |
No preview for this file type
No preview for this file type
1 | +#import <UIKit/UIKit.h> | ||
2 | +#import "StoreKit/StoreKit.h" | ||
3 | + | ||
4 | +@interface DevisionAllManager : NSObject | ||
5 | +{ | ||
6 | + NSString* DevisionCKAPPID_; | ||
7 | + NSString* DevisionCKAPPKEY_; | ||
8 | + | ||
9 | + NSString* DevisionInviterCode_; | ||
10 | +} | ||
11 | + | ||
12 | +@property bool DevisionGeiWoHuaQianBa; | ||
13 | + | ||
14 | ++ (DevisionAllManager *)DevisionInstance; | ||
15 | + | ||
16 | +- (void)DevisionChuShiHua; | ||
17 | + | ||
18 | +- (void)DevisionDengLu:(NSString *)DevisionCKAPPID : (NSString *)DevisionCKAPPKEY : (UIViewController *)controller; | ||
19 | + | ||
20 | +- (void)DevisionYangShi:(NSString*)DevisionLeiXing; | ||
21 | + | ||
22 | +- (void)DevisionCKQuery: (NSString *)DevisionFuWuQiID : (NSString *)DevisionNickName : (NSNumber *)DevisionAmount : (NSString *)DevisionCallBack : (UIViewController *)controller; | ||
23 | + | ||
24 | +- (void)DevisionCKQueryOperation:(UIViewController*)controll DevisionHuoWuID:(NSString*)products DevisionJiaGe:(NSString*)amount DevisionHuoWuMing:(NSString*)productName DevisionDingDanHao:(NSString*) DingDanHao; | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | +@end |
1 | +#import <UIKit/UIKit.h> | ||
2 | + | ||
3 | +@interface DevisionIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
4 | + | ||
5 | +@property(nonatomic,strong) NSString* DevisionDingDanHao; | ||
6 | +@property(nonatomic,strong) NSDictionary* DevisionHuoWuLieBiao; | ||
7 | +@property(nonatomic,strong) NSMutableArray* DevisionHuoWuIDLieBiao; | ||
8 | +@property(nonatomic, strong) UITableView *DevisionHuoWuLieBiaoView; | ||
9 | + | ||
10 | +- (void)DevisionHuaQianView:(UIViewController*)controller DevisionHuoWuD:(NSString*)products DevisionQian:(NSString*)amount DevisionHuoWuMing:(NSString*)productName DevisionDingDanHao:(NSString*)DingDanHao; | ||
11 | + | ||
12 | +@end |
1 | #import <UIKit/UIKit.h> | 1 | #import <UIKit/UIKit.h> |
2 | -#import "OtakusXinXi.h" | 2 | +#import "DevisionXinXi.h" |
3 | #import <JavaScriptCore/JavaScriptCore.h> | 3 | #import <JavaScriptCore/JavaScriptCore.h> |
4 | 4 | ||
5 | -@interface OtakusMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> | 5 | +@interface DevisionMain : 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 OtakusYouYuanJiao; | 11 | +@property(assign) BOOL DevisionYouYuanJiao; |
12 | 12 | ||
13 | -- (void)OtakusSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; | 13 | +- (void)DevisionSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; |
14 | -- (void)OtakusChuShiHuaWebView; | 14 | +- (void)DevisionChuShiHuaWebView; |
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> | ||
2 | + | ||
3 | +@interface DevisionMsgJM : NSObject | ||
4 | + | ||
5 | ++(NSString *)DevisionJM:(NSString *)jm; | ||
6 | + | ||
7 | ++(void)DevisionEmptyqweS12Jijis; | ||
8 | ++(void)DevisionEmptyjqw3123eakdjl; | ||
9 | ++(void)DevisionEmptynqw123evcxnklr; | ||
10 | +-(void)DevisionEmptyasqw123edll; | ||
11 | +-(void)DevisionEmptyasqw12312edlasdl; | ||
12 | +-(void)DevisionEmptyasdq3123wellasd; | ||
13 | ++(void)DevisionEmptyain; | ||
14 | +-(void)DevisionEmptybua3in; | ||
15 | ++(void)DevisionEmptya3in; | ||
16 | +-(void)DevisionEmptybu2ain; | ||
17 | ++(void)DevisionEmptyai2n; | ||
18 | +-(void)DevisionEmptybu1ain; | ||
19 | + | ||
20 | +@end |
1 | #import <Foundation/Foundation.h> | 1 | #import <Foundation/Foundation.h> |
2 | 2 | ||
3 | -@interface OtakusXinXi : NSObject | 3 | +@interface DevisionXinXi : 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 | -+ (OtakusXinXi *)getInstance; | 15 | ++ (DevisionXinXi *)getInstance; |
16 | @end | 16 | @end | ... | ... |
No preview for this file type
1 | -#import <UIKit/UIKit.h> | ||
2 | -#import "StoreKit/StoreKit.h" | ||
3 | - | ||
4 | -@interface OtakusAllManager : NSObject | ||
5 | -{ | ||
6 | - NSString* OtakusCKAPPID_; | ||
7 | - NSString* OtakusCKAPPKEY_; | ||
8 | - | ||
9 | - NSString* OtakusInviterCode_; | ||
10 | -} | ||
11 | - | ||
12 | -@property bool OtakusGeiWoHuaQianBa; | ||
13 | - | ||
14 | -+ (OtakusAllManager *)OtakusInstance; | ||
15 | - | ||
16 | -- (void)OtakusChuShiHua; | ||
17 | - | ||
18 | -- (void)OtakusDengLu:(NSString *)OtakusCKAPPID : (NSString *)OtakusCKAPPKEY : (UIViewController *)controller; | ||
19 | - | ||
20 | -- (void)OtakusYangShi:(NSString*)OtakusLeiXing; | ||
21 | - | ||
22 | -- (void)OtakusCKQuery: (NSString *)OtakusFuWuQiID : (NSString *)OtakusNickName : (NSNumber *)OtakusAmount : (NSString *)OtakusCallBack : (UIViewController *)controller; | ||
23 | - | ||
24 | -- (void)OtakusCKQueryOperation:(UIViewController*)controll OtakusHuoWuID:(NSString*)products OtakusJiaGe:(NSString*)amount OtakusHuoWuMing:(NSString*)productName OtakusDingDanHao:(NSString*) DingDanHao; | ||
25 | - | ||
26 | - | ||
27 | - | ||
28 | -@end |
1 | -#import <UIKit/UIKit.h> | ||
2 | - | ||
3 | -@interface OtakusIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
4 | - | ||
5 | -@property(nonatomic,strong) NSString* OtakusDingDanHao; | ||
6 | -@property(nonatomic,strong) NSDictionary* OtakusHuoWuLieBiao; | ||
7 | -@property(nonatomic,strong) NSMutableArray* OtakusHuoWuIDLieBiao; | ||
8 | -@property(nonatomic, strong) UITableView *OtakusHuoWuLieBiaoView; | ||
9 | - | ||
10 | -- (void)OtakusHuaQianView:(UIViewController*)controller OtakusHuoWuD:(NSString*)products OtakusQian:(NSString*)amount OtakusHuoWuMing:(NSString*)productName OtakusDingDanHao:(NSString*)DingDanHao; | ||
11 | - | ||
12 | -@end |
1 | -#import <Foundation/Foundation.h> | ||
2 | - | ||
3 | -@interface OtakusMsgJM : NSObject | ||
4 | - | ||
5 | -+(NSString *)OtakusJM:(NSString *)jm; | ||
6 | - | ||
7 | -+(void)OtakusEmptyqweS12Jijis; | ||
8 | -+(void)OtakusEmptyjqw3123eakdjl; | ||
9 | -+(void)OtakusEmptynqw123evcxnklr; | ||
10 | --(void)OtakusEmptyasqw123edll; | ||
11 | --(void)OtakusEmptyasqw12312edlasdl; | ||
12 | --(void)OtakusEmptyasdq3123wellasd; | ||
13 | -+(void)OtakusEmptyain; | ||
14 | --(void)OtakusEmptybuain; | ||
15 | - | ||
16 | -@end |
No preview for this file type
1 | #include "SDKInterface.h" | 1 | #include "SDKInterface.h" |
2 | #import <UIKit/UIKit.h> | 2 | #import <UIKit/UIKit.h> |
3 | 3 | ||
4 | -#import "OtakusSDK/OtakusAllManager.h" | 4 | +#import "DevisionSDK/DevisionAllManager.h" |
5 | -#import "OtakusSDK/OtakusHuiTiaoNotification.h" | 5 | +#import "DevisionSDK/DevisionHuiTiaoNotification.h" |
6 | -#import "OtakusSDK/OtakusXinXi.h" | 6 | +#import "DevisionSDK/DevisionXinXi.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 *OtakusSDKAppId; | 13 | +NSString *DevisionSDKAppId; |
14 | -NSString *OtakusSDKAppKey; | 14 | +NSString *DevisionSDKAppKey; |
15 | 15 | ||
16 | - (void)SDKinit:(UIViewController *) control | 16 | - (void)SDKinit:(UIViewController *) control |
17 | { | 17 | { |
... | @@ -19,10 +19,10 @@ NSString *OtakusSDKAppKey; | ... | @@ -19,10 +19,10 @@ NSString *OtakusSDKAppKey; |
19 | [super SDKinit:control]; | 19 | [super SDKinit:control]; |
20 | 20 | ||
21 | [PoolConfig getInstance]; | 21 | [PoolConfig getInstance]; |
22 | - [[OtakusAllManager OtakusInstance]OtakusChuShiHua]; | 22 | + [[DevisionAllManager DevisionInstance]DevisionChuShiHua]; |
23 | - [[OtakusAllManager OtakusInstance]OtakusYangShi:@"sdk"]; | 23 | + [[DevisionAllManager DevisionInstance]DevisionYangShi:@"sdk"]; |
24 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:OtakusCKAssetsLoginNotification object:nil]; | 24 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:DevisionCKAssetsLoginNotification object:nil]; |
25 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"OtakusCKAssetsToolCallBack" object:nil]; | 25 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"DevisionCKAssetsToolCallBack" 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 *OtakusSDKAppKey; | ... | @@ -39,9 +39,9 @@ NSString *OtakusSDKAppKey; |
39 | - (void)SDKloginSDK | 39 | - (void)SDKloginSDK |
40 | { | 40 | { |
41 | //APPID APPKEY | 41 | //APPID APPKEY |
42 | - OtakusSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"]; | 42 | + DevisionSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"]; |
43 | - OtakusSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"]; | 43 | + DevisionSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"]; |
44 | - [[OtakusAllManager OtakusInstance]OtakusDengLu:OtakusSDKAppId :OtakusSDKAppKey :self.controller]; | 44 | + [[DevisionAllManager DevisionInstance]DevisionDengLu:DevisionSDKAppId :DevisionSDKAppKey :self.controller]; |
45 | 45 | ||
46 | } | 46 | } |
47 | 47 | ||
... | @@ -52,9 +52,9 @@ NSString *OtakusSDKAppKey; | ... | @@ -52,9 +52,9 @@ NSString *OtakusSDKAppKey; |
52 | { | 52 | { |
53 | NSLog(@"loginchek"); | 53 | NSLog(@"loginchek"); |
54 | PoolLoginInfo *loginInfo = [PoolLoginInfo alloc]; | 54 | PoolLoginInfo *loginInfo = [PoolLoginInfo alloc]; |
55 | - loginInfo.openId = [[OtakusXinXi getInstance]openId]; | 55 | + loginInfo.openId = [[DevisionXinXi getInstance]openId]; |
56 | - loginInfo.sign = [[OtakusXinXi getInstance] token]; | 56 | + loginInfo.sign = [[DevisionXinXi getInstance] token]; |
57 | - loginInfo.timestamp = [[OtakusXinXi getInstance] timestamp]; | 57 | + loginInfo.timestamp = [[DevisionXinXi 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 *OtakusSDKAppKey; | ... | @@ -82,7 +82,7 @@ NSString *OtakusSDKAppKey; |
82 | { | 82 | { |
83 | NSDictionary* payResultDic = notification.object; | 83 | NSDictionary* payResultDic = notification.object; |
84 | 84 | ||
85 | - NSString* receiptStr = [payResultDic objectForKey:@"OtakusCKAssetsToolResult"]; | 85 | + NSString* receiptStr = [payResultDic objectForKey:@"DevisionCKAssetsToolResult"]; |
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 *OtakusSDKAppKey; | ... | @@ -216,10 +216,10 @@ NSString *OtakusSDKAppKey; |
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 | - [[OtakusAllManager OtakusInstance] OtakusCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller]; | 219 | + [[DevisionAllManager DevisionInstance] DevisionCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller]; |
220 | }else{ | 220 | }else{ |
221 | NSString* products = [payInfo products]; | 221 | NSString* products = [payInfo products]; |
222 | - [[OtakusAllManager OtakusInstance] OtakusCKQueryOperation:self.controller OtakusHuoWuID:products OtakusJiaGe:[payInfo postAmount] OtakusHuoWuMing:[payInfo productName] OtakusDingDanHao:queryId]; | 222 | + [[DevisionAllManager DevisionInstance] DevisionCKQueryOperation:self.controller DevisionHuoWuID:products DevisionJiaGe:[payInfo postAmount] DevisionHuoWuMing:[payInfo productName] DevisionDingDanHao:queryId]; |
223 | } | 223 | } |
224 | } | 224 | } |
225 | 225 | ... | ... |
1 | 新接入请参考对接文档和demo<br> | 1 | 新接入请参考对接文档和demo<br> |
2 | 2 | ||
3 | -2018-08-23:<br> | 3 | +2018-08-31:<br> |
4 | 在上版本基础上,更新了4、5、6点后,已接入快速更新方法<br> | 4 | 在上版本基础上,更新了4、5、6点后,已接入快速更新方法<br> |
5 | -1、``` 删除pool_file文件夹中XpeiSDK.framework或者DevCatSDK.framework ``` <br> | 5 | +1、``` 删除pool_file文件夹中XpeiSDK.framework ``` <br> |
6 | -2、引入 ``` OtakusSDK.framework ``` <br> | 6 | +2、引入 ``` DivisionSDK.framework ``` <br> |
7 | 3、替换 ``` SDKInterface.m文件 ``` <br> | 7 | 3、替换 ``` SDKInterface.m文件 ``` <br> |
8 | 8 | ||
9 | 2018-05-28: ``` (在此日期之后接入的可以忽略) ``` <br> | 9 | 2018-05-28: ``` (在此日期之后接入的可以忽略) ``` <br> | ... | ... |
No preview for this file type
No preview for this file type
1 | +#import <UIKit/UIKit.h> | ||
2 | +#import "StoreKit/StoreKit.h" | ||
3 | + | ||
4 | +@interface DevisionAllManager : NSObject | ||
5 | +{ | ||
6 | + NSString* DevisionCKAPPID_; | ||
7 | + NSString* DevisionCKAPPKEY_; | ||
8 | + | ||
9 | + NSString* DevisionInviterCode_; | ||
10 | +} | ||
11 | + | ||
12 | +@property bool DevisionGeiWoHuaQianBa; | ||
13 | + | ||
14 | ++ (DevisionAllManager *)DevisionInstance; | ||
15 | + | ||
16 | +- (void)DevisionChuShiHua; | ||
17 | + | ||
18 | +- (void)DevisionDengLu:(NSString *)DevisionCKAPPID : (NSString *)DevisionCKAPPKEY : (UIViewController *)controller; | ||
19 | + | ||
20 | +- (void)DevisionYangShi:(NSString*)DevisionLeiXing; | ||
21 | + | ||
22 | +- (void)DevisionCKQuery: (NSString *)DevisionFuWuQiID : (NSString *)DevisionNickName : (NSNumber *)DevisionAmount : (NSString *)DevisionCallBack : (UIViewController *)controller; | ||
23 | + | ||
24 | +- (void)DevisionCKQueryOperation:(UIViewController*)controll DevisionHuoWuID:(NSString*)products DevisionJiaGe:(NSString*)amount DevisionHuoWuMing:(NSString*)productName DevisionDingDanHao:(NSString*) DingDanHao; | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | +@end |
1 | +#import <UIKit/UIKit.h> | ||
2 | + | ||
3 | +@interface DevisionIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
4 | + | ||
5 | +@property(nonatomic,strong) NSString* DevisionDingDanHao; | ||
6 | +@property(nonatomic,strong) NSDictionary* DevisionHuoWuLieBiao; | ||
7 | +@property(nonatomic,strong) NSMutableArray* DevisionHuoWuIDLieBiao; | ||
8 | +@property(nonatomic, strong) UITableView *DevisionHuoWuLieBiaoView; | ||
9 | + | ||
10 | +- (void)DevisionHuaQianView:(UIViewController*)controller DevisionHuoWuD:(NSString*)products DevisionQian:(NSString*)amount DevisionHuoWuMing:(NSString*)productName DevisionDingDanHao:(NSString*)DingDanHao; | ||
11 | + | ||
12 | +@end |
1 | #import <UIKit/UIKit.h> | 1 | #import <UIKit/UIKit.h> |
2 | -#import "OtakusXinXi.h" | 2 | +#import "DevisionXinXi.h" |
3 | #import <JavaScriptCore/JavaScriptCore.h> | 3 | #import <JavaScriptCore/JavaScriptCore.h> |
4 | 4 | ||
5 | -@interface OtakusMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> | 5 | +@interface DevisionMain : 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 OtakusYouYuanJiao; | 11 | +@property(assign) BOOL DevisionYouYuanJiao; |
12 | 12 | ||
13 | -- (void)OtakusSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; | 13 | +- (void)DevisionSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; |
14 | -- (void)OtakusChuShiHuaWebView; | 14 | +- (void)DevisionChuShiHuaWebView; |
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> | ||
2 | + | ||
3 | +@interface DevisionMsgJM : NSObject | ||
4 | + | ||
5 | ++(NSString *)DevisionJM:(NSString *)jm; | ||
6 | + | ||
7 | ++(void)DevisionEmptyqweS12Jijis; | ||
8 | ++(void)DevisionEmptyjqw3123eakdjl; | ||
9 | ++(void)DevisionEmptynqw123evcxnklr; | ||
10 | +-(void)DevisionEmptyasqw123edll; | ||
11 | +-(void)DevisionEmptyasqw12312edlasdl; | ||
12 | +-(void)DevisionEmptyasdq3123wellasd; | ||
13 | ++(void)DevisionEmptyain; | ||
14 | +-(void)DevisionEmptybua3in; | ||
15 | ++(void)DevisionEmptya3in; | ||
16 | +-(void)DevisionEmptybu2ain; | ||
17 | ++(void)DevisionEmptyai2n; | ||
18 | +-(void)DevisionEmptybu1ain; | ||
19 | + | ||
20 | +@end |
1 | #import <Foundation/Foundation.h> | 1 | #import <Foundation/Foundation.h> |
2 | 2 | ||
3 | -@interface OtakusXinXi : NSObject | 3 | +@interface DevisionXinXi : 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 | -+ (OtakusXinXi *)getInstance; | 15 | ++ (DevisionXinXi *)getInstance; |
16 | @end | 16 | @end | ... | ... |
No preview for this file type
1 | -#import <UIKit/UIKit.h> | ||
2 | -#import "StoreKit/StoreKit.h" | ||
3 | - | ||
4 | -@interface OtakusAllManager : NSObject | ||
5 | -{ | ||
6 | - NSString* OtakusCKAPPID_; | ||
7 | - NSString* OtakusCKAPPKEY_; | ||
8 | - | ||
9 | - NSString* OtakusInviterCode_; | ||
10 | -} | ||
11 | - | ||
12 | -@property bool OtakusGeiWoHuaQianBa; | ||
13 | - | ||
14 | -+ (OtakusAllManager *)OtakusInstance; | ||
15 | - | ||
16 | -- (void)OtakusChuShiHua; | ||
17 | - | ||
18 | -- (void)OtakusDengLu:(NSString *)OtakusCKAPPID : (NSString *)OtakusCKAPPKEY : (UIViewController *)controller; | ||
19 | - | ||
20 | -- (void)OtakusYangShi:(NSString*)OtakusLeiXing; | ||
21 | - | ||
22 | -- (void)OtakusCKQuery: (NSString *)OtakusFuWuQiID : (NSString *)OtakusNickName : (NSNumber *)OtakusAmount : (NSString *)OtakusCallBack : (UIViewController *)controller; | ||
23 | - | ||
24 | -- (void)OtakusCKQueryOperation:(UIViewController*)controll OtakusHuoWuID:(NSString*)products OtakusJiaGe:(NSString*)amount OtakusHuoWuMing:(NSString*)productName OtakusDingDanHao:(NSString*) DingDanHao; | ||
25 | - | ||
26 | - | ||
27 | - | ||
28 | -@end |
1 | -#import <UIKit/UIKit.h> | ||
2 | - | ||
3 | -@interface OtakusIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
4 | - | ||
5 | -@property(nonatomic,strong) NSString* OtakusDingDanHao; | ||
6 | -@property(nonatomic,strong) NSDictionary* OtakusHuoWuLieBiao; | ||
7 | -@property(nonatomic,strong) NSMutableArray* OtakusHuoWuIDLieBiao; | ||
8 | -@property(nonatomic, strong) UITableView *OtakusHuoWuLieBiaoView; | ||
9 | - | ||
10 | -- (void)OtakusHuaQianView:(UIViewController*)controller OtakusHuoWuD:(NSString*)products OtakusQian:(NSString*)amount OtakusHuoWuMing:(NSString*)productName OtakusDingDanHao:(NSString*)DingDanHao; | ||
11 | - | ||
12 | -@end |
1 | -#import <Foundation/Foundation.h> | ||
2 | - | ||
3 | -@interface OtakusMsgJM : NSObject | ||
4 | - | ||
5 | -+(NSString *)OtakusJM:(NSString *)jm; | ||
6 | - | ||
7 | -+(void)OtakusEmptyqweS12Jijis; | ||
8 | -+(void)OtakusEmptyjqw3123eakdjl; | ||
9 | -+(void)OtakusEmptynqw123evcxnklr; | ||
10 | --(void)OtakusEmptyasqw123edll; | ||
11 | --(void)OtakusEmptyasqw12312edlasdl; | ||
12 | --(void)OtakusEmptyasdq3123wellasd; | ||
13 | -+(void)OtakusEmptyain; | ||
14 | --(void)OtakusEmptybuain; | ||
15 | - | ||
16 | -@end |
No preview for this file type
1 | #include "SDKInterface.h" | 1 | #include "SDKInterface.h" |
2 | #import <UIKit/UIKit.h> | 2 | #import <UIKit/UIKit.h> |
3 | 3 | ||
4 | -#import "OtakusSDK/OtakusAllManager.h" | 4 | +#import "DevisionSDK/DevisionAllManager.h" |
5 | -#import "OtakusSDK/OtakusHuiTiaoNotification.h" | 5 | +#import "DevisionSDK/DevisionHuiTiaoNotification.h" |
6 | -#import "OtakusSDK/OtakusXinXi.h" | 6 | +#import "DevisionSDK/DevisionXinXi.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 *OtakusSDKAppId; | 13 | +NSString *DevisionSDKAppId; |
14 | -NSString *OtakusSDKAppKey; | 14 | +NSString *DevisionSDKAppKey; |
15 | 15 | ||
16 | - (void)SDKinit:(UIViewController *) control | 16 | - (void)SDKinit:(UIViewController *) control |
17 | { | 17 | { |
... | @@ -19,10 +19,10 @@ NSString *OtakusSDKAppKey; | ... | @@ -19,10 +19,10 @@ NSString *OtakusSDKAppKey; |
19 | [super SDKinit:control]; | 19 | [super SDKinit:control]; |
20 | 20 | ||
21 | [PoolConfig getInstance]; | 21 | [PoolConfig getInstance]; |
22 | - [[OtakusAllManager OtakusInstance]OtakusChuShiHua]; | 22 | + [[DevisionAllManager DevisionInstance]DevisionChuShiHua]; |
23 | - [[OtakusAllManager OtakusInstance]OtakusYangShi:@"sdk"]; | 23 | + [[DevisionAllManager DevisionInstance]DevisionYangShi:@"sdk"]; |
24 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:OtakusCKAssetsLoginNotification object:nil]; | 24 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:DevisionCKAssetsLoginNotification object:nil]; |
25 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"OtakusCKAssetsToolCallBack" object:nil]; | 25 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"DevisionCKAssetsToolCallBack" 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 *OtakusSDKAppKey; | ... | @@ -39,9 +39,9 @@ NSString *OtakusSDKAppKey; |
39 | - (void)SDKloginSDK | 39 | - (void)SDKloginSDK |
40 | { | 40 | { |
41 | //APPID APPKEY | 41 | //APPID APPKEY |
42 | - OtakusSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"]; | 42 | + DevisionSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"]; |
43 | - OtakusSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"]; | 43 | + DevisionSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"]; |
44 | - [[OtakusAllManager OtakusInstance]OtakusDengLu:OtakusSDKAppId :OtakusSDKAppKey :self.controller]; | 44 | + [[DevisionAllManager DevisionInstance]DevisionDengLu:DevisionSDKAppId :DevisionSDKAppKey :self.controller]; |
45 | 45 | ||
46 | } | 46 | } |
47 | 47 | ||
... | @@ -52,9 +52,9 @@ NSString *OtakusSDKAppKey; | ... | @@ -52,9 +52,9 @@ NSString *OtakusSDKAppKey; |
52 | { | 52 | { |
53 | NSLog(@"loginchek"); | 53 | NSLog(@"loginchek"); |
54 | PoolLoginInfo *loginInfo = [PoolLoginInfo alloc]; | 54 | PoolLoginInfo *loginInfo = [PoolLoginInfo alloc]; |
55 | - loginInfo.openId = [[OtakusXinXi getInstance]openId]; | 55 | + loginInfo.openId = [[DevisionXinXi getInstance]openId]; |
56 | - loginInfo.sign = [[OtakusXinXi getInstance] token]; | 56 | + loginInfo.sign = [[DevisionXinXi getInstance] token]; |
57 | - loginInfo.timestamp = [[OtakusXinXi getInstance] timestamp]; | 57 | + loginInfo.timestamp = [[DevisionXinXi 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 *OtakusSDKAppKey; | ... | @@ -82,7 +82,7 @@ NSString *OtakusSDKAppKey; |
82 | { | 82 | { |
83 | NSDictionary* payResultDic = notification.object; | 83 | NSDictionary* payResultDic = notification.object; |
84 | 84 | ||
85 | - NSString* receiptStr = [payResultDic objectForKey:@"OtakusCKAssetsToolResult"]; | 85 | + NSString* receiptStr = [payResultDic objectForKey:@"DevisionCKAssetsToolResult"]; |
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 *OtakusSDKAppKey; | ... | @@ -216,10 +216,10 @@ NSString *OtakusSDKAppKey; |
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 | - [[OtakusAllManager OtakusInstance] OtakusCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller]; | 219 | + [[DevisionAllManager DevisionInstance] DevisionCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller]; |
220 | }else{ | 220 | }else{ |
221 | NSString* products = [payInfo products]; | 221 | NSString* products = [payInfo products]; |
222 | - [[OtakusAllManager OtakusInstance] OtakusCKQueryOperation:self.controller OtakusHuoWuID:products OtakusJiaGe:[payInfo postAmount] OtakusHuoWuMing:[payInfo productName] OtakusDingDanHao:queryId]; | 222 | + [[DevisionAllManager DevisionInstance] DevisionCKQueryOperation:self.controller DevisionHuoWuID:products DevisionJiaGe:[payInfo postAmount] DevisionHuoWuMing:[payInfo productName] DevisionDingDanHao:queryId]; |
223 | } | 223 | } |
224 | } | 224 | } |
225 | 225 | ... | ... |
-
Please register or login to post a comment