-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
expose isPresent ios implementation #203
expose isPresent ios implementation #203
Conversation
geocoding_ios/lib/geocoding_ios.dart
Outdated
try { | ||
final isPresent = await _channel.invokeMethod( | ||
'isPresent', | ||
); | ||
|
||
return isPresent; | ||
} on PlatformException catch (e) { | ||
_handlePlatformException(e); | ||
rethrow; | ||
} |
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.
Wouldn't it be easier / faster to simply return true
in this method and skip the whole native implementation?
geocoding_ios/pubspec.yaml
Outdated
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.
The dependency on the geocoding_platform_interface
should be updated to version 3.2.0 to enforce the implementation of the isPresent()
method.
If we don't do so, this might result in analysis warnings when developers are compiling against an older version of the geocoding_platform_interface
(which was the case for me :P).
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
Implements isPresent iOS (#194)
Pre-launch Checklist
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is does not need version changes.CHANGELOG.md
to add a description of the change.///
).main
.dart format .
and committed any changes.flutter analyze
and fixed any errors.