Configure Game Related Information
- Game-related information is configured in the
gd_config.xmlfile. - The
gamecode,fbid, and other information are provided in thereadme.xmlfile in the SDK package. - In general, the SDK provided to you is already configured with all information. Before packaging the game, the configuration items you need to pay attention to are: game platform, whether to display Google Play payment channels, whether to use the SDK server selection page, and the game name. Do not change other configuration items unless we specifically request it.
Configure the Game Platform
- Configure according to the platform where the game runs. The configuration is as follows:
<string name="gd_platform">Google</string>- Possible values of
gd_platformare as follows:
| Value | Description |
|---|---|
| Official package, published on Google Play | |
| GD | Official website package, available for players to download from the official website |
| NStore | Korea |
| TStore | Korea |
| PubGame | Longzhong, GameBar joint operation |
Configure the Game gamecode
- The game
gamecodeis provided by us. The configuration is as follows:
<string name="gd_gamecode">gamecode</string>Configure Game Screen Orientation
- The configuration related to game screen orientation is as follows:
<string name="gd_orientation">-1</string>
<string name="gdorientationlogin">-1</string>
<string name="gdorientationpay">-1</string>gd_orientation_login is the screen orientation of the SDK login page, gd_orientation_pay is the screen orientation of the SDK payment page, and gd_orientation is the screen orientation of other SDK pages.
Configuration values and descriptions:
| Value | Description |
|---|---|
| -1 | Not specified. This is the default value, and Android chooses the appropriate orientation. |
| 0 | Landscape |
| 6 | Landscape, based on the device sensor. It can be displayed in the normal or reverse direction. |
| 1 | Portrait |
| 7 | Portrait, based on the device sensor. It can be displayed in the normal or reverse direction. |
- If not set, the SDK uses the default value
-1to display related pages. - Screen orientation settings are usually already configured in the provided SDK code.
Set fbid
The fbid is configured as follows:
<string name="facebookappid">1086772154744279</string>Set Line ID
The lineid is configured as follows:
<string name="gdlineid">1616475986</string>Set Whether to Display the Google Play Payment Channel
Sometimes GD packages require the Google Play payment channel to be hidden. Configure this item according to PM requirements. The Google Play display configuration is as follows:
<string name="gppayenable">1</string>When the value is 1, it is displayed. When the value is 0, it is hidden. The default value is 1.
Set Whether to Use the SDK Server Selection Page
The configuration is as follows:
<string name="gdisuseserverlist">1</string>If the game uses the SDK built-in server selection page, set this to 1. If the game uses its own server selection page, set this to 0. The default value is 1.
Set the Game Name
The configuration is as follows:
<string name="game_name">game name</string>The provided SDK code is usually already configured with the game name. If the game name changes later, please update this field.
Disable SDK Hot Update Function (Applicable Version v1.6.0+)
The configuration is as follows:
<!-- Disable plugin update requests -->
<string name="gd_ban_plug_update_request" translatable="false">1</string>1 = disabled
0 = not disabled
Dynamic Splash Page Function (Applicable Version v1.7.0+)
The configuration is as follows:
<!-- Whether to display the dynamic splash page logo, 0: do not display (default), 1: display -->
<string name="gd_is_play_media">0</string>Next Step
- After configuring the related environment and configuration information according to
Getting Started, you can start calling API to integrate SDK features.