Skip to content

Commit

Permalink
AmazonAdMarketplace/9.4.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins committed Apr 8, 2022
1 parent a3ce906 commit 7c71ec5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
4 changes: 4 additions & 0 deletions AmazonAdMarketplace/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 9.4.3.0
* Certified with APS SDK 9.4.3.
* Remove temporary memory leak fix for previous SDK version.

## 9.4.2.2
* Fix memory leak for all ad formats.

Expand Down
4 changes: 2 additions & 2 deletions AmazonAdMarketplace/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ plugins {

private val versionMajor = 9
private val versionMinor = 4
private val versionPatch = 2
private val versionAdapterPatch = 2
private val versionPatch = 3
private val versionAdapterPatch = 0

val libraryVersionName by extra("${versionMajor}.${versionMinor}.${versionPatch}.${versionAdapterPatch}")
val libraryVersionCode by extra((versionMajor * 1000000) + (versionMinor * 10000) + (versionPatch * 100) + versionAdapterPatch)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,20 +278,6 @@ public void loadAdViewAd(MaxAdapterResponseParameters parameters, MaxAdFormat ad
if ( mediationHints != null )
{
adView = new DTBAdView( activity, new AdViewListener( listener ) );

// APS banners have a memory leak that could be causing ANRs. This is a temporary fix while Amazon fixes it in their SDK.
// https://app.asana.com/0/573104092700345/1202045373630994
// Publishers can enable fix via maxAdView.setLocalExtraParameter( "enable_aps_banner_memory_leak_fix", "true" ); (requires MAX SDK 11.0.0+)
if ( AppLovinSdk.VERSION_CODE >= 11_00_00_00 )
{
final Map<String, Object> localExtraParams = parameters.getLocalExtraParameters();
final Object enableMemoryLeakFix = localExtraParams != null ? localExtraParams.get( "enable_aps_banner_memory_leak_fix" ) : null;
if ( "true".equals( enableMemoryLeakFix ) )
{
adView.finalize();
}
}

adView.fetchAd( mediationHints.value );
}
else
Expand Down

0 comments on commit 7c71ec5

Please sign in to comment.