Skip to content

Commit 1e881e8

Browse files
committed
Release 0.8.9
1 parent 801e566 commit 1e881e8

File tree

12 files changed

+16
-11
lines changed

12 files changed

+16
-11
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.8.9
2+
- Fixed `BannerWidgetStateImpl.dispose` failed to call `super.dispose` issue #45.
3+
14
## 0.8.8
25
- [Android] Fixed build failure related to missing style attribute `windowOptOutEdgeToEdgeEnforcement` by increasing `compileSdkVersion` to 35 in the plugin.
36

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group = 'com.cleveradssolutions.plugin.flutter'
2-
version = '0.8.8'
2+
version = '0.8.9'
33

44
buildscript {
55
ext.kotlin_version = '1.8.22'

ios/clever_ads_solutions.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
Pod::Spec.new do |s|
66
s.name = 'clever_ads_solutions'
7-
s.version = '0.8.8'
7+
s.version = '0.8.9'
88
s.summary = 'CAS.AI plugin for Flutter.'
99
s.description = <<-DESC
1010
CAS.AI plugin for Flutter.

lib/src/banner/internal/banner_widget_state_impl.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,9 @@ class BannerWidgetStateImpl extends BannerWidgetState
266266

267267
@override
268268
Future<void> dispose() {
269-
super.dispose();
269+
disposeContent();
270270
_adListenerField = null;
271+
super.dispose();
271272
return invokeMethod('dispose');
272273
}
273274

lib/src/cas.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import 'user_consent.dart';
1717

1818
/// Represents the CAS.AI SDK.
1919
class CAS {
20-
static const String _pluginVersion = "0.8.8";
20+
static const String _pluginVersion = "0.8.9";
2121

2222
static const MethodChannel _channel = MethodChannel("cleveradssolutions/cas");
2323

lib/src/manager_builder.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ abstract class ManagerBuilder {
2727
/// Set [AdType.None] to disable all ad types requests.
2828
///
2929
/// Ad types can be enabled manually after initialize by [MediationManager.setEnabled]
30-
@Deprecated("Use `ManagerBuilder.withAdTypes()` only if you continue to use `MediationManager` for ad requests. For the new `CASInterstitial` and `CASRewarded` implementations, you should skip this function call.")
30+
@Deprecated(
31+
"Use `ManagerBuilder.withAdTypes()` only if you continue to use `MediationManager` for ad requests. For the new `CASInterstitial` and `CASRewarded` implementations, you should skip this function call.")
3132
ManagerBuilder withAdTypes(final int adTypes);
3233

3334
/// The userID is a unique identifier supplied by your application and must be static for each user across sessions.

lib/src/sdk/screen/internal/ad_mapped_object.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ mixin AdMappedObject on MappedObjectImpl {
3434
return contentInfo;
3535
}
3636

37-
Future<void> dispose() async {
37+
void disposeContent() {
3838
_contentInfo = null;
3939
_contentInfoId = null;
4040
}

lib/src/sdk/screen/internal/cas_app_open_impl.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class CASAppOpenImpl extends MappedObject
9090

9191
@override
9292
Future<void> dispose() {
93-
super.dispose();
93+
disposeContent();
9494
contentCallback = null;
9595
impressionListener = null;
9696
return invokeMethod('destroy');

lib/src/sdk/screen/internal/cas_interstitial_impl.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class CASInterstitialImpl extends MappedObject
9191

9292
@override
9393
Future<void> dispose() {
94-
super.dispose();
94+
disposeContent();
9595
contentCallback = null;
9696
impressionListener = null;
9797
return invokeMethod('destroy');

lib/src/sdk/screen/internal/cas_rewarded_impl.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class CASRewardedImpl extends MappedObject
101101

102102
@override
103103
Future<void> dispose() {
104-
super.dispose();
104+
disposeContent();
105105
contentCallback = null;
106106
impressionListener = null;
107107
onRewardEarnedListener = null;

0 commit comments

Comments
 (0)