Skip to content

Commit

Permalink
update android 1.2.4 to update oaid method
Browse files Browse the repository at this point in the history
  • Loading branch information
lichao committed May 19, 2023
1 parent f05975b commit b7786ad
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 3 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.2.6

### New Feature

* 更新 Android TapDB 获取 OAID 接口

## 1.2.5

### New Feature
Expand Down Expand Up @@ -130,4 +136,4 @@

- TapTap 登陆
- 内嵌动态
- TapDB
- TapDB
4 changes: 4 additions & 0 deletions Plugins/Android/libs/TDSCommon_1.1.14.1.aar.meta

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

Binary file not shown.

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

3 changes: 3 additions & 0 deletions Script/Runtime/TapDB/ITDSTapDB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public interface ITDSTapDB
void EnableLog(bool enable);

void ClearUser();

void SetOAIDCert(string cert);

}

public interface IDynamicSuperProperties
Expand Down
4 changes: 4 additions & 0 deletions Script/Runtime/TapDB/TDSTapDB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,9 @@ public static void AdvertiserIDCollectionEnabled(bool enable)
{
TDSTapDBImpl.GetInstance().AdvertiserIDCollectionEnabled(enable);
}

public static void SetOAIDCert(string cert){
TDSTapDBImpl.GetInstance().SetOAIDCert(cert);
}
}
}
10 changes: 10 additions & 0 deletions Script/Runtime/TapDB/TDSTapDBImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,15 @@ public void EnableLog(bool enable)
.CommandBuilder());
}

public void SetOAIDCert(string cert)
{
EngineBridge.GetInstance().CallHandler(new Command.Builder()
.Service(TDSTapDBConstants.TDS_TAPDB_SERVICE)
.Method("setOAIDCert")
.Args("setOAIDCert", cert)
.CommandBuilder());
}

private string GetFinalEventProperties(Dictionary<string, object> properties)
{
if (dynamicSuperProperties != null)
Expand All @@ -234,5 +243,6 @@ private string GetFinalEventProperties(Dictionary<string, object> properties)
}
return Json.Serialize(properties);
}

}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "com.tds.sdk",
"displayName": "Tap SDK",
"description": "TapTap Develop Service!",
"version": "1.2.5",
"version": "1.2.6",
"unity": "2020.1",
"license": "MIT"
}

0 comments on commit b7786ad

Please sign in to comment.