Skip to content

Commit

Permalink
MobileFuse/1.8.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
AppLovin-Mobile-Engineering committed Dec 20, 2024
1 parent a331611 commit 5bbb7f5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions MobileFuse/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.8.2.1
* Fix NPE caused when clearing native ad listener while destroying the ad.
* Pass adapter version to MobileFuse SDK.

## 1.8.2.0
* Certified with MobileFuse SDK 1.8.2.

Expand Down
2 changes: 1 addition & 1 deletion MobileFuse/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ afterEvaluate {
apply(plugin = "adapter-publish")
}

val libraryVersionName by extra("1.8.2.0")
val libraryVersionName by extra("1.8.2.1")

android.defaultConfig.minSdk = 19

Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public void initialize(final MaxAdapterInitializationParameters parameters, @Nul
initializationStatus = InitializationStatus.INITIALIZING;

MobileFuseSettings.setTestMode( parameters.isTesting() );
MobileFuseSettings.setSdkAdapter( "applovin_bidding", getAdapterVersion() );

MobileFuse.init( new SdkInitListener()
{
Expand Down Expand Up @@ -134,7 +135,7 @@ public void onDestroy()
if ( nativeAd != null )
{
nativeAd.unregisterViews();
nativeAd.setListener( null );
nativeAd.setAdListener( null );
nativeAd = null;
}
}
Expand Down Expand Up @@ -254,7 +255,7 @@ public void loadAdViewAd(final MaxAdapterResponseParameters parameters, final Ma
if ( isNative )
{
nativeAd = new MobileFuseNativeAd( getContext( activity ), placementId );
nativeAd.setListener( new NativeAdViewListener( adFormat, parameters, listener ) );
nativeAd.setAdListener( new NativeAdViewListener( adFormat, parameters, listener ) );
nativeAd.loadAdFromBiddingToken( parameters.getBidResponse() );
}
else
Expand All @@ -281,7 +282,7 @@ public void loadNativeAd(final MaxAdapterResponseParameters parameters, @Nullabl
updatePrivacyPreferences( parameters );

nativeAd = new MobileFuseNativeAd( getContext( activity ), placementId );
nativeAd.setListener( new NativeAdListener( parameters, listener ) );
nativeAd.setAdListener( new NativeAdListener( parameters, listener ) );
nativeAd.loadAdFromBiddingToken( parameters.getBidResponse() );
}

Expand Down

0 comments on commit 5bbb7f5

Please sign in to comment.