Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
ZAnti-Addiction
/
ZAnti-Addiction-Unity
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit f1fa28f0
由
王帅
编写于
2023-03-07 16:20:05 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
readME
1 个父辈
1dc596a8
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
37 行增加
和
0 行删除
AASDK-Unity/Library/SourceAssetDB
Anti-Addiction-Unity.md
README.md
resources/trackingFramework.jpg
AASDK-Unity/Library/SourceAssetDB
查看文件 @
f1fa28f
此文件类型无法预览
Anti-Addiction-Unity.md
查看文件 @
f1fa28f
...
@@ -80,6 +80,24 @@ You might get the following error:
...
@@ -80,6 +80,24 @@ You might get the following error:
It might have something to do with Certificates, Identifiers & Profiles,You can contact the PM to try to resolve the problem.
It might have something to do with Certificates, Identifiers & Profiles,You can contact the PM to try to resolve the problem.
##### Add AppTrackingTransparency.framework
If your device only supports
`iOS14`
or later, you can ignore this rule.
1.
Target > General > Frameworks, Libraries, and Embedded Content and add AppTrackingTransparency.framework.
2.
Target > Build Phases > Link Binary With Libraries and make AppTrackingTransparency.framework status as Optional.
<img
src=
'resources/trackingFramework.jpg'
>
This is how to do that from inside your build script:
project.AddFrameworkToProject(targetGUID, "AppTrackingTransparency.framework", true);
The last parameter "true" means "Optional" in the "Link Binary With Libraries" section, "false" means "Required".
# How to use
# How to use
##### AntiAddictionSDK
##### AntiAddictionSDK
...
...
README.md
查看文件 @
f1fa28f
...
@@ -78,6 +78,25 @@ Import
...
@@ -78,6 +78,25 @@ Import
这可能是因为你使用的 Provisioning Profile 文件没有开启Apple登录权限,请联系掌游产品获取正确的配置文件。
这可能是因为你使用的 Provisioning Profile 文件没有开启Apple登录权限,请联系掌游产品获取正确的配置文件。
##### 添加AppTrackingTransparency库
如果您的设备仅支持
`iOS14`
以上,可以忽略此条。
由于SDK会获取IDFA,所以需要添加
`AppTrackingTransparency`
库,并将状态选为
`Optional`
,否则在
`iOS14`
以下的设备将发生崩溃。
1.
Target > General > Build Phases > Frameworks, Libraries, and Embedded Content > 添加 AppTrackingTransparency.framework
2.
将 status 更改为 Optional
<img
src=
'resources/trackingFramework.jpg'
>
如果您使用 OnPostProcessBuild ,也可以在脚本中添加:
project.AddFrameworkToProject(targetGUID, "AppTrackingTransparency.framework", true);
最后一个参数"true" 表示 "Optional","false" 表示 "Required".
# 基本使用
# 基本使用
##### 创建 AntiAddictionSDK
##### 创建 AntiAddictionSDK
...
...
resources/trackingFramework.jpg
0 → 100644
查看文件 @
f1fa28f
126.3 KB
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论