llfbandit / app_links

Android App Links, Deep Links, iOs Universal Links and Custom URL schemes handler for Flutter.
https://pub.dev/packages/app_links
Apache License 2.0
221 stars 81 forks source link

Wasm support #131

Closed nietsmmar closed 5 months ago

nietsmmar commented 5 months ago

Describe the bug

I can't built my app for wasm because this package is not supporting it. As it is stable in flutter now, it would be nice if it is supported.

llfbandit commented 5 months ago

It is supported since v4.0.0 https://github.com/llfbandit/app_links/blob/master/CHANGELOG.md#400

Unless you provide the line(s) which lead to your build failure, this issue will be closed.

flowhorn commented 5 months ago

This seems to be a regression with the linux gtk plugin as flutter 3.22.2 doesn't support compiling to wasm with dart:ffi.

I get the following error message:

../../../.pub-cache/hosted/pub.dev/gtk-2.1.0/lib/src/gtk_settings_real.dart:2:1: Error: 'dart:ffi' can't be imported when compiling to Wasm. import 'dart:ffi' as ffi;

So the app_links_linux part might cause the issue. I guess a conditional import might help.

nietsmmar commented 5 months ago

Ahh it is this issue: https://github.com/dart-lang/sdk/issues/55948

It just got fixed but takes some time to reflect in the flutter version.