Skip to content

Commit ec02002

Browse files
committed
Add AndroidNative target
1 parent 5fcee82 commit ec02002

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

Package.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ import PackageDescription
44
let package = Package(
55
name: "swift-android-native",
66
products: [
7+
.library(name: "AndroidNative", targets: ["AndroidNative"]),
78
.library(name: "AndroidLogging", targets: ["AndroidLogging"])
89
],
910
targets: [
1011
.systemLibrary(name: "AndroidNDK"),
12+
.target(name: "AndroidNative", dependencies: ["AndroidLogging"]),
13+
.testTarget(name: "AndroidNativeTests", dependencies: ["AndroidNative"]),
1114
.target(name: "AndroidLogging", dependencies: [.target(name: "AndroidNDK", condition: .when(platforms: [.android]))]),
12-
.testTarget(name: "AndroidLoggingTests", dependencies: [.target(name: "AndroidLogging")])
15+
.testTarget(name: "AndroidLoggingTests", dependencies: ["AndroidLogging"])
1316
]
1417
)

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,8 @@ function.
8484
### Limitations
8585

8686
- `OSLogMessage` is simply a typealias to `Swift.String`, and does not implement any of the [redaction features](https://developer.apple.com/documentation/os/logging/generating_log_messages_from_your_code#3665948) of the Darwin version.
87-
-
8887

89-
## License
88+
# License
9089

9190
Licensed under the Apache 2.0 license with a runtime library exception,
9291
meaning you do not need to attribute the project in your application.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@_exported import AndroidLogging
2+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import XCTest
2+
import AndroidNative
3+
4+
class AndroidNativeTests : XCTestCase {
5+
public func testAndroidNative() {
6+
XCTAssertEqual(1 + 2, 3)
7+
}
8+
}

0 commit comments

Comments
 (0)