-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Milad Alakarie
committed
Mar 8, 2021
1 parent
bab67a6
commit a36f4d0
Showing
5 changed files
with
24 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
|
||
## [1.2.0-beta] | ||
- migrate to nullSafety | ||
## [1.1.1] | ||
- remove flutter as dependency | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
```Dart | ||
import 'package:dio/dio.dart'; | ||
import 'package:pretty_dio_logger/pretty_dio_logger.dart'; | ||
|
||
void main() async { | ||
Dio dio = Dio(); | ||
dio.interceptors.add(PrettyDioLogger( | ||
requestHeader: true, | ||
requestBody: true, | ||
responseBody: true, | ||
responseHeader: false, | ||
compact: false, | ||
)); | ||
final dio = Dio() | ||
..interceptors.add(PrettyDioLogger( | ||
requestHeader: true, | ||
requestBody: true, | ||
responseBody: true, | ||
responseHeader: false, | ||
compact: false, | ||
)); | ||
|
||
try { | ||
await dio.get('http://www.mocky.io/v2/5d7fc75c3300000476f0b557'); | ||
} catch (e) { | ||
print(e); | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,153 +1,68 @@ | ||
# Generated by pub | ||
# See https://dart.dev/tools/pub/glossary#lockfile | ||
packages: | ||
async: | ||
dependency: transitive | ||
description: | ||
name: async | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "2.3.0" | ||
boolean_selector: | ||
dependency: transitive | ||
description: | ||
name: boolean_selector | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.0.5" | ||
charcode: | ||
dependency: transitive | ||
description: | ||
name: charcode | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.1.2" | ||
version: "1.2.0" | ||
collection: | ||
dependency: transitive | ||
description: | ||
name: collection | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.14.11" | ||
version: "1.15.0" | ||
dio: | ||
dependency: "direct main" | ||
description: | ||
name: dio | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "3.0.3" | ||
flutter: | ||
dependency: "direct main" | ||
description: flutter | ||
source: sdk | ||
version: "0.0.0" | ||
flutter_test: | ||
dependency: "direct dev" | ||
description: flutter | ||
source: sdk | ||
version: "0.0.0" | ||
version: "4.0.0-beta6" | ||
http_parser: | ||
dependency: transitive | ||
description: | ||
name: http_parser | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "3.1.3" | ||
matcher: | ||
dependency: transitive | ||
description: | ||
name: matcher | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "0.12.5" | ||
meta: | ||
dependency: transitive | ||
description: | ||
name: meta | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.1.7" | ||
version: "4.0.0" | ||
path: | ||
dependency: transitive | ||
description: | ||
name: path | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.6.4" | ||
pedantic: | ||
dependency: transitive | ||
description: | ||
name: pedantic | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.8.0+1" | ||
quiver: | ||
dependency: transitive | ||
description: | ||
name: quiver | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "2.0.5" | ||
sky_engine: | ||
dependency: transitive | ||
description: flutter | ||
source: sdk | ||
version: "0.0.99" | ||
version: "1.8.0" | ||
source_span: | ||
dependency: transitive | ||
description: | ||
name: source_span | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.5.5" | ||
stack_trace: | ||
dependency: transitive | ||
description: | ||
name: stack_trace | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.9.3" | ||
stream_channel: | ||
dependency: transitive | ||
description: | ||
name: stream_channel | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "2.0.0" | ||
version: "1.8.1" | ||
string_scanner: | ||
dependency: transitive | ||
description: | ||
name: string_scanner | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.0.5" | ||
version: "1.1.0" | ||
term_glyph: | ||
dependency: transitive | ||
description: | ||
name: term_glyph | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.1.0" | ||
test_api: | ||
dependency: transitive | ||
description: | ||
name: test_api | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "0.2.5" | ||
version: "1.2.0" | ||
typed_data: | ||
dependency: transitive | ||
description: | ||
name: typed_data | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "1.1.6" | ||
vector_math: | ||
dependency: transitive | ||
description: | ||
name: vector_math | ||
url: "https://pub.dartlang.org" | ||
source: hosted | ||
version: "2.0.8" | ||
version: "1.3.0" | ||
sdks: | ||
dart: ">2.4.0 <3.0.0" | ||
dart: ">=2.12.0 <3.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
name: pretty_dio_logger | ||
description: Pretty Dio logger is a Dio interceptor that logs network calls in a pretty, easy to read format. | ||
version: 1.1.1 | ||
version: 1.2.0-beta | ||
homepage: https://github.com/Milad-Akarie/pretty_dio_logger | ||
|
||
environment: | ||
sdk: ">=2.5.0 <3.0.0" | ||
sdk: ">=2.12.0 <3.0.0" | ||
|
||
dependencies: | ||
dio: ">=2.1.9 <=3.1.0" | ||
dio: ">=4.0.0-beta <=5.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
void main() { | ||
// todo add test | ||
} | ||
void main() async {} |