Skip to content

Commit

Permalink
release as 4.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
liyujiang-gzu committed Dec 5, 2023
1 parent 606343b commit baecf48
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 更新日志

## 881892f7b6 - 2023/12/05
## 4.2.8 - 2023/12/05

- 支持通过荣耀官方广告标识服务SDK获取OAID [Issues#73](https://github.com/gzu-liyujiang/Android_CN_OAID/issues/73)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ dependencies {
```groovy
dependencies {
implementation('com.github.gzu-liyujiang:Android_CN_OAID:最新版本号') {
// 如果使用了移动安全联盟SDK,共存的话需排除掉本项目依赖的华为官方广告标识服务SDK,因为移动安全联盟SDK也依赖了华为的SDK
// 如果使用了移动安全联盟SDK,共存的话需排除掉本项目依赖的华为/荣耀官方广告标识服务SDK,因为移动安全联盟SDK也依赖了华为/荣耀的SDK
// 如果华为官方广告标识服务SDK下载失败或编译报错的话,可考虑在 build.gradle 中增加以下配置:
// repositories { maven { url 'https://developer.huawei.com/repo' } }
// runtimeOnly "com.huawei.hms:ads-identifier:3.4.62.300"
exclude group: 'com.huawei.hms', module: 'ads-identifier'
// 荣耀方广告标识服务SDK同理
// 荣耀官方广告标识服务SDK同理
// repositories { maven { url 'https://developer.hihonor.com/repo' } }
// runtimeOnly "com.hihonor.mcs:ads-identifier:1.0.2.301"
exclude group: 'com.hihonor.mcs', module: 'ads-identifier'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public boolean supported() {
if (context == null) {
return false;
}
// 核心标识:com.hihonor.id 或 com.hihonor.id.HnOaIdService
return AdvertisingIdClient.isAdvertisingIdAvailable(context);
}

Expand Down

0 comments on commit baecf48

Please sign in to comment.