Showing
61 changed files
with
418 additions
and
159 deletions
No preview for this file type
No preview for this file type
... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
7 | objects = { | 7 | objects = { |
8 | 8 | ||
9 | /* Begin PBXBuildFile section */ | 9 | /* Begin PBXBuildFile section */ |
10 | - 260B3F2B21D0E41800036C2F /* Seraph.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 260B3F2A21D0E41800036C2F /* Seraph.framework */; }; | 10 | + 26463C6121DF60560056B2C5 /* Odium.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26463C6021DF60550056B2C5 /* Odium.framework */; }; |
11 | 269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */; }; | 11 | 269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.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 /* haibao_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* haibao_setting */; }; | 13 | 846BD2241EE9342700E89A1D /* haibao_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* haibao_setting */; }; |
... | @@ -59,7 +59,7 @@ | ... | @@ -59,7 +59,7 @@ |
59 | /* End PBXCopyFilesBuildPhase section */ | 59 | /* End PBXCopyFilesBuildPhase section */ |
60 | 60 | ||
61 | /* Begin PBXFileReference section */ | 61 | /* Begin PBXFileReference section */ |
62 | - 260B3F2A21D0E41800036C2F /* Seraph.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Seraph.framework; sourceTree = "<group>"; }; | 62 | + 26463C6021DF60550056B2C5 /* Odium.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Odium.framework; sourceTree = "<group>"; }; |
63 | 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.framework; sourceTree = "<group>"; }; | 63 | 269F653721B6613F006AEC88 /* HaiBaoJuheSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = HaiBaoJuheSDK.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>"; }; |
... | @@ -105,9 +105,9 @@ | ... | @@ -105,9 +105,9 @@ |
105 | 8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */, | 105 | 8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */, |
106 | 269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */, | 106 | 269F653821B6613F006AEC88 /* HaiBaoJuheSDK.framework in Frameworks */, |
107 | 8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */, | 107 | 8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */, |
108 | + 26463C6121DF60560056B2C5 /* Odium.framework in Frameworks */, | ||
108 | 8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */, | 109 | 8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */, |
109 | 8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */, | 110 | 8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */, |
110 | - 260B3F2B21D0E41800036C2F /* Seraph.framework in Frameworks */, | ||
111 | 8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */, | 111 | 8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */, |
112 | 8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */, | 112 | 8484E5061EE7E24A00B402D1 /* CoreMotion.framework in Frameworks */, |
113 | 8484E5021EE7E21F00B402D1 /* UIKit.framework in Frameworks */, | 113 | 8484E5021EE7E21F00B402D1 /* UIKit.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 | - 260B3F2A21D0E41800036C2F /* Seraph.framework */, | 146 | + 26463C6021DF60550056B2C5 /* Odium.framework */, |
147 | 84A090AC1F174E21003D23FB /* TrackingIO.h */, | 147 | 84A090AC1F174E21003D23FB /* TrackingIO.h */, |
148 | 84A090AA1F160A69003D23FB /* TrackingIO.a */, | 148 | 84A090AA1F160A69003D23FB /* TrackingIO.a */, |
149 | 846BD21F1EE9342700E89A1D /* haibao_setting */, | 149 | 846BD21F1EE9342700E89A1D /* haibao_setting */, | ... | ... |
No preview for this file type
No preview for this file type
... | @@ -15,11 +15,11 @@ | ... | @@ -15,11 +15,11 @@ |
15 | - (void)initChecker; | 15 | - (void)initChecker; |
16 | - (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo; | 16 | - (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo; |
17 | - (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo; | 17 | - (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo; |
18 | -- (void) SeraphHaiBaoJuhereportOpen; | 18 | +- (void) OdiumHaiBaoJuhereportOpen; |
19 | -- (void) SeraphHaiBaoJuhereportSDKOpen; | 19 | +- (void) OdiumHaiBaoJuhereportSDKOpen; |
20 | -- (void)SeraphHaiBaoJuhehandleFirstOpenApp:(NSString*) path; | 20 | +- (void)OdiumHaiBaoJuhehandleFirstOpenApp:(NSString*) path; |
21 | - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo; | 21 | - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo; |
22 | -- (void) SeraphHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo; | 22 | +- (void) OdiumHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo; |
23 | - (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType | 23 | - (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType |
24 | notiName:(NSString *)notiName | 24 | notiName:(NSString *)notiName |
25 | statusCode:(int)nCode | 25 | statusCode:(int)nCode |
... | @@ -28,7 +28,7 @@ | ... | @@ -28,7 +28,7 @@ |
28 | 28 | ||
29 | - (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo; | 29 | - (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo; |
30 | 30 | ||
31 | -- (void)SeraphHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type; | 31 | +- (void)OdiumHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type; |
32 | 32 | ||
33 | /* | 33 | /* |
34 | *初始化时调用 | 34 | *初始化时调用 | ... | ... |
1 | -#import "HaiBaoJuheSDK/SeraphHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/OdiumHaiBaoJuheBaseModel.h" |
2 | -@interface HaiBaoJuheCreateOrderInfo : SeraphHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheCreateOrderInfo : OdiumHaiBaoJuheBaseModel |
3 | 3 | ||
4 | @property(nonatomic,strong)NSString *serverId;//服务器ID | 4 | @property(nonatomic,strong)NSString *serverId;//服务器ID |
5 | @property(nonatomic, strong)NSString *serverName;//服务器名称 | 5 | @property(nonatomic, strong)NSString *serverName;//服务器名称 |
... | @@ -16,7 +16,7 @@ | ... | @@ -16,7 +16,7 @@ |
16 | @property(nonatomic, strong)NSString *userId;//用户ID | 16 | @property(nonatomic, strong)NSString *userId;//用户ID |
17 | @property(nonatomic, strong)NSString *timestamp;//时间戳 | 17 | @property(nonatomic, strong)NSString *timestamp;//时间戳 |
18 | 18 | ||
19 | -- (NSString *) SeraphHaiBaoJuheGetTsign ; | 19 | +- (NSString *) OdiumHaiBaoJuheGetTsign ; |
20 | -- (NSString *) SeraphHaiBaoJuheGetTimestamp ; | 20 | +- (NSString *) OdiumHaiBaoJuheGetTimestamp ; |
21 | 21 | ||
22 | @end | 22 | @end | ... | ... |
1 | -#import "HaiBaoJuheSDK/SeraphHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/OdiumHaiBaoJuheBaseModel.h" |
2 | -@interface HaiBaoJuheGzyazfInfo : SeraphHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheGzyazfInfo : OdiumHaiBaoJuheBaseModel |
3 | 3 | ||
4 | @property(nonatomic, strong)NSString *serverId; | 4 | @property(nonatomic, strong)NSString *serverId; |
5 | @property(nonatomic, strong)NSString *queryId; | 5 | @property(nonatomic, strong)NSString *queryId; | ... | ... |
1 | -#import "HaiBaoJuheSDK/SeraphHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/OdiumHaiBaoJuheBaseModel.h" |
2 | -@interface HaiBaoJuheLoginInfo : SeraphHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheLoginInfo : OdiumHaiBaoJuheBaseModel |
3 | 3 | ||
4 | @property(nonatomic,strong)NSString *timestamp; | 4 | @property(nonatomic,strong)NSString *timestamp; |
5 | @property(nonatomic, strong)NSString *sign; | 5 | @property(nonatomic, strong)NSString *sign; | ... | ... |
1 | // | 1 | // |
2 | -// SeraphHaiBaoJuheReportInfo.h | 2 | +// OdiumHaiBaoJuheReportInfo.h |
3 | // HaiBaoJuheSDK | 3 | // HaiBaoJuheSDK |
4 | // | 4 | // |
5 | // Created by winFan on 12/21/15. | 5 | // Created by winFan on 12/21/15. |
6 | // Copyright (c) 2015 winFan. All rights reserved. | 6 | // Copyright (c) 2015 winFan. All rights reserved. |
7 | // | 7 | // |
8 | 8 | ||
9 | -#import "HaiBaoJuheSDK/SeraphHaiBaoJuheBaseModel.h" | 9 | +#import "HaiBaoJuheSDK/OdiumHaiBaoJuheBaseModel.h" |
10 | -@interface HaiBaoJuheReportInfo : SeraphHaiBaoJuheBaseModel | 10 | +@interface HaiBaoJuheReportInfo : OdiumHaiBaoJuheBaseModel |
11 | 11 | ||
12 | @property(nonatomic, strong)NSString *reportType;//类型 | 12 | @property(nonatomic, strong)NSString *reportType;//类型 |
13 | @property(nonatomic, strong)NSString *playerId;//玩家ID | 13 | @property(nonatomic, strong)NSString *playerId;//玩家ID | ... | ... |
... | @@ -4,7 +4,7 @@ | ... | @@ -4,7 +4,7 @@ |
4 | @interface HaiBaoJuheUtils : NSObject | 4 | @interface HaiBaoJuheUtils : NSObject |
5 | 5 | ||
6 | +(NSString *)md5:(NSString *)str; | 6 | +(NSString *)md5:(NSString *)str; |
7 | -+ (NSDictionary *)SeraphHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString; | 7 | ++ (NSDictionary *)OdiumHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString; |
8 | +(NSString *)createGzyazfOrderUrl; | 8 | +(NSString *)createGzyazfOrderUrl; |
9 | //*充值回调地址 | 9 | //*充值回调地址 |
10 | +(NSString *)createGzyazfUrl; | 10 | +(NSString *)createGzyazfUrl; | ... | ... |
1 | #import <Foundation/Foundation.h> | 1 | #import <Foundation/Foundation.h> |
2 | #import "OtherSetting.h" | 2 | #import "OtherSetting.h" |
3 | 3 | ||
4 | -@interface SeraphHaiBaoJuheBaseModel : NSObject | 4 | +@interface OdiumHaiBaoJuheBaseModel : NSObject |
5 | 5 | ||
6 | -- (NSString *)SeraphHaiBaoJuheObjectToJsonString; | 6 | +- (NSString *)OdiumHaiBaoJuheObjectToJsonString; |
7 | - (NSMutableString *)paramAddToString; | 7 | - (NSMutableString *)paramAddToString; |
8 | - (id)initWithDiction:(NSDictionary *)diction; | 8 | - (id)initWithDiction:(NSDictionary *)diction; |
9 | 9 | ... | ... |
... | @@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel) | ... | @@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel) |
11 | ELogError | 11 | ELogError |
12 | }; | 12 | }; |
13 | 13 | ||
14 | -@interface SeraphHaiBaoJuheDGLogger : NSObject | 14 | +@interface OdiumHaiBaoJuheDGLogger : NSObject |
15 | 15 | ||
16 | + (void)showLog:(NSString *)fmt,...; | 16 | + (void)showLog:(NSString *)fmt,...; |
17 | 17 | ... | ... |
PoolSdk_Demo/Seraph.framework/Headers/IAPHelper.h
→
PoolSdk_Demo/Odium.framework/Headers/IAPHelper.h
File moved
File moved
1 | +#import <UIKit/UIKit.h> | ||
2 | + | ||
3 | +@interface OdiumIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
4 | + | ||
5 | +@property(nonatomic,strong) NSString* OdiumDingDanHao; | ||
6 | +@property(nonatomic,strong) NSDictionary* OdiumHuoWuLieBiao; | ||
7 | +@property(nonatomic,strong) NSMutableArray* OdiumHuoWuIDLieBiao; | ||
8 | +@property(nonatomic, strong) UITableView *OdiumHuoWuLieBiaoView; | ||
9 | + | ||
10 | +- (void)OdiumHuaQianView:(UIViewController*)controller OdiumHuoWuD:(NSString*)products OdiumQian:(NSString*)amount OdiumHuoWuMing:(NSString*)productName OdiumDingDanHao:(NSString*)DingDanHao; | ||
11 | + | ||
12 | +@end |
1 | +#import <UIKit/UIKit.h> | ||
2 | +#import "StoreKit/StoreKit.h" | ||
3 | + | ||
4 | +@interface OdiumAllManager : NSObject | ||
5 | +{ | ||
6 | + NSString* OdiumCKAPPID_; | ||
7 | + NSString* OdiumCKAPPKEY_; | ||
8 | + | ||
9 | + NSString* OdiumInviterCode_; | ||
10 | +} | ||
11 | + | ||
12 | +@property bool OdiumGeiWoHuaQianBa; | ||
13 | + | ||
14 | ++ (OdiumAllManager *)OdiumInstance; | ||
15 | + | ||
16 | +- (void)OdiumChuShiHua; | ||
17 | + | ||
18 | +- (void)OdiumDengLu:(NSString *)OdiumCKAPPID : (NSString *)OdiumCKAPPKEY : (UIViewController *)controller; | ||
19 | + | ||
20 | +- (void)OdiumYangShi:(NSString*)OdiumLeiXing; | ||
21 | + | ||
22 | +- (void)OdiumCKQuery: (NSString *)OdiumFuWuQiID : (NSString *)OdiumNickName : (NSNumber *)OdiumAmount : (NSString *)OdiumCallBack : (UIViewController *)controller : (NSString *)OdiumServerName; | ||
23 | + | ||
24 | +- (void)OdiumCKQueryOperation:(UIViewController*)controll OdiumHuoWuID:(NSString*)products OdiumJiaGe:(NSString*)amount OdiumHuoWuMing:(NSString*)productName OdiumDingDanHao:(NSString*) DingDanHao; | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | +@end |
1 | #import <UIKit/UIKit.h> | 1 | #import <UIKit/UIKit.h> |
2 | -#import "SeraphMessage.h" | 2 | +#import "OdiumMessage.h" |
3 | #import <JavaScriptCore/JavaScriptCore.h> | 3 | #import <JavaScriptCore/JavaScriptCore.h> |
4 | 4 | ||
5 | -@interface SeraphMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> | 5 | +@interface OdiumMain : 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 SeraphYouYuanJiao; | 11 | +@property(assign) BOOL OdiumYouYuanJiao; |
12 | 12 | ||
13 | -- (void)SeraphSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; | 13 | +- (void)OdiumSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; |
14 | -- (void)SeraphChuShiHuaWebView; | 14 | +- (void)OdiumChuShiHuaWebView; |
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 SeraphMessage : NSObject | 3 | +@interface OdiumMessage : 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 | -+ (SeraphMessage *)getInstance; | 15 | ++ (OdiumMessage *)getInstance; |
16 | @end | 16 | @end | ... | ... |
No preview for this file type
No preview for this file type
1 | -#import <UIKit/UIKit.h> | ||
2 | - | ||
3 | -@interface SeraphIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
4 | - | ||
5 | -@property(nonatomic,strong) NSString* SeraphDingDanHao; | ||
6 | -@property(nonatomic,strong) NSDictionary* SeraphHuoWuLieBiao; | ||
7 | -@property(nonatomic,strong) NSMutableArray* SeraphHuoWuIDLieBiao; | ||
8 | -@property(nonatomic, strong) UITableView *SeraphHuoWuLieBiaoView; | ||
9 | - | ||
10 | -- (void)SeraphHuaQianView:(UIViewController*)controller SeraphHuoWuD:(NSString*)products SeraphQian:(NSString*)amount SeraphHuoWuMing:(NSString*)productName SeraphDingDanHao:(NSString*)DingDanHao; | ||
11 | - | ||
12 | -@end |
1 | -#import <UIKit/UIKit.h> | ||
2 | -#import "StoreKit/StoreKit.h" | ||
3 | - | ||
4 | -@interface SeraphAllManager : NSObject | ||
5 | -{ | ||
6 | - NSString* SeraphCKAPPID_; | ||
7 | - NSString* SeraphCKAPPKEY_; | ||
8 | - | ||
9 | - NSString* SeraphInviterCode_; | ||
10 | -} | ||
11 | - | ||
12 | -@property bool SeraphGeiWoHuaQianBa; | ||
13 | - | ||
14 | -+ (SeraphAllManager *)SeraphInstance; | ||
15 | - | ||
16 | -- (void)SeraphChuShiHua; | ||
17 | - | ||
18 | -- (void)SeraphDengLu:(NSString *)SeraphCKAPPID : (NSString *)SeraphCKAPPKEY : (UIViewController *)controller; | ||
19 | - | ||
20 | -- (void)SeraphYangShi:(NSString*)SeraphLeiXing; | ||
21 | - | ||
22 | -- (void)SeraphCKQuery: (NSString *)SeraphFuWuQiID : (NSString *)SeraphNickName : (NSNumber *)SeraphAmount : (NSString *)SeraphCallBack : (UIViewController *)controller : (NSString *)SeraphServerName; | ||
23 | - | ||
24 | -- (void)SeraphCKQueryOperation:(UIViewController*)controll SeraphHuoWuID:(NSString*)products SeraphJiaGe:(NSString*)amount SeraphHuoWuMing:(NSString*)productName SeraphDingDanHao:(NSString*) DingDanHao; | ||
25 | - | ||
26 | - | ||
27 | - | ||
28 | -@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 "Seraph/SeraphAllManager.h" | 4 | +#import "Odium/OdiumAllManager.h" |
5 | -#import "Seraph/SeraphHuiTiaoNotification.h" | 5 | +#import "Odium/OdiumHuiTiaoNotification.h" |
6 | -#import "Seraph/SeraphMessage.h" | 6 | +#import "Odium/OdiumMessage.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 *SeraphAppId; | 13 | +NSString *OdiumAppId; |
14 | -NSString *SeraphAppKey; | 14 | +NSString *OdiumAppKey; |
15 | 15 | ||
16 | - (void)SDKinit:(UIViewController *) control | 16 | - (void)SDKinit:(UIViewController *) control |
17 | { | 17 | { |
... | @@ -19,10 +19,10 @@ NSString *SeraphAppKey; | ... | @@ -19,10 +19,10 @@ NSString *SeraphAppKey; |
19 | [super SDKinit:control]; | 19 | [super SDKinit:control]; |
20 | 20 | ||
21 | [HaiBaoJuheConfig getInstance]; | 21 | [HaiBaoJuheConfig getInstance]; |
22 | - [[SeraphAllManager SeraphInstance]SeraphChuShiHua]; | 22 | + [[OdiumAllManager OdiumInstance]OdiumChuShiHua]; |
23 | - [[SeraphAllManager SeraphInstance]SeraphYangShi:@"sdk"]; | 23 | + [[OdiumAllManager OdiumInstance]OdiumYangShi:@"sdk"]; |
24 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:SeraphCKAssetsLoginNotification object:nil]; | 24 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:OdiumCKAssetsLoginNotification object:nil]; |
25 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"SeraphCKAssetsToolCallBack" object:nil]; | 25 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"OdiumCKAssetsToolCallBack" object:nil]; |
26 | 26 | ||
27 | [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil]; | 27 | [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil]; |
28 | 28 | ||
... | @@ -39,9 +39,9 @@ NSString *SeraphAppKey; | ... | @@ -39,9 +39,9 @@ NSString *SeraphAppKey; |
39 | - (void)SDKloginSDK | 39 | - (void)SDKloginSDK |
40 | { | 40 | { |
41 | //APPID APPKEY | 41 | //APPID APPKEY |
42 | - SeraphAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"]; | 42 | + OdiumAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"]; |
43 | - SeraphAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"]; | 43 | + OdiumAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"]; |
44 | - [[SeraphAllManager SeraphInstance]SeraphDengLu:SeraphAppId :SeraphAppKey :self.controller]; | 44 | + [[OdiumAllManager OdiumInstance]OdiumDengLu:OdiumAppId :OdiumAppKey :self.controller]; |
45 | 45 | ||
46 | } | 46 | } |
47 | 47 | ||
... | @@ -52,9 +52,9 @@ NSString *SeraphAppKey; | ... | @@ -52,9 +52,9 @@ NSString *SeraphAppKey; |
52 | { | 52 | { |
53 | NSLog(@"loginchek"); | 53 | NSLog(@"loginchek"); |
54 | HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc]; | 54 | HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc]; |
55 | - loginInfo.openId = [[SeraphMessage getInstance]openId]; | 55 | + loginInfo.openId = [[OdiumMessage getInstance]openId]; |
56 | - loginInfo.sign = [[SeraphMessage getInstance] token]; | 56 | + loginInfo.sign = [[OdiumMessage getInstance] token]; |
57 | - loginInfo.timestamp = [[SeraphMessage getInstance] timestamp]; | 57 | + loginInfo.timestamp = [[OdiumMessage getInstance] timestamp]; |
58 | 58 | ||
59 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ | 59 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ |
60 | [[HaiBaoJuheChecker getInstance] startCheck:loginInfo]; | 60 | [[HaiBaoJuheChecker getInstance] startCheck:loginInfo]; |
... | @@ -82,7 +82,7 @@ NSString *SeraphAppKey; | ... | @@ -82,7 +82,7 @@ NSString *SeraphAppKey; |
82 | { | 82 | { |
83 | NSDictionary* payResultDic = notification.object; | 83 | NSDictionary* payResultDic = notification.object; |
84 | 84 | ||
85 | - NSString* receiptStr = [payResultDic objectForKey:@"SeraphCKAssetsToolResult"]; | 85 | + NSString* receiptStr = [payResultDic objectForKey:@"OdiumCKAssetsToolResult"]; |
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 *SeraphAppKey; | ... | @@ -216,10 +216,10 @@ NSString *SeraphAppKey; |
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 | - [[SeraphAllManager SeraphInstance] SeraphCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; | 219 | + [[OdiumAllManager OdiumInstance] OdiumCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; |
220 | }else{ | 220 | }else{ |
221 | NSString* products = [payInfo products]; | 221 | NSString* products = [payInfo products]; |
222 | - [[SeraphAllManager SeraphInstance] SeraphCKQueryOperation:self.controller SeraphHuoWuID:products SeraphJiaGe:[payInfo postAmount] SeraphHuoWuMing:[payInfo productName] SeraphDingDanHao:queryId]; | 222 | + [[OdiumAllManager OdiumInstance] OdiumCKQueryOperation:self.controller OdiumHuoWuID:products OdiumJiaGe:[payInfo postAmount] OdiumHuoWuMing:[payInfo productName] OdiumDingDanHao:queryId]; |
223 | } | 223 | } |
224 | } | 224 | } |
225 | 225 | ... | ... |
1 | -{"renyunAppKey": "false", "payorderurl": "https://public.sdk.haibaoyouxi.com/paycheck/create", "usertype": 150, "sdkSimpleName": "apple_youyu", "gamechannelid": "", "APP_KEY": "86b7374239263b915a9ce54d26467942", "custom": "{}", "sdkVersionCode": "V1_1", "loginCheckUrl": "https://public.sdk.haibaoyouxi.com/logincheck/check", "appScheme": "com.jghb.xinqinji", "c2": "", "c1": "", "APP_ID": "5aa743d7f0d770694f4d466d", "paycheckurl": "https://public.sdk.haibaoyouxi.com/paycheck/confirm", "gameSimpleName": "testest"} | 1 | +{"renyunAppKey": "false", "payorderurl": "https://public.sdk.haibaoyouxi.com/paycheck/create", "usertype": 150, "sdkSimpleName": "apple_youyu", "gamechannelid": "", "APP_KEY": "b06b86b79c25774ec758657a7203bae6", "custom": "{}", "sdkVersionCode": "V1_1", "loginCheckUrl": "https://public.sdk.haibaoyouxi.com/logincheck/check", "appScheme": "com.jghb.xinqinji", "c2": "", "c1": "", "APP_ID": "58fd78a9834e7246b8dc0eac", "paycheckurl": "https://public.sdk.haibaoyouxi.com/paycheck/confirm", "gameSimpleName": "testest"} | ... | ... |
... | @@ -10,8 +10,8 @@ | ... | @@ -10,8 +10,8 @@ |
10 | 7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br> | 10 | 7、``` 所有接口PoolSdk 替换成 HaiBaoJuheSDK(如不理解可以参考demo或者详细文档) ``` <br> |
11 | 11 | ||
12 | 12 | ||
13 | -已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2018年12月24日版本方法<br> | 13 | +已更新 海豹聚合SDK 2018年12月05日版本 快速更新到 2019年01月04日版本方法<br> |
14 | 1、``` 删除poolsdk_file文件夹中原来framework ``` <br> | 14 | 1、``` 删除poolsdk_file文件夹中原来framework ``` <br> |
15 | -2、``` 引入poolsdk_file文件夹中Seraph.framework ``` <br> | 15 | +2、``` 引入poolsdk_file文件夹中Odium.framework ``` <br> |
16 | 3、``` 替换SDKInterface.m文件 ``` <br> | 16 | 3、``` 替换SDKInterface.m文件 ``` <br> |
17 | 4、``` 替换HaiBaoJuheSDK.framework ``` <br> | 17 | 4、``` 替换HaiBaoJuheSDK.framework ``` <br> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
No preview for this file type
... | @@ -15,11 +15,11 @@ | ... | @@ -15,11 +15,11 @@ |
15 | - (void)initChecker; | 15 | - (void)initChecker; |
16 | - (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo; | 16 | - (void)startCheck:(HaiBaoJuheLoginInfo *)loginInfo; |
17 | - (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo; | 17 | - (void) createOrder:(HaiBaoJuheCreateOrderInfo *)gzyazfInfo; |
18 | -- (void) SeraphHaiBaoJuhereportOpen; | 18 | +- (void) OdiumHaiBaoJuhereportOpen; |
19 | -- (void) SeraphHaiBaoJuhereportSDKOpen; | 19 | +- (void) OdiumHaiBaoJuhereportSDKOpen; |
20 | -- (void)SeraphHaiBaoJuhehandleFirstOpenApp:(NSString*) path; | 20 | +- (void)OdiumHaiBaoJuhehandleFirstOpenApp:(NSString*) path; |
21 | - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo; | 21 | - (void) reportEnter:(HaiBaoJuheReportInfo *)reInfo; |
22 | -- (void) SeraphHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo; | 22 | +- (void) OdiumHaiBaoJuheReport:(NSString *)_action :(HaiBaoJuheReportInfo *)reInfo; |
23 | - (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType | 23 | - (void)sendNotice:(HaiBaoJuheSDKNotificationType)notiType |
24 | notiName:(NSString *)notiName | 24 | notiName:(NSString *)notiName |
25 | statusCode:(int)nCode | 25 | statusCode:(int)nCode |
... | @@ -28,7 +28,7 @@ | ... | @@ -28,7 +28,7 @@ |
28 | 28 | ||
29 | - (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo; | 29 | - (void)startCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo; |
30 | 30 | ||
31 | -- (void)SeraphHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type; | 31 | +- (void)OdiumHaiBaoJuheStartCheckDelegate:(HaiBaoJuheLoginInfo *)loginInfo type:(int)type; |
32 | 32 | ||
33 | /* | 33 | /* |
34 | *初始化时调用 | 34 | *初始化时调用 | ... | ... |
1 | -#import "HaiBaoJuheSDK/SeraphHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/OdiumHaiBaoJuheBaseModel.h" |
2 | -@interface HaiBaoJuheCreateOrderInfo : SeraphHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheCreateOrderInfo : OdiumHaiBaoJuheBaseModel |
3 | 3 | ||
4 | @property(nonatomic,strong)NSString *serverId;//服务器ID | 4 | @property(nonatomic,strong)NSString *serverId;//服务器ID |
5 | @property(nonatomic, strong)NSString *serverName;//服务器名称 | 5 | @property(nonatomic, strong)NSString *serverName;//服务器名称 |
... | @@ -16,7 +16,7 @@ | ... | @@ -16,7 +16,7 @@ |
16 | @property(nonatomic, strong)NSString *userId;//用户ID | 16 | @property(nonatomic, strong)NSString *userId;//用户ID |
17 | @property(nonatomic, strong)NSString *timestamp;//时间戳 | 17 | @property(nonatomic, strong)NSString *timestamp;//时间戳 |
18 | 18 | ||
19 | -- (NSString *) SeraphHaiBaoJuheGetTsign ; | 19 | +- (NSString *) OdiumHaiBaoJuheGetTsign ; |
20 | -- (NSString *) SeraphHaiBaoJuheGetTimestamp ; | 20 | +- (NSString *) OdiumHaiBaoJuheGetTimestamp ; |
21 | 21 | ||
22 | @end | 22 | @end | ... | ... |
1 | -#import "HaiBaoJuheSDK/SeraphHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/OdiumHaiBaoJuheBaseModel.h" |
2 | -@interface HaiBaoJuheGzyazfInfo : SeraphHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheGzyazfInfo : OdiumHaiBaoJuheBaseModel |
3 | 3 | ||
4 | @property(nonatomic, strong)NSString *serverId; | 4 | @property(nonatomic, strong)NSString *serverId; |
5 | @property(nonatomic, strong)NSString *queryId; | 5 | @property(nonatomic, strong)NSString *queryId; | ... | ... |
1 | -#import "HaiBaoJuheSDK/SeraphHaiBaoJuheBaseModel.h" | 1 | +#import "HaiBaoJuheSDK/OdiumHaiBaoJuheBaseModel.h" |
2 | -@interface HaiBaoJuheLoginInfo : SeraphHaiBaoJuheBaseModel | 2 | +@interface HaiBaoJuheLoginInfo : OdiumHaiBaoJuheBaseModel |
3 | 3 | ||
4 | @property(nonatomic,strong)NSString *timestamp; | 4 | @property(nonatomic,strong)NSString *timestamp; |
5 | @property(nonatomic, strong)NSString *sign; | 5 | @property(nonatomic, strong)NSString *sign; | ... | ... |
1 | // | 1 | // |
2 | -// SeraphHaiBaoJuheReportInfo.h | 2 | +// OdiumHaiBaoJuheReportInfo.h |
3 | // HaiBaoJuheSDK | 3 | // HaiBaoJuheSDK |
4 | // | 4 | // |
5 | // Created by winFan on 12/21/15. | 5 | // Created by winFan on 12/21/15. |
6 | // Copyright (c) 2015 winFan. All rights reserved. | 6 | // Copyright (c) 2015 winFan. All rights reserved. |
7 | // | 7 | // |
8 | 8 | ||
9 | -#import "HaiBaoJuheSDK/SeraphHaiBaoJuheBaseModel.h" | 9 | +#import "HaiBaoJuheSDK/OdiumHaiBaoJuheBaseModel.h" |
10 | -@interface HaiBaoJuheReportInfo : SeraphHaiBaoJuheBaseModel | 10 | +@interface HaiBaoJuheReportInfo : OdiumHaiBaoJuheBaseModel |
11 | 11 | ||
12 | @property(nonatomic, strong)NSString *reportType;//类型 | 12 | @property(nonatomic, strong)NSString *reportType;//类型 |
13 | @property(nonatomic, strong)NSString *playerId;//玩家ID | 13 | @property(nonatomic, strong)NSString *playerId;//玩家ID | ... | ... |
... | @@ -4,7 +4,7 @@ | ... | @@ -4,7 +4,7 @@ |
4 | @interface HaiBaoJuheUtils : NSObject | 4 | @interface HaiBaoJuheUtils : NSObject |
5 | 5 | ||
6 | +(NSString *)md5:(NSString *)str; | 6 | +(NSString *)md5:(NSString *)str; |
7 | -+ (NSDictionary *)SeraphHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString; | 7 | ++ (NSDictionary *)OdiumHaiBaoJuheDictionaryWithJsonString:(NSString *)jsonString; |
8 | +(NSString *)createGzyazfOrderUrl; | 8 | +(NSString *)createGzyazfOrderUrl; |
9 | //*充值回调地址 | 9 | //*充值回调地址 |
10 | +(NSString *)createGzyazfUrl; | 10 | +(NSString *)createGzyazfUrl; | ... | ... |
1 | #import <Foundation/Foundation.h> | 1 | #import <Foundation/Foundation.h> |
2 | #import "OtherSetting.h" | 2 | #import "OtherSetting.h" |
3 | 3 | ||
4 | -@interface SeraphHaiBaoJuheBaseModel : NSObject | 4 | +@interface OdiumHaiBaoJuheBaseModel : NSObject |
5 | 5 | ||
6 | -- (NSString *)SeraphHaiBaoJuheObjectToJsonString; | 6 | +- (NSString *)OdiumHaiBaoJuheObjectToJsonString; |
7 | - (NSMutableString *)paramAddToString; | 7 | - (NSMutableString *)paramAddToString; |
8 | - (id)initWithDiction:(NSDictionary *)diction; | 8 | - (id)initWithDiction:(NSDictionary *)diction; |
9 | 9 | ... | ... |
... | @@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel) | ... | @@ -11,7 +11,7 @@ typedef NS_ENUM(NSInteger, DGLoggerLevel) |
11 | ELogError | 11 | ELogError |
12 | }; | 12 | }; |
13 | 13 | ||
14 | -@interface SeraphHaiBaoJuheDGLogger : NSObject | 14 | +@interface OdiumHaiBaoJuheDGLogger : NSObject |
15 | 15 | ||
16 | + (void)showLog:(NSString *)fmt,...; | 16 | + (void)showLog:(NSString *)fmt,...; |
17 | 17 | ... | ... |
1 | +// | ||
2 | +// IAPHelper.h | ||
3 | +// | ||
4 | +// Original Created by Ray Wenderlich on 2/28/11. | ||
5 | +// Created by saturngod on 7/9/12. | ||
6 | +// Copyright 2011 Ray Wenderlich. All rights reserved. | ||
7 | +// | ||
8 | + | ||
9 | +#import <Foundation/Foundation.h> | ||
10 | +#import "StoreKit/StoreKit.h" | ||
11 | + | ||
12 | + | ||
13 | +typedef void (^IAPProductsResponseBlock)(SKProductsRequest* request , SKProductsResponse* response); | ||
14 | + | ||
15 | +typedef void (^IAPbuyProductCompleteResponseBlock)(SKPaymentTransaction* transcation); | ||
16 | + | ||
17 | +typedef void (^checkReceiptCompleteResponseBlock)(NSString* response,NSError* error); | ||
18 | + | ||
19 | +typedef void (^resoreProductsCompleteResponseBlock) (SKPaymentQueue* payment,NSError* error); | ||
20 | + | ||
21 | +@interface IAPHelper : NSObject <SKProductsRequestDelegate, SKPaymentTransactionObserver> | ||
22 | + | ||
23 | +@property (nonatomic,strong) NSSet *productIdentifiers; | ||
24 | +@property (nonatomic,strong) NSArray * products; | ||
25 | +@property (nonatomic,strong) NSMutableSet *purchasedProducts; | ||
26 | +@property (nonatomic,strong) SKProductsRequest *request; | ||
27 | +@property (nonatomic) BOOL production; | ||
28 | + | ||
29 | +//init With Product Identifiers | ||
30 | +- (id)initWithProductIdentifiers:(NSSet *)productIdentifiers; | ||
31 | + | ||
32 | +//get Products List | ||
33 | +- (void)requestProductsWithCompletion:(IAPProductsResponseBlock)completion; | ||
34 | + | ||
35 | + | ||
36 | +//Buy Product | ||
37 | +- (void)buyProduct:(SKProduct *)productIdentifier onCompletion:(IAPbuyProductCompleteResponseBlock)completion; | ||
38 | + | ||
39 | +//restore Products | ||
40 | +- (void)restoreProductsWithCompletion:(resoreProductsCompleteResponseBlock)completion; | ||
41 | + | ||
42 | +//check isPurchased or not | ||
43 | +- (BOOL)isPurchasedProductsIdentifier:(NSString*)productID; | ||
44 | + | ||
45 | +//check receipt but recommend to use in server side instead of using this function | ||
46 | +- (void)checkReceipt:(NSData*)receiptData onCompletion:(checkReceiptCompleteResponseBlock)completion; | ||
47 | + | ||
48 | +- (void)checkReceipt:(NSData*)receiptData AndSharedSecret:(NSString*)secretKey onCompletion:(checkReceiptCompleteResponseBlock)completion; | ||
49 | + | ||
50 | + | ||
51 | +//saved purchased product | ||
52 | +- (void)provideContentWithTransaction:(SKPaymentTransaction *)transaction; | ||
53 | + | ||
54 | +- (void)provideContent:(NSString *)productIdentifier __deprecated_msg("use provideContentWithTransaction: instead."); | ||
55 | + | ||
56 | +//clear the saved products | ||
57 | +- (void)clearSavedPurchasedProducts; | ||
58 | +- (void)clearSavedPurchasedProductByID:(NSString*)productIdentifier; | ||
59 | + | ||
60 | + | ||
61 | +//Get The Price with local currency | ||
62 | +- (NSString *)getLocalePrice:(SKProduct *)product; | ||
63 | + | ||
64 | +@end |
1 | +// | ||
2 | +// IAPShare.h | ||
3 | +// ; | ||
4 | +// | ||
5 | +// Created by Htain Lin Shwe on 10/7/12. | ||
6 | +// Copyright (c) 2012 Edenpod. All rights reserved. | ||
7 | +// | ||
8 | + | ||
9 | +#import <Foundation/Foundation.h> | ||
10 | +#import "IAPHelper.h" | ||
11 | +@interface IAPShare : NSObject | ||
12 | +@property (nonatomic,strong) IAPHelper *iap; | ||
13 | + | ||
14 | ++ (IAPShare *) sharedHelper; | ||
15 | + | ||
16 | ++(id)toJSON:(NSString*)json; | ||
17 | +@end |
1 | +// | ||
2 | +// NSString+Base64.h | ||
3 | +// Newsstand | ||
4 | +// | ||
5 | +// Created by Carlo Vigiani on 29/Oct/11. | ||
6 | +// Copyright (c) 2011 viggiosoft. All rights reserved. | ||
7 | +// | ||
8 | + | ||
9 | +#import <Foundation/Foundation.h> | ||
10 | + | ||
11 | +@interface NSString (Base64) | ||
12 | + | ||
13 | ++ (NSString *) base64StringFromData:(NSData *)data length:(long)length; | ||
14 | + | ||
15 | +@end |
1 | +#import <UIKit/UIKit.h> | ||
2 | + | ||
3 | +@interface OdiumIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource> | ||
4 | + | ||
5 | +@property(nonatomic,strong) NSString* OdiumDingDanHao; | ||
6 | +@property(nonatomic,strong) NSDictionary* OdiumHuoWuLieBiao; | ||
7 | +@property(nonatomic,strong) NSMutableArray* OdiumHuoWuIDLieBiao; | ||
8 | +@property(nonatomic, strong) UITableView *OdiumHuoWuLieBiaoView; | ||
9 | + | ||
10 | +- (void)OdiumHuaQianView:(UIViewController*)controller OdiumHuoWuD:(NSString*)products OdiumQian:(NSString*)amount OdiumHuoWuMing:(NSString*)productName OdiumDingDanHao:(NSString*)DingDanHao; | ||
11 | + | ||
12 | +@end |
1 | +#import <UIKit/UIKit.h> | ||
2 | +#import "StoreKit/StoreKit.h" | ||
3 | + | ||
4 | +@interface OdiumAllManager : NSObject | ||
5 | +{ | ||
6 | + NSString* OdiumCKAPPID_; | ||
7 | + NSString* OdiumCKAPPKEY_; | ||
8 | + | ||
9 | + NSString* OdiumInviterCode_; | ||
10 | +} | ||
11 | + | ||
12 | +@property bool OdiumGeiWoHuaQianBa; | ||
13 | + | ||
14 | ++ (OdiumAllManager *)OdiumInstance; | ||
15 | + | ||
16 | +- (void)OdiumChuShiHua; | ||
17 | + | ||
18 | +- (void)OdiumDengLu:(NSString *)OdiumCKAPPID : (NSString *)OdiumCKAPPKEY : (UIViewController *)controller; | ||
19 | + | ||
20 | +- (void)OdiumYangShi:(NSString*)OdiumLeiXing; | ||
21 | + | ||
22 | +- (void)OdiumCKQuery: (NSString *)OdiumFuWuQiID : (NSString *)OdiumNickName : (NSNumber *)OdiumAmount : (NSString *)OdiumCallBack : (UIViewController *)controller : (NSString *)OdiumServerName; | ||
23 | + | ||
24 | +- (void)OdiumCKQueryOperation:(UIViewController*)controll OdiumHuoWuID:(NSString*)products OdiumJiaGe:(NSString*)amount OdiumHuoWuMing:(NSString*)productName OdiumDingDanHao:(NSString*) DingDanHao; | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | +@end |
1 | +#import <UIKit/UIKit.h> | ||
2 | +#import "OdiumMessage.h" | ||
3 | +#import <JavaScriptCore/JavaScriptCore.h> | ||
4 | + | ||
5 | +@interface OdiumMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate> | ||
6 | +{ | ||
7 | + UIWebView *webView_; | ||
8 | + UIActivityIndicatorView *activityIndicator; | ||
9 | +} | ||
10 | + | ||
11 | +@property(assign) BOOL OdiumYouYuanJiao; | ||
12 | + | ||
13 | +- (void)OdiumSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight; | ||
14 | +- (void)OdiumChuShiHuaWebView; | ||
15 | +- (void)loadWebPageWithString:(NSString *)url; | ||
16 | +- (void)loadWebPageWithJs:(NSString *)content; | ||
17 | +- (void)postNotification:(NSString *)name : (NSString *)code; | ||
18 | +- (void)receiveIap:(NSNotification *)notification; | ||
19 | + | ||
20 | +@end |
1 | +#import <Foundation/Foundation.h> | ||
2 | + | ||
3 | +@interface OdiumMessage : NSObject | ||
4 | +{ | ||
5 | +// | ||
6 | +NSString *openId; | ||
7 | +NSString *token; | ||
8 | +NSString *timestamp; | ||
9 | + | ||
10 | +} | ||
11 | + | ||
12 | +@property(retain,nonatomic) NSString *openId; | ||
13 | +@property(retain,nonatomic) NSString *token; | ||
14 | +@property(retain,nonatomic) NSString *timestamp; | ||
15 | ++ (OdiumMessage *)getInstance; | ||
16 | +@end |
1 | +// | ||
2 | +// SFHFKeychainUtils.h | ||
3 | +// | ||
4 | +// Created by Buzz Andersen on 10/20/08. | ||
5 | +// Based partly on code by Jonathan Wight, Jon Crosby, and Mike Malone. | ||
6 | +// Copyright 2008 Sci-Fi Hi-Fi. All rights reserved. | ||
7 | +// | ||
8 | +// Permission is hereby granted, free of charge, to any person | ||
9 | +// obtaining a copy of this software and associated documentation | ||
10 | +// files (the "Software"), to deal in the Software without | ||
11 | +// restriction, including without limitation the rights to use, | ||
12 | +// copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
13 | +// copies of the Software, and to permit persons to whom the | ||
14 | +// Software is furnished to do so, subject to the following | ||
15 | +// conditions: | ||
16 | +// | ||
17 | +// The above copyright notice and this permission notice shall be | ||
18 | +// included in all copies or substantial portions of the Software. | ||
19 | +// | ||
20 | +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
21 | +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
22 | +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
23 | +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
24 | +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
25 | +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
26 | +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
27 | +// OTHER DEALINGS IN THE SOFTWARE. | ||
28 | +// | ||
29 | + | ||
30 | +#import <UIKit/UIKit.h> | ||
31 | + | ||
32 | + | ||
33 | +@interface SFHFKeychainUtils : NSObject { | ||
34 | + | ||
35 | +} | ||
36 | + | ||
37 | ++ (NSString *) getPasswordForUsername: (NSString *) username andServiceName: (NSString *) serviceName error: (NSError **) error; | ||
38 | ++ (BOOL) storeUsername: (NSString *) username andPassword: (NSString *) password forServiceName: (NSString *) serviceName updateExisting: (BOOL) updateExisting error: (NSError **) error; | ||
39 | ++ (BOOL) deleteItemForUsername: (NSString *) username andServiceName: (NSString *) serviceName error: (NSError **) error; | ||
40 | + | ||
41 | +@end | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
No preview for this file type
poolsdk_file/poolsdk/Odium.framework/Odium
0 → 100644
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 "Seraph/SeraphAllManager.h" | 4 | +#import "Odium/OdiumAllManager.h" |
5 | -#import "Seraph/SeraphHuiTiaoNotification.h" | 5 | +#import "Odium/OdiumHuiTiaoNotification.h" |
6 | -#import "Seraph/SeraphMessage.h" | 6 | +#import "Odium/OdiumMessage.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 *SeraphAppId; | 13 | +NSString *OdiumAppId; |
14 | -NSString *SeraphAppKey; | 14 | +NSString *OdiumAppKey; |
15 | 15 | ||
16 | - (void)SDKinit:(UIViewController *) control | 16 | - (void)SDKinit:(UIViewController *) control |
17 | { | 17 | { |
... | @@ -19,10 +19,10 @@ NSString *SeraphAppKey; | ... | @@ -19,10 +19,10 @@ NSString *SeraphAppKey; |
19 | [super SDKinit:control]; | 19 | [super SDKinit:control]; |
20 | 20 | ||
21 | [HaiBaoJuheConfig getInstance]; | 21 | [HaiBaoJuheConfig getInstance]; |
22 | - [[SeraphAllManager SeraphInstance]SeraphChuShiHua]; | 22 | + [[OdiumAllManager OdiumInstance]OdiumChuShiHua]; |
23 | - [[SeraphAllManager SeraphInstance]SeraphYangShi:@"sdk"]; | 23 | + [[OdiumAllManager OdiumInstance]OdiumYangShi:@"sdk"]; |
24 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:SeraphCKAssetsLoginNotification object:nil]; | 24 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:OdiumCKAssetsLoginNotification object:nil]; |
25 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"SeraphCKAssetsToolCallBack" object:nil]; | 25 | + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"OdiumCKAssetsToolCallBack" object:nil]; |
26 | 26 | ||
27 | [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil]; | 27 | [[HaiBaoJuheChecker getInstance] sendNotice:HaiBaoJuheSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:HaiBaoJuheSDK_NO_ERROR description:@"initSuccess" extendData:nil]; |
28 | 28 | ||
... | @@ -39,9 +39,9 @@ NSString *SeraphAppKey; | ... | @@ -39,9 +39,9 @@ NSString *SeraphAppKey; |
39 | - (void)SDKloginSDK | 39 | - (void)SDKloginSDK |
40 | { | 40 | { |
41 | //APPID APPKEY | 41 | //APPID APPKEY |
42 | - SeraphAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"]; | 42 | + OdiumAppId = [[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_ID"]; |
43 | - SeraphAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"]; | 43 | + OdiumAppKey =[[HaiBaoJuheConfig getInstance] getValueByKey:@"APP_KEY"]; |
44 | - [[SeraphAllManager SeraphInstance]SeraphDengLu:SeraphAppId :SeraphAppKey :self.controller]; | 44 | + [[OdiumAllManager OdiumInstance]OdiumDengLu:OdiumAppId :OdiumAppKey :self.controller]; |
45 | 45 | ||
46 | } | 46 | } |
47 | 47 | ||
... | @@ -52,9 +52,9 @@ NSString *SeraphAppKey; | ... | @@ -52,9 +52,9 @@ NSString *SeraphAppKey; |
52 | { | 52 | { |
53 | NSLog(@"loginchek"); | 53 | NSLog(@"loginchek"); |
54 | HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc]; | 54 | HaiBaoJuheLoginInfo *loginInfo = [HaiBaoJuheLoginInfo alloc]; |
55 | - loginInfo.openId = [[SeraphMessage getInstance]openId]; | 55 | + loginInfo.openId = [[OdiumMessage getInstance]openId]; |
56 | - loginInfo.sign = [[SeraphMessage getInstance] token]; | 56 | + loginInfo.sign = [[OdiumMessage getInstance] token]; |
57 | - loginInfo.timestamp = [[SeraphMessage getInstance] timestamp]; | 57 | + loginInfo.timestamp = [[OdiumMessage getInstance] timestamp]; |
58 | 58 | ||
59 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ | 59 | dispatch_async(dispatch_get_global_queue(0, 0), ^{ |
60 | [[HaiBaoJuheChecker getInstance] startCheck:loginInfo]; | 60 | [[HaiBaoJuheChecker getInstance] startCheck:loginInfo]; |
... | @@ -82,7 +82,7 @@ NSString *SeraphAppKey; | ... | @@ -82,7 +82,7 @@ NSString *SeraphAppKey; |
82 | { | 82 | { |
83 | NSDictionary* payResultDic = notification.object; | 83 | NSDictionary* payResultDic = notification.object; |
84 | 84 | ||
85 | - NSString* receiptStr = [payResultDic objectForKey:@"SeraphCKAssetsToolResult"]; | 85 | + NSString* receiptStr = [payResultDic objectForKey:@"OdiumCKAssetsToolResult"]; |
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 *SeraphAppKey; | ... | @@ -216,10 +216,10 @@ NSString *SeraphAppKey; |
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 | - [[SeraphAllManager SeraphInstance] SeraphCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; | 219 | + [[OdiumAllManager OdiumInstance] OdiumCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]]; |
220 | }else{ | 220 | }else{ |
221 | NSString* products = [payInfo products]; | 221 | NSString* products = [payInfo products]; |
222 | - [[SeraphAllManager SeraphInstance] SeraphCKQueryOperation:self.controller SeraphHuoWuID:products SeraphJiaGe:[payInfo postAmount] SeraphHuoWuMing:[payInfo productName] SeraphDingDanHao:queryId]; | 222 | + [[OdiumAllManager OdiumInstance] OdiumCKQueryOperation:self.controller OdiumHuoWuID:products OdiumJiaGe:[payInfo postAmount] OdiumHuoWuMing:[payInfo productName] OdiumDingDanHao:queryId]; |
223 | } | 223 | } |
224 | } | 224 | } |
225 | 225 | ... | ... |
-
Please register or login to post a comment