From eecaa63460337751f10d5446eb978555198f7c0d Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sun, 8 Dec 2024 14:20:24 +0000 Subject: [PATCH] Release Flutter SDK 3.0.1 --- CHANGELOG.md | 7 ++++++- .../IronSourceMediationPlugin.kt | 9 ++++++--- example/pubspec.yaml | 1 + ios/ironsource_mediation.podspec | 2 +- lib/src/models/level_play_init_request.dart | 2 +- lib/src/utils/ironsource_constants.dart | 2 +- pubspec.yaml | 12 ++---------- 7 files changed, 18 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f7b4a1..b20bd55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/android/src/main/kotlin/com/ironSource/ironsource_mediation/IronSourceMediationPlugin.kt b/android/src/main/kotlin/com/ironSource/ironsource_mediation/IronSourceMediationPlugin.kt index 72c3e03..f3219fe 100644 --- a/android/src/main/kotlin/com/ironSource/ironsource_mediation/IronSourceMediationPlugin.kt +++ b/android/src/main/kotlin/com/ironSource/ironsource_mediation/IronSourceMediationPlugin.kt @@ -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? ?: listOf() + val userId = call.argument("userId") as String? val legacyAdFormats: List = adFormats.map { when (it) { "REWARDED" -> LevelPlay.AdFormat.REWARDED @@ -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!!) diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 0124ab5..8ef98cb 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -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. diff --git a/ios/ironsource_mediation.podspec b/ios/ironsource_mediation.podspec index 8fe6f6f..8f684e1 100644 --- a/ios/ironsource_mediation.podspec +++ b/ios/ironsource_mediation.podspec @@ -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 diff --git a/lib/src/models/level_play_init_request.dart b/lib/src/models/level_play_init_request.dart index de795dd..a767c14 100644 --- a/lib/src/models/level_play_init_request.dart +++ b/lib/src/models/level_play_init_request.dart @@ -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() }; } diff --git a/lib/src/utils/ironsource_constants.dart b/lib/src/utils/ironsource_constants.dart index 01041cb..d40e31d 100644 --- a/lib/src/utils/ironsource_constants.dart +++ b/lib/src/utils/ironsource_constants.dart @@ -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'; diff --git a/pubspec.yaml b/pubspec.yaml index af31417..4a60920 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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