-
-
Notifications
You must be signed in to change notification settings - Fork 122
Conversation
Hello @glynskyi, thanks for this PR! I think we still need to wait for all dependencies to be migrated before merging this PR and changing sdk requirements (specially cc @vasilich6107 you were more involved in nnbd, what do you think? |
For everyone like me interested in the progress, here is a list of the dependencies listed in pub.dev and their according nullsafety issues:
|
Artemis is a code generator and it means that it is not included in the final build (only the generated classes). So it doesn't need to wait until all dependencies are migrates to the null safety. Actually I successfully uses this PR in my null safety projects. |
This is not strictly true. Users of code generators can mostly migrate before their |
@simolus3 you could, but there might be inconsistencies: |
@featzima how do you do that:
I tried this in my pubspec.yaml: dev_dependencies:
artemis:
git: https://github.com/glynskyi/artemis.git But I get this error:
I tried running |
@GP4cK You're able to fix the required library version during the transition period. Just create the
|
@featzima interesting 🤔. How do you not get the glob issue?
(also forcing glob to version ^2.0.0-nullsafety.0 leads to issues on code generation) |
pubspec.yaml
|
@jlnrrg meta supports nullsafety from 1.3.0 Scroll this page to the bottom So we can switch on the checkbox
|
build 2.0.0 with nullsafety was released ;) |
pubspec.yaml
Outdated
gql: ^0.13.0-nullsafety.1 | ||
code_builder: ^3.6.0 | ||
collection: ^1.15.0 | ||
dart_style: ^1.3.14 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dart_style: ^1.3.14 | |
dart_style: ^2.0.0 |
Hey all, we've just released 7.0.0-beta.1 as a breaking change, still in beta, version that outputs Artemis generated code as nnbd (eg. GraphQL Soon I'll start working on migrating Artemis code itself to nnbd, probably rebasing this PR if it's not too much work (given the amount of conflicts – sorry about that, but I lot had to be changed to output code to nnbd), following the dependencies and maybe we can have a full nnbd prerelease. But please, if your project is already using nnbd, test this new beta and report bugs on top of it! It'd be very helpful to get real use cases (my company has not migrated yet!). |
@comigor
|
Is there any progress with this new update (null-safety), still waiting for the packages required by Artemis to be updated. |
@inc16sec Not yet, I didn't have time to adapt the package itself to nnbd. However, since 7.0.0-beta.1 it's possible to generate nnbd code, and technically one could update dependency_overrides as featzima's comment above and move on (I'd like people to test it and report back, if possible). |
@comigor thanks for clarifying. If possible I'd like you to reconsider updating the packages first, thus gaining more testing people 😅 if that is not possible without completely switching to nnbd, then nvm my bad. |
@jlnrrg Yeah, I'm not waiting for people to test before upgrade, I just didn't had the time to do it yet 😅 |
@comigor so I have just tried to override these dependencies: dependency_overrides:
build: ^2.0.0
dart_style: '>=1.3.13 <=1.3.13'
glob: ^2.0.0
gql: ^0.13.0-nullsafety.2
gql_exec: ^0.3.0-nullsafety.1
gql_http_link: ^0.4.0-nullsafety.1
gql_dedupe_link: ^2.0.0-nullsafety.1
gql_link: ^0.4.0-nullsafety.2
graphql: 5.0.0-nullsafety.1
http: ^0.13.0
source_gen: ^1.0.0
yaml: ^3.0.0 And I called
And these are the packages that I'm using: dependencies:
flutter:
sdk: flutter
firebase_auth: ^1.0.1
# freezed_annotation: ^0.14.1
flutter_bloc: ^7.0.0
firebase_core: ^1.0.2
firebase_storage: ^8.0.1
graphql_flutter: ^5.0.0-nullsafety.1
flutter_hooks: ^0.16.0
hooks_riverpod: ^0.13.1+1
universal_platform: ^1.0.0-nullsafety
json_serializable: ^4.1.0
built_value: ^8.0.4
built_collection: ^5.0.0
gql: ^0.13.0-nullsafety.2
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2 |
@inc16sec Hmmm so some breaking changes may be really breaking now :( |
@inc16sec I had the same issue, i got it running for now keeping |
I have just tried it with |
Looks like there's is a problem with |
I am using this override monstrosity to make it works:
|
I can confirm, after overriding the packages you've. provided the builder seemed to work again just fine. |
With the latest commit it works without override section in our projects |
Thanks for the fast support 😄 replace '@required' with 'required'Why is this an issue?
|
Hello everyone, we've just merged #283 with NNBD support for Artemis (thank you so much @vasilich6107!) It'll be released as Also thanks for your help @glynskyi, but it was easier to migrate without fixing those conflicts. |
Opt in the null safety