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 503f163
Show file tree
Hide file tree
Showing 20 changed files with 377 additions and 0 deletions.
86 changes: 86 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# ChangeLog

## 3.5.0

### Optimization and fixed bugs
- 支持性更新

### Dependencies
- TapTap.Common v3.5.0

## 3.4.0


### Dependencies

- TapTap.Common v3.4.0

## 3.3.0

### Dependencies

- TapTap.Common v3.3.0

## 3.2.0

### 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

### Dependencies

- TapTap.Common v2.1.7

## 2.1.6

### Dependencies

- TapTap.Common v2.1.6

## 2.1.5

### 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

## v2.1.1

### Feature

* 新增 DLC 购买认证服务

### Dependencies

* TapTap.Common v2.1.1
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.

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

## 使用前提

使用TapTap.License的前提是必须添加以下依赖库:

* [TapTap.Common](https://github.com/TapTap/TapCommon-Unity.git)

## 接口描述

### 命名空间

```c#
using TapTap.License;
```

### 付费认证

#### 1.设置授权回调

```c#
//默认情况下 SDK 会弹出不可由玩家手动取消的弹窗来避免未授权玩家进入游戏,如果需要回调来触发流程,请添加如下代码
TapLicense.SetLicencesCallback(ITapLicenseCallback callback);

public interface ITapLicenseCallback
{
// 授权成功回调
void OnLicenseSuccess();
}
```

#### 2. 检查付费授权

```c#
TapLicense.Check();
```

### TapLicense DLC 查询和购买

#### 1.DLC 回调设置

```c#
public interface ITapDLCCallback
{
void OnQueryCallBack(int code, Dictionary<string, object> queryList);

void OnOrderCallBack(string sku, int status);
}

TapLicense.SetDLCCallback(ITapDLCCallback callback);
```

#### 2. DLC 查询

购买前必须先查询 DLC 当前状态(支持单个查询和多个查询)

```c#
TapLicense.QueryDLC(string[] appId);
```

#### 3.DLC 购买

当 DLC 查询过且未购买时

```c#
TapLicense.PurchaseDLC(string appId);
```


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.

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/TapLicense_3.5.0.aar
Binary file not shown.
32 changes: 32 additions & 0 deletions Plugins/Android/libs/TapLicense_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.License.dll
Binary file not shown.
33 changes: 33 additions & 0 deletions Plugins/TapTap.License.dll.meta

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

Binary file added Plugins/TapTap.License.pdb
Binary file not shown.
7 changes: 7 additions & 0 deletions Plugins/TapTap.License.pdb.meta

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

69 changes: 69 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# [TapTap.License](./Documentation/README.md)

## 使用前提

使用TapTap.License的前提是必须添加以下依赖库:

* [TapTap.Common](https://github.com/TapTap/TapCommon-Unity.git)

## 接口描述

### 命名空间

```c#
using TapTap.License;
```

### 付费认证

#### 1.设置授权回调

```c#
//默认情况下 SDK 会弹出不可由玩家手动取消的弹窗来避免未授权玩家进入游戏,如果需要回调来触发流程,请添加如下代码
TapLicense.SetLicencesCallback(ITapLicenseCallback callback);

public interface ITapLicenseCallback
{
// 授权成功回调
void OnLicenseSuccess();
}
```

#### 2. 检查付费授权

```c#
TapLicense.Check();
```

### TapLicense DLC 查询和购买

#### 1.DLC 回调设置

```c#
public interface ITapDLCCallback
{
void OnQueryCallBack(int code, Dictionary<string, object> queryList);

void OnOrderCallBack(string sku, int status);
}

TapLicense.SetDLCCallback(ITapDLCCallback callback);
```

#### 2. DLC 查询

购买前必须先查询 DLC 当前状态(支持单个查询和多个查询)

```c#
TapLicense.QueryDLC(string[] appId);
```

#### 3.DLC 购买

当 DLC 查询过且未购买时

```c#
TapLicense.PurchaseDLC(string appId);
```


7 changes: 7 additions & 0 deletions 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 VERSIONNOTE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Dependencies

- TapTap.Common v3.5.0
7 changes: 7 additions & 0 deletions VERSIONNOTE.md.meta

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

11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "com.taptap.tds.dlc",
"displayName": "TapTap Download Content",
"description": "TapTap Develop Service",
"version": "3.5.0",
"unity": "2018.3",
"license": "MIT",
"dependencies": {
"com.taptap.tds.common": "https://github.com/TapTap/TapCommon-Unity.git#3.5.0"
}
}
7 changes: 7 additions & 0 deletions package.json.meta

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

0 comments on commit 503f163

Please sign in to comment.