Skip to content

Update example with latest version details #177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
*This example assumes you're using a recent version of the Dart or Flutter SDK.*

* Dart: you need a [v2 pre-release](https://www.dartlang.org/dart-2).
* Flutter: at least 0.0.23 (Feb 5, 2018).
* Flutter: at least 0.4.4 (May 11, 2018).

To use [package:json_serializable][json_serializable] in your package, add these
dependencies to your `pubspec.yaml`.

```yaml
dependencies:
json_annotation: ^0.2.4
json_annotation: ^0.2.5

dev_dependencies:
build_runner: ^0.8.0
json_serializable: ^0.5.2
build_runner: ^0.8.9
json_serializable: ^0.5.4
```

Annotate your code with classes defined in
Expand Down
10 changes: 5 additions & 5 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: example
author: Dart Team <misc@dartlang.org>

environment:
sdk: '>=2.0.0-dev.32 <2.0.0'
sdk: '>=2.0.0-dev.54 <2.0.0'

dependencies:
json_annotation: ^0.2.4
json_annotation: ^0.2.5

dev_dependencies:
build_runner: ^0.8.0
json_serializable: ^0.5.2
build_runner: ^0.8.9
json_serializable: ^0.5.4

# Used by tests. Not required to use `json_serializable`.
path: ^1.5.1
test: ^0.12.29
test: ^0.12.38
6 changes: 3 additions & 3 deletions example/test/readme_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ void _expect(String fileName) {

final _pubspecContent = r'''
dependencies:
json_annotation: ^0.2.4
json_annotation: ^0.2.5

dev_dependencies:
build_runner: ^0.8.0
json_serializable: ^0.5.2
build_runner: ^0.8.9
json_serializable: ^0.5.4
''';