-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
# ChangeLog | ||
|
||
## 3.7.0 | ||
|
||
## Dependencies | ||
|
||
- TapTap.Common v3.7.0 | ||
|
||
|
||
## 3.6.3 | ||
|
||
## New Feature | ||
- 区域为海外时切换到海外上报域名 | ||
|
||
## Dependencies | ||
|
||
- TapTap.Common v3.6.3 | ||
|
||
## 3.6.1 | ||
|
||
## Dependencies | ||
|
||
- TapTap.Common v3.6.1 | ||
|
||
## 3.6.0 | ||
|
||
## Dependencies | ||
|
||
- TapTap.Common v3.6.0 | ||
|
||
## 3.5.0 | ||
|
||
## New Feature | ||
|
||
- 新增 SOC 参数上报 | ||
|
||
## Dependencies | ||
- TapTap.Common v3.5.0 | ||
|
||
## 3.4.0 | ||
|
||
## New Feature | ||
|
||
- 修改部分上报参数及修复时长统计问题 | ||
|
||
### Dependencies | ||
|
||
- TapTap.Common v3.4.0 | ||
|
||
## 3.3.0 | ||
|
||
### Dependencies | ||
|
||
- TapTap.Common v3.3.0 | ||
|
||
## 3.2.0 | ||
|
||
### New Feature | ||
|
||
- Android TapDB 支持沙盒上报 | ||
- iOS 支持ASA | ||
- iOS 删除多余的上报参数(appId) | ||
|
||
### Dependencies | ||
|
||
- TapTap.Common v3.2.0 | ||
|
||
## 3.1.0 | ||
|
||
### Dependencies | ||
|
||
- TapTap.Common v3.1.0 | ||
|
||
## 3.0.0 | ||
|
||
### Dependencies | ||
|
||
- TapTap.Common v3.0.0 | ||
|
||
## 2.1.7 | ||
|
||
### New Feature | ||
|
||
- 充值接口新增支持传入自定义字段的函数 | ||
|
||
### Dependencies | ||
|
||
- TapTap.Common v2.1.7 | ||
|
||
## 2.1.6 | ||
|
||
### Dependencies | ||
|
||
- TapTap.Common v2.1.6 | ||
|
||
## 2.1.5 | ||
|
||
### New Feature | ||
|
||
- Android 新增游戏 TapTap 共享ID 开关 | ||
|
||
### Dependencies | ||
|
||
- TapTap.Common v2.1.5 | ||
|
||
## 2.1.4 | ||
|
||
### Dependencies | ||
|
||
- TapTap.Common v2.1.4 | ||
|
||
## 2.1.3 | ||
|
||
### Dependencies | ||
|
||
- TapTap.Common v2.1.3 | ||
|
||
## 2.1.2 | ||
|
||
### Dependencies | ||
|
||
- TapTap.Common v2.1.2 | ||
|
||
## 2.1.1 | ||
|
||
### Feature | ||
|
||
- 新增 RegisterDynamicProperties 接口 | ||
- 新增 AdvertiserIDCollectionEnabled IDFA 获取开关 | ||
|
||
### Dependencies | ||
|
||
- TapTap.Common v2.1.1 | ||
|
||
## 2.0.0 | ||
|
||
### Dependencies | ||
|
||
* TapTap.Common v2.0.0 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
## TapTap.TapDB | ||
|
||
## 使用前提 | ||
|
||
使用 TapTap.TapDB 前提是必须依赖以下库: | ||
* [TapTap.Common](https://github.com/TapTap/TapCommon-Unity.git) | ||
|
||
## 命名空间 | ||
|
||
```c# | ||
using TapTap.TapDB; | ||
``` | ||
|
||
## 接口描述 | ||
|
||
### 初始化 | ||
```c# | ||
TapDB.Init(string clientId, string channel, string gameVersion, bool isCN); | ||
``` | ||
|
||
### 设置用户 | ||
|
||
```c# | ||
TapDB.SetUser(string userId); | ||
|
||
TapDB.SetUser(string userId,string openId,string loginType); | ||
``` | ||
|
||
### 设置姓名 | ||
|
||
```c# | ||
TapDB.SetName(string name); | ||
``` | ||
|
||
### 设置玩家等级 | ||
|
||
```c# | ||
TapDB.SetLevel(int level); | ||
``` | ||
|
||
### 设置服务器 | ||
|
||
```c# | ||
TapDB.SetServer(string server); | ||
``` | ||
|
||
### 充值成功 | ||
|
||
```c# | ||
TapDB.OnCharge(string orderId, string productId, long amount, string currencyType, string payment); | ||
``` | ||
|
||
### 自定义事件 | ||
|
||
```c# | ||
TapDB.TrackEvent(string eventName,string jsonProperties); | ||
``` | ||
|
||
### 注册静态事件 | ||
|
||
```c# | ||
TapDB.RegisterStaticProperties(string jsonProperties); | ||
``` | ||
|
||
### 取消静态事件 | ||
|
||
```c# | ||
TapDB.UnregisterStaticProperty(string propertKey); | ||
``` | ||
|
||
### 清除静态事件 | ||
|
||
```c# | ||
TapDB.ClearStaticProperties(); | ||
``` | ||
|
||
### 注册动态事件 | ||
```c# | ||
TapDB.RegisterDynamicProperties(IDynamicProperties properties); | ||
``` | ||
|
||
### 设备初始化 | ||
|
||
```c# | ||
TapDB.DeviceInitialize(string properties); | ||
``` | ||
|
||
### 设备更新 | ||
|
||
```c# | ||
TapDB.DeviceUpdate(string properties); | ||
``` | ||
|
||
### 用户初始化 | ||
|
||
```c# | ||
TapDB.UserInitialize(string properties); | ||
``` | ||
|
||
### 用户更新 | ||
|
||
```c# | ||
TapDB.UserUpdate(string properties); | ||
``` | ||
|
||
### 添加用户 | ||
|
||
```c# | ||
TapDB.UserAdd(string properties); | ||
``` | ||
|
||
### 清除用户 | ||
|
||
```c# | ||
TapDB.ClearUser(); | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using TapTap.Common.Editor; | ||
using UnityEditor; | ||
using UnityEditor.Callbacks; | ||
using UnityEngine; | ||
|
||
namespace TapTap.TapDB.Editor | ||
{ | ||
#if UNITY_IOS | ||
public class TapDBIOSProcessor | ||
{ | ||
[PostProcessBuild(104)] | ||
public static void OnPostprocessBuild(BuildTarget buildTarget, string path) | ||
{ | ||
if (buildTarget != BuildTarget.iOS) return; | ||
|
||
var projPath = TapCommonCompile.GetProjPath(path); | ||
var proj = TapCommonCompile.ParseProjPath(projPath); | ||
var target = TapCommonCompile.GetUnityTarget(proj); | ||
var unityFrameworkTarget = TapCommonCompile.GetUnityFrameworkTarget(proj); | ||
if (TapCommonCompile.CheckTarget(target)) | ||
{ | ||
Debug.LogError("Unity-iPhone is NUll"); | ||
return; | ||
} | ||
|
||
proj.AddFrameworkToProject(unityFrameworkTarget, "CoreMotion.framework", false); | ||
proj.AddFrameworkToProject(unityFrameworkTarget, "Security.framework", false); | ||
proj.AddFrameworkToProject(unityFrameworkTarget, "SystemConfiguration.framework", false); | ||
proj.AddFrameworkToProject(unityFrameworkTarget, "iAd.framework", false); | ||
proj.AddFrameworkToProject(unityFrameworkTarget, "AdServices.framework", true); | ||
|
||
var parentFolder = Directory.GetParent(Application.dataPath)?.FullName; | ||
|
||
var plistFile = TapFileHelper.RecursionFilterFile(parentFolder + "/Assets/Plugins/", "TDS-Info.plist"); | ||
|
||
if (!plistFile.Exists) | ||
{ | ||
Debug.LogError("TapSDK Can't find TDS-Info.plist in Project/Assets/Plugins/!"); | ||
} | ||
else | ||
{ | ||
var dic = (Dictionary<string, object>) Plist.readPlist(plistFile.FullName); | ||
if (dic.ContainsKey("NSUserTrackingUsageDescription")) | ||
{ | ||
proj.AddFrameworkToProject(unityFrameworkTarget, "AppTrackingTransparency.framework", true); | ||
proj.AddFrameworkToProject(unityFrameworkTarget, "AdSupport.framework", false); | ||
Debug.Log("TapDB add AdSupport and AppTracking framework"); | ||
} | ||
} | ||
|
||
File.WriteAllText(projPath, proj.WriteToString()); | ||
} | ||
} | ||
#endif | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "TapTap.TapDB.Editor", | ||
"references": [ | ||
"TapTap.Common.Editor" | ||
], | ||
"optionalUnityReferences": [], | ||
"includePlatforms": [ | ||
"Editor" | ||
], | ||
"excludePlatforms": [], | ||
"allowUnsafeCode": false, | ||
"overrideReferences": false, | ||
"precompiledReferences": [], | ||
"autoReferenced": true, | ||
"defineConstraints": [] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.