This commit is contained in:
jenkins 2023-06-12 17:03:56 -07:00
Родитель ea665d4b29
Коммит 9ecda16aeb
3 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -1,5 +1,8 @@
# Changelog
## 6.2.0.1
* Remove the `ageRestrictedUser` check from user consent.
## 6.2.0.0
* Certified with HyprMX SDK 6.2.0.
* Add additional details for ad display failures.

Просмотреть файл

@ -6,7 +6,7 @@ plugins {
private val versionMajor = 6
private val versionMinor = 2
private val versionPatch = 0
private val versionAdapterPatch = 0
private val versionAdapterPatch = 1
val libraryVersionName by extra("${versionMajor}.${versionMinor}.${versionPatch}.${versionAdapterPatch}")
val libraryVersionCode by extra((versionMajor * 1000000) + (versionMinor * 10000) + (versionPatch * 100) + versionAdapterPatch)

Просмотреть файл

@ -250,15 +250,14 @@ public class HyprMXMediationAdapter
private ConsentStatus getConsentStatus(final MaxAdapterParameters parameters)
{
Boolean hasUserConsent = parameters.hasUserConsent();
Boolean isAgeRestrictedUser = parameters.isAgeRestrictedUser();
Boolean isDoNotSell = parameters.isDoNotSell();
// isTrue/isFalse/isNull to match the spec from HyprMX while avoiding NPEs
if ( ( isNull( isDoNotSell ) || isFalse( isDoNotSell ) ) && isTrue( hasUserConsent ) && isFalse( isAgeRestrictedUser ) )
if ( ( isNull( isDoNotSell ) || isFalse( isDoNotSell ) ) && isTrue( hasUserConsent ) )
{
return ConsentStatus.CONSENT_GIVEN;
}
else if ( isTrue( isDoNotSell ) || isFalse( hasUserConsent ) || isTrue( isAgeRestrictedUser ) )
else if ( isTrue( isDoNotSell ) || isFalse( hasUserConsent ) )
{
return ConsentStatus.CONSENT_DECLINED;
}