Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/ios_build.yaml

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need this workflow to validate a specific migration on the iOS side, let's remove it and if you can share a video of the UIScene working fine when running iOS, I think that would be more valuable. Thanks!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need this workflow to validate a specific migration on the iOS side, let's remove it and if you can share a video of the UIScene working fine when running iOS, I think that would be more valuable. Thanks!

Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: iOS Build Verification

on:
pull_request:
paths:
- "lib/src/commands/create/templates/**"
push:
branches: [main]
paths:
- "lib/src/commands/create/templates/**"

jobs:
ios-build:
runs-on: macos-latest
strategy:
matrix:
template:
- very_good_core
- very_good_flame_game
steps:
- uses: actions/checkout@v4

- uses: subosito/flutter-action@v2
with:
flutter-version: "3.38.x"
channel: stable

- name: Install Dependencies
run: dart pub get

- name: Generate Test Project
run: |
if [ "${{ matrix.template }}" = "very_good_core" ]; then
dart run bin/very_good.dart create flutter_app test_app --template core -o /tmp
else
dart run bin/very_good.dart create flutter_app test_app --template ${{ matrix.template }} -o /tmp
fi

- name: Build iOS (no-codesign)
working-directory: /tmp/test_app
run: flutter build ios --no-codesign --debug

- name: Verify UIScene Configuration
run: |
echo "Checking for UIApplicationSceneManifest in Info.plist..."
grep -q "UIApplicationSceneManifest" /tmp/test_app/ios/Runner/Info.plist || (echo "FAILED: UIApplicationSceneManifest not found" && exit 1)

echo "Checking for SceneDelegate.swift..."
test -f /tmp/test_app/ios/Runner/SceneDelegate.swift || (echo "FAILED: SceneDelegate.swift not found" && exit 1)

echo "Checking for @main in AppDelegate.swift..."
grep -q "@main" /tmp/test_app/ios/Runner/AppDelegate.swift || (echo "FAILED: @main not found in AppDelegate.swift" && exit 1)

echo "Checking for FlutterImplicitEngineDelegate in AppDelegate.swift..."
grep -q "FlutterImplicitEngineDelegate" /tmp/test_app/ios/Runner/AppDelegate.swift || (echo "FAILED: FlutterImplicitEngineDelegate not found" && exit 1)

echo "All UIScene configuration checks passed!"
10 changes: 10 additions & 0 deletions CHANGELOG.md

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changelog is auto generated by CI too

Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## Unreleased

### Features

* update iOS templates to use UIScene lifecycle for Flutter 3.38+ ([#1436](https://github.com/VeryGoodOpenSource/very_good_cli/issues/1436))

### Continuous Integration

* add iOS build verification workflow ([#1436](https://github.com/VeryGoodOpenSource/very_good_cli/issues/1436))

## [0.28.0](https://github.com/VeryGoodOpenSource/very_good_cli/compare/v0.27.0...v0.28.0) (2025-10-03)


Expand Down

Large diffs are not rendered by default.

Loading
Loading