Skip to content

Commit

Permalink
bump sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
Evanfeenstra committed Apr 25, 2024
1 parent 9ace668 commit 934a7e6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx-ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ sphinx-signer = { path = "../signer", default-features = false, features = [
"no-native",
] }
sphinx-glyph = { path = "../glyph", default-features = false }
sphinx = { git = "https://github.com/stakwork/sphinx", rev = "138c94f2ce3eb1cf69f8d8094e7eaa01b1553392", features = [
sphinx = { git = "https://github.com/stakwork/sphinx", rev = "7dfa3f4796b67aa9e68265674e0276e366182d3d", features = [
"msg",
"bindings",
] }
Expand Down
13 changes: 13 additions & 0 deletions sphinx-ffi/build-bindings.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
echo "=> creating swift bindings"
cargo run --features=uniffi/cli --bin uniffi-bindgen generate src/sphinxrs.udl --language swift

echo "=> creating swift bindings"
sed -i '' 's/module\ sphinxrsFFI/framework\ module\ sphinxrsFFI/' src/sphinxrsFFI.modulemap



echo "=> creating kotlin bindings"
cargo run --features=uniffi/cli --bin uniffi-bindgen generate src/sphinxrs.udl --language kotlin

echo "=> renaming uniffi_sphinxrs to sphinxrs"
sed -i '' 's/return "uniffi_sphinxrs"/return "sphinxrs"/' src/uniffi/sphinxrs/sphinxrs.kt

0 comments on commit 934a7e6

Please sign in to comment.