Skip to content

Commit ce833c5

Browse files
author
ci-gitlab
committed
feat:update upm
0 parents  commit ce833c5

File tree

163 files changed

+2927
-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.

163 files changed

+2927
-0
lines changed

CHANGELOG.md

Lines changed: 213 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,213 @@
1+
# ChangeLog
2+
3+
## 3.14.0
4+
5+
### Dependencies
6+
7+
- TapTap.Common v3.14.0
8+
9+
10+
## 3.11.1
11+
12+
### Dependencies
13+
14+
- TapTap.Common v3.11.1
15+
16+
## 3.11.0
17+
18+
### Dependencies
19+
20+
- TapTap.Common v3.11.0
21+
22+
## 3.10.0
23+
24+
### Dependencies
25+
26+
- TapTap.Common v3.10.0
27+
28+
## 3.9.0
29+
30+
### Optimization and fixed bugs
31+
- 增加了动态SDK本地多语言资源适配
32+
33+
### Dependencies
34+
35+
- TapTap.Common v3.9.0
36+
37+
## 3.8.0
38+
39+
### Optimization and fixed bugs
40+
- 隐私权限授权流程优化
41+
42+
### Dependencies
43+
44+
- TapTap.Common v3.8.0
45+
46+
## 3.7.1
47+
48+
### Optimization and fixed bugs
49+
- 动态旋转问题的修复
50+
- 支持识别 Unity 中配置的 iOS 特性
51+
52+
### Dependencies
53+
54+
- TapTap.Common v3.7.1
55+
56+
## 3.7.0
57+
58+
### Dependencies
59+
60+
- TapTap.Common v3.7.0
61+
62+
63+
## 3.6.3
64+
65+
### Optimization and fixed bugs
66+
- Android 修复某些机型上会触发 getDialog 相关的 NPE 问题
67+
- iOS 提供可供切换到 Controller 模式展示UI的 api
68+
69+
### Dependencies
70+
71+
- TapTap.Common v3.6.3
72+
73+
## 3.6.1
74+
75+
### New Feature
76+
77+
- 新增多语言上报
78+
79+
### Dependencies
80+
81+
- TapTap.Common v3.6.1
82+
83+
## 3.6.0
84+
85+
### Dependencies
86+
87+
- TapTap.Common v3.6.0
88+
89+
## 3.5.0
90+
91+
### Dependencies
92+
93+
- TapTap.Common v3.5.0
94+
95+
## 3.4.0
96+
97+
### Dependencies
98+
99+
- TapTap.Common v3.4.0
100+
101+
## 3.3.0
102+
103+
### Optimization and fixed bugs
104+
105+
- iOS 统一关闭逻辑,避免出现内存泄漏和音视频频不关闭的 bug
106+
- iOS 在调用 TapDB 相关接口前确认可用性,避免因版本不一致导致无响应崩溃
107+
108+
### Dependencies
109+
110+
- TapTap.Common v3.3.0
111+
112+
## 3.2.0
113+
114+
### Optimization and fixed bugs
115+
- 修复动态内登录后没有回调的问题
116+
- iOS 优化动态多次打开后的内存占用
117+
118+
### Dependencies
119+
120+
- TapTap.Common v3.2.0
121+
122+
## 3.1.0
123+
124+
### Optimization and fixed bugs
125+
- 修复在 Android 11 的设备上没有特定权限时打开动态会崩溃的问题
126+
127+
### Dependencies
128+
129+
- TapTap.Common v3.1.0
130+
131+
## 3.0.0
132+
133+
### Dependencies
134+
135+
- TapTap.Common v3.0.0
136+
137+
## 2.1.7
138+
139+
### Dependencies
140+
141+
- TapTap.Common v2.1.7
142+
143+
## 2.1.6
144+
145+
### Optimization and fixed bugs
146+
147+
- 修复调用 [TapMoment close] 不生效的 bug
148+
149+
### Dependencies
150+
151+
- TapTap.Common v2.1.6
152+
153+
## 2.1.5
154+
155+
### New Feature
156+
157+
- 新增场景化回调接口
158+
159+
```
160+
//场景化回调是在动态回调的统一接口中返回,Code = 70000,内容为 JSON 格式的字符串
161+
{
162+
sceneId: "taprl0071417002",
163+
eventType: "READY",
164+
eventPayload: "{}",
165+
timestamp: 1622791814130, // ms
166+
}
167+
```
168+
169+
## 2.1.4
170+
171+
### Dependencies
172+
173+
- TapTap.Common v2.1.4
174+
175+
## 2.1.3
176+
177+
### BugFixs
178+
179+
- Android 在部分刘海屏设备上判断失败导致UI可能被遮挡的问题
180+
181+
### Dependencies
182+
183+
- TapTap.Common v2.1.3
184+
185+
## 2.1.2
186+
187+
### Dependencies
188+
189+
- TapTap.Common v2.1.2
190+
191+
## 2.1.1
192+
193+
### Feature
194+
195+
* 新增 DirectlyOpen 接口
196+
* 场景化入口
197+
```c#
198+
var sceneDic = new Dictionary<string,object>(){{TapMomentConstants.TapMomentPageShortCutKey,sceneId}};
199+
200+
TapMoment.DirectlyOpen(orientation,TapMomentConstants.TapMomentPageShortCut,sceneDic);
201+
```
202+
203+
### Dependencies
204+
205+
* TapTap.Bootstrap v2.1.1
206+
* TapTap.Common v2.1.1
207+
208+
## 2.0.0
209+
210+
### Dependencies
211+
212+
* TapTap.Bootstrap v2.0.0
213+
* 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.

Mobile.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.

Mobile/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.
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+
}

Mobile/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.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
using System;
2+
using UnityEditor.Build.Reporting;
3+
using TapTap.Common.Editor;
4+
5+
namespace TapTap.Moment.Mobile.Editor {
6+
public class TapMomentMobileProcessBuild : SDKLinkProcessBuild {
7+
public override int callbackOrder => 0;
8+
9+
public override string LinkPath => "TapTap/Moment/link.xml";
10+
11+
public override LinkedAssembly[] LinkedAssemblies => new LinkedAssembly[] {
12+
new LinkedAssembly { Fullname = "TapTap.Moment.Runtime" },
13+
new LinkedAssembly { Fullname = "TapTap.Moment.Mobile.Runtime" }
14+
};
15+
16+
public override Func<BuildReport, bool> IsTargetPlatform => (report) => {
17+
return BuildTargetUtils.IsSupportMobile(report.summary.platform);
18+
};
19+
}
20+
}

0 commit comments

Comments
 (0)