Skip to content

armgit / ente

Public Imported from GitHub
0

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

darwin: move ios rust crypto ffi tooling under EnteCrypto

Prateek Sunal81752065ef51
diff --git a/mobile/native/ios/Packages/EnteCrypto/Binaries/.gitignore b/mobile/native/darwin/Packages/EnteCrypto/Binaries/.gitignore
similarity index 100%
rename from mobile/native/ios/Packages/EnteCrypto/Binaries/.gitignore
rename to mobile/native/darwin/Packages/EnteCrypto/Binaries/.gitignore
diff --git a/mobile/native/darwin/Packages/EnteCrypto/Binaries/README.md b/mobile/native/darwin/Packages/EnteCrypto/Binaries/README.md
new file mode 100644
index 0000000000..53b5985a3b
--- /dev/null
+++ b/mobile/native/darwin/Packages/EnteCrypto/Binaries/README.md
@@ -0,0 +1,13 @@
+# EnteRustCryptoFFI Artifacts
+
+`EnteRustCryptoFFI.xcframework` is generated locally and is intentionally not checked into git.
+
+Regenerate it from repo root with:
+
+```bash
+mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/build-xcframework.sh
+```
+
+The Swift package at `mobile/native/darwin/Packages/EnteCrypto/Package.swift` expects the generated output at:
+
+`mobile/native/darwin/Packages/EnteCrypto/Binaries/EnteRustCryptoFFI.xcframework`
diff --git a/mobile/native/ios/rust/tvos-crypto-ffi/.gitignore b/mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/.gitignore
similarity index 100%
rename from mobile/native/ios/rust/tvos-crypto-ffi/.gitignore
rename to mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/.gitignore
diff --git a/mobile/native/ios/rust/tvos-crypto-ffi/Cargo.lock b/mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/Cargo.lock
similarity index 100%
rename from mobile/native/ios/rust/tvos-crypto-ffi/Cargo.lock
rename to mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/Cargo.lock
diff --git a/mobile/native/ios/rust/tvos-crypto-ffi/Cargo.toml b/mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/Cargo.toml
similarity index 100%
rename from mobile/native/ios/rust/tvos-crypto-ffi/Cargo.toml
rename to mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/Cargo.toml
diff --git a/mobile/native/ios/rust/tvos-crypto-ffi/build-xcframework.sh b/mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/build-xcframework.sh
similarity index 97%
rename from mobile/native/ios/rust/tvos-crypto-ffi/build-xcframework.sh
rename to mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/build-xcframework.sh
index e20c479848..d99c35134e 100755
--- a/mobile/native/ios/rust/tvos-crypto-ffi/build-xcframework.sh
+++ b/mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/build-xcframework.sh
@@ -2,9 +2,9 @@
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
-IOS_DIR="$(cd "${SCRIPT_DIR}/../.." && pwd)"
+ENCRYPTO_DIR="$(cd "${SCRIPT_DIR}/../.." && pwd)"
CRATE_DIR="${SCRIPT_DIR}"
-BINARY_DIR="${IOS_DIR}/Packages/EnteCrypto/Binaries"
+BINARY_DIR="${ENCRYPTO_DIR}/Binaries"
XCFRAMEWORK_DIR="${BINARY_DIR}/EnteRustCryptoFFI.xcframework"
HEADER_DIR="${CRATE_DIR}/include"
TARGET_DIR="${CRATE_DIR}/target"
diff --git a/mobile/native/ios/rust/tvos-crypto-ffi/include/ente_tvos_crypto_ffi.h b/mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/include/ente_tvos_crypto_ffi.h
similarity index 100%
rename from mobile/native/ios/rust/tvos-crypto-ffi/include/ente_tvos_crypto_ffi.h
rename to mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/include/ente_tvos_crypto_ffi.h
diff --git a/mobile/native/ios/rust/tvos-crypto-ffi/src/lib.rs b/mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/src/lib.rs
similarity index 100%
rename from mobile/native/ios/rust/tvos-crypto-ffi/src/lib.rs
rename to mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/src/lib.rs
diff --git a/mobile/native/ios/Packages/EnteCrypto/Binaries/README.md b/mobile/native/ios/Packages/EnteCrypto/Binaries/README.md
deleted file mode 100644
index de354f34e8..0000000000
--- a/mobile/native/ios/Packages/EnteCrypto/Binaries/README.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# EnteRustCryptoFFI Artifacts
-
-`EnteRustCryptoFFI.xcframework` is generated locally and is intentionally not checked into git.
-
-Regenerate it from repo root with:
-
-```bash
-mobile/native/ios/rust/tvos-crypto-ffi/build-xcframework.sh
-```
-
-The Swift package at `mobile/native/ios/Packages/EnteCrypto/Package.swift` expects the generated output at:
-
-`mobile/native/ios/Packages/EnteCrypto/Binaries/EnteRustCryptoFFI.xcframework`