Skip to content

Commit 4f90f06

Browse files
committed
Update test cases
1 parent 1dafc36 commit 4f90f06

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Copyright 2024 Skip
2+
//
3+
// This is free software: you can redistribute and/or modify it
4+
// under the terms of the GNU Lesser General Public License 3.0
5+
// as published by the Free Software Foundation https://fsf.org
6+
7+
import XCTest
8+
import OSLog
9+
import Foundation
10+
@testable import SkipAndroidSDKBridge
11+
12+
let logger: Logger = Logger(subsystem: "SkipAndroidBridge", category: "Tests")
13+
14+
@available(macOS 13, *)
15+
final class AndroidSDKBridgeTests: XCTestCase {
16+
func testAndroidSDKBridge() throws {
17+
if !isJava {
18+
XCTAssertNil(AndroidContext.shared, "AndroidContext.shared should be nil from unbridged Swift")
19+
} else {
20+
XCTAssertNotNil(AndroidContext.shared, "AndroidContext.shared should be non-nil in Kotlin")
21+
}
22+
}
23+
}

0 commit comments

Comments
 (0)