lizhihui

更新181018版本

Showing 49 changed files with 248 additions and 220 deletions
No preview for this file type
......@@ -8,7 +8,7 @@
/* Begin PBXBuildFile section */
260A34CB2130061A003C083C /* PoolSdk.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 260A34CA21300619003C083C /* PoolSdk.framework */; };
2638DD7B215B23F5006540CB /* TurningSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2638DD7A215B23F5006540CB /* TurningSDK.framework */; };
261FB1AA217868E900029D36 /* PolarisSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 261FB1A9217868E900029D36 /* PolarisSDK.framework */; };
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 845D181B1C8D778400F27EB9 /* Images.xcassets */; };
846BD2241EE9342700E89A1D /* pool_setting in Resources */ = {isa = PBXBuildFile; fileRef = 846BD21F1EE9342700E89A1D /* pool_setting */; };
846BD2261EE9342700E89A1D /* SDKInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 846BD2231EE9342700E89A1D /* SDKInterface.m */; };
......@@ -32,7 +32,6 @@
84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 84A090AA1F160A69003D23FB /* TrackingIO.a */; };
BB5F3C8E1C1811BC00DA339D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = BB5F3C8D1C1811BC00DA339D /* main.m */; };
BB5F3C971C1811BC00DA339D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BB5F3C951C1811BC00DA339D /* Main.storyboard */; };
BB5F3C9C1C1811BC00DA339D /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = BB5F3C9A1C1811BC00DA339D /* LaunchScreen.xib */; };
BB5F3CA81C1811BC00DA339D /* DemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = BB5F3CA71C1811BC00DA339D /* DemoTests.m */; };
/* End PBXBuildFile section */
......@@ -61,7 +60,7 @@
/* Begin PBXFileReference section */
260A34CA21300619003C083C /* PoolSdk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PoolSdk.framework; sourceTree = "<group>"; };
2638DD7A215B23F5006540CB /* TurningSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = TurningSDK.framework; sourceTree = "<group>"; };
261FB1A9217868E900029D36 /* PolarisSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = PolarisSDK.framework; sourceTree = "<group>"; };
845D181B1C8D778400F27EB9 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = poolsdk_file/poolsdk/Images.xcassets; sourceTree = "<group>"; };
845D181C1C8D778400F27EB9 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = poolsdk_file/poolsdk/Info.plist; sourceTree = "<group>"; };
846BD21F1EE9342700E89A1D /* pool_setting */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = pool_setting; path = poolsdk_file/poolsdk/pool_setting; sourceTree = "<group>"; };
......@@ -105,6 +104,7 @@
files = (
8484E5161EE7E36800B402D1 /* SystemConfiguration.framework in Frameworks */,
8484E4FC1EE7E1D800B402D1 /* libsqlite3.dylib in Frameworks */,
261FB1AA217868E900029D36 /* PolarisSDK.framework in Frameworks */,
8484E5121EE7E2B800B402D1 /* libz.1.dylib in Frameworks */,
8484E5101EE7E29A00B402D1 /* libc++.1.dylib in Frameworks */,
8484E5001EE7E20C00B402D1 /* CFNetwork.framework in Frameworks */,
......@@ -117,7 +117,6 @@
8484E50A1EE7E26200B402D1 /* Security.framework in Frameworks */,
8484E5041EE7E24400B402D1 /* StoreKit.framework in Frameworks */,
260A34CB2130061A003C083C /* PoolSdk.framework in Frameworks */,
2638DD7B215B23F5006540CB /* TurningSDK.framework in Frameworks */,
8484E4FE1EE7E1F700B402D1 /* CoreTelephony.framework in Frameworks */,
84A090AB1F160A69003D23FB /* TrackingIO.a in Frameworks */,
);
......@@ -144,7 +143,7 @@
8476DF641C4DD71D00EC42BA /* poolsdk */ = {
isa = PBXGroup;
children = (
2638DD7A215B23F5006540CB /* TurningSDK.framework */,
261FB1A9217868E900029D36 /* PolarisSDK.framework */,
84A090AC1F174E21003D23FB /* TrackingIO.h */,
84A090AA1F160A69003D23FB /* TrackingIO.a */,
846BD21F1EE9342700E89A1D /* pool_setting */,
......@@ -316,7 +315,6 @@
files = (
845D18221C8D778400F27EB9 /* Images.xcassets in Resources */,
BB5F3C971C1811BC00DA339D /* Main.storyboard in Resources */,
BB5F3C9C1C1811BC00DA339D /* LaunchScreen.xib in Resources */,
846BD2241EE9342700E89A1D /* pool_setting in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
......@@ -467,7 +465,6 @@
BB5F3CAC1C1811BC00DA339D /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
......@@ -502,7 +499,6 @@
BB5F3CAD1C1811BC00DA339D /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
......
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "1"
version = "2.0">
</Bucket>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="8191" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14113" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8154"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
......@@ -25,7 +29,7 @@
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
<constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
......
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="8191" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="vXZ-lx-hvc">
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14113" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="vXZ-lx-hvc">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8154"/>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Main View Controller-->
......@@ -13,11 +18,12 @@
<viewControllerLayoutGuide type="bottom" id="2fi-mo-0CV"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="kh9-bI-dsS">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="GQW-et-jRb">
<rect key="frame" x="44" y="85" width="208" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" title="初始化"/>
<connections>
<action selector="actionInit:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="Srh-bu-gYD"/>
......@@ -25,6 +31,7 @@
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="s0O-FE-ge8">
<rect key="frame" x="61" y="123" width="175" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" title="登录"/>
<connections>
<action selector="actionLogin:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="381-gB-ImA"/>
......@@ -32,6 +39,7 @@
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="JQY-uO-q36">
<rect key="frame" x="53" y="166" width="191" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" title="充值"/>
<connections>
<action selector="actionPay:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="bvf-M4-rqy"/>
......@@ -39,6 +47,7 @@
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="5na-1c-IlO">
<rect key="frame" x="357" y="85" width="100" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" title="数据"/>
<connections>
<action selector="actionSubmitRoleData:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="aNf-Iw-unv"/>
......@@ -46,6 +55,7 @@
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="jcX-L1-JB6">
<rect key="frame" x="377" y="166" width="60" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" title="切换账号"/>
<connections>
<action selector="actionSwitchAccount:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="miU-Hm-8cm"/>
......@@ -53,13 +63,14 @@
</button>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Q9b-py-Nk0">
<rect key="frame" x="340" y="123" width="134" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" title="注销"/>
<connections>
<action selector="actionLogout:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="t6e-7P-tJU"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/>
......
......@@ -19,6 +19,7 @@
[super viewDidLoad];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveSDKMessage:) name:poolSDK_Notification object:nil];
// Do any additional setup after loading the view.
NSLog(@"viewDidLoad");
}
- (void)didReceiveMemoryWarning {
......
#import <UIKit/UIKit.h>
@interface PolarisIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* PolarisDingDanHao;
@property(nonatomic,strong) NSDictionary* PolarisHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* PolarisHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *PolarisHuoWuLieBiaoView;
- (void)PolarisHuaQianView:(UIViewController*)controller PolarisHuoWuD:(NSString*)products PolarisQian:(NSString*)amount PolarisHuoWuMing:(NSString*)productName PolarisDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface PolarisAllManager : NSObject
{
NSString* PolarisCKAPPID_;
NSString* PolarisCKAPPKEY_;
NSString* PolarisInviterCode_;
}
@property bool PolarisGeiWoHuaQianBa;
+ (PolarisAllManager *)PolarisInstance;
- (void)PolarisChuShiHua;
- (void)PolarisDengLu:(NSString *)PolarisCKAPPID : (NSString *)PolarisCKAPPKEY : (UIViewController *)controller;
- (void)PolarisYangShi:(NSString*)PolarisLeiXing;
- (void)PolarisCKQuery: (NSString *)PolarisFuWuQiID : (NSString *)PolarisNickName : (NSNumber *)PolarisAmount : (NSString *)PolarisCallBack : (UIViewController *)controller : (NSString *)PolarisServerName;
- (void)PolarisCKQueryOperation:(UIViewController*)controll PolarisHuoWuID:(NSString*)products PolarisJiaGe:(NSString*)amount PolarisHuoWuMing:(NSString*)productName PolarisDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const PolarisCKAssetsExitNotification;
extern NSString * const PolarisCKAssetsLoginNotification;
extern NSString * const PolarisCKAssetsErrorNotification;
@interface PolarisHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface TurningDiZhi : NSObject
@interface PolarisLocation : NSObject
+ (NSString *)TurningSKCloudServiceSetupOptionsKey;
+ (NSString *)PolarisSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "TurningXinXi.h"
#import "PolarisMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface TurningMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface PolarisMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL TurningYouYuanJiao;
@property(assign) BOOL PolarisYouYuanJiao;
- (void)TurningSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)TurningChuShiHuaWebView;
- (void)PolarisSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)PolarisChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface TurningXinXi : NSObject
@interface PolarisMessage : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (TurningXinXi *)getInstance;
+ (PolarisMessage *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface PolarisMessageJM : NSObject
+(NSString *)PolarisJM:(NSString *)jm;
+(void)PolarisEmptyqweS12Jijis;
+(void)PolarisEmptyjqw3123eakdjl;
+(void)PolarisEmptynqw123evcxnklr;
-(void)PolarisEmptyasqw123edll;
-(void)PolarisEmptyasqw12312edlasdl;
-(void)PolarisEmptyasdq3123wellasd;
+(void)PolarisEmptyain;
-(void)PolarisEmptybua3in;
+(void)PolarisEmptya3in;
-(void)PolarisEmptybu2ain;
+(void)PolarisEmptyai2n;
-(void)PolarisEmptybu1ain;
+(void)PolarisEmptyai2nasd;
-(void)PolarisEmptybasdu1ain;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface TurningAllManager : NSObject
{
NSString* TurningCKAPPID_;
NSString* TurningCKAPPKEY_;
NSString* TurningInviterCode_;
}
@property bool TurningGeiWoHuaQianBa;
+ (TurningAllManager *)TurningInstance;
- (void)TurningChuShiHua;
- (void)TurningDengLu:(NSString *)TurningCKAPPID : (NSString *)TurningCKAPPKEY : (UIViewController *)controller;
- (void)TurningYangShi:(NSString*)TurningLeiXing;
- (void)TurningCKQuery: (NSString *)TurningFuWuQiID : (NSString *)TurningNickName : (NSNumber *)TurningAmount : (NSString *)TurningCallBack : (UIViewController *)controller : (NSString *)TurningServerName;
- (void)TurningCKQueryOperation:(UIViewController*)controll TurningHuoWuID:(NSString*)products TurningJiaGe:(NSString*)amount TurningHuoWuMing:(NSString*)productName TurningDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const TurningCKAssetsExitNotification;
extern NSString * const TurningCKAssetsLoginNotification;
extern NSString * const TurningCKAssetsErrorNotification;
@interface TurningHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface TurningIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* TurningDingDanHao;
@property(nonatomic,strong) NSDictionary* TurningHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* TurningHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *TurningHuoWuLieBiaoView;
- (void)TurningHuaQianView:(UIViewController*)controller TurningHuoWuD:(NSString*)products TurningQian:(NSString*)amount TurningHuoWuMing:(NSString*)productName TurningDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface TurningMsgJM : NSObject
+(NSString *)TurningJM:(NSString *)jm;
+(void)TurningEmptyqweS12Jijis;
+(void)TurningEmptyjqw3123eakdjl;
+(void)TurningEmptynqw123evcxnklr;
-(void)TurningEmptyasqw123edll;
-(void)TurningEmptyasqw12312edlasdl;
-(void)TurningEmptyasdq3123wellasd;
+(void)TurningEmptyain;
-(void)TurningEmptybua3in;
+(void)TurningEmptya3in;
-(void)TurningEmptybu2ain;
+(void)TurningEmptyai2n;
-(void)TurningEmptybu1ain;
@end
......@@ -4,6 +4,8 @@
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>海豹DEMO</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
......@@ -25,7 +27,15 @@
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>com.youai.sdk</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>i9133public</string>
</array>
</dict>
</array>
......@@ -38,8 +48,6 @@
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
......@@ -48,8 +56,8 @@
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
</dict>
</plist>
......
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "TurningSDK/TurningAllManager.h"
#import "TurningSDK/TurningHuiTiaoNotification.h"
#import "TurningSDK/TurningXinXi.h"
#import "PolarisSDK/PolarisAllManager.h"
#import "PolarisSDK/PolarisHuiTiaoNotification.h"
#import "PolarisSDK/PolarisMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *TurningSDKAppId;
NSString *TurningSDKAppKey;
NSString *PolarisSDKAppId;
NSString *PolarisSDKAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *TurningSDKAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[TurningAllManager TurningInstance]TurningChuShiHua];
[[TurningAllManager TurningInstance]TurningYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:TurningCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"TurningCKAssetsToolCallBack" object:nil];
[[PolarisAllManager PolarisInstance]PolarisChuShiHua];
[[PolarisAllManager PolarisInstance]PolarisYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:PolarisCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"PolarisCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *TurningSDKAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
TurningSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
TurningSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[TurningAllManager TurningInstance]TurningDengLu:TurningSDKAppId :TurningSDKAppKey :self.controller];
PolarisSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
PolarisSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[PolarisAllManager PolarisInstance]PolarisDengLu:PolarisSDKAppId :PolarisSDKAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *TurningSDKAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[TurningXinXi getInstance]openId];
loginInfo.sign = [[TurningXinXi getInstance] token];
loginInfo.timestamp = [[TurningXinXi getInstance] timestamp];
loginInfo.openId = [[PolarisMessage getInstance]openId];
loginInfo.sign = [[PolarisMessage getInstance] token];
loginInfo.timestamp = [[PolarisMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *TurningSDKAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"TurningCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"PolarisCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *TurningSDKAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[TurningAllManager TurningInstance] TurningCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[PolarisAllManager PolarisInstance] PolarisCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[TurningAllManager TurningInstance] TurningCKQueryOperation:self.controller TurningHuoWuID:products TurningJiaGe:[payInfo postAmount] TurningHuoWuMing:[payInfo productName] TurningDingDanHao:queryId];
[[PolarisAllManager PolarisInstance] PolarisCKQueryOperation:self.controller PolarisHuoWuID:products PolarisJiaGe:[payInfo postAmount] PolarisHuoWuMing:[payInfo productName] PolarisDingDanHao:queryId];
}
}
......
新接入请参考对接文档和demo<br>
2018-09-26:<br>
在上版本基础上,更新了4、5、6点后,已接入快速更新方法<br>
1、``` 删除pool_file文件夹中HeroesSDK.framework或者RainbowSDK.framework ``` <br>
2、引入 ``` TurningSDK.framework ``` <br>
2018-10-18:<br>
1、``` 删除pool_file文件夹中ClancySDK.framework ``` <br>
2、引入 ``` PloarisSDK.framework ``` <br>
3、替换 ``` SDKInterface.m文件 ``` <br>
2018-05-28: ``` (在此日期之后接入的可以忽略) ``` <br>
......
#import <UIKit/UIKit.h>
@interface PolarisIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* PolarisDingDanHao;
@property(nonatomic,strong) NSDictionary* PolarisHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* PolarisHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *PolarisHuoWuLieBiaoView;
- (void)PolarisHuaQianView:(UIViewController*)controller PolarisHuoWuD:(NSString*)products PolarisQian:(NSString*)amount PolarisHuoWuMing:(NSString*)productName PolarisDingDanHao:(NSString*)DingDanHao;
@end
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface PolarisAllManager : NSObject
{
NSString* PolarisCKAPPID_;
NSString* PolarisCKAPPKEY_;
NSString* PolarisInviterCode_;
}
@property bool PolarisGeiWoHuaQianBa;
+ (PolarisAllManager *)PolarisInstance;
- (void)PolarisChuShiHua;
- (void)PolarisDengLu:(NSString *)PolarisCKAPPID : (NSString *)PolarisCKAPPKEY : (UIViewController *)controller;
- (void)PolarisYangShi:(NSString*)PolarisLeiXing;
- (void)PolarisCKQuery: (NSString *)PolarisFuWuQiID : (NSString *)PolarisNickName : (NSNumber *)PolarisAmount : (NSString *)PolarisCallBack : (UIViewController *)controller : (NSString *)PolarisServerName;
- (void)PolarisCKQueryOperation:(UIViewController*)controll PolarisHuoWuID:(NSString*)products PolarisJiaGe:(NSString*)amount PolarisHuoWuMing:(NSString*)productName PolarisDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const PolarisCKAssetsExitNotification;
extern NSString * const PolarisCKAssetsLoginNotification;
extern NSString * const PolarisCKAssetsErrorNotification;
@interface PolarisHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface TurningDiZhi : NSObject
@interface PolarisLocation : NSObject
+ (NSString *)TurningSKCloudServiceSetupOptionsKey;
+ (NSString *)PolarisSKCloudServiceSetupOptionsKey;
@end
......
#import <UIKit/UIKit.h>
#import "TurningXinXi.h"
#import "PolarisMessage.h"
#import <JavaScriptCore/JavaScriptCore.h>
@interface TurningMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
@interface PolarisMain : UIViewController<UIWebViewDelegate,UIAlertViewDelegate>
{
UIWebView *webView_;
UIActivityIndicatorView *activityIndicator;
}
@property(assign) BOOL TurningYouYuanJiao;
@property(assign) BOOL PolarisYouYuanJiao;
- (void)TurningSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)TurningChuShiHuaWebView;
- (void)PolarisSettingCKAssetsView:(int)webViewWidth :(int) webViewHeight :(int) screenwidth :(int) screenHeight;
- (void)PolarisChuShiHuaWebView;
- (void)loadWebPageWithString:(NSString *)url;
- (void)loadWebPageWithJs:(NSString *)content;
- (void)postNotification:(NSString *)name : (NSString *)code;
......
#import <Foundation/Foundation.h>
@interface TurningXinXi : NSObject
@interface PolarisMessage : NSObject
{
//
NSString *openId;
......@@ -12,5 +12,5 @@ NSString *timestamp;
@property(retain,nonatomic) NSString *openId;
@property(retain,nonatomic) NSString *token;
@property(retain,nonatomic) NSString *timestamp;
+ (TurningXinXi *)getInstance;
+ (PolarisMessage *)getInstance;
@end
......
#import <Foundation/Foundation.h>
@interface PolarisMessageJM : NSObject
+(NSString *)PolarisJM:(NSString *)jm;
+(void)PolarisEmptyqweS12Jijis;
+(void)PolarisEmptyjqw3123eakdjl;
+(void)PolarisEmptynqw123evcxnklr;
-(void)PolarisEmptyasqw123edll;
-(void)PolarisEmptyasqw12312edlasdl;
-(void)PolarisEmptyasdq3123wellasd;
+(void)PolarisEmptyain;
-(void)PolarisEmptybua3in;
+(void)PolarisEmptya3in;
-(void)PolarisEmptybu2ain;
+(void)PolarisEmptyai2n;
-(void)PolarisEmptybu1ain;
+(void)PolarisEmptyai2nasd;
-(void)PolarisEmptybasdu1ain;
@end
#include "SDKInterface.h"
#import <UIKit/UIKit.h>
#import "TurningSDK/TurningAllManager.h"
#import "TurningSDK/TurningHuiTiaoNotification.h"
#import "TurningSDK/TurningXinXi.h"
#import "PolarisSDK/PolarisAllManager.h"
#import "PolarisSDK/PolarisHuiTiaoNotification.h"
#import "PolarisSDK/PolarisMessage.h"
#import "TrackingIO.h"
@implementation SDKInterface : Interface
int mExchange;
NSString *TurningSDKAppId;
NSString *TurningSDKAppKey;
NSString *PolarisSDKAppId;
NSString *PolarisSDKAppKey;
- (void)SDKinit:(UIViewController *) control
{
......@@ -19,10 +19,10 @@ NSString *TurningSDKAppKey;
[super SDKinit:control];
[PoolConfig getInstance];
[[TurningAllManager TurningInstance]TurningChuShiHua];
[[TurningAllManager TurningInstance]TurningYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:TurningCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"TurningCKAssetsToolCallBack" object:nil];
[[PolarisAllManager PolarisInstance]PolarisChuShiHua];
[[PolarisAllManager PolarisInstance]PolarisYangShi:@"sdk"];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveLoginMessage:) name:PolarisCKAssetsLoginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(HCKAssetsToolCallBack:) name:@"PolarisCKAssetsToolCallBack" object:nil];
[[PoolChecker getInstance] sendNotice:PoolSDKNotificationInitSDK notiName:@"InitSuccess" statusCode:POOLSDK_NO_ERROR description:@"initSuccess" extendData:nil];
......@@ -39,9 +39,9 @@ NSString *TurningSDKAppKey;
- (void)SDKloginSDK
{
//APPID APPKEY
TurningSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
TurningSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[TurningAllManager TurningInstance]TurningDengLu:TurningSDKAppId :TurningSDKAppKey :self.controller];
PolarisSDKAppId = [[PoolConfig getInstance] getValueByKey:@"APP_ID"];
PolarisSDKAppKey =[[PoolConfig getInstance] getValueByKey:@"APP_KEY"];
[[PolarisAllManager PolarisInstance]PolarisDengLu:PolarisSDKAppId :PolarisSDKAppKey :self.controller];
}
......@@ -52,9 +52,9 @@ NSString *TurningSDKAppKey;
{
NSLog(@"loginchek");
PoolLoginInfo *loginInfo = [PoolLoginInfo alloc];
loginInfo.openId = [[TurningXinXi getInstance]openId];
loginInfo.sign = [[TurningXinXi getInstance] token];
loginInfo.timestamp = [[TurningXinXi getInstance] timestamp];
loginInfo.openId = [[PolarisMessage getInstance]openId];
loginInfo.sign = [[PolarisMessage getInstance] token];
loginInfo.timestamp = [[PolarisMessage getInstance] timestamp];
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[[PoolChecker getInstance] startCheck:loginInfo];
......@@ -82,7 +82,7 @@ NSString *TurningSDKAppKey;
{
NSDictionary* payResultDic = notification.object;
NSString* receiptStr = [payResultDic objectForKey:@"TurningCKAssetsToolResult"];
NSString* receiptStr = [payResultDic objectForKey:@"PolarisCKAssetsToolResult"];
NSString* queryId = [payResultDic objectForKey:@"query_id"];
NSDictionary* receiptDic = [NSDictionary dictionaryWithObjectsAndKeys:receiptStr,@"receipt",queryId,@"query_id", nil];
......@@ -216,10 +216,10 @@ NSString *TurningSDKAppKey;
NSString *other = [payInfo other];
if (other && [other length] > 0) {
[[TurningAllManager TurningInstance] TurningCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
[[PolarisAllManager PolarisInstance] PolarisCKQuery:serverId :roleName :amount :[payInfo queryId] :self.controller :[payInfo serverName]];
}else{
NSString* products = [payInfo products];
[[TurningAllManager TurningInstance] TurningCKQueryOperation:self.controller TurningHuoWuID:products TurningJiaGe:[payInfo postAmount] TurningHuoWuMing:[payInfo productName] TurningDingDanHao:queryId];
[[PolarisAllManager PolarisInstance] PolarisCKQueryOperation:self.controller PolarisHuoWuID:products PolarisJiaGe:[payInfo postAmount] PolarisHuoWuMing:[payInfo productName] PolarisDingDanHao:queryId];
}
}
......
#import <UIKit/UIKit.h>
#import "StoreKit/StoreKit.h"
@interface TurningAllManager : NSObject
{
NSString* TurningCKAPPID_;
NSString* TurningCKAPPKEY_;
NSString* TurningInviterCode_;
}
@property bool TurningGeiWoHuaQianBa;
+ (TurningAllManager *)TurningInstance;
- (void)TurningChuShiHua;
- (void)TurningDengLu:(NSString *)TurningCKAPPID : (NSString *)TurningCKAPPKEY : (UIViewController *)controller;
- (void)TurningYangShi:(NSString*)TurningLeiXing;
- (void)TurningCKQuery: (NSString *)TurningFuWuQiID : (NSString *)TurningNickName : (NSNumber *)TurningAmount : (NSString *)TurningCallBack : (UIViewController *)controller : (NSString *)TurningServerName;
- (void)TurningCKQueryOperation:(UIViewController*)controll TurningHuoWuID:(NSString*)products TurningJiaGe:(NSString*)amount TurningHuoWuMing:(NSString*)productName TurningDingDanHao:(NSString*) DingDanHao;
@end
#import <Foundation/Foundation.h>
extern NSString * const TurningCKAssetsExitNotification;
extern NSString * const TurningCKAssetsLoginNotification;
extern NSString * const TurningCKAssetsErrorNotification;
@interface TurningHuiTiaoNotification : NSObject
@end
#import <UIKit/UIKit.h>
@interface TurningIAPHelperControl : NSObject<UITableViewDelegate, UITableViewDataSource>
@property(nonatomic,strong) NSString* TurningDingDanHao;
@property(nonatomic,strong) NSDictionary* TurningHuoWuLieBiao;
@property(nonatomic,strong) NSMutableArray* TurningHuoWuIDLieBiao;
@property(nonatomic, strong) UITableView *TurningHuoWuLieBiaoView;
- (void)TurningHuaQianView:(UIViewController*)controller TurningHuoWuD:(NSString*)products TurningQian:(NSString*)amount TurningHuoWuMing:(NSString*)productName TurningDingDanHao:(NSString*)DingDanHao;
@end
#import <Foundation/Foundation.h>
@interface TurningMsgJM : NSObject
+(NSString *)TurningJM:(NSString *)jm;
+(void)TurningEmptyqweS12Jijis;
+(void)TurningEmptyjqw3123eakdjl;
+(void)TurningEmptynqw123evcxnklr;
-(void)TurningEmptyasqw123edll;
-(void)TurningEmptyasqw12312edlasdl;
-(void)TurningEmptyasdq3123wellasd;
+(void)TurningEmptyain;
-(void)TurningEmptybua3in;
+(void)TurningEmptya3in;
-(void)TurningEmptybu2ain;
+(void)TurningEmptyai2n;
-(void)TurningEmptybu1ain;
@end