Skip to content

Commit 3d2d87c

Browse files
authored
initial upload (#2)
Signed-off-by: conanoc <[email protected]>
1 parent cac8735 commit 3d2d87c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+19588
-0
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.DS_Store
2+
/.build
3+
/Packages
4+
/*.xcodeproj
5+
xcuserdata/
6+
DerivedData/
7+
.swiftpm
8+
.netrc
9+
target/
10+
out/

Package.swift

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
// swift-tools-version: 5.7
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "aries-uniffi-wrappers",
6+
platforms: [
7+
.macOS(.v10_15),
8+
.iOS(.v15),
9+
],
10+
products: [
11+
.library(
12+
name: "Anoncreds",
13+
targets: ["Anoncreds"]),
14+
.library(
15+
name: "Askar",
16+
targets: ["Askar"]),
17+
.library(
18+
name: "IndyVdr",
19+
targets: ["IndyVdr"]),
20+
],
21+
dependencies: [
22+
],
23+
targets: [
24+
.target(
25+
name: "Anoncreds",
26+
dependencies: ["anoncreds_uniffiFFI"]),
27+
.testTarget(
28+
name: "AnoncredsTests",
29+
dependencies: ["Anoncreds"]),
30+
.binaryTarget(
31+
name: "anoncreds_uniffiFFI",
32+
path: "anoncreds/out/anoncreds_uniffiFFI.xcframework"),
33+
.target(
34+
name: "Askar",
35+
dependencies: ["askar_uniffiFFI"]),
36+
.testTarget(
37+
name: "AskarTests",
38+
dependencies: ["Askar"]),
39+
.binaryTarget(
40+
name: "askar_uniffiFFI",
41+
path: "askar/out/askar_uniffiFFI.xcframework"),
42+
.target(
43+
name: "IndyVdr",
44+
dependencies: ["indy_vdr_uniffiFFI"]),
45+
.testTarget(
46+
name: "IndyVdrTests",
47+
dependencies: ["IndyVdr"],
48+
resources: [
49+
.copy("resources/genesis_sov_buildernet.txn")
50+
]),
51+
.binaryTarget(
52+
name: "indy_vdr_uniffiFFI",
53+
path: "indy-vdr/out/indy_vdr_uniffiFFI.xcframework"),
54+
]
55+
)

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Aries uniffi wrappers
2+
3+
This repository contains the wrappers for the following libraries:
4+
- Aries Askar: https://github.com/hyperledger/aries-askar
5+
- AnonCreds Rust: https://github.com/hyperledger/anoncreds-rs
6+
- Indy VDR: https://github.com/hyperledger/indy-vdr
7+
8+
The wrappers are generated using [UniFFI](https://github.com/mozilla/uniffi-rs).
9+
UniFFI can generate several language bindings including Swift, Kotlin, and Python.
10+
Only the Swift bindings are currently supported.
11+
12+
## Usage
13+
14+
The Swift wrappers are distributed as a Swift Package.
15+
To use the wrappers in your project, add the following dependency to your `Package.swift`:
16+
```swift
17+
.package(url: "https://github.com/hyperledger/aries-uniffi-wrappers", from: "0.1.0"),
18+
```
19+
20+
And add the following dependency to your target:
21+
```swift
22+
.target(
23+
name: "MyTarget",
24+
dependencies: [
25+
.product(name: "AriesAskar", package: "aries-uniffi-wrappers"),
26+
.product(name: "AnonCreds", package: "aries-uniffi-wrappers"),
27+
.product(name: "IndyVdr", package: "aries-uniffi-wrappers"),
28+
]
29+
),
30+
```
31+
32+
Take a look at the tests in `Tests` folder for examples on how to use the wrappers.
33+
34+
## Contributing
35+
36+
Pull requests are welcome! We enforce [developer certificate of origin](https://developercertificate.org/) (DCO) commit signing. See guidance [here](https://github.com/apps/dco).
37+
38+
## License
39+
40+
Aries uniffi wrappers are licensed under the [Apache License 2.0](LICENSE).

0 commit comments

Comments
 (0)