-
-
Notifications
You must be signed in to change notification settings - Fork 623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set initial value for BehaviorSubject<SocketConnectionState>, update connectivity_plus #1433
Conversation
the crash that you are reporting is something that it is caused by This is unclear to me, sorry! In addition, can you add the stacktrace in the commit body as out dev guide explain? |
@vincenzopalazzo I'm so sorry for confusing you. My PR includes two changes:
I think it's simple PR so want to merge into one commit. Thanks for answering! |
Can you add them inside the commit body message? You should be able to edit it with |
1ab4e67
to
b18f3ba
Compare
@vincenzopalazzo I've updated. Please review it for me. Thank you very much! |
It is missing the stacktrace inside the commit body as suggested before |
aa9d69a
to
77f3386
Compare
@vincenzopalazzo please review help me again. Many thanks! |
@@ -15,7 +15,7 @@ dependencies: | |||
meta: ^1.7.0 | |||
path_provider: ^2.0.1 | |||
path: ^1.8.0 | |||
connectivity_plus: ^6.0.1 | |||
connectivity_plus: ^6.0.3 |
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.
I am not super convinced about this, there is any reason to add this constraint?
if you want to use version 6.0.3 also with the current mainline version you should be able to do right?
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.
@vincenzopalazzo sorry for late reply. I'm using
dependencies:
graphql: ^5.2.0-beta.7
graphql_flutter: ^5.2.0-beta.6
connectivity_plus: ^6.0.3
but get a error when flutter pub get
Resolving dependencies...
Because * depends on graphql_flutter ^5.2.0-beta.6 which depends on connectivity_plus ^5.0.0, connectivity_plus ^5.0.0 is required.
So, because * depends on connectivity_plus ^6.0.3, version solving failed.
and this is from pub_cache dir on my local
Maybe you don't release yet after this commit was merged
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.
Ah ok, Because * depends on graphql_flutter ^5.2.0-beta.6 which depends on connectivity_plus ^5.0.0, connectivity_plus ^5.0.0 is required.
from this I do not think you need to bump the connectivity_plus
again.
We already did in #1428 I just need to release the new beta
Can you revert this change and leave the connectivity_plus: ^6.0.1
?
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.
@vincenzopalazzo yes of course but I think 6.0.3 is better because it has some fixes.
Sooner or later we still need to upgrade it because if app doesn't depend directly it will use by transitive. How do you about think?
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.
Make sense so, but this needs to be justified with another commit that links the changelog that you are now pointing to me
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.
I think these are 2 important commits:
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.
Yeah, divide your PR into two separate commits, wherein the first one you fix the crash and in the second one you upgrade the connectivity_plus
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.
@vincenzopalazzo I got it. Many thanks!
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.
@vincenzopalazzo Please check help me again!
Thanks @hantrungkien now the last thing is dropping the commit that we do not need https://stackoverflow.com/a/1338758/10854225 You should drop the following commits: |
update
connectivity_plus: ^6.0.3
set initial value for
BehaviorSubject<SocketConnectionState>
When use
toggleConnection
will throw at