alex-alex/iOS-Ingress — pull request #307 by jbekas (2013-06-28 02:07:48+00:00)
Title: Portal actions

Created SharedLocationManager (a static shared CLLocationManager), and refactored PortalActionsViewController and ScannerViewController to use it.

Added an "#if DEBUG" block to enable the developer to Hack or Link portals not within range. The ability will be enabled when Debug mode is used, but disabled when Release mode is used.

Enable the Recharge button if the player is within 40m of the target OR (if the player is the same affiliation as the portal owner AND has a portal key). If recharging by portal key, the remoteRechargePortal API is used instead of the regular rechargePortal call.