Skip to content

Commit c080028

Browse files
author
xiaoyi
committed
feat:update upm
0 parents  commit c080028

File tree

68 files changed

+1008
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1008
-0
lines changed

CHANGELOG.md

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
# ChangeLog
2+
3+
## 3.5.0
4+
5+
### Dependencies
6+
7+
- TapTap.Common v3.5.0
8+
9+
## 3.4.0
10+
11+
### Dependencies
12+
13+
- TapTap.Common v3.4.0
14+
15+
## 3.3.0
16+
17+
### Optimization and fixed bugs
18+
19+
- iOS 统一关闭逻辑,避免出现内存泄漏和音视频频不关闭的 bug
20+
- iOS 在调用 TapDB 相关接口前确认可用性,避免因版本不一致导致无响应崩溃
21+
22+
### Dependencies
23+
24+
- TapTap.Common v3.3.0
25+
26+
## 3.2.0
27+
28+
### Optimization and fixed bugs
29+
- 修复动态内登录后没有回调的问题
30+
- iOS 优化动态多次打开后的内存占用
31+
32+
### Dependencies
33+
34+
- TapTap.Common v3.2.0
35+
36+
## 3.1.0
37+
38+
### Optimization and fixed bugs
39+
- 修复在 Android 11 的设备上没有特定权限时打开动态会崩溃的问题
40+
41+
### Dependencies
42+
43+
- TapTap.Common v3.1.0
44+
45+
## 3.0.0
46+
47+
### Dependencies
48+
49+
- TapTap.Common v3.0.0
50+
51+
## 2.1.7
52+
53+
### Dependencies
54+
55+
- TapTap.Common v2.1.7
56+
57+
## 2.1.6
58+
59+
### Optimization and fixed bugs
60+
61+
- 修复调用 [TapMoment close] 不生效的 bug
62+
63+
### Dependencies
64+
65+
- TapTap.Common v2.1.6
66+
67+
## 2.1.5
68+
69+
### New Feature
70+
71+
- 新增场景化回调接口
72+
73+
```
74+
//场景化回调是在动态回调的统一接口中返回,Code = 70000,内容为 JSON 格式的字符串
75+
{
76+
sceneId: "taprl0071417002",
77+
eventType: "READY",
78+
eventPayload: "{}",
79+
timestamp: 1622791814130, // ms
80+
}
81+
```
82+
83+
## 2.1.4
84+
85+
### Dependencies
86+
87+
- TapTap.Common v2.1.4
88+
89+
## 2.1.3
90+
91+
### BugFixs
92+
93+
- Android 在部分刘海屏设备上判断失败导致UI可能被遮挡的问题
94+
95+
### Dependencies
96+
97+
- TapTap.Common v2.1.3
98+
99+
## 2.1.2
100+
101+
### Dependencies
102+
103+
- TapTap.Common v2.1.2
104+
105+
## 2.1.1
106+
107+
### Feature
108+
109+
* 新增 DirectlyOpen 接口
110+
* 场景化入口
111+
```c#
112+
var sceneDic = new Dictionary<string,object>(){{TapMomentConstants.TapMomentPageShortCutKey,sceneId}};
113+
114+
TapMoment.DirectlyOpen(orientation,TapMomentConstants.TapMomentPageShortCut,sceneDic);
115+
```
116+
117+
### Dependencies
118+
119+
* TapTap.Bootstrap v2.1.1
120+
* TapTap.Common v2.1.1
121+
122+
## 2.0.0
123+
124+
### Dependencies
125+
126+
* TapTap.Bootstrap v2.0.0
127+
* TapTap.Common v2.0.0

