-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace cargo-swift with equivalent script (#15)
Building the framework with a shell script will (hopefully) make it clearer what's actually going on. Going forward it will also give us more control over the exact procedure like for instance whether to build universal binaries or support arm64 only. For example it's only necessary to build a single target on the CI when running unit tests (for now we build for all platforms on the CI). Last but not least it will allow us to remove a dependency that we don't actually need.
- Loading branch information
Showing
9 changed files
with
198 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
/target | ||
/generated | ||
/ConcordiumWalletCrypto |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* | ||
!*ignore | ||
!/Package.swift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// swift-tools-version:5.6 | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "ConcordiumWalletCrypto", | ||
platforms: [ | ||
.iOS(.v13), | ||
.macOS(.v10_15), | ||
], | ||
products: [ | ||
.library( | ||
name: "ConcordiumWalletCrypto", | ||
targets: ["ConcordiumWalletCrypto"] | ||
), | ||
], | ||
targets: [ | ||
.binaryTarget( | ||
name: "RustFramework", | ||
path: "./RustFramework.xcframework" | ||
), | ||
.target( | ||
name: "ConcordiumWalletCrypto", | ||
dependencies: [ | ||
.target(name: "RustFramework"), | ||
] | ||
), | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fn main() { | ||
uniffi::uniffi_bindgen_main() | ||
} |