From a3e10ae3d6599948d171f25a6d169345a8564e5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ritzl?= Date: Thu, 30 May 2024 15:48:17 +0200 Subject: [PATCH 1/5] Init adquality sdk --- extension-ironsource/ext.properties | 2 +- extension-ironsource/manifests/android/build.gradle | 1 + .../src/java/com/defold/ironsource/IronSourceJNI.java | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/extension-ironsource/ext.properties b/extension-ironsource/ext.properties index 7642b62..1ff47e4 100644 --- a/extension-ironsource/ext.properties +++ b/extension-ironsource/ext.properties @@ -1,6 +1,6 @@ [iron_source] -version.default = 1.0.0 +version.default = 1.1.0 adcolony_android.type = string admob_android.private = 1 diff --git a/extension-ironsource/manifests/android/build.gradle b/extension-ironsource/manifests/android/build.gradle index e408219..25429f4 100644 --- a/extension-ironsource/manifests/android/build.gradle +++ b/extension-ironsource/manifests/android/build.gradle @@ -35,6 +35,7 @@ repositories { } dependencies { implementation 'com.ironsource.sdk:mediationsdk:7.7.0' + implementation 'com.ironsource:adqualitysdk:7.20.0' // Remove for AMAZON: // --- NOT AMAZON START --- diff --git a/extension-ironsource/src/java/com/defold/ironsource/IronSourceJNI.java b/extension-ironsource/src/java/com/defold/ironsource/IronSourceJNI.java index 0925e4e..7d20f85 100644 --- a/extension-ironsource/src/java/com/defold/ironsource/IronSourceJNI.java +++ b/extension-ironsource/src/java/com/defold/ironsource/IronSourceJNI.java @@ -18,6 +18,7 @@ import org.json.JSONObject; import org.json.JSONException; +import com.ironsource.adqualitysdk.sdk.IronSourceAdQuality; import com.ironsource.mediationsdk.IronSource; import com.ironsource.mediationsdk.integration.IntegrationHelper; import com.ironsource.mediationsdk.sdk.LevelPlayRewardedVideoListener; @@ -66,6 +67,7 @@ public IronSourceJNI(Activity activity, String version, String extVersion) { } public void init(String appKey) { + IronSourceAdQuality.getInstance().initialize(activity, appKey); IronSource.setLevelPlayRewardedVideoListener(new DefoldLevelPlayRewardedVideoListener()); IronSource.setLevelPlayInterstitialListener(new DefoldLevelPlayInterstitialListener()); //TODO: add AD Units android.app.Activity, java.lang.String, com.ironsource.mediationsdk.sdk.InitializationListener, com.ironsource.mediationsdk.IronSource$AD_UNIT... From c3550b3f6b3e0c89caecde2e29d47d495d9de146 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ritzl?= Date: Thu, 30 May 2024 15:51:15 +0200 Subject: [PATCH 2/5] iOS --- extension-ironsource/src/ironsource_ios.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/extension-ironsource/src/ironsource_ios.mm b/extension-ironsource/src/ironsource_ios.mm index 5f7a9fd..e121ade 100644 --- a/extension-ironsource/src/ironsource_ios.mm +++ b/extension-ironsource/src/ironsource_ios.mm @@ -238,6 +238,7 @@ void Initialize_Ext(const char* version, const char* extVersion) { } void Init(const char* appKey) { + [[IronSourceAdQuality getInstance] initializeWithAppKey:appKey]; [IronSource initWithAppKey:[NSString stringWithUTF8String:appKey] delegate:ironSourceExtInitAdDelegate]; } From 2a360e91e97bc174e20077dc6a8fe43b75e3ca6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ritzl?= Date: Fri, 31 May 2024 08:13:21 +0200 Subject: [PATCH 3/5] Update ironsource_ios.mm --- extension-ironsource/src/ironsource_ios.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/extension-ironsource/src/ironsource_ios.mm b/extension-ironsource/src/ironsource_ios.mm index e121ade..bc35365 100644 --- a/extension-ironsource/src/ironsource_ios.mm +++ b/extension-ironsource/src/ironsource_ios.mm @@ -5,6 +5,7 @@ #include #import #import "IronSource/IronSource.h" +#import "IronSourceAdQuality.h" #if __has_include() #import From 8adaa0aaa56d673da08d1ac11aca9a63c8c790a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ritzl?= Date: Fri, 31 May 2024 08:15:10 +0200 Subject: [PATCH 4/5] Update Podfile --- extension-ironsource/manifests/ios/Podfile | 1 + 1 file changed, 1 insertion(+) diff --git a/extension-ironsource/manifests/ios/Podfile b/extension-ironsource/manifests/ios/Podfile index f94fda3..a4556d6 100644 --- a/extension-ironsource/manifests/ios/Podfile +++ b/extension-ironsource/manifests/ios/Podfile @@ -1,5 +1,6 @@ platform :ios, '13.0' pod 'IronSourceSDK','7.7.0.0' +pod 'IronSourceAdQualitySDK','7.20.0' {{#iron_source.applovin_ios}} pod 'IronSourceAppLovinAdapter','4.3.42.1' From e58118829db660d9dce26669f5f705259235b6db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ritzl?= Date: Fri, 31 May 2024 10:21:20 +0200 Subject: [PATCH 5/5] iOS fixes --- extension-ironsource/manifests/ios/Info.plist | 2 +- extension-ironsource/src/ironsource_ios.mm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extension-ironsource/manifests/ios/Info.plist b/extension-ironsource/manifests/ios/Info.plist index 4f2b1be..59a537b 100644 --- a/extension-ironsource/manifests/ios/Info.plist +++ b/extension-ironsource/manifests/ios/Info.plist @@ -1,5 +1,5 @@ - + ]> SKAdNetworkItems diff --git a/extension-ironsource/src/ironsource_ios.mm b/extension-ironsource/src/ironsource_ios.mm index bc35365..1d60dcb 100644 --- a/extension-ironsource/src/ironsource_ios.mm +++ b/extension-ironsource/src/ironsource_ios.mm @@ -239,7 +239,7 @@ void Initialize_Ext(const char* version, const char* extVersion) { } void Init(const char* appKey) { - [[IronSourceAdQuality getInstance] initializeWithAppKey:appKey]; + [[IronSourceAdQuality getInstance] initializeWithAppKey:[NSString stringWithUTF8String:appKey]]; [IronSource initWithAppKey:[NSString stringWithUTF8String:appKey] delegate:ironSourceExtInitAdDelegate]; }