Skip to content

Upgrading pigeon 29 to 30

Breaking29.2.0 → 30.0.4Breaking1Platform1New1Changed2Fixed3Other1

BreakingUpgrade verdict

1 breaking change and a platform requirement change.

  • If you use Pigeon's native interop feature, the way you register and look up native APIs has changed so that multiple Flutter engines can be supported. You will likely need to update your code.
  • You now need Flutter 3.44 or newer, which includes Dart 3.12 or newer, to use this version.
2 items need code or config changes

Dart SDK requirement changed in 30.0.3: ^3.11.0 → ^3.12.0.

Breaking1
Native Interop registration now supports multiple engines, changing register/unregister and getInstance signatures in Kotlin and Swift.
registerunregistergetInstance(binding)getInstance(registrar:)getInstance(name)@FlutterApi@HostApi
Platform1
Updates minimum supported SDK version to Flutter 3.44/Dart 3.12.

Generated by DepDelta from published Dart source. Not mixed with prose notes.

  • changed: ctor DartOptions({ this.copyrightHeader, this.sourceOutPath, this.testOutPath, this.dartOut, bool ignoreLints = …, }) → ctor DartOptions({ this.copyrightHeader, this.sourceOutPath, this.testOutPath, this.dartOut, this._ignoreLints = …, })
  • changed: static method Pigeon.printErrors(List<Error> errors): void → static method Pigeon.printErrors(List<Error> errors, {@visibleForTesting StringSink? errorSink}): void
  • changed: static method Pigeon.runWithOptions( PigeonOptions options, { List<GeneratorAdapter>? adapters, String? sdkPath, bool mergeDefinitionFileOptions = …, @visibleForTesting ParseResults? parseResults, }): Future<int> → static method Pigeon.runWithOptions( PigeonOptions options, { List<GeneratorAdapter>? adapters, String? sdkPath, bool mergeDefinitionFileOptions = …, @visibleForTesting ParseResults? parseResults, @visibleForTesting bool skipJnigen = …, @visibleForTesting StringSink? errorSink, }): Future<int>