a14n / dart-google-maps

A library to use Google Maps JavaScript API v3 from Dart scripts.
Apache License 2.0
130 stars 66 forks source link

Support to wasm #130

Closed JgomesAT closed 4 months ago

JgomesAT commented 6 months ago

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);

OlegShNayax commented 6 months ago

Any updates?

a14n commented 6 months ago

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.

kevmoo commented 4 months ago

@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.

Rexios80 commented 4 months ago

@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.

a14n commented 4 months ago

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

kevmoo commented 4 months ago

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

Thank you SO MUCH for your work here! 🙏

a14n commented 4 months ago

8.0.0 published

kevmoo commented 4 months ago

8.0.0 published

thank you!!! 🙏

JgomesAT commented 4 months ago

with this new version is till required the google_maps _flutter_web?

Rexios80 commented 3 months ago

@JgomesAT if you are using Flutter then yes

JgomesAT commented 3 months ago

But this library google_maps _flutter_web is not update yet

Rexios80 commented 3 months ago

It's almost done

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