Skip to content

Commit d6425ed

Browse files
author
Nedyalko Nikolov
committed
Location module deprecated.
1 parent 91dffc1 commit d6425ed

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

location/location-common.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import defModule = require("location");
44

55
var defaultGetLocationTimeout = 20000;
66

7+
@Deprecated
78
export class Location implements defModule.Location {
89
public latitude: number;
910
public longitude: number;
@@ -88,4 +89,4 @@ export var getLocation = function (options?: defModule.Options): Promise<defModu
8889
}, options.timeout || defaultGetLocationTimeout);
8990
}
9091
});
91-
}
92+
}

location/location.android.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import utils = require("utils/utils");
55

66
global.moduleMerge(common, exports);
77

8+
@Deprecated
89
export class LocationManager implements locationModule.LocationManager {
910
get android(): locationModule.AndroidLocationManager {
1011
return this.androidLocationManager;
@@ -193,6 +194,7 @@ export class LocationManager implements locationModule.LocationManager {
193194
}
194195
}
195196

197+
@Deprecated
196198
export class AndroidLocationManager implements locationModule.AndroidLocationManager {
197199
private _manager: android.location.LocationManager;
198200
private _minimumUpdateTime: number;

location/location.ios.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class LocationListenerImpl extends NSObject implements CLLocationManagerDelegate
5353
}
5454
}
5555

56+
@Deprecated
5657
export class LocationManager implements locationModule.LocationManager {
5758
get android(): locationModule.AndroidLocationManager {
5859
return undefined;
@@ -165,6 +166,7 @@ export class LocationManager implements locationModule.LocationManager {
165166
}
166167

167168
/* tslint:disable */
169+
@Deprecated
168170
export class iOSLocationManager implements locationModule.iOSLocationManager {
169171
private _manager: CLLocationManager;
170172

0 commit comments

Comments
 (0)