From 76a45a38344ba8272244e67a202113e4874e7142 Mon Sep 17 00:00:00 2001 From: Ibby Hadeed Date: Tue, 11 Jul 2017 10:29:26 -0400 Subject: [PATCH] refactor(launch-navigator): move constants to the top of the class --- .../plugins/launch-navigator/index.ts | 47 ++++++++++--------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/src/@ionic-native/plugins/launch-navigator/index.ts b/src/@ionic-native/plugins/launch-navigator/index.ts index 61174c44..6547d105 100644 --- a/src/@ionic-native/plugins/launch-navigator/index.ts +++ b/src/@ionic-native/plugins/launch-navigator/index.ts @@ -97,6 +97,30 @@ export interface LaunchNavigatorOptions { @Injectable() export class LaunchNavigator extends IonicNativePlugin { + APP: any = { + USER_SELECT: 'user_select', + APPLE_MAPS: 'apple_maps', + GOOGLE_MAPS: 'google_maps', + WAZE: 'waze', + CITYMAPPER: 'citymapper', + NAVIGON: 'navigon', + TRANSIT_APP: 'transit_app', + YANDEX: 'yandex', + UBER: 'uber', + TOMTOM: 'tomtom', + BING_MAPS: 'bing_maps', + SYGIC: 'sygic', + HERE_MAPS: 'here_maps', + MOOVIT: 'moovit' + }; + + TRANSPORT_MODE: any = { + DRIVING: 'driving', + WALKING: 'walking', + BICYCLING: 'bicycling', + TRANSIT: 'transit' + }; + /** * Launches navigator app * @param destination {string|number[]} Location name or coordinates (as string or array) @@ -203,27 +227,4 @@ export class LaunchNavigator extends IonicNativePlugin { @Cordova({ sync: true }) userSelect(destination: string | number[], options: LaunchNavigatorOptions): void { } - APP: any = { - USER_SELECT: 'user_select', - APPLE_MAPS: 'apple_maps', - GOOGLE_MAPS: 'google_maps', - WAZE: 'waze', - CITYMAPPER: 'citymapper', - NAVIGON: 'navigon', - TRANSIT_APP: 'transit_app', - YANDEX: 'yandex', - UBER: 'uber', - TOMTOM: 'tomtom', - BING_MAPS: 'bing_maps', - SYGIC: 'sygic', - HERE_MAPS: 'here_maps', - MOOVIT: 'moovit' - }; - - TRANSPORT_MODE: any = { - DRIVING: 'driving', - WALKING: 'walking', - BICYCLING: 'bicycling', - TRANSIT: 'transit' - }; }