Android
Create a new
Below is an example of the hive_config.xml file for developing an app that supports Google login and Google Play Store market payment using the Hive SDK by Com2uS. Refer to this example to input the corresponding information into the file. For more details, refer to the Basic Configuration Guide.
<properties>
<!-- Hive SDK common settings: START -->
<appId>com.sample.your</appId>
<gameLanguage>en</gameLanguage>
<!-- Select the server for the Hive platform. sandbox for development, real for production
(sandbox, real) -->
<zone>real</zone>
<!-- Enable or disable logs for internal SDK operations
(true, false) -->
<useLog>false</useLog>
<!-- Company settings
(C2S: Com2uS, GVI: Com2uS Holdings) -->
<company>C2S</company>
<!-- Channel settings
(C2S: Hive platform) -->
<channel>C2S</channel>
<!-- Payment market settings
(GO: Google Play, LE: Com2us Lebi, AP: Apple App Store) -->
<market>GO</market>
<!-- Set the HTTP Connect Timeout used internally by the Hive SDK in seconds
(Do not change unless necessary) -->
<httpConnectTimeout>8</httpConnectTimeout>
<!-- Set the HTTP Read Timeout used internally by the Hive SDK in seconds
(Do not change unless necessary) -->
<httpReadTimeout>8</httpReadTimeout>
<agreementDetermineBase>device</agreementDetermineBase>
<!-- Hive SDK common settings: END -->
<!-- Hive SDK feature-specific settings: START -->
<!-- Authentication feature settings: Use Google authentication -->
<providers>
<google playAppId="123456789012" clientId="123456789012-abc.apps.googleusercontent.com" serverClientId="123456789012-abc.apps.googleusercontent.com" reversedClientId="com.googleusercontent.apps.123456789012-abc" deviceFlowClientId="331526026701-gn1abq1ev23nqj7rdvvlaamf7ii4f3u9.apps.googleusercontent.com" />
</providers>
<!-- Hive SDK feature-specific settings: END -->
</properties>
Info
The Hive SDK settings can be stored in the configuration file before building the app or can be changed during runtime (while the app is running). For more details, check the Hive SDK Settings.