Skip to content

Commit

Permalink
feat:update upm
Browse files Browse the repository at this point in the history
  • Loading branch information
EingShaw committed Nov 30, 2021
0 parents commit 66deddf
Show file tree
Hide file tree
Showing 41 changed files with 993 additions and 0 deletions.
111 changes: 111 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# ChangeLog

## 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
7 changes: 7 additions & 0 deletions CHANGELOG.md.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Documentation.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

116 changes: 116 additions & 0 deletions Documentation/README.md
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();
```
7 changes: 7 additions & 0 deletions Documentation/README.md.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions Editor/TapDBIOSProcessor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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, "AdSupport.framework", false);
proj.AddFrameworkToProject(unityFrameworkTarget, "CoreMotion.framework", false);
proj.AddFrameworkToProject(unityFrameworkTarget, "Security.framework", false);
proj.AddFrameworkToProject(unityFrameworkTarget, "SystemConfiguration.framework", false);
proj.AddFrameworkToProject(unityFrameworkTarget, "AppTrackingTransparency.framework", true);
proj.AddFrameworkToProject(unityFrameworkTarget, "iAd.framework", false);
proj.AddFrameworkToProject(unityFrameworkTarget, "AdServices.framework", true);
File.WriteAllText(projPath, proj.WriteToString());
}
}
#endif
}
3 changes: 3 additions & 0 deletions Editor/TapDBIOSProcessor.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions Editor/TapTap.TapDB.asmdef
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": []
}
7 changes: 7 additions & 0 deletions Editor/TapTap.TapDB.asmdef.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Plugins.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Plugins/Android.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Plugins/Android/libs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Plugins/Android/libs/TapDB_3.5.0.aar
Binary file not shown.
32 changes: 32 additions & 0 deletions Plugins/Android/libs/TapDB_3.5.0.aar.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Plugins/TapTap.TapDB.dll
Binary file not shown.
Loading

0 comments on commit 66deddf

Please sign in to comment.