d8e7cfb237
- Created AppInfo.xcconfig, Debug.xcconfig, Release.xcconfig, and Warnings.xcconfig for macOS Runner target. - Added entitlements files for DebugProfile and Release configurations to enable app sandboxing. - Implemented Info.plist for application metadata and MainFlutterWindow.swift for window management. - Added unit tests in RunnerTests.swift and widget tests in widget_test.dart. - Updated pubspec.lock and pubspec.yaml to include flutter_lints and updated dependencies. - Enhanced verify_aot_patch.dart for better AOT patching support and added utility functions. - Included web assets: favicon, icons, index.html, and manifest.json for web deployment. Signed-off-by: Tony <tonylu@tony-cloud.com>
103 lines
3.6 KiB
Bash
Executable File
103 lines
3.6 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
PLATFORM="${1:-}"
|
|
INCLUDE_ENGINE_DEPS="${INCLUDE_ENGINE_DEPS:-0}"
|
|
|
|
case "$PLATFORM" in
|
|
linux)
|
|
TARGET_OS='["linux"]'
|
|
DART_DOWNLOAD_ANDROID_DEPS="False"
|
|
;;
|
|
macos)
|
|
if [[ "$INCLUDE_ENGINE_DEPS" == "1" ]]; then
|
|
TARGET_OS='["mac", "ios", "android"]'
|
|
DART_DOWNLOAD_ANDROID_DEPS="True"
|
|
else
|
|
TARGET_OS='["mac", "ios"]'
|
|
DART_DOWNLOAD_ANDROID_DEPS="False"
|
|
fi
|
|
;;
|
|
*)
|
|
echo "usage: $0 <linux|macos>" >&2
|
|
exit 64
|
|
;;
|
|
esac
|
|
|
|
cat > "$ROOT/.gclient" <<EOF
|
|
solutions = [
|
|
{
|
|
"name": "dart-sdk-new",
|
|
"url": "https://git.tonycloud.org/dart-lang/sdk.git",
|
|
"deps_file": "DEPS",
|
|
"managed": False,
|
|
"custom_deps": {},
|
|
"custom_vars": {
|
|
"dart_root": "dart-sdk-new",
|
|
"download_android_deps": $DART_DOWNLOAD_ANDROID_DEPS,
|
|
"checkout_javascript_engines": False,
|
|
"checkout_benchmarks_internal": False,
|
|
"checkout_flute": False,
|
|
},
|
|
},
|
|
]
|
|
target_os = $TARGET_OS
|
|
EOF
|
|
|
|
echo "Wrote $ROOT/.gclient for $PLATFORM with target_os = $TARGET_OS"
|
|
|
|
if [[ "$INCLUDE_ENGINE_DEPS" == "1" ]]; then
|
|
cat > "$ROOT/flutter/.gclient" <<EOF
|
|
solutions = [
|
|
{
|
|
"name": ".",
|
|
"url": "https://git.tonycloud.org/flutter/flutter.git",
|
|
"deps_file": "DEPS",
|
|
"managed": False,
|
|
"custom_deps": {
|
|
"engine/src/flutter/third_party/dart": None,
|
|
"engine/src/flutter/third_party/dart/third_party/binaryen/src": None,
|
|
"engine/src/flutter/third_party/dart/third_party/devtools": None,
|
|
"engine/src/flutter/third_party/dart/third_party/perfetto/src": None,
|
|
"engine/src/flutter/third_party/dart/third_party/pkg/core": None,
|
|
"engine/src/flutter/third_party/dart/third_party/pkg/dart_style": None,
|
|
"engine/src/flutter/third_party/dart/third_party/pkg/dartdoc": None,
|
|
"engine/src/flutter/third_party/dart/third_party/pkg/ecosystem": None,
|
|
"engine/src/flutter/third_party/dart/third_party/pkg/http": None,
|
|
"engine/src/flutter/third_party/dart/third_party/pkg/i18n": None,
|
|
"engine/src/flutter/third_party/dart/third_party/pkg/leak_tracker": None,
|
|
"engine/src/flutter/third_party/dart/third_party/pkg/native": None,
|
|
"engine/src/flutter/third_party/dart/third_party/pkg/protobuf": None,
|
|
"engine/src/flutter/third_party/dart/third_party/pkg/pub": None,
|
|
"engine/src/flutter/third_party/dart/third_party/pkg/shelf": None,
|
|
"engine/src/flutter/third_party/dart/third_party/pkg/sync_http": None,
|
|
"engine/src/flutter/third_party/dart/third_party/pkg/tar": None,
|
|
"engine/src/flutter/third_party/dart/third_party/pkg/test": None,
|
|
"engine/src/flutter/third_party/dart/third_party/pkg/tools": None,
|
|
"engine/src/flutter/third_party/dart/third_party/pkg/vector_math": None,
|
|
"engine/src/flutter/third_party/dart/third_party/pkg/web": None,
|
|
"engine/src/flutter/third_party/dart/third_party/pkg/webdev": None,
|
|
"engine/src/flutter/third_party/dart/third_party/pkg/webdriver": None,
|
|
"engine/src/flutter/third_party/dart/third_party/pkg/webkit_inspection_protocol": None,
|
|
"engine/src/flutter/third_party/dart/tools/sdks/dart-sdk": None,
|
|
"engine/src/flutter/third_party/updater": None,
|
|
},
|
|
"custom_vars": {
|
|
"download_dart_sdk": False,
|
|
"download_android_deps": True,
|
|
"download_emsdk": True,
|
|
"setup_githooks": False,
|
|
"use_rbe": False,
|
|
},
|
|
},
|
|
]
|
|
target_os = $TARGET_OS
|
|
EOF
|
|
echo "Wrote $ROOT/flutter/.gclient for Flutter engine dependencies"
|
|
else
|
|
rm -f "$ROOT/flutter/.gclient"
|
|
fi
|
|
|
|
echo "Flutter engine dependency sync: $INCLUDE_ENGINE_DEPS"
|