Skip to content

Commit

Permalink
NaverGameSDK v1.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nerycat committed Aug 4, 2022
1 parent 786a70d commit 3ac4dbb
Show file tree
Hide file tree
Showing 274 changed files with 6,687 additions and 288 deletions.
Binary file added package/NaverGameSDK-1.2.0.unitypackage
Binary file not shown.
File renamed without changes.
File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ @interface GLinkViewController : UIViewController <NNGSDKDelegate>

@implementation GLinkViewController

// The version of the SDK.
- (NSString *)getSdkVersion {
return NNGSDKManager.shared.version;
}


// The ISO_3166-1 alpha-2 country code of each device.
- (NSString *)getCountryCode {
return NNGSDKManager.shared.countryCode;
}


// Set the root view and the delegate for SDK.
- (void)setGLRootViewController {
_mainViewcontroller = UnityGetGLViewController();
Expand All @@ -47,9 +59,13 @@ - (void)setClientId:(NSString *)clientId clientSecret:(NSString *)cs loungeId:(N
}


// Dismiss all SDK-related views.
- (void)terminateSdk {
[NNGSDKManager.shared dismiss];
- (void)setCanWriteFeedByScreenshot:(BOOL)enabled {
NNGSDKManager.shared.canWriteFeedByScreenshot = enabled;
}


- (void)setGameId:(NSString *)gameId {
[NNGSDKManager.shared registerMemberGameId:gameId];
}


Expand Down Expand Up @@ -81,15 +97,15 @@ - (void)executeFeed:(long)feedId isTempFeedId:(BOOL)isTempFeedId {
}


// The version of the SDK.
- (NSString *)getSdkVersion {
return NNGSDKManager.shared.version;
- (void)executeFeedWriting:(int)boardId title:(NSString *)title text:(NSString *)text imageFilePath:(NSString *)imageFilePath {
[self setGLRootViewController];
[NNGSDKManager.shared presentFeedWritingWithBoardId:@(boardId) title:title text:text imageFilePath:imageFilePath];
}


// The ISO_3166-1 alpha-2 country code of each device.
- (NSString *)getCountryCode {
return NNGSDKManager.shared.countryCode;
// Dismiss all SDK-related views.
- (void)terminateSdk {
[NNGSDKManager.shared dismiss];
}


Expand Down Expand Up @@ -149,8 +165,20 @@ void _InitGLink(const char* clientId, const char* clientSecret, const char* loun
[vc setClientId:NNGSDKCreateNSString(clientId) clientSecret:NNGSDKCreateNSString(clientSecret) loungeId:NNGSDKCreateNSString(loungeId)];
}

void _TerminateSdk() {
[vc terminateSdk];
const char* _GetSdkVersion() {
return NNGSDKCreateNSStringToChar([vc getSdkVersion].UTF8String);
}

const char* _GetCountryCode() {
return NNGSDKCreateNSStringToChar([vc getCountryCode].UTF8String);
}

void _SetCanWriteFeedByScreenshot(bool enabled) {
[vc setCanWriteFeedByScreenshot:enabled];
}

void _SetGameId(const char* gameId) {
[vc setGameId:NNGSDKCreateNSString(gameId)];
}

void _ExecuteHomeBanner() {
Expand All @@ -169,12 +197,12 @@ void _ExecuteFeed(long feedId, bool isTempFeedId) {
[vc executeFeed:feedId isTempFeedId:isTempFeedId];
}

const char* _GetSdkVersion() {
return NNGSDKCreateNSStringToChar([vc getSdkVersion].UTF8String);
void _ExecuteFeedWriting(int boardId, const char* title, const char* text, const char* imageFilePath) {
[vc executeFeedWriting:boardId title:NNGSDKCreateNSString(title) text:NNGSDKCreateNSString(text) imageFilePath:NNGSDKCreateNSString(imageFilePath)];
}

const char* _GetCountryCode() {
return NNGSDKCreateNSStringToChar([vc getCountryCode].UTF8String);
void _TerminateSdk() {
[vc terminateSdk];
}

void _SetSDKDidLoadDelegate(NGSDKDidLoadDelegate ngSDKDidLoadDelegate) {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3ac4dbb

Please sign in to comment.