dart-google-maps icon indicating copy to clipboard operation
dart-google-maps copied to clipboard

Support to wasm

Open JgomesAT opened this issue 1 year ago • 2 comments
trafficstars

Steps to reproduce Build to WASM version

Expected results build succesfully

Actual results ../../../../.pub-cache/hosted/pub.dev/google_maps-7.1.0/lib/src/generated/google_maps_core.js.g.dart:26:8: Error: Dart library 'dart:web_gl' is not available on this platform. import 'dart:web_gl' show RenderingContext; ^ Context: The unavailable library 'dart:web_gl' is imported through these packages:

web_plugin_registrant.dart => package:google_maps_flutter_web => package:google_maps => dart:web_gl ../../../../.pub-cache/hosted/pub.dev/google_maps-7.1.0/lib/src/generated/google_maps_core.js.g.dart:977:12: Error: Type 'RenderingContext' not found. external RenderingContext? get gl; ^^^^^^^^^^^^^^^^ ../../../../.pub-cache/hosted/pub.dev/google_maps-7.1.0/lib/src/generated/google_maps_core.js.g.dart:979:19: Error: Type 'RenderingContext' not found. external set gl(RenderingContext? value); ^^^^^^^^^^^^^^^^ ../../../../.pub-cache/hosted/pub.dev/google_maps-7.1.0/lib/src/generated/google_maps_core.js.g.dart:991:12: Error: Type 'RenderingContext' not found. external RenderingContext? get gl; ^^^^^^^^^^^^^^^^ ../../../../.pub-cache/hosted/pub.dev/google_maps-7.1.0/lib/src/generated/google_maps_core.js.g.dart:993:19: Error: Type 'RenderingContext' not found. external set gl(RenderingContext? value);

JgomesAT avatar May 15 '24 07:05 JgomesAT

Any updates?

OlegShNayax avatar May 20 '24 13:05 OlegShNayax

I'm working on a new version based on the new js interop that should support wasm compilation. Unfortunatelly I do it on my spare time and that migration is a huge task.

a14n avatar May 20 '24 19:05 a14n

@a14n – what's your schedule to publish a stable version of this? It'd likely be good to wait for us to validate https://github.com/flutter/packages/pull/7077 – but we likely don't want to land/publish that until you're released stable.

kevmoo avatar Jul 10 '24 20:07 kevmoo

@kevmoo I'd like to resolve all issues with WASM integration tests in google_maps_flutter_web before we push @a14n to push this to stable, but getting WASM integration tests working is blocked by a lot of things on the Flutter side.

Rexios80 avatar Jul 10 '24 20:07 Rexios80

I'm not in a hurry and I planned to wait that flutter_google_maps works correctly before publishing a stable version.

a14n avatar Jul 10 '24 20:07 a14n

@a14n – we're ready for a stable release of 8.0.0 if you're game.

Thank you SO MUCH for your work here! 🙏

kevmoo avatar Jul 30 '24 19:07 kevmoo

8.0.0 published

a14n avatar Jul 30 '24 21:07 a14n

8.0.0 published

thank you!!! 🙏

kevmoo avatar Jul 30 '24 21:07 kevmoo

with this new version is till required the google_maps _flutter_web?

JgomesAT avatar Jul 31 '24 06:07 JgomesAT

@JgomesAT if you are using Flutter then yes

Rexios80 avatar Jul 31 '24 12:07 Rexios80

But this library google_maps _flutter_web is not update yet

JgomesAT avatar Jul 31 '24 12:07 JgomesAT

It's almost done

https://github.com/flutter/packages/pull/7077

Rexios80 avatar Jul 31 '24 12:07 Rexios80