Update versions and perform small cleanup (#220)
* Update versions and perform small cleanup
* Update pubspec.yaml
diff --git a/CHANGELOG.md b/CHANGELOG.md
index db252ae..1b9b0b0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## v2.1.2
+
+* Updated to latest version of sync_http.
+
## v2.1.1
* Forward-compatible fix for upcoming Dart SDK breaking change
diff --git a/analysis_options.yaml b/analysis_options.yaml
index 0b79a58..6f8b463 100644
--- a/analysis_options.yaml
+++ b/analysis_options.yaml
@@ -1,5 +1,3 @@
-analyzer:
- strong-mode: true
linter:
rules:
- always_declare_return_types
@@ -13,7 +11,6 @@
- cancel_subscriptions
- control_flow_in_finally
- empty_constructor_bodies
- - empty_constructor_bodies
- empty_statements
- hash_and_equals
- implementation_imports
@@ -43,8 +40,6 @@
- prefer_typing_uninitialized_variables
- recursive_getters
- slash_for_doc_comments
- - slash_for_doc_comments
- - super_goes_last
- test_types_in_equals
- throw_in_finally
- type_init_formals
diff --git a/lib/async_core.dart b/lib/async_core.dart
index ce49382..8013467 100644
--- a/lib/async_core.dart
+++ b/lib/async_core.dart
@@ -124,5 +124,5 @@
}
return WebDriver(uri, sessionId, UnmodifiableMapView(capabilities),
- createRequestClient(uri.resolve('session/${sessionId}/')), spec);
+ createRequestClient(uri.resolve('session/$sessionId/')), spec);
}
diff --git a/lib/src/async/common.dart b/lib/src/async/common.dart
index 26f7e9e..d015eb6 100644
--- a/lib/src/async/common.dart
+++ b/lib/src/async/common.dart
@@ -23,7 +23,7 @@
/// Simple class to provide access to indexed properties such as WebElement
/// attributes or css styles.
class Attributes {
- GetAttribute _getAttribute;
+ final GetAttribute _getAttribute;
Attributes(this._getAttribute);
diff --git a/lib/src/handler/json_wire_handler.dart b/lib/src/handler/json_wire_handler.dart
index 3bad7bd..4bcd061 100644
--- a/lib/src/handler/json_wire_handler.dart
+++ b/lib/src/handler/json_wire_handler.dart
@@ -69,5 +69,5 @@
deserialize(parseJsonWireResponse(response), createElement);
@override
- String toString() => "JsonWire";
+ String toString() => 'JsonWire';
}
diff --git a/pubspec.yaml b/pubspec.yaml
index 8fed1b8..31a5052 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: webdriver
-version: 2.1.1
+version: 2.1.2
authors:
- Marc Fisher II <fisherii@google.com>
- Matt Staats<staats@google.com>
@@ -15,6 +15,6 @@
matcher: ^0.12.3
path: ^1.3.0
stack_trace: ^1.3.0
- sync_http: ^0.1.1
+ sync_http: '>=0.1.1 <0.3.0'
dev_dependencies:
test: '^1.0.0'