Skip to content

Commit

Permalink
Release Flutter SDK 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions committed Dec 8, 2024
1 parent d2e51f2 commit eecaa63
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 17 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
## 3.0.0
## 3.0.1 , 2024

- Android SDK: 8.4.0
- iOS SDK: 8.4.0

## 3.0.0 , 2024

- Android SDK: 8.4.0
- iOS SDK: 8.4.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,7 @@ class IronSourceMediationPlugin : FlutterPlugin, MethodCallHandler, ActivityAwar
}
val appKey = call.argument("appKey") as String? ?: return result.error("ERROR", "appKey is null", null)
val adFormats = call.argument("adFormats") as List<String>? ?: listOf()
val userId = call.argument("userId") as String?
val legacyAdFormats: List<LevelPlay.AdFormat> = adFormats.map {
when (it) {
"REWARDED" -> LevelPlay.AdFormat.REWARDED
Expand All @@ -896,9 +897,11 @@ class IronSourceMediationPlugin : FlutterPlugin, MethodCallHandler, ActivityAwar
else -> return@initLevelPlay result.error("ERROR", "Unsupported ad format: $it", null)
}
}.toList()
val initRequest = LevelPlayInitRequest.Builder(appKey)
.withLegacyAdFormats(legacyAdFormats)
.build()
val requestBuilder = LevelPlayInitRequest.Builder(appKey)
requestBuilder.withLegacyAdFormats(legacyAdFormats)
if (userId != null)
requestBuilder.withUserId(userId)
val initRequest = requestBuilder.build()

LevelPlay.init(context!!, initRequest, mLevelPlayInitListener!!)

Expand Down
1 change: 1 addition & 0 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: ironsource_mediation_example
description: Demonstrates how to use the ironsource_mediation plugin.
version: 3.0.1

# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
Expand Down
2 changes: 1 addition & 1 deletion ios/ironsource_mediation.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
Pod::Spec.new do |s|
s.name = 'ironsource_mediation'
s.version = '2.0.0'
s.version = '3.0.1'
s.summary = 'The Leading Mobile Advertising Technology Platform'
s.description = <<-DESC
Monetize & Promote Your Apps
Expand Down
2 changes: 1 addition & 1 deletion lib/src/models/level_play_init_request.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class LevelPlayInitRequest {
return {
'appKey': appKey,
'userId': userId,
'legacyAdFormats': legacyAdFormats.map((unit) => unit.value).toList()
'adFormats': legacyAdFormats.map((unit) => unit.value).toList()
};
}

Expand Down
2 changes: 1 addition & 1 deletion lib/src/utils/ironsource_constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
class IronConst {
static const String METHOD_CHANNEL = 'ironsource_mediation';
static const String PLUGIN_TYPE = 'Flutter';
static const String PLUGIN_VERSION = '3.0.0';
static const String PLUGIN_VERSION = '3.0.1';
static const String ANDROID_SDK_VERSION = '8.4.0';
static const String IOS_SDK_VERSION = '8.4.0';

Expand Down
12 changes: 2 additions & 10 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
name: ironsource_mediation
description: >-
The IronSource Flutter SDK Bridge is a plugin that allows seamless integration of
IronSource's robust ad mediation platform into Flutter applications.
This plugin enables developers to monetize their apps with various
ad formats, including rewarded video, interstitial, banner, and native ads.
It provides easy-to-use APIs for ad management and event handling, ensuring
a smooth and efficient monetization experience. For additional information check
Flutter documentation on our site.
version: 3.0.0
description: IronSource ad mediation Flutter plugin. Monetize apps with rewarded video, interstitial, banner, and native ads.
version: 3.0.1
homepage: https://is.com
documentation: https://developers.is.com/ironsource-mobile/flutter/flutter-plugin/
repository: https://github.com/ironsource-mobile/Flutter-SDK
Expand Down

0 comments on commit eecaa63

Please sign in to comment.