You are on page 1of 18

7659 xSDK

7659 xSDK

v3.0.4

2016-8-15

2015-5-20

2.2.0

MTang

2015-8-27

2.2.3

LJF

2016-3-2

3.0.0

2016-3-29

3.0.1

Hao Yu
Hao Yu

2016-04-11

3.0.2

Hao Yu

user_id

2016-05-11

3.0.3

Hao Yu

2016-06-20

3.0.4

Hao Yu


1. .................................................................................................................. 1
1.1. .................................................................................................................................... 1
1.2. ............................................................................................................................... 1
1.3. .................................................................................................................................... 1
1.4. SDK ................................................................................................................................... 1
2. ...................................................................................................................... 2
3. 7659 XSDK ....................................................................................................................... 2
3.1. ........................................................................................................................................................ 2
3.2. ........................................................................................................................................................ 2
4. 7659 XSDK ...................................................................................... 2
4.1. SDK ......................................................................................................................... 2
4.2. .............................................................................................................................................. 4
4.2.1. Other Linker Flags ............................................................................................................ 4
4.2.2. Architectures ....................................................................................................................... 5
4.2.3. Bitcode ................................................................................................................................... 5
4.3. .................................................................................................................................... 5
4.3.1. Bundle identifier ........................................................................................... 5
4.3.2. URL Types ............................................................................................................................. 6
4.3.3. ..................................................................................................................................... 7




4.3.4. HTTP ............................................................................................................................. 7


4.3.5. .......................................................................................................................................... 7
4.4. .................................................................................................................................... 7
5. 7659 XSDK ............................................................................................................. 8
5.1. .................................................................................................................................... 8
5.2. .............................................................................................................................................. 8
6. 7659 XSDK ............................................................................................................. 8
6.1. ......................................................................................................................................... 8
6.2. .............................................................................................................................................. 8
6.2.1. QuickConstant.h ............................................................................................................................ 8
6.2.2. QuickPlatformName.h ................................................................................................................ 9
6.2.3. QuickProductInfo.h ...................................................................................................................... 9
6.2.4. QuickGameRoleInfo.h .............................................................................................................. 10
6.2.5. QuickUnifyPlatform.h ............................................................ 10
6.3. ............................................................................................................................................ 10
6.3.1. AppDelegate.m ........................................................................................................... 10
6.3.2. .................................................................................................................................. 11

6.3.3. () ............................................................................................................................. 11
6.3.4. () ................................................................................................................................... 12
6.3.5. () ................................................................................................................................. 12
6.3.6. () ................................................................................................................................... 13
6.3.7. () ....................................................................................................................... 14
6.3.8. bundle identifier () ............................................................................................... 14

1.
1.1.
7659 xSDK
AppKeyPayID

1-1 7659 xSDK

7659 xSDK

1.2.

1.3.
Bundle version Build Bundle versions string,
short Version

1-2 Version Build

1.4.SDK

xSDK

QuickUnifyPlatform.framework

QuickUnifyPlatform.h .bundle

2.
l

Xcode7.0

iOS7.0

armv7arm64

3. 7659 xSDK
3.1.
7659 xSDK QuickUnifyPlatform.frameworkQuickManifest.plist
XSDKResource.bundleAlipaySDK.bundle

3.2.
l

QuickUnifyPlatform.framework:

QuickManifest.plist

XSDKResource.bundle

AlipaySDK.bundle

4. 7659 xSDK
4.1. SDK
SDK SDK copy items

4-1 SDK Demo

1.




Build Phases Link Binary With Libraries






4-2 Link Binary With Libraries

2.

Copy Bundle Resources bundle QuickManifest.plist


4-3 Copy Bundle Resources

3.

Device Orientation


4-4 Device Orientation

4.

Embedded Binaries Linked


Frameworks and Libraries

4-5 Embed Binaries

5.

Build
Settings search, Framework Search Paths
Library Search Paths,

4-6 Search Path

4.2.
4.2.1. Other Linker Flags
Build Settings Other Linker Flags-ObjC

4-7 Other Linker Flags

4.2.2. Architectures
Architectures armv7+arm64 arm64

4-8 Architectures

4.2.3. Bitcode
Bitcode YES NO
Build Settings Bitcode,


4-9 Enable Bitcode

4.3.
4.3.1. Bundle identifier
Bundle identifier Bundle versions
string, short Version Bundle version Build
Version Code


4-10

4.3.2. URL Types


identifier
com.ky.xSDK.alipay,URL Schemesbuild identifier

bundle identifiercom.juedifanji.7659 xSDK,URL Schemes


com.juedifanji.7659 xSDK, identifiercom.ky.xSDK.alipay

4-11 URL Types

4.3.3.
keyLSApplicationQueriesSchemes NSArray

alipay
weixin
QQ mqqapiwallet

4-12

4.3.4. HTTP
keyApp Transport Security Settings dictionary
itemAllow Arbitrary Loads boolean YES

4-13 HTTPS

4.3.5.
UIRequiresFullScreen YES

4-14

4.4.
Images.xcassets


4-15 icon LaunchImages

5. 7659 xSDK
5.1.

5-1 QuickManifest

5.2.
QuickManifest.plist
7659
1. payid: 7659 xSDK PayID


2. appkey 7659 xSDK Appkey


3. islandscape 7659 xSDK YES

NO

6. 7659 xSDK
6.1.
QuickConstant.h;

QuickGameRoleInfo.h;

QuickProductInfo.h; QuickUnifyPlatform.h

6.2.
6.2.1. QuickConstant.h
1. URL

QuickPlatformName.h;


6-1 QuickConstant.h URL

2. NSNotification userInfo


6-2 QuickConstant.h

3.


6-3 QuickConstant.h

6.2.2. QuickPlatformName.h

6.2.3. QuickProductInfo.h


6-4 QuickProductInfo.h

6.2.4. QuickGameRoleInfo.h


6-5 QuickGameRoleInfo.h

6.2.5. QuickUnifyPlatform.h


6-6 QuickUnifyPlatform.h

6.3.
6.3.1. AppDelegate.m


DEMO


6-8 AppDelegate.m

6.3.2.
ViewController.m
#import <QuickUnifyPlatform/QuickUnifyPlatform.h>

6.3.3.

()


6-9

(void)initCallBack:(NSNotification *)notify

qupLogin

6-10

6.3.4. ()


6-11

1.
[[QuickUnifyPlatform getInstance] qupLogin];
2.
-

(void)loginCallBack:(NSNotification *)notify

3.
notify.object== kQUPSDKSuccessResult
token
NSString *token=[notify.userInfo objectForKey:kQUPLoginTokenKey];

token token 7659


xSDK guid

notify.object DEMO

6.3.5. ()

[[QuickUnifyPlatform getInstance] qupLogout];

- (void)logoutCallBack:(NSNotification *)notify

6.3.6. ()


6-12

1. QuickProductInfo



6-13

2.
- (void)payCallBack:(NSNotification *)notify


6-14

6.3.7. ()
1.
[[QuickUnifyPlatform getInstance] qupOnPause];

- (void)applicationWillEnterForeground:(UIApplication
*)application
home

2.
-

(void)pauseCallBack:(NSNotification *)notify

6.3.8. bundle identifier ()


1. bundle identifier
[[QuickUnifyPlatform getInstance] qupBundleID];

You might also like