@@ -15,7 +15,7 @@ from scratch.
15
15
### Prerequisites
16
16
17
17
- A machine running macOS
18
- - Xcode 13.2.1 or lower (this is because there is a bug with ` cc ` that prevents it from compiling for Mac Catalyst targets with clang 13)
18
+ - [ Xcode 13.2.1] ( https://xcodereleases.com/ ) or lower (this is because there is a bug with ` cc ` that prevents it from compiling for Mac Catalyst targets with clang 13)
19
19
- [ Python3] ( https://programwithus.com/learn/python/install-python3-mac )
20
20
- [ Rust] ( https://www.rust-lang.org/tools/install )
21
21
- [ GNU sed] ( https://formulae.brew.sh/formula/gnu-sed ) (optional, but will cut your compile times significantly!)
@@ -36,13 +36,13 @@ In order to generate these bindings from scratch, you will need to clone two dep
36
36
** [ rust-lightning] ( https://github.com/lightningdevkit/rust-lightning ) ** , (a specific branch built for bindings compatibility):
37
37
38
38
``` shell
39
- git clone --branch 2022-06-108 -java-bindings https://github.com/TheBlueMatt/rust-lightning /path/to/rust-lightning
39
+ git clone --branch 2022-07-109 -java-bindings https://github.com/TheBlueMatt/rust-lightning /path/to/rust-lightning
40
40
```
41
41
42
42
** [ ldk-c-bindings] ( https://github.com/lightningdevkit/ldk-c-bindings ) ** :
43
43
44
44
``` shell
45
- git clone --branch v0.0.108.2 https://github.com/lightningdevkit/ldk-c-bindings /path/to/ldk-c-bindings
45
+ git clone --branch v0.0.109.0 https://github.com/lightningdevkit/ldk-c-bindings /path/to/ldk-c-bindings
46
46
```
47
47
48
48
Take note of where you clone these directories, it's best you save the absolute path somewhere handy for the rest of the remaining steps.
@@ -73,10 +73,11 @@ folder due to the previous `genbindings.sh` step. As Docker won't have access to
73
73
replace those lines with the following:
74
74
75
75
``` yaml
76
- lightning = { git = "https://github.com/thebluematt/rust-lightning", branch = "2021-03-java-bindings-base", default-features = false }
77
- lightning-persister = { git = "https://github.com/thebluematt/rust-lightning", branch = "2021-03-java-bindings-base", default-features = false }
78
- lightning-invoice = { git = "https://github.com/thebluematt/rust-lightning", branch = "2021-03-java-bindings-base", default-features = false }
79
- lightning-background-processor = { git = "https://github.com/thebluematt/rust-lightning", branch = "2021-03-java-bindings-base", default-features = false }
76
+ lightning = { git = "https://github.com/thebluematt/rust-lightning", branch = "2022-07-109-java-bindings", default-features = false }
77
+ lightning-persister = { git = "https://github.com/thebluematt/rust-lightning", branch = "2022-07-109-java-bindings", default-features = false }
78
+ lightning-invoice = { git = "https://github.com/thebluematt/rust-lightning", branch = "2022-07-109-java-bindings", default-features = false }
79
+ lightning-background-processor = { git = "https://github.com/thebluematt/rust-lightning", branch = "2022-07-109-java-bindings", default-features = false }
80
+ lightning-rapid-gossip-sync = { git = "https://github.com/thebluematt/rust-lightning", branch = "2022-07-109-java-bindings", default-features = false }
80
81
```
81
82
82
83
You will note that the revision is unspecified and is currently just placeholder ` xxx ` s. To obtain the revision,
@@ -136,7 +137,7 @@ Each of those folders will contain an `architectures` directory with subdirector
136
137
or ` x86_64 ` , as well as a ` libldk.a ` file, which is the ` lipo ` product of all the targeted
137
138
architectures.
138
139
139
- #### Generating the \* .xcframework files
140
+ ### Generating the \* .xcframework files
140
141
141
142
With all the binaries generated, still in the ` ./src/scripts ` directory, you just need to run one
142
143
last Python script to produce the framework:
0 commit comments