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 配置。