Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v6.3.10 #91

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/en/unity/integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ And this page shows you how to download and set up Yodo1 Suit SDK in Unity.
> - Android API 19 or above
> - iOS API 11 or above

## Download the Latest SDK(6.3.9)
## Download the Latest SDK(6.3.10)

You can download the Unity Plugin [via the link here](https://bj-ali-opp-sdk-update.oss-cn-beijing.aliyuncs.com/Unity_Plugins/Suit/Yodo1-Suit-6.3.9.unitypackage).
You can download the Unity Plugin [via the link here](https://sdk-artifacts.yodo1.com/Yodo1Suit/6.3.10/Unity/Release/Yodo1Suit-6.3.10.unitypackage).

## iOS Configuration

Expand Down
16 changes: 13 additions & 3 deletions docs/en/unity/modules/analyze.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,17 @@ Yodo1U3dAnalytics.TrackEvent("mission", properties);
>* The name of the event is of type 'string', which can only start with a letter and can contain numbers, letters, and the underscore '_'. The maximum length is 50 characters and is not sensitive to letter case.
>* The attribute of an event is a 'Dictionary' object, where each element represents an attribute. The value of Key is the name of the attribute and is of type 'string'. It can only start with a letter and contains numbers, letters, and the underscore '_'. The maximum length is 50 characters and is not sensitive to letter case.

## UA(AppsFlyer和Adjust)
### Get Identifiers

You can call `GetIdentifiers` to get the identifiers of the Thinking Data, an example:

```c#
Dictionary<string, object> identifiers = Yodo1U3dAnalytics.GetIdentifiers();
string tdDistinctId = identifiers["td_distinct_id"].ToString();
string tdDeviceId = identifiers["td_device_id"].ToString();
```

## UA(Adjust)

Currently, UA is only applicable to Apple and Google Store,and when used in Google Store, it is required to properly integrate[User Privacy](/zh/unit/optional modules/privacy/),to ensure compliance.

Expand Down Expand Up @@ -167,7 +177,7 @@ Reset deeplink data
public static void SaveToNativeRuntime(string key, string valuepairs);
```

### User Invitation
<!-- ### User Invitation

You can add a domain in the editor editing panel, which must be consistent with the deeplink. (Note: The prefix 'applink:' must be added before the domain)

Expand Down Expand Up @@ -195,7 +205,7 @@ Report the 'User Attribution Sharing Link' event

```c#
public static void logInviteAppsFlyerWithEventData(Dictionary<string, string> value = null);
```
``` -->

<!-- ## UA测试流程 -->

Expand Down
20 changes: 20 additions & 0 deletions docs/en/unity/modules/iap.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,26 @@ void PurchaseDelegate (Yodo1U3dConstants.PayEvent status, string orderId, string
}
```

```c#
Yodo1U3dPayment.SetPurchaseUpdatedDelegate((Yodo1U3dConstants.PayEvent status, Yodo1U3dProductData product) =>
{
Debug.Log(Yodo1U3dConstants.LOG_TAG + "PurchaseUpdatedDelegate status: " + status);

if (status == Yodo1U3dConstants.PayEvent.PaySuccess)
{
Dictionary<string, object> payload = (Dictionary<string, object>)product.Receipt["Payload"];
//iOS
string base64EncodedReceipt = (string)payload["base64EncodedReceipt"];
Debug.Log(Yodo1U3dConstants.LOG_TAG + "base64EncodedReceipt: " + base64EncodedReceipt);
//Android
string signature = (string)payload["signature"];
string json = (string)payload["json"];
Debug.Log(Yodo1U3dConstants.LOG_TAG + "signature:" + signature + ", json: " + json);
}
});

```

Yodo1U3dConstants.PayEvent Structure:

| KeyName | Description |
Expand Down
4 changes: 2 additions & 2 deletions docs/zh/unity/integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
> - Android API 19+
> - iOS API 11+

## 下载最新的SDK(6.3.9)
## 下载最新的SDK(6.3.10)

你可以点击这里下载[Unity插件](https://bj-ali-opp-sdk-update.oss-cn-beijing.aliyuncs.com/Unity_Plugins/Suit/Yodo1-Suit-6.3.9.unitypackage).
你可以点击这里下载[Unity插件](https://sdk-artifacts.yodo1.com/Yodo1Suit/6.3.10/Unity/Release/Yodo1Suit-6.3.10.unitypackage).

## iOS配置

Expand Down
16 changes: 13 additions & 3 deletions docs/zh/unity/modules/analyze.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,17 @@ Yodo1U3dAnalytics.TrackEvent("mission", properties);
>* 事件的名称是`string`类型,只能以字母开头,可包含数字,字母和下划线“_”,长度最大为 50 个字符,对字母大小写不敏感。
>* 事件的属性是一个`Dictionary`对象,其中每个元素代表一个属性,Key的值为属性的名称,为`string`类型,规定只能以字母开头,包含数字,字母和下划线“_”,长度最大为 50 个字符,对字母大小写不敏感。

## UA(AppsFlyer和Adjust)
### 获取Thinking Data的标识符

在 SDK 初始化完成之后,可以通过`GetIdentifiers`方法来获取`Thinking Data`的 `distinct_id` 和 `device_id`,示例如下:

```c#
Dictionary<string, object> identifiers = Yodo1U3dAnalytics.GetIdentifiers();
string tdDistinctId = identifiers["td_distinct_id"].ToString();
string tdDeviceId = identifiers["td_device_id"].ToString();
```

## UA(Adjust)

当前UA仅适用于Apple和Google商店,并在Google商店使用时,要求必须正确集成[用户隐私](/zh/unity/optional-modules/privacy/),确保合规。

Expand Down Expand Up @@ -168,7 +178,7 @@ public static string GetNativeRuntime(string key);
public static void SaveToNativeRuntime(string key, string valuepairs);
```

### 用户邀请
<!-- ### 用户邀请

您可以在editor编辑面板添加domain,domain必须与deeplink一致。(注意:域前面必须添加"applink:"前缀)

Expand Down Expand Up @@ -196,7 +206,7 @@ private string url; //分享的domain

```c#
public static void logInviteAppsFlyerWithEventData(Dictionary<string, string> value = null);
```
``` -->

<!-- ## UA测试流程 -->

Expand Down
20 changes: 20 additions & 0 deletions docs/zh/unity/modules/iap.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,26 @@ void PurchaseDelegate (Yodo1U3dConstants.PayEvent status, string orderId, string
}
```

```c#
Yodo1U3dPayment.SetPurchaseUpdatedDelegate((Yodo1U3dConstants.PayEvent status, Yodo1U3dProductData product) =>
{
Debug.Log(Yodo1U3dConstants.LOG_TAG + "PurchaseUpdatedDelegate status: " + status);

if (status == Yodo1U3dConstants.PayEvent.PaySuccess)
{
Dictionary<string, object> payload = (Dictionary<string, object>)product.Receipt["Payload"];
//iOS
string base64EncodedReceipt = (string)payload["base64EncodedReceipt"];
Debug.Log(Yodo1U3dConstants.LOG_TAG + "base64EncodedReceipt: " + base64EncodedReceipt);
//Android
string signature = (string)payload["signature"];
string json = (string)payload["json"];
Debug.Log(Yodo1U3dConstants.LOG_TAG + "signature:" + signature + ", json: " + json);
}
});

```

Yodo1U3dConstants.PayEvent结构:

| Key名称 | 描述 |
Expand Down
Loading