Skip to content

SDK - Overview ​

  • SDK integrates several major functional modules including login, payment and customer service.

About Building Size and Configuration ​

  • Android needs to Build Two APKs, include Google APK and Offical APK.
  • Google APK should under 100M, need to configure gd_platform under gd_config string file as following:
xml
 <string name="gd_platform">Google</string>
  • Offical APK is usually full-size, need to configure gd_platform under gd_config string file as following:
xml
 <string name="gd_platform">GD</string>

More Configuration Details, please see the step3:Configure Game Related Information

SDK Composition ​

  • The SDK includes following files after unpacking:

sdk构成图

  • Each file description:
File nameDescription
android-support-v7-appcompatv7 library
FB-4.14facebook SDK
GDSDK_demoSample Aplication
GDSDKProject_libSDK
gdsdk.keystorekeystore file. Please use this keystore file to sign apk when the game is packaged
Readme.txtThe configuration file contains some parameters related to the game. Please use the game package name provided in the file.

Access process overview ​

  • 1、According to the document section, configure sdk related information step by step.2、Call the SDK method. (required)3、After capturing the callback with a successful initialization, you can call the method.(required)4、After logging in successfully, enter the game start page and call method on this page.(optional)5、Call the method when the player first creates a role (required); call the method when the player chooses a role to log in (required).6、On the game start page, call method when the player clicks the "Enter Game" button. Note that the game can be entered only after receiving a successful callback from the check server (required).7、After entering the game, call the method (required) and the method (required).8、Register the sessionId expiration listener and do the corresponding processing in BroadcastReceiver. For details, please see the document . (required)9、In the game, you can call , and other optional method.

Access flowchart ​

接入流程图

Payment business flowchart ​

储值业务流程图

Next steps ​

  • After knowing the access process of sdk, you can follow the Getting Started and gradually complete the sdk access.