Skip to content

Commit

Permalink
[HB-5107] 3rd round listener fixes and hardening (#38)
Browse files Browse the repository at this point in the history
* [HB-5107] 3rd round listener fixes and hardening
* .1 updates for CM sdk 4.0.0 hard peg
* invalidate should succeed
  • Loading branch information
bichenwang authored Mar 24, 2023
1 parent 6ea8506 commit 851787c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
Note the first digit of every adapter version corresponds to the major version of the Chartboost Mediation SDK compatible with that adapter.
Adapters are compatible with any Chartboost Mediation SDK version within that major version.

### 4.9.2.1.1
- Updated the dependency on Chartboost Mediation SDK to 4.0.0.

### 4.9.2.1.0
- This version of the adapter has been certified with Chartboost SDK 9.2.1.

### 4.9.2.0.1
- Updated the dependency on Chartboost Mediation SDK to 4.0.0.

### 4.9.2.0.0
- This version of the adapter has been certified with Chartboost SDK 9.2.0.
4 changes: 2 additions & 2 deletions ChartboostAdapter/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ android {
minSdk = 21
targetSdk = 33
// If you touch the following line, don't forget to update scripts/get_rc_version.zsh
android.defaultConfig.versionName = System.getenv("VERSION_OVERRIDE") ?: "4.9.2.1.0"
android.defaultConfig.versionName = System.getenv("VERSION_OVERRIDE") ?: "4.9.2.1.1"
buildConfigField("String", "CHARTBOOST_MEDIATION_CHARTBOOST_ADAPTER_VERSION", "\"${android.defaultConfig.versionName}\"")

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
Expand Down Expand Up @@ -67,7 +67,7 @@ dependencies {

// For external usage, please use the following production dependency.
// You may choose a different release version.
"remoteImplementation"("com.chartboost:chartboost-mediation-sdk:4.+")
"remoteImplementation"("com.chartboost:chartboost-mediation-sdk:4.0.0")

// For external usage, please use the following production dependency.
// You may choose a different release version.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ class ChartboostAdapter : PartnerAdapter {
AdFormat.BANNER -> loadBannerAd(context, request, partnerAdListener)
AdFormat.INTERSTITIAL -> loadInterstitialAd(request, partnerAdListener)
AdFormat.REWARDED -> loadRewardedAd(request, partnerAdListener)
else -> {
PartnerLogController.log(LOAD_FAILED)
Result.failure(ChartboostMediationAdException(ChartboostMediationError.CM_LOAD_FAILURE_UNSUPPORTED_AD_FORMAT))
}
}
}

Expand All @@ -307,6 +311,10 @@ class ChartboostAdapter : PartnerAdapter {
}
AdFormat.INTERSTITIAL -> showInterstitialAd(partnerAd)
AdFormat.REWARDED -> showRewardedAd(partnerAd)
else -> {
PartnerLogController.log(SHOW_FAILED)
Result.failure(ChartboostMediationAdException(ChartboostMediationError.CM_SHOW_FAILURE_UNSUPPORTED_AD_FORMAT))
}
}
}

Expand All @@ -327,6 +335,10 @@ class ChartboostAdapter : PartnerAdapter {
PartnerLogController.log(INVALIDATE_SUCCEEDED)
Result.success(partnerAd)
}
else -> {
PartnerLogController.log(INVALIDATE_SUCCEEDED)
Result.success(partnerAd)
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The Chartboost Mediation Chartboost adapter mediates Chartboost via the Chartboo

In your `build.gradle`, add the following entry:
```
implementation "com.chartboost:chartboost-mediation-adapter-chartboost:4.9.2.1.0"
implementation "com.chartboost:chartboost-mediation-adapter-chartboost:4.9.2.1.1"
```

## Contributions
Expand Down

0 comments on commit 851787c

Please sign in to comment.