Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nakajima committed Aug 28, 2023
1 parent 9978bb8 commit 5f89f12
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.DS_Store
.build/*
.swiftpm
32 changes: 31 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
<<<<<<< Updated upstream
// swift-tools-version:5.9
import PackageDescription
=======
import Foundation
// swift-tools-version:5.3
>>>>>>> Stashed changes
import PackageDescription

let package = Package(
<<<<<<< Updated upstream
name: "LibXMTP",
platforms: [
.iOS(.v13),
Expand All @@ -23,4 +28,29 @@ let package = Package(
name: "LibXMTPRust",
path: "./LibXMTPRust.xcframework")
]
=======
name: "LibXMTP",
platforms: [
.iOS(.v13),
.macOS(.v11),
],
products: [
.library(
name: "LibXMTP",
targets: ["LibXMTP", "LibXMTPRust"]
),
],
targets: [
.target(
name: "LibXMTP",
dependencies: ["LibXMTPRust"],
path: "Sources/LibXMTP"
),
.binaryTarget(
name: "LibXMTPRust",
path: "LibXMTPRust.xcframework"
),
.testTarget(name: "LibXMTPTests", dependencies: ["LibXMTP"]),
]
>>>>>>> Stashed changes
)
2 changes: 0 additions & 2 deletions Sources/LibXMTP/xmtpv3.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import LibXMTPRust

// This file was autogenerated by some hot garbage in the `uniffi` crate.
// Trust me, you don't want to mess with it!
import Foundation
Expand Down
8 changes: 8 additions & 0 deletions Tests/LibXMTPTests/LibXMTPTest.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@testable import LibXMTP
import XCTest

final class LibXMTPTests: XCTestCase {
func testExample() throws {
XCTAssertEqual(true, true)
}
}

0 comments on commit 5f89f12

Please sign in to comment.