Set max SDK version to <3.0.0
diff --git a/analysis_options.yaml b/analysis_options.yaml
index 5f425e0..dfb5623 100644
--- a/analysis_options.yaml
+++ b/analysis_options.yaml
@@ -1,5 +1,3 @@
-analyzer:
- strong-mode: true
linter:
rules:
- always_declare_return_types
diff --git a/lib/test_reflective_loader.dart b/lib/test_reflective_loader.dart
index 9f2478f..f31b69a 100644
--- a/lib/test_reflective_loader.dart
+++ b/lib/test_reflective_loader.dart
@@ -5,7 +5,6 @@
library test_reflective_loader;
import 'dart:async';
-@MirrorsUsed(metaTargets: 'ReflectiveTest')
import 'dart:mirrors';
import 'package:test/test.dart' as test_package;
@@ -267,20 +266,18 @@
typedef dynamic _TestFunction();
/**
- * A marker annotation used to instruct dart2js to keep reflection information
- * for the annotated classes.
- */
-class _ReflectiveTest {
- const _ReflectiveTest();
-}
-
-/**
* A marker annotation used to annotate test methods with additional timeout
* information.
*/
class TestTimeout {
+ /**
+ * The timeout used to modify or replace the default timeout.
+ */
final test_package.Timeout timeout;
+ /**
+ * Create a timeout annotation.
+ */
const TestTimeout(this.timeout);
}
@@ -322,6 +319,14 @@
}
/**
+ * A marker annotation used to instruct dart2js to keep reflection information
+ * for the annotated classes.
+ */
+class _ReflectiveTest {
+ const _ReflectiveTest();
+}
+
+/**
* A marker annotation used to annotate "solo" groups and tests.
*/
class _SoloTest {
diff --git a/pubspec.yaml b/pubspec.yaml
index ae718e8..27410a1 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,11 +1,11 @@
name: test_reflective_loader
-version: 0.1.4
+version: 0.1.5
description: Support for discovering tests and test suites using reflection.
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/dart-lang/test_reflective_loader
environment:
- sdk: '>=1.8.0 <2.0.0'
+ sdk: '>=1.8.0 <3.0.0'
dependencies:
test: ^0.12.0