From 99d247398b332a597cb50cc37ddf094f76d5c5b3 Mon Sep 17 00:00:00 2001 From: Jason Sznol Date: Fri, 10 Oct 2025 16:04:46 -0400 Subject: [PATCH 1/2] Updated Google Next Gen SDK to 0.21.0-beta01 --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index a130bd5..9d77a10 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,7 +1,7 @@ [versions] ads-amazon = "11.1.0" ads-google = "24.6.0" -ads-google-nextgen = "0.20.0-beta01" +ads-google-nextgen = "0.21.0-beta01" ads-nimbus = "2.34.0" android = "8.12.3" From f80f923fccd0da9af95a498135342e10defab977 Mon Sep 17 00:00:00 2001 From: Jason Sznol Date: Fri, 10 Oct 2025 16:05:21 -0400 Subject: [PATCH 2/2] Fixed issue causing videos to size to the entire screen --- .../src/androidMain/kotlin/DynamicPrice.kt | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/dynamicprice/nextgen/sdk/src/androidMain/kotlin/DynamicPrice.kt b/dynamicprice/nextgen/sdk/src/androidMain/kotlin/DynamicPrice.kt index 9e2c427..9fb0769 100644 --- a/dynamicprice/nextgen/sdk/src/androidMain/kotlin/DynamicPrice.kt +++ b/dynamicprice/nextgen/sdk/src/androidMain/kotlin/DynamicPrice.kt @@ -1,22 +1,12 @@ package com.adsbynimbus.dynamicprice.nextgen import android.app.Activity -import android.app.Activity.OVERRIDE_TRANSITION_CLOSE -import android.os.Build -import android.view.View -import android.view.ViewGroup -import android.webkit.WebView -import androidx.annotation.WorkerThread import androidx.core.os.BundleCompat.getSerializable -import androidx.core.view.allViews +import androidx.core.view.* import com.adsbynimbus.NimbusAd -import com.adsbynimbus.NimbusError -import com.adsbynimbus.dynamicprice.nextgen.internal.DynamicPriceRenderer -import com.adsbynimbus.dynamicprice.nextgen.internal.renderInline -import com.adsbynimbus.dynamicprice.nextgen.internal.webViewParent +import com.adsbynimbus.dynamicprice.nextgen.internal.* import com.adsbynimbus.internal.Platform -import com.adsbynimbus.lineitem.Mapping -import com.adsbynimbus.lineitem.targetingMap +import com.adsbynimbus.lineitem.* import com.adsbynimbus.render.* import com.adsbynimbus.render.Renderer.Companion.loadBlockingAd import com.adsbynimbus.request.NimbusResponse @@ -50,7 +40,17 @@ public fun BannerAd.handleEventForNimbus( activity: Activity? = Platform.currentActivity.get(), ) { if (name == "na_render") DynamicPriceRenderer.render(this, data, listener) { nimbusAd -> - nimbusAd.renderInline(getView(activity!!).webViewParent) + getView(activity!!).webViewParent.let { + nimbusAd.renderInline(it).apply { + if (nimbusAd.type() != "video") return@apply + it.getChildAt(0)?.doOnLayout { webView -> + view?.updateLayoutParams { + height = webView.height + width = webView.width + } + } + } + } } }