From 63d1e8a4f4d69785d81509c7cc9cf88043c42a12 Mon Sep 17 00:00:00 2001 From: AppLovin-Mobile-Engineering Date: Mon, 28 Oct 2024 11:20:32 -0700 Subject: [PATCH] Verve/3.2.0.0 --- Verve/CHANGELOG.md | 4 ++++ Verve/build.gradle.kts | 2 +- .../adapters/VerveMediationAdapter.java | 16 +++++++++------- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/Verve/CHANGELOG.md b/Verve/CHANGELOG.md index f4d08055ad..4932a74e3f 100644 --- a/Verve/CHANGELOG.md +++ b/Verve/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 3.2.0.0 +* Certified with Verve SDK 3.2.0. +* Annotated all `Activity` parameters with `@Nullable` to better avoid potential NPEs. + ## 3.1.0.0 * Certified with Verve SDK 3.1.0. diff --git a/Verve/build.gradle.kts b/Verve/build.gradle.kts index 416e3364b3..2f8e025b7d 100644 --- a/Verve/build.gradle.kts +++ b/Verve/build.gradle.kts @@ -6,7 +6,7 @@ afterEvaluate { apply(plugin = "adapter-publish") } -val libraryVersionName by extra("3.1.0.0") +val libraryVersionName by extra("3.2.0.0") android.defaultConfig.minSdk = 21 diff --git a/Verve/src/main/java/com/applovin/mediation/adapters/VerveMediationAdapter.java b/Verve/src/main/java/com/applovin/mediation/adapters/VerveMediationAdapter.java index c1f9c67705..7b150ad08e 100644 --- a/Verve/src/main/java/com/applovin/mediation/adapters/VerveMediationAdapter.java +++ b/Verve/src/main/java/com/applovin/mediation/adapters/VerveMediationAdapter.java @@ -34,6 +34,8 @@ import java.util.Map; import java.util.concurrent.atomic.AtomicBoolean; +import androidx.annotation.Nullable; + public class VerveMediationAdapter extends MediationAdapterBase implements MaxInterstitialAdapter, MaxRewardedAdapter, MaxAdViewAdapter, MaxSignalProvider @@ -61,7 +63,7 @@ public String getAdapterVersion() } @Override - public void initialize(final MaxAdapterInitializationParameters parameters, final Activity activity, final OnCompletionListener onCompletionListener) + public void initialize(final MaxAdapterInitializationParameters parameters, @Nullable final Activity activity, final OnCompletionListener onCompletionListener) { if ( initialized.compareAndSet( false, true ) ) { @@ -120,7 +122,7 @@ public void onDestroy() } @Override - public void collectSignal(final MaxAdapterSignalCollectionParameters parameters, final Activity activity, final MaxSignalCollectionListener callback) + public void collectSignal(final MaxAdapterSignalCollectionParameters parameters, @Nullable final Activity activity, final MaxSignalCollectionListener callback) { log( "Collecting Signal..." ); @@ -133,7 +135,7 @@ public void collectSignal(final MaxAdapterSignalCollectionParameters parameters, } @Override - public void loadInterstitialAd(final MaxAdapterResponseParameters parameters, final Activity activity, final MaxInterstitialAdapterListener listener) + public void loadInterstitialAd(final MaxAdapterResponseParameters parameters, @Nullable final Activity activity, final MaxInterstitialAdapterListener listener) { log( "Loading interstitial ad" ); @@ -153,7 +155,7 @@ public void loadInterstitialAd(final MaxAdapterResponseParameters parameters, fi } @Override - public void showInterstitialAd(final MaxAdapterResponseParameters parameters, final Activity activity, final MaxInterstitialAdapterListener listener) + public void showInterstitialAd(final MaxAdapterResponseParameters parameters, @Nullable final Activity activity, final MaxInterstitialAdapterListener listener) { log( "Showing interstitial ad..." ); @@ -169,7 +171,7 @@ public void showInterstitialAd(final MaxAdapterResponseParameters parameters, fi } @Override - public void loadRewardedAd(final MaxAdapterResponseParameters parameters, final Activity activity, final MaxRewardedAdapterListener listener) + public void loadRewardedAd(final MaxAdapterResponseParameters parameters, @Nullable final Activity activity, final MaxRewardedAdapterListener listener) { log( "Loading rewarded ad" ); @@ -189,7 +191,7 @@ public void loadRewardedAd(final MaxAdapterResponseParameters parameters, final } @Override - public void showRewardedAd(final MaxAdapterResponseParameters parameters, final Activity activity, final MaxRewardedAdapterListener listener) + public void showRewardedAd(final MaxAdapterResponseParameters parameters, @Nullable final Activity activity, final MaxRewardedAdapterListener listener) { log( "Showing rewarded ad..." ); @@ -206,7 +208,7 @@ public void showRewardedAd(final MaxAdapterResponseParameters parameters, final } @Override - public void loadAdViewAd(final MaxAdapterResponseParameters parameters, final MaxAdFormat adFormat, final Activity activity, final MaxAdViewAdapterListener listener) + public void loadAdViewAd(final MaxAdapterResponseParameters parameters, final MaxAdFormat adFormat, @Nullable final Activity activity, final MaxAdViewAdapterListener listener) { log( "Loading " + adFormat.getLabel() + " ad view ad..." );