Skip to content

Commit

Permalink
Merge pull request #26 from defold/issue-20-adquality-sdk
Browse files Browse the repository at this point in the history
AdQuality SDK
  • Loading branch information
britzl authored May 31, 2024
2 parents 6f5197b + e581188 commit bf8c39f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extension-ironsource/ext.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[iron_source]

version.default = 1.0.0
version.default = 1.1.0
adcolony_android.type = string

admob_android.private = 1
Expand Down
1 change: 1 addition & 0 deletions extension-ironsource/manifests/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 ---
Expand Down
2 changes: 1 addition & 1 deletion extension-ironsource/manifests/ios/Info.plist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd" [ <!ATTLIST key merge (keep) #IMPLIED> ]>
<plist version="1.0">
<dict>
<key merge='keep'>SKAdNetworkItems</key>
Expand Down
1 change: 1 addition & 0 deletions extension-ironsource/manifests/ios/Podfile
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 2 additions & 0 deletions extension-ironsource/src/ironsource_ios.mm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "IronSource/IronSource.h"
#import "IronSourceAdQuality.h"

#if __has_include(<AppTrackingTransparency/ATTrackingManager.h>)
#import <AppTrackingTransparency/ATTrackingManager.h>
Expand Down Expand Up @@ -238,6 +239,7 @@ void Initialize_Ext(const char* version, const char* extVersion) {
}

void Init(const char* appKey) {
[[IronSourceAdQuality getInstance] initializeWithAppKey:[NSString stringWithUTF8String:appKey]];
[IronSource initWithAppKey:[NSString stringWithUTF8String:appKey] delegate:ironSourceExtInitAdDelegate];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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...
Expand Down

0 comments on commit bf8c39f

Please sign in to comment.