Skip to content

Commit 76452d7

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

20 files changed

+421
-0
lines changed

CHANGELOG.md

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
# ChangeLog
2+
## 3.9.0
3+
4+
### Dependencies
5+
6+
- TapTap.Common v3.9.0
7+
8+
## 3.8.0
9+
10+
### Dependencies
11+
12+
- TapTap.Common v3.8.0
13+
14+
## 3.7.1
15+
16+
### Dependencies
17+
18+
- TapTap.Common v3.7.1
19+
20+
## 3.7.0
21+
22+
### Dependencies
23+
24+
- TapTap.Common v3.7.0
25+
26+
27+
## 3.6.3
28+
29+
### Dependencies
30+
31+
- TapTap.Common v3.6.3
32+
33+
## 3.6.1
34+
35+
### Dependencies
36+
37+
- TapTap.Common v3.6.1
38+
39+
## 3.6.0
40+
41+
### Optimization and fixed bugs
42+
- DLC 修复在查询回调内直接发起购买请求后无法获得购买回调的问题
43+
44+
### Dependencies
45+
- TapTap.Common v3.6.0
46+
47+
## 3.5.0
48+
49+
### Optimization and fixed bugs
50+
- 支持性更新
51+
52+
### Dependencies
53+
- TapTap.Common v3.5.0
54+
55+
## 3.4.0
56+
57+
58+
### Dependencies
59+
60+
- TapTap.Common v3.4.0
61+
62+
## 3.3.0
63+
64+
### Dependencies
65+
66+
- TapTap.Common v3.3.0
67+
68+
## 3.2.0
69+
70+
### Dependencies
71+
72+
- TapTap.Common v3.2.0
73+
74+
## 3.1.0
75+
76+
### Dependencies
77+
78+
- TapTap.Common v3.1.0
79+
80+
## 3.0.0
81+
82+
### Dependencies
83+
84+
- TapTap.Common v3.0.0
85+
86+
## 2.1.7
87+
88+
### Dependencies
89+
90+
- TapTap.Common v2.1.7
91+
92+
## 2.1.6
93+
94+
### Dependencies
95+
96+
- TapTap.Common v2.1.6
97+
98+
## 2.1.5
99+
100+
### Dependencies
101+
102+
- TapTap.Common v2.1.5
103+
104+
## 2.1.4
105+
106+
### Dependencies
107+
108+
- TapTap.Common v2.1.4
109+
110+
## 2.1.3
111+
112+
### Dependencies
113+
114+
- TapTap.Common v2.1.3
115+
116+
## 2.1.2
117+
118+
### Dependencies
119+
120+
- TapTap.Common v2.1.2
121+
122+
## v2.1.1
123+
124+
### Feature
125+
126+
* 新增 DLC 购买认证服务
127+
128+
### Dependencies
129+
130+
* TapTap.Common v2.1.1

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: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# TapTap.License
2+
3+
## 使用前提
4+
5+
使用TapTap.License的前提是必须添加以下依赖库:
6+
7+
* [TapTap.Common](https://github.com/TapTap/TapCommon-Unity.git)
8+
9+
## 接口描述
10+
11+
### 命名空间
12+
13+
```c#
14+
using TapTap.License;
15+
```
16+
17+
### 付费认证
18+
19+
#### 1.设置授权回调
20+
21+
```c#
22+
//默认情况下 SDK 会弹出不可由玩家手动取消的弹窗来避免未授权玩家进入游戏,如果需要回调来触发流程,请添加如下代码
23+
TapLicense.SetLicencesCallback(ITapLicenseCallback callback);
24+
25+
public interface ITapLicenseCallback
26+
{
27+
// 授权成功回调
28+
void OnLicenseSuccess();
29+
}
30+
```
31+
32+
#### 2. 检查付费授权
33+
34+
```c#
35+
TapLicense.Check();
36+
```
37+
38+
### TapLicense DLC 查询和购买
39+
40+
#### 1.DLC 回调设置
41+
42+
```c#
43+
public interface ITapDLCCallback
44+
{
45+
void OnQueryCallBack(int code, Dictionary<string, object> queryList);
46+
47+
void OnOrderCallBack(string sku, int status);
48+
}
49+
50+
TapLicense.SetDLCCallback(ITapDLCCallback callback);
51+
```
52+
53+
#### 2. DLC 查询
54+
55+
购买前必须先查询 DLC 当前状态(支持单个查询和多个查询)
56+
57+
```c#
58+
TapLicense.QueryDLC(string[] appId);
59+
```
60+
61+
#### 3.DLC 购买
62+
63+
当 DLC 查询过且未购买时
64+
65+
```c#
66+
TapLicense.PurchaseDLC(string appId);
67+
```
68+
69+

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.

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.
94 KB
Binary file not shown.

Plugins/Android/libs/TapLicense_3.9.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.License.dll

8 KB
Binary file not shown.

Plugins/TapTap.License.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.License.pdb

8.92 KB
Binary file not shown.

Plugins/TapTap.License.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.

README.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# [TapTap.License](./Documentation/README.md)
2+
3+
## 使用前提
4+
5+
使用TapTap.License的前提是必须添加以下依赖库:
6+
7+
* [TapTap.Common](https://github.com/TapTap/TapCommon-Unity.git)
8+
9+
## 接口描述
10+
11+
### 命名空间
12+
13+
```c#
14+
using TapTap.License;
15+
```
16+
17+
### 付费认证
18+
19+
#### 1.设置授权回调
20+
21+
```c#
22+
//默认情况下 SDK 会弹出不可由玩家手动取消的弹窗来避免未授权玩家进入游戏,如果需要回调来触发流程,请添加如下代码
23+
TapLicense.SetLicencesCallback(ITapLicenseCallback callback);
24+
25+
public interface ITapLicenseCallback
26+
{
27+
// 授权成功回调
28+
void OnLicenseSuccess();
29+
}
30+
```
31+
32+
#### 2. 检查付费授权
33+
34+
```c#
35+
TapLicense.Check();
36+
```
37+
38+
### TapLicense DLC 查询和购买
39+
40+
#### 1.DLC 回调设置
41+
42+
```c#
43+
public interface ITapDLCCallback
44+
{
45+
void OnQueryCallBack(int code, Dictionary<string, object> queryList);
46+
47+
void OnOrderCallBack(string sku, int status);
48+
}
49+
50+
TapLicense.SetDLCCallback(ITapDLCCallback callback);
51+
```
52+
53+
#### 2. DLC 查询
54+
55+
购买前必须先查询 DLC 当前状态(支持单个查询和多个查询)
56+
57+
```c#
58+
TapLicense.QueryDLC(string[] appId);
59+
```
60+
61+
#### 3.DLC 购买
62+
63+
当 DLC 查询过且未购买时
64+
65+
```c#
66+
TapLicense.PurchaseDLC(string appId);
67+
```
68+
69+

0 commit comments

Comments
 (0)