diff --git a/.gitignore b/.gitignore index 263ad4e..a2a66b6 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /android/build/ /ios/libzcashlc.xcframework/ /ios/ZCashLightClientKit/ +/ios/zcashlc.h /lib/ /tmp/ diff --git a/CHANGELOG.md b/CHANGELOG.md index c2e290f..79a7917 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +- fixed: Add a missing header file to the podspec. + ## 0.7.2 (2024-05-17) - fixed: Pause synchronizer events until JavaScript is ready to receive them. diff --git a/ios/react-native-zcash-Bridging-Header.h b/ios/react-native-zcash-Bridging-Header.h index 508a9db..db2af43 100644 --- a/ios/react-native-zcash-Bridging-Header.h +++ b/ios/react-native-zcash-Bridging-Header.h @@ -1,2 +1,2 @@ #import -#include "ZCashLightClientKit/Rust/zcashlc.h" +#include "zcashlc.h" diff --git a/react-native-zcash.podspec b/react-native-zcash.podspec index ebe324f..1084086 100644 --- a/react-native-zcash.podspec +++ b/react-native-zcash.podspec @@ -19,6 +19,7 @@ Pod::Spec.new do |s| "ios/react-native-zcash-Bridging-Header.h", "ios/RNZcash.m", "ios/RNZcash.swift", + "ios/zcashlc.h", "ios/ZCashLightClientKit/**/*.swift" s.resource_bundles = { "zcash-mainnet" => "ios/ZCashLightClientKit/Resources/checkpoints/mainnet/*.json", diff --git a/scripts/updateSources.ts b/scripts/updateSources.ts index 29bb291..f61a9eb 100644 --- a/scripts/updateSources.ts +++ b/scripts/updateSources.ts @@ -114,7 +114,7 @@ async function copySwift(): Promise { // Copy the Rust header into the Swift location: await disklet.setText( - 'ios/ZCashLightClientKit/Rust/zcashlc.h', + 'ios/zcashlc.h', await disklet.getText( 'tmp/zcash-light-client-ffi/releases/XCFramework/libzcashlc.xcframework/ios-arm64/libzcashlc.framework/Headers/zcashlc.h' )