Skip to content

v2.0.2

  • v2.0.2
  • 42919c1
  • Verified

    This commit was created on GitHub.com and signed with GitHub鈥檚 verified signature.
  • Choose a tag to compare

  • v2.0.2
  • 42919c1
  • Choose a tag to compare

  • Verified

    This commit was created on GitHub.com and signed with GitHub鈥檚 verified signature.
@joachim-quis joachim-quis tagged this 08 Apr 03:14
* Fix Flutter SDK path resolution for FVM and IDE sync compatibility

The plugin's build.gradle assumed local.properties was always in
rootProject.projectDir, which breaks under FVM setups and certain IDE
sync scenarios where the working directory differs.

Resolution now:
1. Checks the flutter.sdk Gradle property (supports -Pflutter.sdk=<path>)
2. Walks up from project dir looking for local.properties
3. Falls back to FLUTTER_ROOT environment variable

This makes the plugin build reliably across normal Flutter, FVM, and
IDE-triggered Gradle sync without requiring user workarounds.

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

* Add rootProject lookup and flutter-root property for pub-cache compatibility

When the plugin is resolved from ~/.pub-cache, walking up from
project.projectDir cannot reach the host app's local.properties.
Add rootProject.projectDir lookup and support for the flutter-root
Gradle property (passed by Flutter tooling during builds) to cover
this case.

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

* Bump version to 2.0.2

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

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Assets 2
Loading