Skip to content

Commit

Permalink
Merge pull request #11 from DataDome/develop
Browse files Browse the repository at this point in the history
Release 1.0.5
  • Loading branch information
meddatadome authored Jul 9, 2021
2 parents 5c902e9 + 2f23529 commit ef79a94
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 32 deletions.
28 changes: 8 additions & 20 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.5

* Support null safety

## 1.0.4

* Fixed an issue when sending map/array in the request body for android.
Expand Down
12 changes: 6 additions & 6 deletions lib/datadome.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DataDome {
///
/// This method executes and return a [http.Response] instance.
Future<http.Response> get({
@required String url,
required String url,
Map<String, String> headers = const {}}) async {

return _request(_HttpMethod.get, url, headers, null);
Expand All @@ -36,7 +36,7 @@ class DataDome {
///
/// This method executes and return a [http.Response] instance.
Future<http.Response> delete({
@required String url,
required String url,
Map<String, String> headers = const {}}) async {

return _request(_HttpMethod.delete, url, headers, null);
Expand All @@ -49,7 +49,7 @@ class DataDome {
///
/// This method executes and return a [http.Response] instance.
Future<http.Response> post({
@required String url,
required String url,
Map<String, String> headers = const {},
body}) async {

Expand All @@ -63,7 +63,7 @@ class DataDome {
///
/// This method executes and return a [http.Response] instance.
Future<http.Response> put({
@required String url,
required String url,
Map<String, String> headers = const {},
body}) async {

Expand All @@ -77,7 +77,7 @@ class DataDome {
///
/// This method executes and return a [http.Response] instance.
Future<http.Response> patch({
@required String url,
required String url,
Map<String, String> headers = const {},
body}) async {

Expand Down Expand Up @@ -106,7 +106,7 @@ class DataDome {
'body': body
};

final Map<String, dynamic> response = await _channel.invokeMapMethod('request', args);
final Map<String, dynamic> response = await (_channel.invokeMapMethod('request', args) as FutureOr<Map<String, dynamic>>);
Map<String, String> responseHeaders = new Map<String, String>.from(response['headers']);
http.Response httpResponse = http.Response.bytes(
response['data'],
Expand Down
6 changes: 3 additions & 3 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ packages:
name: http
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.2"
version: "0.13.3"
http_parser:
dependency: transitive
description:
name: http_parser
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.4"
version: "4.0.0"
matcher:
dependency: transitive
description:
Expand Down Expand Up @@ -101,7 +101,7 @@ packages:
name: pedantic
url: "https://pub.dartlang.org"
source: hosted
version: "1.9.2"
version: "1.11.1"
sky_engine:
dependency: transitive
description: flutter
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: datadome
description: A DataDome integration for Flutter.
version: 1.0.4
version: 1.0.5
homepage: https://datadome.co
repository: https://github.com/DataDome/datadome-flutter
issue_tracker: https://github.com/DataDome/datadome-flutter/issues
documentation: https://docs.datadome.co/docs/flutter-plugin

environment:
sdk: ">=2.7.0 <3.0.0"
sdk: '>=2.12.0 <3.0.0'
flutter: ">=1.20.0"

dependencies:
http: ^0.12.2
http: ^0.13.3
flutter:
sdk: flutter

Expand Down

0 comments on commit ef79a94

Please sign in to comment.