Skip to content

Commit 14ddc18

Browse files
committed
Move annotations into json_annotation package
Closes #37
1 parent 3e62422 commit 14ddc18

21 files changed

+114
-10
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ dart:
66
- stable
77

88
env:
9+
- PKG=json_annotation TASK=dartanalyzer
10+
- PKG=json_annotation TASK=dartfmt
911
- PKG=json_serializable TASK=dartanalyzer
1012
- PKG=json_serializable TASK=dartfmt
1113
- PKG=json_serializable TASK=test

json_annotation/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Files and directories created by pub
2+
.packages
3+
.pub/
4+
pubspec.lock

json_annotation/.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: dart
2+
dart:
3+
- dev
4+
- stable
5+
6+
dart_task:
7+
- dartfmt
8+
- dartanalyzer
9+
10+
# Only building master means that we don't run two builds for each pull request.
11+
branches:
12+
only: [master]
13+
14+
cache:
15+
directories:
16+
- $HOME/.pub-cache

json_annotation/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 0.2.0
2+
3+
- Moved annotation classes for `JsonSerializable` and `JsonLiteral`.

json_annotation/LICENSE

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Copyright 2017, the Dart project authors. All rights reserved.
2+
Redistribution and use in source and binary forms, with or without
3+
modification, are permitted provided that the following conditions are
4+
met:
5+
6+
* Redistributions of source code must retain the above copyright
7+
notice, this list of conditions and the following disclaimer.
8+
* Redistributions in binary form must reproduce the above
9+
copyright notice, this list of conditions and the following
10+
disclaimer in the documentation and/or other materials provided
11+
with the distribution.
12+
* Neither the name of Google Inc. nor the names of its
13+
contributors may be used to endorse or promote products derived
14+
from this software without specific prior written permission.
15+
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

json_annotation/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Annotations for [json_serializable]. Use these to eliminate a production
2+
dependency on `json_serializable` and the associated transitive dependencies.
3+
4+
## Features and bugs
5+
6+
Please file feature requests and bugs at the [issue tracker][tracker].
7+
8+
[tracker]: https://github.com/dart-lang/json_serializable/issues
9+
[json_serializable]: https://pub.dartlang.org/packages/json_serializable

json_annotation/analysis_options.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
analyzer:
2+
strong-mode: true
3+
# exclude:
4+
# - path/to/excluded/files/**
5+
6+
# Lint rules and documentation, see http://dart-lang.github.io/linter/lints
7+
linter:
8+
rules:
9+
- cancel_subscriptions
10+
- hash_and_equals
11+
- iterable_contains_unrelated_type
12+
- list_remove_unrelated_type
13+
- test_types_in_equals
14+
- unrelated_type_equality_checks
15+
- valid_regexps
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
5+
/// Use these annotations on members you'd like to enable source generation on.
6+
7+
export 'src/json_literal.dart';
8+
export 'src/json_serializable.dart';

0 commit comments

Comments
 (0)