Skip to content

Commit

Permalink
Updating Line Android adapter for release version 2.9.20241129
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 707997816
  • Loading branch information
Mobile Ads Developer Relations authored and copybara-github committed Dec 19, 2024
1 parent d01039c commit ae18f2a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
10 changes: 7 additions & 3 deletions ThirdPartyAdapters/line/line/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ext {
// String property to store the proper name of the mediation network adapter.
adapterName = "Line"
// String property to store version name.
stringVersion = "2.8.20240827.0"
stringVersion = "2.9.20241129.0"
// String property to store group id.
stringGroupId = "com.google.ads.mediation"
// Jacoco version to generate code coverage data
Expand Down Expand Up @@ -41,6 +41,10 @@ android {
targetCompatibility JavaVersion.VERSION_11
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}

buildFeatures {
buildConfig true
}
Expand Down Expand Up @@ -126,8 +130,8 @@ task jacocoTestReport(type: JacocoReport,

dependencies {
implementation 'androidx.core:core-ktx:1.8.0'
implementation 'com.google.android.gms:play-services-ads:23.3.0'
implementation 'com.linecorp.adsnetwork:fivead:2.8.20240827'
implementation 'com.google.android.gms:play-services-ads:23.6.0'
implementation 'com.linecorp.adsnetwork:fivead:2.9.20241129'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.0'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1'
testImplementation 'junit:junit:4.13.2'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.five_corp.ad.AdLoader
import com.five_corp.ad.AdLoader.CollectSignalCallback
import com.five_corp.ad.BidData
import com.five_corp.ad.FiveAdConfig
import com.five_corp.ad.FiveAdCustomLayout
import com.five_corp.ad.FiveAdErrorCode
Expand Down Expand Up @@ -995,7 +996,7 @@ class LineMediationAdapterTest {
mockMediationInterstitialAdLoadCallback,
)

verify(mockAdLoader).loadInterstitialAd(any(), loadCallbackCaptor.capture())
verify(mockAdLoader).loadInterstitialAd(any<BidData>(), loadCallbackCaptor.capture())
val loadCallback = loadCallbackCaptor.firstValue
loadCallback.onLoad(mockFiveAdInterstitial)
verify(mockFiveAdInterstitial).setEventListener(isA<LineInterstitialAd>())
Expand Down Expand Up @@ -1023,7 +1024,7 @@ class LineMediationAdapterTest {
mockMediationInterstitialAdLoadCallback,
)

verify(mockAdLoader).loadInterstitialAd(any(), loadCallbackCaptor.capture())
verify(mockAdLoader).loadInterstitialAd(any<BidData>(), loadCallbackCaptor.capture())
val loadCallback = loadCallbackCaptor.firstValue
loadCallback.onLoad(mockFiveAdInterstitial)
verify(mockFiveAdInterstitial).enableSound(false)
Expand Down Expand Up @@ -1051,7 +1052,7 @@ class LineMediationAdapterTest {
mockMediationInterstitialAdLoadCallback,
)

verify(mockAdLoader).loadInterstitialAd(any(), loadCallbackCaptor.capture())
verify(mockAdLoader).loadInterstitialAd(any<BidData>(), loadCallbackCaptor.capture())
val loadCallback = loadCallbackCaptor.firstValue
loadCallback.onError(FiveAdErrorCode.INTERNAL_ERROR)
val expectedAdError =
Expand Down Expand Up @@ -1342,7 +1343,7 @@ class LineMediationAdapterTest {
mockMediationRewardedAdLoadCallback,
)

verify(mockAdLoader).loadRewardAd(any(), loadCallbackCaptor.capture())
verify(mockAdLoader).loadRewardAd(any<BidData>(), loadCallbackCaptor.capture())
val loadCallback = loadCallbackCaptor.firstValue
loadCallback.onLoad(mockFiveAdVideoReward)
verify(mockFiveAdVideoReward).setEventListener(isA<LineRewardedAd>())
Expand Down Expand Up @@ -1371,7 +1372,7 @@ class LineMediationAdapterTest {
mockMediationRewardedAdLoadCallback,
)

verify(mockAdLoader).loadRewardAd(any(), loadCallbackCaptor.capture())
verify(mockAdLoader).loadRewardAd(any<BidData>(), loadCallbackCaptor.capture())
val loadCallback = loadCallbackCaptor.firstValue
loadCallback.onLoad(mockFiveAdVideoReward)
verify(mockFiveAdVideoReward).enableSound(false)
Expand Down Expand Up @@ -1399,7 +1400,7 @@ class LineMediationAdapterTest {
mockMediationRewardedAdLoadCallback,
)

verify(mockAdLoader).loadRewardAd(any(), loadCallbackCaptor.capture())
verify(mockAdLoader).loadRewardAd(any<BidData>(), loadCallbackCaptor.capture())
val loadCallback = loadCallbackCaptor.firstValue
loadCallback.onError(FiveAdErrorCode.INTERNAL_ERROR)
val expectedAdError =
Expand Down

0 comments on commit ae18f2a

Please sign in to comment.