Skip to content

Commit 58e4327

Browse files
Relax web dependency constraint to allow versions up to 2.0.0
1 parent 955e2e3 commit 58e4327

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

splitio_web/lib/splitio_web.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ class SplitioWeb extends SplitioPlatform {
316316
_impressionsStreamController.add(jsImpressionDataToImpression(data));
317317
}).toJS;
318318

319-
final impressionListener = JSObject() as JSIImpressionListener;
319+
final impressionListener = JSObject() as JSImpressionListener;
320320
reflectSet(impressionListener, 'logImpression'.toJS, logImpression);
321321

322322
config.impressionListener = impressionListener;

splitio_web/lib/src/js_interop.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extension type JSILogger._(JSObject _) implements JSObject {
3434
}
3535

3636
@JS()
37-
extension type JSIImpressionListener._(JSObject _) implements JSObject {
37+
extension type JSImpressionListener._(JSObject _) implements JSObject {
3838
external JSVoid logImpression(JSImpressionData impression);
3939
}
4040

@@ -99,15 +99,15 @@ extension type JSConfiguration._(JSObject _) implements JSObject {
9999
external JSConfigurationSync? sync;
100100
external JSBoolean? streamingEnabled;
101101
external JSString? userConsent;
102-
external JSIImpressionListener? impressionListener;
102+
external JSImpressionListener? impressionListener;
103103
external JSAny? debug;
104104
external JSAny? storage;
105105
}
106106

107107
@JS()
108108
extension type JSISettings._(JSObject _) implements JSConfiguration {
109109
external JSILogger log;
110-
external JSIImpressionListener? impressionListener;
110+
external JSImpressionListener? impressionListener;
111111
}
112112

113113
@JS()

splitio_web/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies:
2323
splitio_platform_interface: ^2.0.0
2424
flutter_web_plugins:
2525
sdk: flutter
26-
web: ^0.5.0
26+
web: ">=0.5.0 <2.0.0"
2727

2828
dev_dependencies:
2929
flutter_test:

0 commit comments

Comments
 (0)