diff --git a/example/component-handler/list_sample.dart b/example/component-handler/list_sample.dart index 0789874..5dda42f 100644 --- a/example/component-handler/list_sample.dart +++ b/example/component-handler/list_sample.dart @@ -1,3 +1,5 @@ +// ignore_for_file: deprecated_member_use, deprecated_member_use_from_same_package + import 'dart:async'; import 'dart:html'; diff --git a/example/component-handler/textfield_sample.dart b/example/component-handler/textfield_sample.dart index 46e6759..83e42ca 100644 --- a/example/component-handler/textfield_sample.dart +++ b/example/component-handler/textfield_sample.dart @@ -1,3 +1,5 @@ +// ignore_for_file: deprecated_member_use, deprecated_member_use_from_same_package + import 'dart:html'; import 'package:tekartik_common_utils/common_utils_import.dart'; diff --git a/example/starter/app.dart b/example/starter/app.dart index 0929585..8242d42 100644 --- a/example/starter/app.dart +++ b/example/starter/app.dart @@ -1,4 +1,7 @@ +// ignore_for_file: deprecated_member_use_from_same_package + import 'dart:async'; +// ignore: deprecated_member_use import 'dart:html'; import 'package:tekartik_mdl_js/mdl_js_loader.dart'; diff --git a/lib/mdl_button.dart b/lib/mdl_button.dart index 093b687..2b244d6 100644 --- a/lib/mdl_button.dart +++ b/lib/mdl_button.dart @@ -1,3 +1,4 @@ +@Deprecated('Do no use') library; import 'dart:html' as html; diff --git a/lib/mdl_classes.dart b/lib/mdl_classes.dart index 184f8eb..fcdf906 100644 --- a/lib/mdl_classes.dart +++ b/lib/mdl_classes.dart @@ -1,5 +1,3 @@ -library; - final String prefix = 'mdl'; const String _prefix = 'mdl'; String prefixed(String klass) => '$prefix-$klass'; diff --git a/lib/mdl_component.dart b/lib/mdl_component.dart index adf3016..4b36b55 100644 --- a/lib/mdl_component.dart +++ b/lib/mdl_component.dart @@ -1,3 +1,4 @@ +@Deprecated('Do no use') library; import 'dart:async'; diff --git a/lib/mdl_grid.dart b/lib/mdl_grid.dart index 184f340..6195c82 100644 --- a/lib/mdl_grid.dart +++ b/lib/mdl_grid.dart @@ -1,3 +1,4 @@ +@Deprecated('Do no use') library; import 'dart:html' as html; diff --git a/lib/mdl_icons.dart b/lib/mdl_icons.dart index 12911b1..6dda270 100644 --- a/lib/mdl_icons.dart +++ b/lib/mdl_icons.dart @@ -1,3 +1,4 @@ +@Deprecated('Do no use') library; import 'dart:html' as html; diff --git a/lib/mdl_import.dart b/lib/mdl_import.dart index 6f312d8..fc68a6f 100644 --- a/lib/mdl_import.dart +++ b/lib/mdl_import.dart @@ -1,3 +1,6 @@ +@Deprecated('Do no use') +library; + export 'mdl_button.dart'; export 'mdl_classes.dart'; export 'mdl_component.dart'; diff --git a/lib/mdl_js.dart b/lib/mdl_js.dart index 42edf20..6d2bb9f 100644 --- a/lib/mdl_js.dart +++ b/lib/mdl_js.dart @@ -1,5 +1,6 @@ // needed @JS() +@Deprecated('Do no use') library; import 'dart:html' as html; diff --git a/lib/mdl_js_loader.dart b/lib/mdl_js_loader.dart index 20c1b38..95aed80 100644 --- a/lib/mdl_js_loader.dart +++ b/lib/mdl_js_loader.dart @@ -1,3 +1,4 @@ +@Deprecated('Do no use') library; import 'dart:async'; diff --git a/lib/mdl_layout.dart b/lib/mdl_layout.dart index bf600db..095e773 100644 --- a/lib/mdl_layout.dart +++ b/lib/mdl_layout.dart @@ -1,3 +1,4 @@ +@Deprecated('Do no use') library; import 'dart:html' as html; diff --git a/lib/mdl_list.dart b/lib/mdl_list.dart index 1e22f70..3f4c898 100644 --- a/lib/mdl_list.dart +++ b/lib/mdl_list.dart @@ -1,3 +1,4 @@ +@Deprecated('Do no use') library; import 'dart:html' as html; diff --git a/lib/mdl_textfield.dart b/lib/mdl_textfield.dart index 16cd4a7..f722bb9 100644 --- a/lib/mdl_textfield.dart +++ b/lib/mdl_textfield.dart @@ -1,3 +1,4 @@ +@Deprecated('Do no use') library; import 'dart:async'; diff --git a/lib/src/import.dart b/lib/src/import.dart index 5ae15d7..b954ca6 100644 --- a/lib/src/import.dart +++ b/lib/src/import.dart @@ -1,3 +1,5 @@ +// ignore_for_file: deprecated_member_use_from_same_package + export 'package:tekartik_mdl_js/mdl_classes.dart'; export 'package:tekartik_mdl_js/mdl_component.dart'; export 'package:tekartik_mdl_js/mdl_js.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index 00a1e54..17a2366 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,7 +5,7 @@ description: Material design lite base resources and wrappers homepage: https://github.com/tekartik/mdl_js.dart publish_to: none environment: - sdk: ^3.5.0 + sdk: ^3.6.0 dependencies: js: any tekartik_browser_utils: @@ -13,15 +13,16 @@ dependencies: url: https://github.com/tekartik/browser_utils.dart ref: dart3a version: '>=0.6.8+1' - pub_semver: + pub_semver: ">=2.1.4" tekartik_common_utils: git: url: https://github.com/tekartik/common_utils.dart ref: dart3a dev_dependencies: - test: any - dev_build: '>=1.0.0' - build_runner: '>=0.9.0' + http: + test: ">=1.24.0" + dev_build: ">=1.1.0+2" + build_runner: ">=2.4.13" build_test: '>=0.10.2' - build_web_compilers: '>=0.4.0' - process_run: '>=0.10.1' + build_web_compilers: ">=4.0.11" + process_run: ">=1.2.1+1" diff --git a/test/mdl_button_test.dart b/test/mdl_button_test.dart index 9e79ad5..a710f4f 100644 --- a/test/mdl_button_test.dart +++ b/test/mdl_button_test.dart @@ -1,3 +1,5 @@ +// ignore_for_file: deprecated_member_use, deprecated_member_use_from_same_package + @TestOn('browser') library; diff --git a/test/mdl_js_cdn_loader_test.dart b/test/mdl_js_cdn_loader_test.dart index 42d45e8..8564bf0 100644 --- a/test/mdl_js_cdn_loader_test.dart +++ b/test/mdl_js_cdn_loader_test.dart @@ -1,3 +1,5 @@ +// ignore_for_file: deprecated_member_use, deprecated_member_use_from_same_package + @TestOn('browser') library; diff --git a/test/mdl_js_component_handler_test.dart b/test/mdl_js_component_handler_test.dart index df3171c..ca8e4c9 100644 --- a/test/mdl_js_component_handler_test.dart +++ b/test/mdl_js_component_handler_test.dart @@ -1,3 +1,5 @@ +// ignore_for_file: deprecated_member_use, deprecated_member_use_from_same_package + @TestOn('browser') library; diff --git a/test/mdl_js_loader_test.dart b/test/mdl_js_loader_test.dart index cf2f8b5..c760c12 100644 --- a/test/mdl_js_loader_test.dart +++ b/test/mdl_js_loader_test.dart @@ -1,3 +1,5 @@ +// ignore_for_file: deprecated_member_use, deprecated_member_use_from_same_package + @TestOn('browser') library; diff --git a/test/mdl_layout_test.dart b/test/mdl_layout_test.dart index af3b13c..dcedee6 100644 --- a/test/mdl_layout_test.dart +++ b/test/mdl_layout_test.dart @@ -1,3 +1,5 @@ +// ignore_for_file: deprecated_member_use, deprecated_member_use_from_same_package + @TestOn('browser') library; diff --git a/test/mdl_textfield_test.dart b/test/mdl_textfield_test.dart index d1fc23e..f9ef5f3 100644 --- a/test/mdl_textfield_test.dart +++ b/test/mdl_textfield_test.dart @@ -1,3 +1,5 @@ +// ignore_for_file: deprecated_member_use, deprecated_member_use_from_same_package + @TestOn('browser') library; diff --git a/test/mdl_version_test.dart b/test/mdl_version_test.dart index d3a0a1c..37fc7b6 100644 --- a/test/mdl_version_test.dart +++ b/test/mdl_version_test.dart @@ -2,8 +2,8 @@ library; import 'dart:convert'; -import 'dart:html'; +import 'package:http/http.dart'; import 'package:pub_semver/pub_semver.dart'; import 'package:tekartik_mdl_js/mdl_version.dart'; import 'package:test/test.dart'; @@ -12,8 +12,9 @@ void main() { group('version', () { test('upgrade', () async { // check the version defined - final minJs = await HttpRequest.getString( - 'packages/tekartik_mdl_js/js/material.min.js'); + final minJs = + await read(Uri.parse('packages/tekartik_mdl_js/js/material.min.js')); + final lines = LineSplitter.split(minJs); Version? minJsVersion; for (final line in lines) {