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