21 lines
484 B
Plaintext
21 lines
484 B
Plaintext
#import <Foundation/Foundation.h>
|
|
#import "Xqdsdk.objc.h"
|
|
|
|
extern "C"
|
|
{
|
|
long _xqd_start_sdk(const char *appKey)
|
|
{
|
|
@autoreleasepool
|
|
{
|
|
if (appKey == NULL) return -1001;
|
|
|
|
NSString *key = [NSString stringWithUTF8String:appKey];
|
|
if (key == nil || key.length == 0) return -1002;
|
|
|
|
XqdsdkXqdsdk *sdk = XqdsdkNewXqdsdk();
|
|
if (sdk == nil) return -1003;
|
|
|
|
return [sdk startSDK:key];
|
|
}
|
|
}
|
|
} |