SIGN IN SIGN UP

Improve Swift usage in platform_channel_swift some more (#22318)

Improve Swift usage in platform_channel_swift some more

Make a bunch of changes that willlarche requested in
https://github.com/flutter/flutter/pull/21712:

* Use `static let` within `enum` namespaces for String constants.
* Use `guard` for early exits and to avoid forced unwrapping.
* Explicitly qualify a selector.
* Fix a retain cycle by using a weak reference.
J
James D. Lin committed
f6c154c39c66050c43ad4a736d729e3905525ef8
Parent: 5225f3d
Committed by GitHub <noreply@github.com> on 9/27/2018, 8:44:16 PM