instrumentisto / medea-jason

Mozilla Public License 2.0
2 stars 2 forks source link

Fix Flutter upgrade to v3.22 #169

Closed evdokimovs closed 6 months ago

evdokimovs commented 6 months ago

Synopsis

The Flutter team has recently released Flutter v3.22, leading to build error in Jason. Example of build error:

../lib/src/native/platform/peer_connection.dart:32:20: Error: Expected type 'void Function(PeerConnection)' to be 'void Function(Object)', which is the Dart type corresponding to 'NativeFunction<Void Function(Handle)>'.

Failed CI after Flutter release

Solution

Change signatures of FFI functions to accept Object instead of concrete types, and cast this Objects to concrete type with as keyword inside the function.

Checklist

evdokimovs commented 6 months ago

FCM

Upgrade to 3.22 Flutter version (#169)

Additionally:
- switch `MEDEA_TAG` to `edge` in CI spec