iOS
在您想要的位置创建hive_config.xml文件,并将其直接链接到您的Xcode项目。然后,将在Hive控制台中注册的AppID、公司名称和游戏语言等信息输入到此文件中并保存。
以下是 Com2uS 開發支持 Google 登錄和 Apple AppStore 市場支付的應用程序時的 hive_config.xml 文件示例,使用 Hive SDK。請參考此示例將相應的信息輸入到文件中。欲了解更多詳細信息,請參閱 基本配置指南。
<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
您可以在构建应用程序之前将值保存在 Hive SDK 配置文件中,或在运行时(应用程序执行期间)更改配置值。有关更多详细信息,请查看 Hive SDK 配置。