diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml new file mode 100644 index 0000000..7916361 --- /dev/null +++ b/.github/workflows/dart.yml @@ -0,0 +1,62 @@ +name: Dart Package + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: dart-lang/setup-dart@v1 + + - name: Install dependencies + run: dart pub get + + - name: Verify formatting + run: dart format --output=none --set-exit-if-changed . + + - name: Analyze project source + run: dart analyze --fatal-warnings --fatal-infos --verbose . + + - name: Activate code coverage + run: pub global activate dart_coveralls + + - name: Analyze code coverage + run: dart_coveralls report --debug --exclude-test-files --token=$COVERALLS_REPO_TOKEN test/all_test.dart + + test: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + sdk: [stable, 2.12.0, 2.13.1] + steps: + - uses: actions/checkout@v2 + - uses: dart-lang/setup-dart@v1.0 + with: + sdk: ${{ matrix.sdk }} + + - name: Install dependencies + run: dart pub get + + - name: Run tests + run: dart test + + deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: dart-lang/setup-dart@v1 + + - name: Install dependencies + run: dart pub get + + - name: Publish project + run: pub publish --dry-run diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b14d70..ec74cc9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.0.0 + +* BREAKING CHANGE: This version requires Dart SDK 2.12.0 or later (null safety). + ## 1.1.0+2 - fix PolygonUtils.simplify diff --git a/README.md b/README.md index 37f8003..3579466 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ In your dart/flutter project add the dependency: ``` dependencies: ... - maps_toolkit: ^1.1.0+2 + maps_toolkit: ^2.0.0 ``` A simple usage example: diff --git a/analysis_options.yaml b/analysis_options.yaml index 21bc8cc..4532cbb 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -9,7 +9,6 @@ linter: # - always_specify_types - annotate_overrides - avoid_annotating_with_dynamic - - avoid_as - avoid_bool_literals_in_conditional_expressions - avoid_catches_without_on_clauses - avoid_catching_errors diff --git a/pubspec.yaml b/pubspec.yaml index 76f42a8..90b3efb 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,10 +4,10 @@ version: 2.0.0 homepage: https://github.com/kb0/maps_toolkit/ environment: - sdk: ">=2.12.0-0 <3.0.0" + sdk: ">=2.12.0 <3.0.0" dependencies: dev_dependencies: - test: any pedantic: '>=1.8.0 <3.0.0' + test: any