Skip to content

Commit

Permalink
Merge branch 'main' into ironsourceAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
LTPhantom committed Apr 10, 2024
2 parents 869002a + 3c2336a commit 6cda509
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ android {
namespace 'io.flutter.plugins.googlemobileads.mediation.gma_mediation_ironsource'
}

compileSdk 33
compileSdk 34

compileOptions {
sourceCompatibility JavaVersion.VERSION_11
Expand Down Expand Up @@ -79,5 +79,4 @@ android {
unitTests.returnDefaultValues = true
}
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import Flutter
import UIKit
import XCTest

@testable import gma_mediation_ironsource

// This demonstrates a simple unit test of the Swift portion of this plugin's implementation.
//
// See https://developer.apple.com/documentation/xctest for more information about using XCTest.

class RunnerTests: XCTestCase {

func testGetPlatformVersion() {
let plugin = GmaMediationIronsourcePlugin()

let call = FlutterMethodCall(methodName: "getPlatformVersion", arguments: [])

let resultExpectation = expectation(description: "result block must be called.")
plugin.handle(call) { result in
XCTAssertEqual(result as! String, "iOS " + UIDevice.current.systemVersion)
resultExpectation.fulfill()
}
waitForExpectations(timeout: 1)
}

}

0 comments on commit 6cda509

Please sign in to comment.