Android
- SDK 1.26 及之后版本
- SDK 1.26 之前的版本
UE4.21 ~ UE4.27 & UE5 ~ UE5.5
androidx
minSdkVersion: 21
targetSdkVersion: 34
compileSdkVersion: 34
如果接入 LINE,minSdkVersion 需要升级到 24。
如果接入 Discord、DMM,minSdkVersion 需要升级到 23。
项目提审前需注意:从 SDK V1.24.00 开始,Google 新增了 foreground service permissions 权限声明。如果该声明未通过 Google 审核,重新提交审核可能需要一周左右的时间。更多信息,请参见前台服务必须定义类型。
UE4.21 ~ UE4.27 & UE5 ~ UE5.4
androidx
minSdkVersion: 16
targetSdkVersion: 34
compileSdkVersion: 34
如果接入 LINE,minSdkVersion 需要升级到 19。
如果接入 Firebase,minSdkVersion 需要升级到 19,Android Gradle 需要升级到 V6.7.1 或以上,Android Gradle Plugin 需要升级到 V4.2.0 或以上。
如果接入 VK,minSdkVersion 需要升级到 21。
如果接入 Discord、DMM,minSdkVersion 需要升级到 23。
如果接入 Adjust,minSdkVersion 需要升级到 18。
前提条件
游戏使用的每个 SDK 插件的版本(包括游戏启动器使用的版本)必须保持一致。如果游戏需要同时访问多个版本的 Player Network SDK,或者只有一个组件需要升级,请联系 Player Network 助手。
步骤1:安装 SDK
1. 将 Player Network SDK 添加到您的项目
-
解压 SDK 软件包。
-
将
INTLSDK
文件夹复制到项目的Plugins
文件夹中。
如果项目中没有Plugins
文件夹,请创建一个。 -
打开项目的
{项目名称}.Build.cs
文件,并按照示例将 Player Network SDK 添加到 Unreal Engine 中。public INTLSample(ReadOnlyTargetRules Target) : base(Target)
{
PrivateDependencyModuleNames.AddRange(new string[] {
"INTLCore",
"INTLFoundation",
"INTLConfig",
});
}
Player Network SDK package
├─INTLSDK
│ ├─INTLSDK.uplugin // Player Network SDK plugins description files
│ ├─Resources // Player Network SDK resources
│ └─Source // Player Network SDK plugin modules. Each module contains its own Build.cs file, libraries, and interfaces.
│ ├─INTLApple
│ ├─INTLConfig // Player Network SDK configurations
│ ├─INTLCore // Player Network SDK Core module
│ ├─INTLDiscord
│ ├─INTLEpic
│ ├─INTLFacebook
│ ├─INTLFoundation
│ ├─INTLGoogle
│ ├─INTLKakao
│ ├─INTLLine
│ ├─INTLSteam
│ ├─INTLTwitter
│ └─INTLVK
├─LevelInfinite // LI PASS APIs
└─Symbols // Player Network SDK symbol table *.so files
INTLSDK/Source/INTLCore
└─INTLSDK
├─INTLSDK.uplugin
├─Resources
└─Source
├─INTLConfig
├─INTLCore
| ├─INTLCore.Build.cs // INTLCore Build.cs file
| ├─Libs // INTLCore libraries for different platforms which contain dll, lib, and other binary files.
| | ├─Android
| | ├─include
| | ├─iOS
| | ├─MacOS
| | └─Win
| ├─Private // Player Network SDK private folder
| └─Public // Player Network SDK public interfaces
| // INTLSDKAPI.h: Player Network SDK APIs
| // INTLSDKPluginObserver.h: Player Network SDK observer classes
| // INTLSDKPluginDefine.h: Player Network SDK data types
| // INTLSDKOutputUtility.h: Player Network SDK utility to process callbacks
| // INTLSDKBaseUserWidget.h: Player Network SDK base class for UserWidget which includes registration and deregistration APIs
├─INTLCustomer
├─INTLDiscord
├─INTLEpic
INTLSDK/Source/INTLConfig
└─INTLSDK
├─INTLSDK.uplugin
├─Resources
└─Source
├─INTLConfig
| ├─Configs // Player Network SDK configurations for different platform
| | ├─Android
| | | └─INTLConfig_APL.xml // Player Network SDK Android gradle configuration file
| | ├─iOS
| | | └─INTLConfig_UPL.xml
| | ├─Resources
| | | ├─APASConfig.ini // APAS device level configuration file
| | | └─INTLConfig.ini // Player Network SDK main configuration file
| ├─Encrypt
| ├─INTLConfig.Build.cs
| ├─INTLConfig.uplugin
| ├─Private
| ├─Public
| └─Resources
├─INTLCore