Files
buzz/scripts/test-mobile-me-agent-accessibility.sh
kenny lopez 682ee55498 Fence Duo APIs by UIKit SDK availability
Keep the standard navigation and sheet paths compilable with older SDKs. Exercise native fallback behavior and include the status editor in the native control harness.

Co-authored-by: Terp <5856f6900e8e0a4e0ea1f4f8d2ee33e4753d2119bc122f94ecafc660b46c0511@buzz.block.builderlab.xyz>
Signed-off-by: kenny lopez <klopez4212@gmail.com>
2026-10-27 14:28:02 +00:00

23 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
# Exercise the production UIKit Me agent row on a booted iOS simulator.
set -euo pipefail
repo_root=$(cd "$(dirname "$0")/.." && pwd)
device=${1:?Pass a booted iOS simulator UDID}
flutter_root=$(sed -n 's/^FLUTTER_ROOT=//p' "$repo_root/mobile/ios/Flutter/Generated.xcconfig")
frameworks="$flutter_root/bin/cache/artifacts/engine/ios/Flutter.xcframework/ios-arm64_x86_64-simulator"
fixture=$(mktemp -d)
trap 'rm -r "$fixture"' EXIT
# Compile in one file to exercise the private production controller directly.
cat "$repo_root/mobile/ios/Runner/MeAvatarLoader.swift" \
"$repo_root/mobile/ios/Runner/NativeStatusEditor.swift" \
"$repo_root/mobile/ios/Runner/NativeProfileTextEditor.swift" \
"$repo_root/mobile/ios/NativeControlTests/MeAgentAccessibilityTests.swift" > "$fixture/test.swift"
xcrun --sdk iphonesimulator swiftc -parse-as-library \
-sdk "$(xcrun --sdk iphonesimulator --show-sdk-path)" \
-target "$(uname -m)-apple-ios16.0-simulator" \
-F "$frameworks" -framework Flutter \
-Xlinker -rpath -Xlinker "$frameworks" \
"$fixture/test.swift" \
-o "$fixture/me-agent-tests"
xcrun simctl spawn "$device" "$fixture/me-agent-tests"