diff --git a/TeadsSDKDemo/app/src/main/java/tv/teads/teadssdkdemo/MainFragment.kt b/TeadsSDKDemo/app/src/main/java/tv/teads/teadssdkdemo/MainFragment.kt index e388784..4f73f18 100644 --- a/TeadsSDKDemo/app/src/main/java/tv/teads/teadssdkdemo/MainFragment.kt +++ b/TeadsSDKDemo/app/src/main/java/tv/teads/teadssdkdemo/MainFragment.kt @@ -35,6 +35,7 @@ class MainFragment : BaseFragment(), RadioGroup.OnCheckedChangeListener { private lateinit var customPid: Button private lateinit var containerCreativeSizes: View + private lateinit var containerPlacementId: View private lateinit var radioGroupCreativeSizes: RadioGroup private lateinit var radioGroupProvider: RadioGroup private lateinit var integrationsRecyclerView: RecyclerView @@ -72,6 +73,7 @@ class MainFragment : BaseFragment(), RadioGroup.OnCheckedChangeListener { val containerFormat: RadioGroup = binding.containerFormat radioGroupProvider = binding.containerProvider radioGroupCreativeSizes = binding.radiogroupCreativeSize + containerPlacementId = binding.containerPlacementId containerCreativeSizes = binding.containerCreativeSize integrationsRecyclerView = binding.integrationsRecyclerView @@ -341,10 +343,10 @@ class MainFragment : BaseFragment(), RadioGroup.OnCheckedChangeListener { } private fun setDirectIntegrationConstraints() { - customPid.visibility = if (SessionDataSource.selectedProvider == ProviderType.DIRECT) { + containerPlacementId.visibility = if (SessionDataSource.selectedProvider == ProviderType.DIRECT) { View.VISIBLE } else { - View.INVISIBLE + View.GONE } when { SessionDataSource.selectedProvider != ProviderType.DIRECT && SessionDataSource.selectedFormat == FormatType.INFEED -> { @@ -360,7 +362,7 @@ class MainFragment : BaseFragment(), RadioGroup.OnCheckedChangeListener { val limitedProviders = listOf(ProviderType.SMART, ProviderType.PREBID) if (limitedProviders.contains(SessionDataSource.selectedProvider)) { containerCreativeSizes.visibility = View.GONE - } else { + } else if (SessionDataSource.selectedFormat != FormatType.INFEED) { containerCreativeSizes.visibility = View.VISIBLE } } diff --git a/TeadsSDKDemo/app/src/main/java/tv/teads/teadssdkdemo/format/mediation/adapter/SmartNativeRecyclerViewAdapter.kt b/TeadsSDKDemo/app/src/main/java/tv/teads/teadssdkdemo/format/mediation/adapter/SmartNativeRecyclerViewAdapter.kt index bae0773..ed0cd09 100644 --- a/TeadsSDKDemo/app/src/main/java/tv/teads/teadssdkdemo/format/mediation/adapter/SmartNativeRecyclerViewAdapter.kt +++ b/TeadsSDKDemo/app/src/main/java/tv/teads/teadssdkdemo/format/mediation/adapter/SmartNativeRecyclerViewAdapter.kt @@ -17,7 +17,6 @@ import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch import tv.teads.adapter.smart.nativead.TeadsSmartViewBinder import tv.teads.sdk.TeadsMediationSettings -import tv.teads.sdk.renderer.AdScale import tv.teads.sdk.utils.userConsent.TCFVersion import tv.teads.teadssdkdemo.R import tv.teads.teadssdkdemo.component.GenericRecyclerViewAdapter diff --git a/TeadsSDKDemo/app/src/main/res/layout/fragment_main.xml b/TeadsSDKDemo/app/src/main/res/layout/fragment_main.xml index fac9675..7f58178 100644 --- a/TeadsSDKDemo/app/src/main/res/layout/fragment_main.xml +++ b/TeadsSDKDemo/app/src/main/res/layout/fragment_main.xml @@ -3,6 +3,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" + android:animateLayoutChanges="true" android:orientation="vertical"> + + + + + + + + - - Square Vertical Creative Sizes + Placemend ID Landscape Change PID Smart diff --git a/TeadsSDKDemo/gradle.properties b/TeadsSDKDemo/gradle.properties index bc165da..52e5aab 100644 --- a/TeadsSDKDemo/gradle.properties +++ b/TeadsSDKDemo/gradle.properties @@ -19,5 +19,5 @@ android.useAndroidX=true org.gradle.jvmargs=-Xms1024m -Xmx4096m -VERSION_NAME=5.1.5 -VERSION_CODE=130 +VERSION_NAME=5.1.6 +VERSION_CODE=131 diff --git a/TeadsSDKDemo/webviewhelper/proguard-rules.pro b/TeadsSDKDemo/webviewhelper/proguard-rules.pro index 185e76a..c3487c2 100644 --- a/TeadsSDKDemo/webviewhelper/proguard-rules.pro +++ b/TeadsSDKDemo/webviewhelper/proguard-rules.pro @@ -23,3 +23,8 @@ # If you keep the line number information, uncomment this to # hide the original source file name. #-renamesourcefileattribute SourceFile + +-keep class tv.teads.webviewhelper.SyncAdWebView$Listener { *; } +-keep class tv.teads.webviewhelper.SyncAdWebView { *; } +-keep class tv.teads.webviewhelper.baseView.ObservableWebView { *; } +-dontwarn java.lang.invoke.StringConcatFactory