Android
ด้านล่างนี้คือตัวอย่างของไฟล์ hive_config.xml เมื่อ Com2us พัฒนาแอปที่รองรับการเข้าสู่ระบบ Google และการชำระเงินในตลาด Google Play Store ด้วย SDK Hive กรุณาอ้างอิงตัวอย่างนี้เพื่อกรอกข้อมูลที่เกี่ยวข้องในไฟล์ สำหรับรายละเอียดเพิ่มเติม กรุณาอ้างอิงที่ คู่มือการกำหนดค่าพื้นฐาน.
<properties>
<!-- Hive SDK Common Settings: START -->
<!-- Set unique game build identifier -->
<appId>com.sample.your</appId>
<!-- Select Hive platform server. sandbox for development, real for production
(sandbox, real) -->
<zone>real</zone>
<!-- Set whether to use SDK internal operation logs
(true, false) -->
<useLog>false</useLog>
<!-- Set whether to apply ageGateU13
(true, false) -->
<ageGateU13>false</ageGateU13>
<!-- Hive Orientation setting -->
<hiveOrientation>landscape</hiveOrientation>
<!-- Channel setting (login and in-app support service platform)
(C2S: Hive platform) -->
<channel>C2S</channel>
<!-- Payment market setting
(GO: Google Play, LE: Com2us Lebi, AP: Apple App Store) -->
<market>GO</market>
<!-- Set criteria for receiving agreement to terms
(device, account) -->
<agreementDetermineBase>false</agreementDetermineBase>
<!-- Set HTTP Connect Timeout used internally by Hive SDK in seconds
(Do not change unless in special cases) -->
<httpConnectTimeout>8</httpConnectTimeout>
<!-- Set HTTP Read Timeout used internally by Hive SDK in seconds
(Do not change unless in special cases) -->
<httpReadTimeout>8</httpReadTimeout>
<!-- Hive SDK Common Settings: END -->
<!-- Hive SDK Feature Settings: START -->
<!-- Authentication feature setting: 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 Settings: END -->
</properties>
Info
การกำหนดค่า SDK ของ Hive สามารถเก็บค่าในไฟล์การกำหนดค่าก่อนการสร้างแอปหรือเปลี่ยนค่าการกำหนดค่าในระหว่างการทำงาน (การทำงานของแอป) สำหรับรายละเอียดเพิ่มเติม โปรดดูที่ Hive SDK configuration.