Skip to content

Commit

Permalink
ffi: fix swift package
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Kishimoto <[email protected]>
  • Loading branch information
yukibtc committed Nov 5, 2024
1 parent 008c68b commit 4f076ba
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 18 deletions.
2 changes: 0 additions & 2 deletions bindings/nostr-sdk-ffi/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ x86_64-linux-android: ndk
android: aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android

kotlin: clean-android android
find ./ffi/kotlin/jniLibs -name libnostr_ffi.so -type f -delete
cargo run -p uniffi-bindgen generate --library ../../target/x86_64-linux-android/release/libnostr_sdk_ffi.so --language kotlin --no-format -o ffi/kotlin

# Copy required modules and libs and assemble AAR
Expand Down Expand Up @@ -111,7 +110,6 @@ swift-darwin: darwin-universal
assemble-swift-package:
mkdir -p swift/Sources/NostrSDK
cargo run -p uniffi-bindgen generate --library ../../target/aarch64-apple-ios/release/libnostr_sdk_ffi.a --no-format --language swift --out-dir swift/Sources/NostrSDK
mv swift/Sources/NostrSDK/nostr_ffi.swift swift/Sources/NostrSDK/Nostr.swift
mv swift/Sources/NostrSDK/nostr_sdk_ffi.swift swift/Sources/NostrSDK/NostrSDK.swift
cp swift/Sources/NostrSDK/*.h swift/nostr_sdkFFI.xcframework/ios-arm64/Headers
cp swift/Sources/NostrSDK/*.h swift/nostr_sdkFFI.xcframework/ios-arm64_x86_64-simulator/Headers
Expand Down
1 change: 0 additions & 1 deletion bindings/nostr-sdk-ffi/python/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ libnostr_sdk_ffi.dylib

*.swp

src/nostr-sdk/nostr_ffi.py
src/nostr-sdk/nostr_sdk_ffi.py
src/nostr-sdk/*.so
*.whl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
module nostrFFI {
header "nostrFFI.h"
export *
}

module nostr_sdkFFI {
header "nostr_sdkFFI.h"
export *
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
module nostrFFI {
header "nostrFFI.h"
export *
}

module nostr_sdkFFI {
header "nostr_sdkFFI.h"
export *
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
module nostrFFI {
header "nostrFFI.h"
export *
}

module nostr_sdkFFI {
header "nostr_sdkFFI.h"
export *
Expand Down

0 comments on commit 4f076ba

Please sign in to comment.