build: upgrade to Flutter 3.47.4 (AGP 9.1 / Gradle 9.3, iOS 15 + UIScene), refresh deps and CI
Build Android APK / Build Release APKs (push) Failing after 1m7s
Build Android APK / Build Release APKs (push) Failing after 1m7s
Flutter 3.24.5 -> 3.47.4 with the matching toolchain changes: - pubspec: Dart ^3.11, Firebase core 4 / auth 6 / firestore 6 / storage 13, drop unused image_cropper, logging, change_app_package_name, pdf_widget_wrapper; pin path_provider_android <2.3 (needs NDK/CMake, not feasible on the ARM64 Gitea runner) - Dart: CardTheme -> CardThemeData, replace deprecated withOpacity, Matrix4.scale, DropdownButtonFormField.value - iOS: deployment target 15.0, UIScene lifecycle (AppDelegate/Info.plist), untrack stale Podfile.lock, add LaunchImage asset set - Android: Gradle 9.3.1, AGP 9.1.0, Kotlin 2.4.0, google-services 4.5.0, layout.buildDirectory instead of removed Project.buildDir, remove manifest package attribute and duplicate MainActivity, kotlin.incremental=false - CI: pin FLUTTER_VERSION in both workflows; iOS on macos-26 with SwiftPM disabled (CocoaPods only); Gitea job keeps cirruslabs 3.44.0 as base image (images discontinued) and switches the bundled Flutter SDK by git tag Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -10,49 +10,63 @@ on:
|
||||
- 'latest'
|
||||
workflow_dispatch:
|
||||
|
||||
# Only the newest push per branch/tag is built.
|
||||
concurrency:
|
||||
group: build-ios-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
# Keep in sync with .gitea/workflows/build-apk.yaml and pubspec.yaml (environment).
|
||||
FLUTTER_VERSION: '3.47.4'
|
||||
|
||||
jobs:
|
||||
build-ios:
|
||||
name: Build iOS IPA
|
||||
runs-on: macos-15
|
||||
# macOS 26 (arm64) ships Xcode 26 by default; Flutter 3.47 needs Xcode >= 16.
|
||||
runs-on: macos-26
|
||||
timeout-minutes: 60
|
||||
if: github.server_url == 'https://github.com'
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Select Xcode Version
|
||||
run: |
|
||||
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
|
||||
xcodebuild -version
|
||||
|
||||
- name: Set up Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
flutter-version: '3.24.5'
|
||||
flutter-version: ${{ env.FLUTTER_VERSION }}
|
||||
channel: stable
|
||||
cache: true
|
||||
|
||||
- name: Configure Flutter
|
||||
run: |
|
||||
# All plugins of this project are integrated via CocoaPods. Turning
|
||||
# off the (default-on) Swift Package Manager integration keeps the
|
||||
# build on that single, deterministic path.
|
||||
flutter config --no-enable-swift-package-manager
|
||||
|
||||
- name: Inspect Environment
|
||||
run: |
|
||||
flutter --version
|
||||
xcodebuild -version
|
||||
pod --version
|
||||
flutter --version
|
||||
flutter doctor -v
|
||||
|
||||
- name: Fetch Flutter Dependencies
|
||||
run: flutter pub get
|
||||
|
||||
- name: Clean Stale Podfile Lock
|
||||
run: |
|
||||
rm -rf ios/Pods ios/Podfile.lock
|
||||
- name: Build iOS (Unsigned)
|
||||
run: flutter build ios --release --no-codesign
|
||||
|
||||
- name: Build iOS (Unsigned IPA)
|
||||
- name: Package IPA
|
||||
run: |
|
||||
flutter build ios --release --no-codesign
|
||||
|
||||
rm -rf build/ios/iphoneos/Payload build/ios/iphoneos/oggauer-gemeindetrommler.ipa
|
||||
mkdir -p build/ios/iphoneos/Payload
|
||||
cp -r build/ios/iphoneos/Runner.app build/ios/iphoneos/Payload/
|
||||
set -euo pipefail
|
||||
cd build/ios/iphoneos
|
||||
zip -r oggauer-gemeindetrommler.ipa Payload
|
||||
|
||||
rm -rf Payload oggauer-gemeindetrommler.ipa
|
||||
mkdir Payload
|
||||
cp -R Runner.app Payload/
|
||||
zip -qry oggauer-gemeindetrommler.ipa Payload
|
||||
ls -lh oggauer-gemeindetrommler.ipa
|
||||
|
||||
- name: Upload IPA Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
@@ -60,3 +74,16 @@ jobs:
|
||||
name: oggauer-gemeindetrommler-ios
|
||||
path: build/ios/iphoneos/oggauer-gemeindetrommler.ipa
|
||||
retention-days: 7
|
||||
if-no-files-found: error
|
||||
|
||||
- name: Upload Xcode Logs (on failure)
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ios-build-logs
|
||||
path: |
|
||||
~/Library/Logs/DiagnosticReports/*.ips
|
||||
build/ios/**/*.log
|
||||
ios/Podfile.lock
|
||||
if-no-files-found: ignore
|
||||
retention-days: 3
|
||||
|
||||
Reference in New Issue
Block a user