iOS

Create the hive_config.xml file at your desired location and link it directly to your Xcode project. Then, enter the information such as AppID, company name, and game language registered in the Hive console into this file and save it.

Below is an example of the hive_config.xml file when Com2uS develops an app supporting Google login and Apple AppStore market payments using the Hive SDK. 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 server of Hive platform. sandbox for development, real for production
        (sandbox, real) -->
    <zone>real</zone>

    <!-- Enable or disable internal operation logs of the SDK
        (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>AP</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 product 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

You can save the values in the Hive SDK configuration file before building the app, or change the configuration values during runtime (app execution). For more details, check the Hive SDK Configuration.