From e9745773385b8a65a3f33d8a6492cebd0c425c1c Mon Sep 17 00:00:00 2001 From: Bichen Wang Date: Mon, 25 Nov 2024 16:40:02 -0800 Subject: [PATCH] 4.9.7.0.2 Updates --- CHANGELOG.md | 3 +++ ChartboostAdapter/build.gradle.kts | 2 +- .../mediation/chartboostadapter/ChartboostAdapter.kt | 1 + README.md | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 639fbc5..558f688 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ Note the first digit of every adapter version corresponds to the major version of the Chartboost Mediation SDK compatible with that adapter. Adapters are compatible with any Chartboost Mediation SDK version within that major version. +### 4.9.7.0.2 +- Fixed potential consent issue. + ### 4.9.7.0.1 - Runs setUp() on IO context to reduce possibility of ANR terminations. diff --git a/ChartboostAdapter/build.gradle.kts b/ChartboostAdapter/build.gradle.kts index 472a2b8..8b38e80 100644 --- a/ChartboostAdapter/build.gradle.kts +++ b/ChartboostAdapter/build.gradle.kts @@ -36,7 +36,7 @@ android { minSdk = 21 targetSdk = 33 // If you touch the following line, don't forget to update scripts/get_rc_version.zsh - android.defaultConfig.versionName = System.getenv("VERSION_OVERRIDE") ?: "4.9.7.0.1" + android.defaultConfig.versionName = System.getenv("VERSION_OVERRIDE") ?: "4.9.7.0.2" buildConfigField("String", "CHARTBOOST_MEDIATION_CHARTBOOST_ADAPTER_VERSION", "\"${android.defaultConfig.versionName}\"") consumerProguardFiles("proguard-rules.pro") diff --git a/ChartboostAdapter/src/main/java/com/chartboost/mediation/chartboostadapter/ChartboostAdapter.kt b/ChartboostAdapter/src/main/java/com/chartboost/mediation/chartboostadapter/ChartboostAdapter.kt index c821f21..bc861f5 100644 --- a/ChartboostAdapter/src/main/java/com/chartboost/mediation/chartboostadapter/ChartboostAdapter.kt +++ b/ChartboostAdapter/src/main/java/com/chartboost/mediation/chartboostadapter/ChartboostAdapter.kt @@ -236,6 +236,7 @@ class ChartboostAdapter : PartnerAdapter { // If anything was set previously for GDPR, it will be reset when GDPR no longer applies. if (applies != true) { Chartboost.clearDataUseConsent(context, GDPR.GDPR_STANDARD) + return } when (gdprConsentStatus) { diff --git a/README.md b/README.md index e10e5e2..16eb790 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ The Chartboost Mediation Chartboost adapter mediates Chartboost via the Chartboo In your `build.gradle`, add the following entry: ``` - implementation "com.chartboost:chartboost-mediation-adapter-chartboost:4.9.7.0.1" + implementation "com.chartboost:chartboost-mediation-adapter-chartboost:4.9.7.0.2" ``` ## Contributions