Integration guide

更新时间:
复制 MD 格式

This document describes how to integrate the Alibaba Cloud Game Platform software development kit (SDK) with the Alibaba Cloud Game Platform as a Service (PaaS) platform. It covers permission requests, minimum supported versions, supported architectures, and dependency configurations.

Integration guide

1. Application permissions

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
2. Minimum supported Android version

Android 5.0 (API level 21)

3. Supported Android CPU architectures

  • armeabi
  • armeabi-v7a
  • arm64-v8a

4. Dependency configuration

4.1 SDK dependency

4.1.1 Download the latest SDK to the libs folder of your application.

4.1.2 Add the SDK dependency in the build.gradle file.

implementation fileTree(dir: 'libs', include the following: ['*.jar'])
implementation files('libs/acggamepaas-sdk.aar')

4.2 fastjson dependency

If your application already includes a dependency on fastjson, you can skip this section. Otherwise, add the dependency for fastjson. The process is the same as the one described in section 4.1.