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
32 changes: 28 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: test

on:
push:
branches: [master]
branches: [master, 1.6.x, hive-ce]
pull_request:
branches: [master]
branches: [master, 1.6.x]

jobs:
build:
Expand All @@ -31,8 +31,8 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: dart-lang/setup-dart@v1.5
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1.8.1
- uses: actions/checkout@v4
- name: Install dependencies
run: dart pub get
- name: Run tests
Expand All @@ -45,3 +45,27 @@ jobs:
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}

# Verifies flutter_data's own builders (data_library_builder,
# repository_builder) still generate against a current build_runner,
# in isolation from any other codegen package (riverpod_generator etc.)
# a consuming app might also have in its graph. Apps that see
# build_runner fail with those combined shouldn't read that as this
# fork's codegen being broken — see whether the failure survives
# without flutter_data in the mix before assuming this fork is at fault.
codegen:
runs-on: ubuntu-latest
steps:
- uses: dart-lang/setup-dart@v1.8.1
- uses: actions/checkout@v4
- name: Install dependencies (root)
run: dart pub get
- name: Install dependencies (example)
working-directory: example
run: dart pub get
- name: Generate
working-directory: example
run: dart run build_runner build --delete-conflicting-outputs
- name: Fail if generation produced no output
working-directory: example
run: test -f lib/main.data.dart || (echo "::error::main.data.dart was not generated" && exit 1)
150 changes: 39 additions & 111 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@ packages:
dependency: transitive
description:
name: _fe_analyzer_shared
sha256: "0b2f2bd91ba804e53a61d757b986f89f1f9eaed5b11e4b2f5a2468d86d6c9fc7"
sha256: fdcd9f70f9eb80df3bc5ed0fa67280df2595fd481948df8a9ab082e6a40ad04b
url: "https://pub.dev"
source: hosted
version: "67.0.0"
version: "108.0.0"
analyzer:
dependency: transitive
description:
name: analyzer
sha256: "37577842a27e4338429a1cbc32679d508836510b056f1eedf0c8d20e39c1383d"
sha256: a51c769bff3b6dfbe9d60199b8606d808290702a296bef0c26a4ca391d414e46
url: "https://pub.dev"
source: hosted
version: "6.4.1"
version: "14.4.0"
args:
dependency: transitive
description:
name: args
sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596
sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04
url: "https://pub.dev"
source: hosted
version: "2.4.2"
version: "2.7.0"
async:
dependency: transitive
description:
Expand All @@ -33,30 +33,22 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.11.0"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
url: "https://pub.dev"
source: hosted
version: "2.1.1"
build:
dependency: transitive
description:
name: build
sha256: "80184af8b6cb3e5c1c4ec6d8544d27711700bc3e6d2efad04238c7b5290889f0"
sha256: "8a5c5761af8e31748bba3c82f68925ace40f3225c3eea25be9beb57eca7cd7a8"
url: "https://pub.dev"
source: hosted
version: "2.4.1"
version: "4.0.11"
build_config:
dependency: transitive
description:
name: build_config
sha256: bf80fcfb46a29945b423bd9aad884590fb1dc69b330a4d4700cac476af1708d1
sha256: d466ed2dc9c6cd1d169948879b84ee061eb5e22c64a7c6089879c6296d272a8d
url: "https://pub.dev"
source: hosted
version: "1.1.1"
version: "1.3.3"
build_daemon:
dependency: transitive
description:
Expand All @@ -65,30 +57,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.0.1"
build_resolvers:
dependency: transitive
description:
name: build_resolvers
sha256: "339086358431fa15d7eca8b6a36e5d783728cf025e559b834f4609a1fcfb7b0a"
url: "https://pub.dev"
source: hosted
version: "2.4.2"
build_runner:
dependency: "direct dev"
description:
name: build_runner
sha256: "581bacf68f89ec8792f5e5a0b2c4decd1c948e97ce659dc783688c8a88fbec21"
url: "https://pub.dev"
source: hosted
version: "2.4.8"
build_runner_core:
dependency: transitive
description:
name: build_runner_core
sha256: "4ae8ffe5ac758da294ecf1802f2aff01558d8b1b00616aa7538ea9a8a5d50799"
sha256: "894c243f6bc32015fec466ce30a6925bd537a77a426ee5bf481120477eb3de67"
url: "https://pub.dev"
source: hosted
version: "7.3.0"
version: "2.16.1"
built_collection:
dependency: transitive
description:
Expand All @@ -101,10 +77,10 @@ packages:
dependency: transitive
description:
name: built_value
sha256: fedde275e0a6b798c3296963c5cd224e3e1b55d0e478d5b7e65e6b540f363a0e
sha256: f87ea98192116f7093cb214551ce1929caae0681fdba282b3d8b4462adee7bb7
url: "https://pub.dev"
source: hosted
version: "8.9.1"
version: "8.13.0"
checked_yaml:
dependency: transitive
description:
Expand All @@ -113,22 +89,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.0.3"
code_builder:
dependency: transitive
description:
name: code_builder
sha256: f692079e25e7869c14132d39f223f8eec9830eb76131925143b2129c4bb01b37
url: "https://pub.dev"
source: hosted
version: "4.10.0"
collection:
dependency: transitive
description:
name: collection
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"
url: "https://pub.dev"
source: hosted
version: "1.18.0"
version: "1.19.1"
convert:
dependency: transitive
description:
Expand All @@ -149,10 +117,10 @@ packages:
dependency: transitive
description:
name: dart_style
sha256: "40ae61a5d43feea6d24bd22c0537a6629db858963b99b4bc1c3db80676f32368"
sha256: "82ade9fc4273f29ed673e33166944465225b4f7fc5d4aaef48605cc751c18fc1"
url: "https://pub.dev"
source: hosted
version: "2.3.4"
version: "3.1.13"
equatable:
dependency: transitive
description:
Expand Down Expand Up @@ -184,14 +152,6 @@ packages:
relative: true
source: path
version: "1.6.0"
frontend_server_client:
dependency: transitive
description:
name: frontend_server_client
sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612"
url: "https://pub.dev"
source: hosted
version: "3.2.0"
glob:
dependency: transitive
description:
Expand All @@ -208,22 +168,22 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.3.1"
hive:
hive_ce:
dependency: transitive
description:
name: hive
sha256: "8dcf6db979d7933da8217edcec84e9df1bdb4e4edc7fc77dbd5aa74356d6d941"
name: hive_ce
sha256: f81eb3dcfd894f07e23c29aa12640f4001218d9a83b4f880d71febfd400218b0
url: "https://pub.dev"
source: hosted
version: "2.2.3"
version: "2.4.4"
http:
dependency: transitive
description:
name: http
sha256: a2bbf9d017fcced29139daa8ed2bba4ece450ab222871df93ca9eec6f80c34ba
sha256: "87721a4a50b19c7f1d49001e51409bddc46303966ce89a65af4f4e6004896412"
url: "https://pub.dev"
source: hosted
version: "1.2.0"
version: "1.6.0"
http_multi_server:
dependency: transitive
description:
Expand Down Expand Up @@ -256,30 +216,22 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.0.4"
js:
dependency: transitive
description:
name: js
sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf
url: "https://pub.dev"
source: hosted
version: "0.7.1"
json_annotation:
dependency: "direct main"
description:
name: json_annotation
sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467
sha256: "2a743920d81b7910627f68ee2c9ac1fc0bfee32b9fc3403587d7c6791ca12f80"
url: "https://pub.dev"
source: hosted
version: "4.8.1"
version: "4.12.0"
json_serializable:
dependency: "direct dev"
description:
name: json_serializable
sha256: aa1f5a8912615733e0fdc7a02af03308933c93235bdc8d50d0b0c8a8ccb0b969
sha256: e45aefa0324f08c683caafbb94b72837aa6193c61822799c916e45f4a263113d
url: "https://pub.dev"
source: hosted
version: "6.7.1"
version: "6.14.1"
logging:
dependency: transitive
description:
Expand All @@ -288,22 +240,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.2.0"
matcher:
dependency: transitive
description:
name: matcher
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
url: "https://pub.dev"
source: hosted
version: "0.12.16+1"
meta:
dependency: transitive
description:
name: meta
sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136"
sha256: "307249ce4ff29d58a18e97f6345f539382eb9c9c29ecda628900f31de0443dd9"
url: "https://pub.dev"
source: hosted
version: "1.12.0"
version: "1.19.0"
mime:
dependency: transitive
description:
Expand Down Expand Up @@ -396,18 +340,18 @@ packages:
dependency: transitive
description:
name: source_gen
sha256: "14658ba5f669685cd3d63701d01b31ea748310f7ab854e471962670abcf57832"
sha256: "11b6047da8e4eb6c643ccac3d0fda3f9c9e11651695f7da24a85ade8aff15a44"
url: "https://pub.dev"
source: hosted
version: "1.5.0"
version: "4.3.0"
source_helper:
dependency: transitive
description:
name: source_helper
sha256: "6adebc0006c37dd63fe05bca0a929b99f06402fc95aa35bf36d67f5c06de01fd"
sha256: "5e6f216fdf6376c9f3852381ae037499797a3385377d388b011dac98d303c67c"
url: "https://pub.dev"
source: hosted
version: "1.3.4"
version: "1.3.13"
source_span:
dependency: transitive
description:
Expand Down Expand Up @@ -472,22 +416,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.2.1"
test_api:
dependency: transitive
description:
name: test_api
sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f"
url: "https://pub.dev"
source: hosted
version: "0.7.0"
timing:
dependency: transitive
description:
name: timing
sha256: "70a3b636575d4163c477e6de42f247a23b315ae20e86442bebe32d3cabf61c32"
url: "https://pub.dev"
source: hosted
version: "1.0.1"
typed_data:
dependency: transitive
description:
Expand Down Expand Up @@ -516,18 +444,18 @@ packages:
dependency: transitive
description:
name: web
sha256: "4188706108906f002b3a293509234588823c8c979dc83304e229ff400c996b05"
sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a"
url: "https://pub.dev"
source: hosted
version: "0.4.2"
version: "1.1.1"
web_socket_channel:
dependency: transitive
description:
name: web_socket_channel
sha256: "939ab60734a4f8fa95feacb55804fa278de28bdeef38e616dc08e44a84adea23"
sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b
url: "https://pub.dev"
source: hosted
version: "2.4.3"
version: "2.4.0"
yaml:
dependency: transitive
description:
Expand All @@ -537,4 +465,4 @@ packages:
source: hosted
version: "3.1.2"
sdks:
dart: ">=3.2.0 <4.0.0"
dart: ">=3.11.0 <4.0.0"
6 changes: 3 additions & 3 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ version: 1.0.0+1
publish_to: none

environment:
sdk: ">=2.17.1 <3.0.0"
sdk: ">=3.4.0 <4.0.0"

dependencies:
flutter_data:
path: ../../flutter_data
json_annotation: ^4.8.0

dev_dependencies:
build_runner: ^2.0.4
json_serializable: ^6.1.3
build_runner: ^2.6.0
json_serializable: ^6.11.1
Loading
Loading