Skip to content
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
14 changes: 6 additions & 8 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ jobs:
- macos-11
- ubuntu-22.04
sdk:
# Always include lowest supported version (see sdk key in objectbox and generator
# pubspec.yaml, but may be higher due to dependencies).
- 2.18.5
- 2.17.6
- 2.16.2
- 2.14.0 # currently the lowest fully supported version (i.e. generator + lib)
runs-on: ${{ matrix.os }}
steps:
- uses: dart-lang/setup-dart@v1
Expand Down Expand Up @@ -93,14 +93,12 @@ jobs:
os:
- macos-11
- ubuntu-22.04
- windows-2022 # Flutter 2.9 and newer need Visual Studio 2022 to build desktop.
flutter-version:
# Always include lowest supported version (based on lowest tested Dart SDK, see lib tests
# above): https://docs.flutter.dev/development/tools/sdk/releases lists included Dart SDK.
- 3.3.9
- 2.5.0 # currently the lowest fully supported version (i.e. generator + lib)
include:
- flutter-version: 3.3.9 # Flutter 2.9 and newer need Visual Studio 2022 to build desktop.
os: windows-2022
- flutter-version: 2.5.0 # Flutter 2.8.1 and older need Visual Studio 2019 to build desktop.
os: windows-2019
- 3.0.5
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand Down
9 changes: 5 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ test-lib:linux:x64:
needs: ["test-generator:linux:x64"] # Wait for generator test
parallel:
matrix:
# Note: use specific tags as docker images may not always be pulled due to "if-not-present" pull policy.
# Thus, do not use tags like latest/beta, but check https://hub.docker.com/_/dart?tab=tags for latest.
# Always include lowest supported version (see sdk key in objectbox and generator pubspec.yaml).
- DART_VERSION: [ '2.14', '2.16.2', '2.17.6', '2.18.5' ]
# Note: use specific versions instead of latest/beta tags as Docker images may not always be
# pulled due to "if-not-present" pull policy. Check https://hub.docker.com/_/dart?tab=tags.
# Always include lowest supported version (see sdk key in objectbox and generator
# pubspec.yaml, but may be higher due to dependencies).
- DART_VERSION: [ '2.17.6', '2.18.5' ]
2 changes: 1 addition & 1 deletion benchmark/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies:
meta: ^1.3.0

dev_dependencies:
lints: ^1.0.1
lints: ^2.0.1
objectbox_generator: any
build_runner: any

Expand Down
4 changes: 2 additions & 2 deletions generator/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ environment:

dependencies:
objectbox: 1.6.2
analyzer: '>=1.1.0 <5.0.0'
analyzer: '>=4.0.0 <6.0.0' # v5 requires test version that requires Dart SDK 2.18, allow v4 for some time.
build: ^2.0.0
collection: ^1.15.0
dart_style: ^2.0.0
Expand All @@ -20,7 +20,7 @@ dependencies:
yaml: ^3.0.0

dev_dependencies:
lints: ^1.0.1
lints: ^2.0.1

# NOTE: remove before publishing
dependency_overrides:
Expand Down
1 change: 1 addition & 0 deletions objectbox/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
// AFTER
final query = box.query().order(Person_.name).build();
```
* Allow `analyzer` with major version 5. #487

## 1.6.2 (2022-08-24)

Expand Down
4 changes: 2 additions & 2 deletions objectbox/example/flutter/objectbox_demo/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ dependencies:
dev_dependencies:
flutter_driver:
sdk: flutter
test: any
flutter_lints: ^1.0.0
test: any # Should specify a minimum version; but we use any for easier testing of multiple SDKs.
flutter_lints: ^2.0.1
build_runner: ^2.0.0
objectbox_generator: any

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ dependencies:
objectbox_flutter_libs: any
intl: any
path_provider: ^2.0.10 # 2.0.11+ requires Flutter 2.8.0
path: ^1.8.0 # flutter_test depends on path 1.8.0
path: ^1.8.0

dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^1.0.0
flutter_lints: ^2.0.1
build_runner: ^2.0.0
objectbox_generator: any

Expand Down
4 changes: 2 additions & 2 deletions objectbox/example/flutter/objectbox_demo_sync/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ dependencies:
dev_dependencies:
flutter_driver:
sdk: flutter
test: any
flutter_lints: ^1.0.0
test: any # Should specify a minimum version; but we use any for easier testing of multiple SDKs.
flutter_lints: ^2.0.1
build_runner: ^2.0.0
objectbox_generator: any

Expand Down
2 changes: 1 addition & 1 deletion objectbox/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dev_dependencies:
objectbox_generator: any
test: ^1.16.5
ffigen: ^4.1.3
lints: ^1.0.1
lints: ^2.0.1

# NOTE: remove before publishing
dependency_overrides:
Expand Down