feat(ios): intelligent Switch Markdown View & Ephemeral Action View (#9823)

Co-authored-by: EYHN <cneyhn@gmail.com>
This commit is contained in:
Lakr
2025-03-24 17:47:42 +08:00
committed by GitHub
parent 4d3eee3bad
commit 447b23f25f
192 changed files with 43960 additions and 980 deletions

View File

@@ -9,7 +9,7 @@ set -o pipefail
cd "$(dirname "$0")"
export SCRIPT_PATH=$(pwd)
export SCRIPT_DIR_PATH=$(pwd)
export BUILD_TYPE=canary
export PUBLIC_PATH="/"
@@ -24,6 +24,13 @@ echo "[+] setting up the project"
echo "[*] interacting with yarn..."
yarn install
echo "[*] temporary set pbxproj to use object version 56"
XCPROJ_PATH=$SCRIPT_DIR_PATH/App/App.xcodeproj/project.pbxproj
CURRENT_VERSION=$(grep "objectVersion = " "$XCPROJ_PATH" | awk -F ' = ' '{print $2}' | tr -d ';')
echo "[*] current object version: $CURRENT_VERSION"
sed -i '' "s/objectVersion = $CURRENT_VERSION/objectVersion = 56/" "$XCPROJ_PATH"
yarn affine @affine/ios build
yarn affine @affine/ios cap sync
@@ -32,8 +39,18 @@ rustup target add aarch64-apple-ios
rustup target add aarch64-apple-ios-sim
rustup target add aarch64-apple-darwin
cargo build -p affine_mobile_native --lib --release --target aarch64-apple-ios
cargo run -p affine_mobile_native --bin uniffi-bindgen \
generate \
--library target/aarch64-apple-ios/release/libaffine_mobile_native.a \
--language swift \
--out-dir packages/frontend/apps/ios/App/App/uniffi
echo "[*] interacting with graphql..."
apollo-ios-cli generate --path $SCRIPT_PATH/apollo-codegen-config.json
apollo-ios-cli generate --path $SCRIPT_DIR_PATH/apollo-codegen-config.json
echo "[*] setting object version back to $CURRENT_VERSION"
sed -i '' "s/objectVersion = 56/objectVersion = $CURRENT_VERSION/" "$XCPROJ_PATH"
echo "[+] setup complete"