Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix(ensu): ensure uniffi before binding checks

Prateek Sunal7b5e3cfdcca3
diff --git a/mobile/native/darwin/Apps/ensu/scripts/build-rust.sh b/mobile/native/darwin/Apps/ensu/scripts/build-rust.sh
index 2607ea2c81..ad83de3b85 100755
--- a/mobile/native/darwin/Apps/ensu/scripts/build-rust.sh
+++ b/mobile/native/darwin/Apps/ensu/scripts/build-rust.sh
@@ -104,9 +104,6 @@ ensure_generated_bindings() {
generate_swift_binding "${REPO_ROOT}/rust/uniffi/ensu/sync" "libsync.dylib"
}
-ensure_generated_bindings
-write_endpoint_config
-
if [ "$(uname -s)" = "Darwin" ]; then
HOST_LIB_EXT="dylib"
elif [ "$(uname -s)" = "Linux" ]; then
@@ -218,6 +215,8 @@ HOST_SDKROOT="$(xcrun --sdk macosx --show-sdk-path)"
export SDKROOT="${HOST_SDKROOT}"
ensure_uniffi_bindgen
+ensure_generated_bindings
+write_endpoint_config
generate_swift_bindings "core" "${REPO_ROOT}/rust/uniffi/core" "core"
generate_swift_bindings "db" "${REPO_ROOT}/rust/uniffi/ensu/db" "db"
generate_swift_bindings "sync" "${REPO_ROOT}/rust/uniffi/ensu/sync" "sync"