feat(voice): add iOS VAD runtime support

This commit is contained in:
Edison Jwa
2026-05-21 20:51:45 +09:00
parent 171baf6e41
commit 6af4ecab0f
73 changed files with 11529 additions and 1249 deletions
+13 -1
View File
@@ -33,6 +33,7 @@ VERSION="v0.2.0-beta.1"
SKIP_CODESIGN=0
REGEN=0
EXPORT_METHOD="development"
EXPORT_OPTIONS_PLIST=""
while [[ $# -gt 0 ]]; do
case "$1" in
@@ -40,6 +41,7 @@ while [[ $# -gt 0 ]]; do
--no-codesign) SKIP_CODESIGN=1; shift;;
--regenerate-bindings) REGEN=1; shift;;
--export-method) EXPORT_METHOD="$2"; shift 2;;
--export-options-plist) EXPORT_OPTIONS_PLIST="$2"; shift 2;;
*) echo "unknown arg: $1" >&2; exit 2;;
esac
done
@@ -154,7 +156,17 @@ if [[ $SKIP_CODESIGN -eq 1 ]]; then
APP_PATH="$FLUTTER_APP/build/ios/iphoneos/Runner.app"
echo " Unsigned .app: $APP_PATH"
else
flutter build ipa --release --export-method "$EXPORT_METHOD"
if [[ -n "$EXPORT_OPTIONS_PLIST" ]]; then
if [[ -f "$REPO_ROOT/$EXPORT_OPTIONS_PLIST" ]]; then
EXPORT_OPTIONS_PLIST="$REPO_ROOT/$EXPORT_OPTIONS_PLIST"
elif [[ ! -f "$EXPORT_OPTIONS_PLIST" ]]; then
echo " ERROR: export options plist not found: $EXPORT_OPTIONS_PLIST" >&2
exit 1
fi
flutter build ipa --release --export-method "$EXPORT_METHOD" --export-options-plist "$EXPORT_OPTIONS_PLIST"
else
flutter build ipa --release --export-method "$EXPORT_METHOD"
fi
IPA_PATH="$FLUTTER_APP/build/ios/ipa/chanora_flutter.ipa"
if [[ ! -f "$IPA_PATH" ]]; then
echo " ERROR: expected $IPA_PATH, did not find one." >&2