Skip to content

chore: Flutter 3.44 compat + dependency upgrades (v0.0.1+6) - #32

Open
GhagSagar23 wants to merge 5 commits into
developfrom
chore/version-upgrades
Open

chore: Flutter 3.44 compat + dependency upgrades (v0.0.1+6)#32
GhagSagar23 wants to merge 5 commits into
developfrom
chore/version-upgrades

Conversation

@GhagSagar23

Copy link
Copy Markdown
Collaborator

What

Smart, phased version upgrade: Flutter 3.22→3.44 compatibility + the 4 behind dependencies. Each phase is an independent, analyze-clean commit.

Phases (commits)

Commit Change Risk Verified
fe28ff2 animate_do 3→5, flutter_lints 4→6 + fix 2 Flutter-3.44 deprecations (Color.valuetoARGB32(), drop invalid @override) low analyze clean
6dab1c5 camera 0.11→0.12 (→0.12.0+2), google_mlkit_face_detection 0.11→0.14 (commons→0.12.0) high (native) analyze clean, source-compatible — zero code changes
037deb8 release 0.0.1+50.0.1+6 + CHANGELOG

Resolved: animate_do 5.1.0, flutter_lints 6.0.0, camera 0.12.0+2, google_mlkit_face_detection 0.14.0, camerawesome 2.5.0. pub outdated now shows no behind direct deps.

Scope notes

  • Only 4 deps were actually behind. The rest (camerawesome, rxdart, lottie, path_provider, uuid, image, collection, equatable) already resolve to latest; SDK-bundled transitives (meta, vector_math, …) are locked by the SDK. Left untouched.
  • Published sdk: floor kept at >=3.4.3 (consumer compat) — only the toolchain moved to 3.44.
  • .fvmrc left as stable (currently = 3.44.0). No reproducible numeric pin — a future clone gets whatever stable is then. One-line fix ("stable""3.44.0") available if reproducibility is wanted; skipped here to avoid a duplicate 1GB SDK download.

⚠️ Merge gate — device smoke (not yet done)

analyze passes and the native APIs are source-compatible, but analyze cannot verify runtime behaviour of camera 0.12 / ML-Kit 0.14 (commons 0.8→0.12). This PR is draft until on-device smoke passes on both paths:

  • iOS → V1 (camera plugin): camera preview renders; blink / turn-left / smile steps pass; selfie captures.
  • Android → V2 (camerawesome): same four steps; capture works.
  • Watch for: no faces detected (InputImage byte-format regression), preview orientation, capture returning null.

If smoke fails, the suspect is 6dab1c5 — bisect by reverting ML-Kit first, then camera.

Not in this PR (deliberately)

Dead-dep drops (plugin_platform_interface, equatable, image) and the known logic bugs (V1 turnRight >, V2 ignoring thresholds) — kept separate to keep this diff bisectable. docs/versions.md (in open PR #31) still describes pre-upgrade versions; refresh once merge order is settled.

GhagSagar23 and others added 5 commits July 16, 2026 17:37
… deprecations

- animate_do ^3.3.4→^5.1.0 (widget API unchanged), flutter_lints ^4.0.0→^6.0.0
- drop invalid @OverRide on SmileDetectionThreshold.fromMap (invalid_annotation_target)
- Color.value → toARGB32() (deprecated Flutter 3.27+)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…0.14

- camera ^0.11.0+1→^0.12.0 (resolves 0.12.0+2; camerax 0.7.4, avfoundation 0.10.2)
- google_mlkit_face_detection ^0.11.0→^0.14.0 (commons→0.12.0)
- source-compatible: analyze clean, no code changes
- gate: needs on-device smoke (V1 iOS camera path, V2 Android camerawesome path)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…r Flutter 3.44 (JDK 21)

Flutter 3.44 bundles JDK 21; the example's Gradle 7.6.3 caps at Java 19, so
assembleDebug failed in _BuildScript_ (class file major version 65). Bump to
Flutter 3.44's canonical Android toolchain and align JVM targets.

- gradle-wrapper 7.6.3 -> 9.1.0
- AGP 7.3.0 -> 9.0.1, Kotlin 1.7.10 -> 2.3.20 (settings.gradle)
- compileOptions Java 1.8 -> 11 + kotlinOptions jvmTarget 11 (fix inconsistent JVM-target)
- gradle.properties: builtInKotlin/newDsl=false (Flutter migrator; required under AGP 9)
- verified: `flutter build apk --debug` green with camera 0.12 / camerawesome 2.5 / ml_kit 0.14

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…kit 0.14

google_mlkit_commons 0.12 (via google_mlkit_face_detection 0.14) requires iOS
15.5; the example pinned 13.0 so `pod install` failed. Bump Podfile platform +
all pbxproj build configs to 15.5. Verified: `flutter build ios --no-codesign` green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant