Skip to content

Commit

Permalink
remove io import for web
Browse files Browse the repository at this point in the history
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:

package:maplibre/maplibre.dart that imports:
package:maplibre/src/map.dart that imports:
package:maplibre/src/platform_interface.dart that imports:
package:maplibre/src/native/platform_native.dart that imports:
package:maplibre/src/native/widget_state.dart that imports:
dart:io
This package is not compatible with runtime wasm, and will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.
  • Loading branch information
josxha committed Sep 12, 2024
1 parent a12e029 commit 404db1a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/src/platform_interface.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:flutter/widgets.dart';
import 'package:maplibre/maplibre.dart';
import 'package:maplibre/src/native/platform_native.dart';

/// https://pub.dev/packages/plugin_platform_interface#a-note-about-base
abstract base class PlatformInterface {
Expand All @@ -9,7 +8,6 @@ abstract base class PlatformInterface {

/// The default instance of [PlatformInterface] to use.
///
/// Defaults to [PlatformNative].
/// Platform-specific implementations should set this with their own
/// platform-specific class that extends [PlatformInterface] when
/// they register themselves.
Expand Down

0 comments on commit 404db1a

Please sign in to comment.