Skip to content

Commit 94cba0f

Browse files
committed
Release 0.8.3
1 parent 91e0f3b commit 94cba0f

29 files changed

+149
-98
lines changed

.pubignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/pubspec.lock
2+
/tools
3+
Podfile.lock
4+
build/

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.8.3
2+
- Wraps 4.1.0 [Android](https://github.com/cleveradssolutions/CAS-Android/releases) and [iOS](https://github.com/cleveradssolutions/CAS-iOS/releases) SDK.
3+
- Resolved all Flutter/Dart static analysis warnings.
4+
15
## 0.8.2
26
### Features
37
- Wraps [iOS](https://github.com/cleveradssolutions/CAS-iOS/releases) 4.0.2.1 SDK.

android/build.gradle

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

44
buildscript {
55
ext.kotlin_version = '1.8.22'
@@ -92,6 +92,5 @@ android {
9292
}
9393

9494
dependencies {
95-
implementation 'com.cleveradssolutions:cas-sdk:4.0.2'
96-
implementation 'com.google.android.ump:user-messaging-platform:3.2.0'
95+
implementation 'com.cleveradssolutions:cas-sdk:4.1.0'
9796
}

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.0.2"
6+
id("com.cleveradssolutions.gradle-plugin") version "4.1.0"
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.0.2.1'
6+
$casVersion = '4.1.0'
77

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

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 = '0.8.2'
7+
s.version = '0.8.3'
88
s.summary = 'CAS.AI plugin for Flutter.'
99
s.description = <<-DESC
1010
CAS.AI plugin for Flutter.
@@ -20,7 +20,7 @@ CAS.AI plugin for Flutter.
2020
s.static_framework = true
2121

2222
s.dependency 'Flutter'
23-
s.dependency 'CleverAdsSolutions-Base', '~> 4.0.2.1'
23+
s.dependency 'CleverAdsSolutions-Base', '4.1.0'
2424

2525
# Flutter.framework does not contain a i386 slice.
2626
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }

lib/src/ad_size.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,29 @@ abstract class AdSize {
77
static const AdSize banner = AdSizeImpl(320, 50);
88

99
@Deprecated("Use AdSize.banner instead")
10+
// ignore: constant_identifier_names
1011
static const AdSize Banner = banner;
1112

1213
/// Leaderboard banner size 728dp width and 90dp height
1314
static const AdSize leaderboard = AdSizeImpl(728, 90);
1415

1516
@Deprecated("Use AdSize.leaderboard instead")
17+
// ignore: constant_identifier_names
1618
static const AdSize Leaderboard = leaderboard;
1719

1820
/// Medium Rectangle size 300dp width and 250dp height
1921
static const AdSize mediumRectangle = AdSizeImpl(300, 250);
2022

2123
@Deprecated("Use AdSize.mediumRectangle instead")
24+
// ignore: constant_identifier_names
2225
static const AdSize MediumRectangle = mediumRectangle;
2326

2427
@Deprecated("Use AdSize.getAdaptiveBanner() instead")
28+
// ignore: constant_identifier_names
2529
static const AdSize Adaptive = AdSizeImpl(-1, -1, 2);
2630

2731
@Deprecated("Use AdSize.getSmartBanner() instead")
32+
// ignore: constant_identifier_names
2833
static const AdSize Smart = AdSizeImpl(-2, -2);
2934

3035
int get width;

lib/src/ad_type.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
enum AdType {
2+
// ignore: constant_identifier_names
23
Banner,
4+
// ignore: constant_identifier_names
35
Interstitial,
6+
// ignore: constant_identifier_names
47
Rewarded;
58

69
static AdType get(int index) {

lib/src/ad_types.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ class AdTypeFlags {
77
static const int appOpen = 1 << 6;
88

99
@Deprecated("Use AdTypeFlags.banner instead")
10+
// ignore: constant_identifier_names
1011
static const int Banner = banner;
1112
@Deprecated("Use AdTypeFlags.interstitial instead")
13+
// ignore: constant_identifier_names
1214
static const int Interstitial = interstitial;
1315
@Deprecated("Use AdTypeFlags.rewarded instead")
16+
// ignore: constant_identifier_names
1417
static const int Rewarded = rewarded;
1518
}

lib/src/ads_settings.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,22 @@ abstract class AdsSettings {
2727
/// to determine the consent status of the IAB vendor with the provided ID.
2828
///
2929
/// @param vendorId Vendor ID as defined in the Global Vendor List.
30-
/// @return [ConsentStatus.ACCEPTED] if the advertising entity has consent, [ConsentStatus.DENIED] if not, or [ConsentStatus.UNDEFINED] if VendorConsents is not available on disk.
30+
/// @return [ConsentStatus.accepted] if the advertising entity has consent, [ConsentStatus.denied] if not, or [ConsentStatus.undefined] if VendorConsents is not available on disk.
3131
/// @see <a href="https://iabeurope.eu/vendor-list-tcf/">TCF Vendor List</a>
3232
Future<ConsentStatus> getVendorConsent(int vendorId);
3333

3434
/// Parses the [SharedPreferences] string with key `IABTCF_AddtlConsent`
3535
/// to determine the consent status of the advertising entity with the provided Ad Technology Provider (ATP) ID.
3636
///
3737
/// @param providerId ATP ID of the advertising entity (e.g. 89 for Meta Audience Network).
38-
/// @return [ConsentStatus.ACCEPTED] if the advertising entity has consent, [ConsentStatus.DENIED] if not, or [ConsentStatus.UNDEFINED] if AddtlConsent is not available on disk.
38+
/// @return [ConsentStatus.accepted] if the advertising entity has consent, [ConsentStatus.denied] if not, or [ConsentStatus.undefined] if AddtlConsent is not available on disk.
3939
/// @see <a href="https://support.google.com/admanager/answer/9681920">Google’s Additional Consent Mode technical specification</a>
4040
/// @see <a href="https://storage.googleapis.com/tcfac/additional-consent-providers.csv">List of Google ATPs and their IDs</a>
4141
Future<ConsentStatus> getAdditionalConsent(int providerId);
4242

4343
/// Whether or not user has opted out of the sale of their personal information.
4444
///
45-
/// Default: [CCPAStatus.UNDEFINED]
45+
/// Default: [CCPAStatus.undefined]
4646
/// See [CCPAStatus]
4747
Future<CCPAStatus> getCPPAStatus();
4848

@@ -79,7 +79,7 @@ abstract class AdsSettings {
7979
/// "To get test ads on this device, set ... "
8080
/// 3. Copy your alphanumeric test device ID to your clipboard.
8181
/// 4. Add the test device ID to the list before call initialize MediationManager.
82-
Future<void> setTestDeviceId(String deviceIds);
82+
Future<void> setTestDeviceId(String deviceId);
8383

8484
/// See [setTestDeviceId]
8585
Future<void> setTestDeviceIds(Set<String> deviceIds);

0 commit comments

Comments
 (0)