2 Star 3 Fork 4

华为移动服务 / hms-game-demo

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

Game Service Kit

English | 中文

Table of Contents

Introduction

GameServiceKit Android sample code encapsulates APIs of the HUAWEI GameSevice Kit. It provides many sample programs for your reference or usage. The following describes packages of Android sample code.

achievement: Sample code of achievement feature. archive: Sample code of archive feature. event: Sample code of event feature. gamematadata: Sample code of game matadata feature. playerstats: Sample code of playerstats feature. ranking: Sample code of ranking feature. common: Common components and utils

Getting Started

  1. Check whether the Android studio development environment is ready. Open the sample code project directory with file "build.gradle" in Android Studio. Run TestApp on your divice or simulator which have installed latest Huawei Mobile Service(HMS).
  2. Register a HUAWEI account.
  3. Create an app and configure the app information in AppGallery Connect. See details: HUAWEI Game Service Development Preparation
  4. To build this demo, please first import the demo in the Android Studio (3.x+).
  5. Configure the sample code: (1) Download the file "agconnect-services.json" of the app on AGC, and add the file to the app root directory(\app) of the demo. (2) Change the value of applicationid in the app-level build.gradle file of the sample project to the package name of your app.
  6. Run the sample on your Android device or emulator.

Supported Environments

Android SDK Version >= 23 and JDK version >= 1.8 is recommended.

Result

Question or issues

If you want to evaluate more about HMS Core, r/HMSCore on Reddit is for you to keep up with latest news about HMS Core, and to exchange insights with other developers.

If you have questions about how to use HMS samples, try the following options:

  • Stack Overflow is the best place for any programming questions. Be sure to tag your question with huawei-mobile-services.
  • Huawei Developer Forum HMS Core Module is great for general questions, or seeking recommendations and opinions.

If you run into a bug in our samples, please submit an issue to the Repository. Even better you can submit a Pull Request with a fix.

License

GameSeviceKit sample is licensed under the: Apache License, version 2.0.

Comments ( 0 )

Sign in for post a comment

About

华为游戏服务示例代码,覆盖了APIs和游戏服务工具包。您可以更快地实现成就和事件等功能,快速低成本地构建游戏基本能力。 expand collapse
Java
Apache-2.0
Cancel

Releases

No release

hms-game-demo

Contributors

All

Activities

load more
can not load any more
Java
1
https://gitee.com/hms-core/hms-game-demo.git
git@gitee.com:hms-core/hms-game-demo.git
hms-core
hms-game-demo
hms-game-demo
master

Search