Skip to content

Commit cf15d4b

Browse files
committed
Release 4.4.1
1 parent 94a2465 commit cf15d4b

File tree

15 files changed

+46
-34
lines changed

15 files changed

+46
-34
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 4.4.1
2+
- Updated CAS [Android](https://github.com/cleveradssolutions/CAS-Android/releases) and [iOS](https://github.com/cleveradssolutions/CAS-iOS/releases) dependencies to 4.4.1
3+
- Renamed `AdError.rejected` to `AdError.codeRejected` for consistency with other error codes.
4+
- Migration to the new [Developer Docs](https://docs.page/cleveradssolutions/docs/Flutter)
5+
16
## 4.3.0
27
### Major changes
38
- Version bumped to 4.3 to align with native SDK versions.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [yyyy] [name of copyright owner]
189+
Copyright 2025 CleverAdsSolutions LTD, CAS.AI
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# CAS.AI Mobile Ads for Flutter
22
[![Pub Version](https://img.shields.io/pub/v/clever_ads_solutions)](https://pub.dev/packages/clever_ads_solutions/versions)
3-
[![App-ads.txt](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/cleveradssolutions/App-ads.txt/master/Shield.json)](https://github.com/cleveradssolutions/App-ads.txt)
43
![Platform](https://img.shields.io/badge/platform-Android%20%7C%20iOS-blue.svg)
4+
[![App-ads.txt](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/cleveradssolutions/App-ads.txt/master/Shield.json)](https://github.com/cleveradssolutions/App-ads.txt)
5+
56

67
The CAS.AI Mobile Ads SDK (by CleverAdsSolutions) offers advanced mobile advertising capabilities with refined ad formats and streamlined APIs to access multiple ad networks and maximize monetization in mobile apps.
78

89
This repository contains the official Flutter plugin for CAS.AI, allowing Flutter developers to easily integrate and monetize their apps using the CAS.AI SDK.
910

1011
## Documentation
11-
For setup instructions, usage examples, and API details, refer to the [Developer Guide on our Wiki](https://github.com/cleveradssolutions/CAS-Flutter/wiki).
12+
For setup instructions, usage examples, and API details, refer to the [Developer Guide](https://docs.page/cleveradssolutions/docs/Flutter).
1213

1314
## Downloads
1415
Visit [pub.dev](https://pub.dev/packages/clever_ads_solutions/versions) to get the latest version of the plugin.

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group = 'com.cleveradssolutions.plugin.flutter'
2-
version = '4.3.0'
2+
version = '4.4.1'
33

44
buildscript {
55
ext.kotlin_version = '2.0.21'
@@ -90,6 +90,6 @@ android {
9090
}
9191

9292
dependencies {
93-
implementation 'com.cleveradssolutions:cas-sdk:4.3.0'
93+
implementation 'com.cleveradssolutions:cas-sdk:4.4.1'
9494
}
9595
}

android/src/main/kotlin/com/cleveradssolutions/plugin/flutter/CASMobileAdsPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import io.flutter.plugin.common.MethodCall
2121
import io.flutter.plugin.common.MethodChannel
2222
import io.flutter.plugin.common.StandardMethodCodec
2323

24-
private const val PLUGIN_VERSION = "4.3.0"
24+
private const val PLUGIN_VERSION = "4.4.1"
2525
private const val DEFAULT_KEY = "value"
2626

2727
class CASMobileAdsPlugin : FlutterPlugin, ActivityAware, MethodChannel.MethodCallHandler {

example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
id "kotlin-android"
44
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
55
id "dev.flutter.flutter-gradle-plugin"
6-
id("com.cleveradssolutions.gradle-plugin") version "4.3.0"
6+
id("com.cleveradssolutions.gradle-plugin") version "4.4.1"
77
}
88

99
cas {

example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ platform :ios, '13.0'
33
source 'https://cdn.cocoapods.org/'
44
source 'https://github.com/cleveradssolutions/CAS-Specs.git'
55

6-
$casVersion = '4.3.0'
6+
$casVersion = '4.4.1'
77

88
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
99
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

ios/Classes/CASMobileAdsPlugin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import CleverAdsSolutions
22
import Flutter
33

4-
private let pluginVersion = "4.3.0"
4+
private let pluginVersion = "4.4.1"
55
private let defaultKey = "value"
66

77
@objc(CASMobileAdsPlugin)

ios/clever_ads_solutions.podspec

Lines changed: 2 additions & 2 deletions
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 = '4.3.0'
7+
s.version = '4.4.1'
88
s.summary = 'CAS.AI plugin for Flutter.'
99
s.description = <<-DESC
1010
CAS.AI Mobile Ads plugin for Flutter.
@@ -20,7 +20,7 @@ CAS.AI Mobile Ads plugin for Flutter.
2020
s.static_framework = true
2121

2222
s.dependency 'Flutter'
23-
s.dependency 'CleverAdsSolutions-Base', '~> 4.3.0'
23+
s.dependency 'CleverAdsSolutions-Base', '~> 4.4.1'
2424

2525
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS' => 'armv7 arm64 x86_64' }
2626
end

lib/src/ad_error.dart

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
/// To see the error code, see AdError.code.
2-
/// To see a description of the error, see AdError.message.
3-
/// See CODE constants for a list of error codes.
1+
/// Use [code] to retrieve the error code.
2+
/// Use [message] to get a human-readable error description.
3+
/// See `code` constants for all available error codes.
44
class AdError implements Comparable<int> {
55
/// Indicates an internal error occurred.
66
static const int codeInternalError = 0;
77

8+
/// Indicates that ads are not ready to be shown.
9+
/// Ensure to call the appropriate ad loading method or use automatic cache mode.
10+
/// If using automatic load mode, wait a little longer for ads to be ready.
11+
static const int codeNotReady = 1;
12+
813
/// Indicates that the device is rejected for services.
914
/// Services may not be available for some devices that do not meet the requirements.
1015
/// For example, the country or version of the OS.
11-
static const int rejected = 2;
16+
static const int codeRejected = 2;
1217

1318
/// Indicates that no ads are available to be served.
1419
/// If ads are visible in demo mode, your implementation is correct, and ads will be served once live.
1520
static const int codeNoFill = 3;
1621

17-
/// Indicates that ads are not ready to be shown.
18-
/// Ensure to call the appropriate ad loading method or use automatic cache mode.
19-
/// If using automatic load mode, wait a little longer for ads to be ready.
20-
static const int codeNotReady = 1;
21-
2222
/// Indicates that the ad creative has reached its daily cap for the user.
2323
/// This is typically relevant for cross-promotion ads only.
2424
static const int codeReachedCap = 6;
@@ -77,4 +77,8 @@ class AdError implements Comparable<int> {
7777

7878
@override
7979
int compareTo(int other) => code.compareTo(other);
80+
81+
/// Renamed to [codeRejected]
82+
@Deprecated("Renamed to codeRejected")
83+
static const int rejected = codeRejected;
8084
}

0 commit comments

Comments
 (0)