π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
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/.gitignoresimilarity index 100%rename from mobile/native/ios/Packages/EnteCrypto/Binaries/.gitignorerename to mobile/native/darwin/Packages/EnteCrypto/Binaries/.gitignorediff --git a/mobile/native/darwin/Packages/EnteCrypto/Binaries/README.md b/mobile/native/darwin/Packages/EnteCrypto/Binaries/README.mdnew file mode 100644index 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/.gitignoresimilarity index 100%rename from mobile/native/ios/rust/tvos-crypto-ffi/.gitignorerename to mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/.gitignorediff --git a/mobile/native/ios/rust/tvos-crypto-ffi/Cargo.lock b/mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/Cargo.locksimilarity index 100%rename from mobile/native/ios/rust/tvos-crypto-ffi/Cargo.lockrename to mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/Cargo.lockdiff --git a/mobile/native/ios/rust/tvos-crypto-ffi/Cargo.toml b/mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/Cargo.tomlsimilarity index 100%rename from mobile/native/ios/rust/tvos-crypto-ffi/Cargo.tomlrename to mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/Cargo.tomldiff --git a/mobile/native/ios/rust/tvos-crypto-ffi/build-xcframework.sh b/mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/build-xcframework.shsimilarity index 97%rename from mobile/native/ios/rust/tvos-crypto-ffi/build-xcframework.shrename to mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/build-xcframework.shindex 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 pipefailSCRIPT_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.hsimilarity index 100%rename from mobile/native/ios/rust/tvos-crypto-ffi/include/ente_tvos_crypto_ffi.hrename to mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/include/ente_tvos_crypto_ffi.hdiff --git a/mobile/native/ios/rust/tvos-crypto-ffi/src/lib.rs b/mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/src/lib.rssimilarity index 100%rename from mobile/native/ios/rust/tvos-crypto-ffi/src/lib.rsrename to mobile/native/darwin/Packages/EnteCrypto/rust/tvos-crypto-ffi/src/lib.rsdiff --git a/mobile/native/ios/Packages/EnteCrypto/Binaries/README.md b/mobile/native/ios/Packages/EnteCrypto/Binaries/README.mddeleted file mode 100644index 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`