Skip to content

Commit c3d6c89

Browse files
committed
Configure Dart/Flutter SDK version dependency
1 parent 8b042ed commit c3d6c89

File tree

10 files changed

+20
-16
lines changed

10 files changed

+20
-16
lines changed

.github/workflows/dart.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ jobs:
2626
- macos-10.15
2727
- ubuntu-20.04
2828
dart:
29-
- 2.10.5
30-
# - 2.9.3 - generator stuck. I remember there was an issue in some dependency but don't remember which one.
31-
- 2.8.4
32-
- 2.7.2
29+
- latest
30+
- 2.10.0 # currently the lowest fully supported version (i.e. generator + lib)
3331
runs-on: ${{ matrix.os }}
3432
steps:
3533
# Note: dart-sdk from flutter doesn't work on linux, see https://github.com/flutter/flutter/issues/74599

benchmark/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: objectbox_benchmark
22
description: Simple ObjectBox-Dart performance benchmark
33

44
environment:
5-
sdk: ">=2.6.0 <3.0.0"
5+
sdk: ">=2.10.0 <3.0.0"
66

77
dependencies:
88
objectbox: any

flutter_libs/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ homepage: https://objectbox.io
55
description: ObjectBox is a super-fast NoSQL ACID compliant object database. This package contains flutter runtime libraries for ObjectBox.
66

77
environment:
8-
sdk: ">=2.6.0 <3.0.0"
9-
flutter: ">=1.12.0 <2.0.0"
8+
sdk: ">=2.9.0 <3.0.0"
9+
flutter: ">=1.20.0 <1.26.0" # 1.26 changes DART_API_DL_MAJOR_VERSION
1010

1111
dependencies:
1212
# This is here just to ensure compatibility between objectbox-dart code and the libraries used

generator/integration-tests/shared-pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: objectbox_generator_test
22

33
environment:
4-
sdk: ">=2.5.0 <3.0.0"
4+
sdk: ">=2.10.0 <3.0.0"
55

66
dependencies:
77
objectbox: any

generator/pubspec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ homepage: https://objectbox.io
55
description: ObjectBox binding code generator - finds annotated entities and adds them to the ObjectBox DB model.
66

77
environment:
8-
sdk: ">=2.5.0 <3.0.0"
8+
# min SDK v2.10.0 (or Flutter v1.22) - there were breaking changes in the analyzer/resolver
9+
sdk: ">=2.10.0 <3.0.0"
910

1011
dependencies:
1112
objectbox: 0.11.0

objectbox/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* Update to objectbox-c v0.12.0
77
* Update to objectbox-android v2.9.0
88
* Update to objectbox-swift v1.5.0
9+
* Increase minimum SDK versions: Flutter v1.20 & Dart v2.9. Code generator already required Flutter v1.22 & Dart v2.10.
910

1011
## 0.11.0 (2021-02-01)
1112

objectbox/example/flutter/objectbox_demo/pubspec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ description: An example project for the objectbox-dart binding.
33
version: 0.3.0+1
44

55
environment:
6-
sdk: ">=2.1.0 <3.0.0"
6+
sdk: ">=2.10.0 <3.0.0"
7+
flutter: ">=1.22.0 <2.0.0"
78

89
dependencies:
910
flutter:

objectbox/example/flutter/objectbox_demo_sync/pubspec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ description: An example project for the objectbox-dart binding.
33
version: 0.3.0+1
44

55
environment:
6-
sdk: ">=2.1.0 <3.0.0"
6+
sdk: ">=2.10.0 <3.0.0"
7+
flutter: ">=1.22.0 <2.0.0"
78

89
dependencies:
910
flutter:

objectbox/pubspec.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ homepage: https://objectbox.io
55
description: ObjectBox is a super-fast NoSQL ACID compliant object database.
66

77
environment:
8-
# sdk: '>=2.12.0-0 <3.0.0'
9-
# min 2.7.0 because of ffigen
10-
sdk: '>=2.7.0 <3.0.0'
8+
# minimum Dart SDK (also see generator/pubspec.yaml)
9+
# v2.9.0 (Flutter v1.20) for package 'dart:ffi' NativeApi.initializeApiDLData
10+
# v1.12.0 (Flutter v1.26) increases DART_API_DL_MAJOR_VERSION, breaking async-callbacks & observers
11+
sdk: '>=2.9.0 <2.12.0'
12+
# sdk: '>=2.12.0-0 <3.0.0'
1113

1214
dependencies:
1315
collection: ^1.14.11

sync_flutter_libs/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ homepage: https://objectbox.io
55
description: ObjectBox is a super-fast NoSQL ACID compliant object database. This package contains flutter runtime libraries for ObjectBox, including ObjectBox Sync.
66

77
environment:
8-
sdk: ">=2.6.0 <3.0.0"
9-
flutter: ">=1.12.0 <2.0.0"
8+
sdk: ">=2.9.0 <3.0.0"
9+
flutter: ">=1.20.0 <1.26.0" # 1.26 changes DART_API_DL_MAJOR_VERSION
1010

1111
dependencies:
1212
# This is here just to ensure compatibility between objectbox-dart code and the libraries used

0 commit comments

Comments
 (0)