Skip to content

Commit

Permalink
Hive v4
Browse files Browse the repository at this point in the history
  • Loading branch information
simc authored Aug 21, 2023
1 parent 19744f5 commit 767b93e
Show file tree
Hide file tree
Showing 211 changed files with 2,805 additions and 23,013 deletions.
4 changes: 0 additions & 4 deletions .gitattributes

This file was deleted.

21 changes: 0 additions & 21 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

22 changes: 0 additions & 22 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

21 changes: 0 additions & 21 deletions .github/ISSUE_TEMPLATE/question.md

This file was deleted.

Binary file removed .github/benchmark_read.png
Binary file not shown.
Binary file removed .github/benchmark_write.png
Binary file not shown.
8 changes: 0 additions & 8 deletions .github/no-response.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/coverage.yml

This file was deleted.

88 changes: 34 additions & 54 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,74 +3,54 @@ name: Dart CI
on: [push, pull_request]

jobs:
test-hive:
format:
name: Check formatting
runs-on: ubuntu-latest
strategy:
matrix:
test-platform: [vm, chrome]
dart-channel: ["2.16.0", "2.18.2"]
steps:
- uses: actions/checkout@v1
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.dart-channel }}
- uses: actions/checkout@v3
- name: Setup Dart
uses: dart-lang/setup-dart@v1
- name: Install dependencies
run: dart pub get
working-directory: hive
- name: Run tests
run: dart pub run test -p ${{ matrix.test-platform }}
working-directory: hive
- name: Check formatting
run: dart format -o none . --set-exit-if-changed

test-hive-flutter:
lint:
name: Check lints
runs-on: ubuntu-latest
strategy:
matrix:
flutter-channel: [dev, beta, stable]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: "12.x"
- uses: subosito/flutter-action@v1
with:
channel: ${{ matrix.flutter-channel }}
- name: Override dependency version
run: |
echo -e "\ndependency_overrides:\n win32: 2.6.1\n hive:\n path: ../hive" >> pubspec.yaml
working-directory: hive_flutter
- uses: actions/checkout@v3
- name: Setup Dart
uses: dart-lang/setup-dart@v1
- name: Install dependencies
run: flutter pub get
working-directory: hive_flutter
- name: Run tests
run: flutter test
working-directory: hive_flutter
run: dart pub get
- name: Check Lints
run: dart analyze

test-hive_generator:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
dart-channel: ["2.18.2"]
steps:
- uses: actions/checkout@v1
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.dart-channel }}
- uses: actions/checkout@v3
- name: Setup Dart
uses: dart-lang/setup-dart@v1
- name: Install dependencies
run: dart pub get
working-directory: hive_generator/example
- name: Generate build_runner output
run: dart run build_runner build --delete-conflicting-outputs
working-directory: hive_generator/example
- name: Run tests
run: dart test

check-score:
coverage:
name: Code Coverage
runs-on: ubuntu-latest
strategy:
matrix:
package: [hive, hive_generator, hive_flutter]
steps:
- uses: actions/checkout@v1
- uses: axel-op/dart-package-analyzer@v3
- uses: actions/checkout@v3
- name: Setup Flutter
uses: subosito/flutter-action@v2
- name: Install dependencies
run: flutter pub get
- name: Code Coverage
run: flutter test --coverage --coverage-path lcov.info
- name: Upload Coverage
uses: codecov/codecov-action@v3
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
relativePath: ${{ matrix.package }}
minAnnotationLevel: warning
files: lcov.info
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,7 @@ web_worker.dart.js*
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

*.dylib
*.so
*.dll
File renamed without changes.
19 changes: 15 additions & 4 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Apache License
Version 2.0, January 2004
https://www.apache.org/licenses/
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

Expand Down Expand Up @@ -175,16 +175,27 @@

END OF TERMS AND CONDITIONS

Copyright 2019 Simon Leier
APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
1 change: 0 additions & 1 deletion README.md

This file was deleted.

Loading

0 comments on commit 767b93e

Please sign in to comment.