CHANGELOG.md.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Documentation.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Documentation/README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
## TapTap.Moment
2+
3+
## 使用前提
4+
5+
使用 TapTap.Moment 前提是必须依赖以下库:
6+
* [TapTap.Bootstrap](https://github.com/TapTap/TapBootstrap-Unity.git)
7+
* [TapTap.Common](https://github.com/TapTap/TapCommon-Unity.git)
8+
9+
## 命名空间
10+
11+
```c#
12+
using TapTap.Moment;
13+
```
14+
15+
## 接口描述
16+
17+
### 设置回调
18+
19+
```c#
20+
TapMoment.SetCallback(Action<int,string> action);
21+
```
22+
23+
### 打开动态
24+
25+
```c#
26+
TapMoment.Open(Orientation orientation);
27+
```
28+
29+
### 发布动态
30+
31+
```c#
32+
TapMoment.Publish(Orientation orientation, string[] imagePaths, string content);
33+
```
34+
35+
### 关闭动态
36+
37+
```c#
38+
TapMoment.Close();
39+
```
40+
41+
### 获取更新消息
42+
```c#
43+
TapMoment.FetchNotification();
44+
```
45+
46+
### 打开特定页面
47+
48+
#### 场景化入口
49+
```c#
50+
var sceneDic = new Dictionary<string,object>(){{TapMomentConstants.TapMomentPageShortCutKey,sceneId}};
51+
52+
TapMoment.DirectlyOpen(orientation,TapMomentConstants.TapMomentPageShortCut,sceneDic);
53+
```

Documentation/README.md.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/TapMomentIOSProcessor.cs

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
using TapTap.Common.Editor;
2+
using UnityEditor;
3+
using UnityEditor.Callbacks;
4+
using UnityEngine;
5+
6+
namespace TapTap.Moment.Editor
7+
{
8+
#if UNITY_IOS
9+
public static class TapMomentIOSProcessor
10+
{
11+
[PostProcessBuild(101)]
12+
public static void OnPostprocessBuild(BuildTarget buildTarget, string path)
13+
{
14+
if (buildTarget != BuildTarget.iOS) return;
15+
16+
var projPath = TapCommonCompile.GetProjPath(path);
17+
var proj = TapCommonCompile.ParseProjPath(projPath);
18+
var target = TapCommonCompile.GetUnityTarget(proj);
19+
var unityFrameworkTarget = TapCommonCompile.GetUnityFrameworkTarget(proj);
20+
if (TapCommonCompile.CheckTarget(target))
21+
{
22+
Debug.LogError("Unity-iPhone is NUll");
23+
return;
24+
}
25+
26+
proj.AddFrameworkToProject(unityFrameworkTarget, "AVFoundation.framework", false);
27+
proj.AddFrameworkToProject(unityFrameworkTarget, "CoreTelephony.framework", false);
28+
proj.AddFrameworkToProject(unityFrameworkTarget, "MobileCoreServices.framework", false);
29+
proj.AddFrameworkToProject(unityFrameworkTarget, "Photos.framework", false);
30+
proj.AddFrameworkToProject(unityFrameworkTarget, "SystemConfiguration.framework", false);
31+
proj.AddFrameworkToProject(unityFrameworkTarget, "WebKit.framework", false);
32+
33+
if (TapCommonCompile.HandlerIOSSetting(path,
34+
Application.dataPath,
35+
"TapMomentResource",
36+
"com.taptap.tds.moment",
37+
"Moment",
38+
new[] {"TapMomentResource.bundle"},
39+
target, projPath, proj))
40+
{
41+
Debug.Log("TapMoment add Bundle Success!");
42+
return;
43+
}
44+
45+
Debug.LogError("TapMoment add Bundle Failed!");
46+
}
47+
}
48+
#endif
49+
}

Editor/TapMomentIOSProcessor.cs.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/TapTap.Moment.Editor.asmdef

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "TapTap.Moment.Editor",
3+
"references": [
4+
"TapTap.Common.Editor"
5+
],
6+
"optionalUnityReferences": [],
7+
"includePlatforms": [
8+
"Editor"
9+
],
10+
"excludePlatforms": [],
11+
"allowUnsafeCode": false,
12+
"overrideReferences": false,
13+
"precompiledReferences": [],
14+
"autoReferenced": true,
15+
"defineConstraints": []
16+
}

Editor/TapTap.Moment.Editor.asmdef.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Plugins.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Plugins/Android.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Plugins/Android/libs.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
2.48 MB
Binary file not shown.

Plugins/Android/libs/TapMoment_3.5.0.aar.meta

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Plugins/TapTap.Moment.dll

12 KB
Binary file not shown.

Plugins/TapTap.Moment.dll.meta

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Plugins/TapTap.Moment.pdb

9.91 KB
Binary file not shown.

Plugins/TapTap.Moment.pdb.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)