Skip to content

Commit

Permalink
feat:update upm
Browse files Browse the repository at this point in the history
  • Loading branch information
ci-gitlab committed Mar 28, 2022
0 parents commit 1564e2a
Show file tree
Hide file tree
Showing 68 changed files with 1,041 additions and 0 deletions.
160 changes: 160 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
# ChangeLog

## 3.7.0

### Dependencies

- TapTap.Common v3.7.0


## 3.6.3

### Optimization and fixed bugs
- Android 修复某些机型上会触发 getDialog 相关的 NPE 问题
- iOS 提供可供切换到 Controller 模式展示UI的 api

### Dependencies

- TapTap.Common v3.6.3

## 3.6.1

### New Feature

- 新增多语言上报

### Dependencies

- TapTap.Common v3.6.1

## 3.6.0

### Dependencies

- TapTap.Common v3.6.0

## 3.5.0

### Dependencies

- TapTap.Common v3.5.0

## 3.4.0

### Dependencies

- TapTap.Common v3.4.0

## 3.3.0

### Optimization and fixed bugs

- iOS 统一关闭逻辑,避免出现内存泄漏和音视频频不关闭的 bug
- iOS 在调用 TapDB 相关接口前确认可用性,避免因版本不一致导致无响应崩溃

### Dependencies

- TapTap.Common v3.3.0

## 3.2.0

### Optimization and fixed bugs
- 修复动态内登录后没有回调的问题
- iOS 优化动态多次打开后的内存占用

### Dependencies

- TapTap.Common v3.2.0

## 3.1.0

### Optimization and fixed bugs
- 修复在 Android 11 的设备上没有特定权限时打开动态会崩溃的问题

### Dependencies

- TapTap.Common v3.1.0

## 3.0.0

### Dependencies

- TapTap.Common v3.0.0

## 2.1.7

### Dependencies

- TapTap.Common v2.1.7

## 2.1.6

### Optimization and fixed bugs

- 修复调用 [TapMoment close] 不生效的 bug

### Dependencies

- TapTap.Common v2.1.6

## 2.1.5

### New Feature

- 新增场景化回调接口

```
//场景化回调是在动态回调的统一接口中返回,Code = 70000,内容为 JSON 格式的字符串
{
sceneId: "taprl0071417002",
eventType: "READY",
eventPayload: "{}",
timestamp: 1622791814130, // ms
}
```

## 2.1.4

### Dependencies

- TapTap.Common v2.1.4

## 2.1.3

### BugFixs

- Android 在部分刘海屏设备上判断失败导致UI可能被遮挡的问题

### Dependencies

- TapTap.Common v2.1.3

## 2.1.2

### Dependencies

- TapTap.Common v2.1.2

## 2.1.1

### Feature

* 新增 DirectlyOpen 接口
* 场景化入口
```c#
var sceneDic = new Dictionary<string,object>(){{TapMomentConstants.TapMomentPageShortCutKey,sceneId}};

TapMoment.DirectlyOpen(orientation,TapMomentConstants.TapMomentPageShortCut,sceneDic);
```

### Dependencies

* TapTap.Bootstrap v2.1.1
* TapTap.Common v2.1.1

## 2.0.0

### Dependencies

* TapTap.Bootstrap v2.0.0
* 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.

53 changes: 53 additions & 0 deletions Documentation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
## TapTap.Moment

## 使用前提

使用 TapTap.Moment 前提是必须依赖以下库:
* [TapTap.Bootstrap](https://github.com/TapTap/TapBootstrap-Unity.git)
* [TapTap.Common](https://github.com/TapTap/TapCommon-Unity.git)

## 命名空间

```c#
using TapTap.Moment;
```

## 接口描述

### 设置回调

```c#
TapMoment.SetCallback(Action<int,string> action);
```

### 打开动态

```c#
TapMoment.Open(Orientation orientation);
```

### 发布动态

```c#
TapMoment.Publish(Orientation orientation, string[] imagePaths, string content);
```

### 关闭动态

```c#
TapMoment.Close();
```

### 获取更新消息
```c#
TapMoment.FetchNotification();
```

### 打开特定页面

#### 场景化入口
```c#
var sceneDic = new Dictionary<string,object>(){{TapMomentConstants.TapMomentPageShortCutKey,sceneId}};

TapMoment.DirectlyOpen(orientation,TapMomentConstants.TapMomentPageShortCut,sceneDic);
```
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.

49 changes: 49 additions & 0 deletions Editor/TapMomentIOSProcessor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
using TapTap.Common.Editor;
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEngine;

namespace TapTap.Moment.Editor
{
#if UNITY_IOS
public static class TapMomentIOSProcessor
{
[PostProcessBuild(101)]
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, "AVFoundation.framework", false);
proj.AddFrameworkToProject(unityFrameworkTarget, "CoreTelephony.framework", false);
proj.AddFrameworkToProject(unityFrameworkTarget, "MobileCoreServices.framework", false);
proj.AddFrameworkToProject(unityFrameworkTarget, "Photos.framework", false);
proj.AddFrameworkToProject(unityFrameworkTarget, "SystemConfiguration.framework", false);
proj.AddFrameworkToProject(unityFrameworkTarget, "WebKit.framework", false);

if (TapCommonCompile.HandlerIOSSetting(path,
Application.dataPath,
"TapMomentResource",
"com.taptap.tds.moment",
"Moment",
new[] {"TapMomentResource.bundle"},
target, projPath, proj))
{
Debug.Log("TapMoment add Bundle Success!");
return;
}

Debug.LogError("TapMoment add Bundle Failed!");
}
}
#endif
}
3 changes: 3 additions & 0 deletions Editor/TapMomentIOSProcessor.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.Moment.Editor.asmdef
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "TapTap.Moment.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.Moment.Editor.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/TapMoment_3.7.0.aar
Binary file not shown.
32 changes: 32 additions & 0 deletions Plugins/Android/libs/TapMoment_3.7.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.Moment.dll
Binary file not shown.
Loading

0 comments on commit 1564e2a

Please sign in to comment.