logo
0
0
WeChat Login

Game Frame X AppsFlyer

Game Frame X AppsFlyer 是一个基于 GameFrameX 框架的 AppsFlyer SDK Unity 包装器,为 Unity 游戏提供移动应用归因和营销分析功能。

功能特性

  • 🎯 移动应用归因: 跟踪用户获取来源和营销活动效果
  • 📊 营销分析: 提供详细的用户行为和转化数据
  • 🔧 简单集成: 基于 GameFrameX 框架的组件化设计
  • 📱 跨平台支持: 同时支持 iOS 和 Android 平台
  • 🛡️ 隐私合规: 内置用户同意管理机制

系统要求

  • Unity 2019.4 或更高版本
  • GameFrameX 框架 1.1.1 或更高版本
  • AppsFlyer Unity SDK 6.17.1

安装

通过 Unity Package Manager 安装

  1. 打开 Unity Package Manager
  2. 点击 "+" 按钮,选择 "Add package from git URL"
  3. 输入以下 URL:
    https://github.com/gameframex/com.gameframex.unity.appsflyer.git

手动安装

  1. 下载或克隆此仓库
  2. 将包文件夹复制到你的 Unity 项目的 Packages 目录中

配置

1. 添加 AppsFlyer 组件

在场景中的某个 GameObject 上添加 AppsFlyerComponent 组件。

2. 配置开发者密钥和应用ID

AppsFlyerComponent 组件中配置以下参数:

iOS 配置

  • iOS Dev Key: 从 AppsFlyer 控制台获取的 iOS 开发者密钥
  • iOS App ID: iOS 应用的 App Store ID

Android 配置

  • Android Dev Key: 从 AppsFlyer 控制台获取的 Android 开发者密钥
  • Android App ID: Android 应用的包名

3. 启用调试模式(可选)

勾选 Debug 选项以启用 AppsFlyer SDK 的调试日志输出。

使用方法

基本初始化

AppsFlyer 组件会在游戏启动时自动初始化。确保在场景中添加了 AppsFlyerComponent 并正确配置了相关参数。

编译符号

包使用 ENABLE_GAME_FRAME_X_APPSFLYER 编译符号来控制 AppsFlyer 功能的启用。确保在项目设置中定义了此符号。

项目结构

Runtime/ ├── AppsFlyerComponent.cs # AppsFlyer Unity 组件 ├── AppsFlyerManager.cs # AppsFlyer 管理器实现 ├── IAppsFlyerManager.cs # AppsFlyer 管理器接口 └── GameFrameXAppsFlyerCroppingHelper.cs # 代码裁剪辅助类 Editor/ ├── AppsFlyerComponentInspector.cs # 组件检查器 └── GameFrameX.AppsFlyer.Editor.asmdef # 编辑器程序集定义

依赖项

  • com.gameframex.unity: GameFrameX 核心框架
  • com.appsflyer.unity: AppsFlyer Unity SDK

许可证

本项目遵循 MIT 许可证和 Apache 许可证(版本 2.0)。详细信息请查看 LICENSE 文件。

支持

作者


独立游戏前后端一体化解决方案,独立游戏开发者的圆梦大使。

About

No description, topics, or website provided.
372.00 KiB
0 forks0 stars1 branches0 TagREADMEApache-2.0 license
Language
C#100%