Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Adding getWifiName to connectivity plugin #685

Merged
merged 8 commits into from
Sep 4, 2018

Conversation

ffeu
Copy link
Contributor

@ffeu ffeu commented Jul 24, 2018

No description provided.

@ffeu
Copy link
Contributor Author

ffeu commented Jul 24, 2018

@kroikie can you please take a look a this one too?

@ffeu
Copy link
Contributor Author

ffeu commented Jul 24, 2018

@kroikie if I may note, please also take a look at the commit d741a53 .

Running the flutter_plugin_tools format locally (on my mac) formatted the .h and .m files differently of what's being expected by the CI. ( https://cirrus-ci.com/task/5153579971117056 )

Copy link
Contributor

@kroikie kroikie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, @mravn-google would you mind taking a look before this is merged?

String wifiName = await _methodChannel.invokeMethod('wifiname');
// as Android might return <unknown ssid>, uniforming result
// our iOS implementation will return null
if (wifiName == "<unknown ssid>") wifiName = null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Use single quotes here for consistency.

/// From android 8.0 onwards the GPS must be ON (high accuracy)
/// in order to be able to obtain the SSID.
Future<String> getWifiName() async {
String wifiName = await _methodChannel.invokeMethod('wifiname');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For readability use a camel-cased method name. wifiName instead of wifiname

@kroikie
Copy link
Contributor

kroikie commented Jul 25, 2018

@ffeu about the formatting issues, please make sure that you are using clang-format version 5.0.0. That is the version that the CI is using.

@ffeu
Copy link
Contributor Author

ffeu commented Jul 25, 2018

@kroikie noticed that this morning :)
brew clang-formula is pointing to this awkward tag instead of latest release
-> then I tried to create a clang-format@5 formula
-> then I'm trying to patch a brew issue that prevents svn builds to contain an @ symbol...

@ffeu
Copy link
Contributor Author

ffeu commented Aug 7, 2018

Hi, @kroikie and @mravn-google . Do you guys think we can merge this PR?

Please let me know if there's any improvement I can make to it.

@kroikie kroikie merged commit 4ef2f60 into flutter:master Sep 4, 2018
nichtverstehen pushed a commit to nichtverstehen/plugins that referenced this pull request Sep 6, 2018
* Adding getWifiName to connectivity plugin
@ffeu
Copy link
Contributor Author

ffeu commented Sep 27, 2018

Hi @kroikie . In the end this new version didn't get to Dart Pub! Is that something I can do myself?

@kroikie
Copy link
Contributor

kroikie commented Sep 27, 2018

Hi @ffeu sorry for the delay there, will publish it soon.

@kroikie
Copy link
Contributor

kroikie commented Sep 27, 2018

Published, @ffeu Thanks again for the PR.

@ffeu ffeu deleted the connectivity_ssid branch November 16, 2018 13:59
andreidiaconu pushed a commit to andreidiaconu/plugins that referenced this pull request Feb 17, 2019
* Adding getWifiName to connectivity plugin
andreidiaconu added a commit to andreidiaconu/plugins that referenced this pull request Feb 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants