-
Notifications
You must be signed in to change notification settings - Fork 321
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
Android - Fixes https://github.com/apache/cordova-plugin-network-information#110 #114
Conversation
…lementation for JSON-Object.
Comments on the original still applies: #111 (comment) With the important note of:
|
Do let me know when it's ready for second review. |
Ready for 2nd review. |
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.
lgtm 👍
I'd like to see a view from at least one other PMC member before I merge.
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.
Some minor style suggestions and a question. It would also be nice if you could bring all the else/else if statement of getType
to the same line as the bracket.
Co-authored-by: Tim Brust <[email protected]>
Co-authored-by: Tim Brust <[email protected]>
Co-authored-by: Tim Brust <[email protected]>
I am not entirely sure about your remark. But I did improve it a little bit. Or do you mean changing this
to something like this?
|
It looks like all the requested changes from @timbru31 have been made. I'm going to say a last call for reviews. If there are no responses by Tuesday, July 7th, I'll merge this in. |
Hi, |
Can't really provide any ETAs on releases. |
There was no responses, so I'm merging in. You can also ignore the TotalPave review, that was me on the wrong account. Thank you @PieterVanPoyer for your time and effort. |
Hey @breautek I did enjoy contributing a little. I got a few questions
Kind regards |
Sorry for the lack of timely response, I think it got lost in the bucket of emails.
Cordova is entirely ran by volunteers, so generally speaking we're at the mercy of a volunteer, who happens to have release permissions to spend their time preparing the release, which is in itself a lengthy process. I personally would like to obtain npm access so that I can prepare releases, but I'm not sure if I'm equipped to do that. Ie. I have no mac hardware, so I'm not sure if that limits my ability to do releases or not. It would definitely limit my ability to conduct local native tests for ios code, for repos that have them.
This is pretty much what I do, but because I don't really delve into native code that much... I believe if you use the e.g:
We generally use github projects, or sometimes a meta ticket like apache/cordova#142 for example. Other ways to get more involved is by joining our slack, and subscribing to the dev mailing list And of course, ideas for improving workflows is always welcome. |
Platforms affected
Android
Motivation and Context
Fixes #101
Fixes #110
Fixes #93
Description
The JSONObject of Android does not have an equals implementation. So the equals between previous networkinfo and new networkinfo state always returned false.
I've explicitly tested all properties of the JSONObject for equality.
After a review I noticed that the "extraInfo' value of the JSONObject was not used and needed at all. So I did simplify the plugin to keep the state in a String member. So now the equality is done on a simple String object.
Testing
I did test it on an Android Nexus 5X Emulator and on my Samsung .
Checklist
(platform)
if this change only applies to one platform (e.g.(android)
)I didn't prefix the commit, but I did prefix the PR.
This replaces #111 . The original was started from the master branche. This PR is started from a bugfix-branche.