° forceNewLocation
argument made optional for getFusedLocation
function call.
° Support library migrated to AndroidX namespace.
° Added support for Typescript. ❤️
° Google play services version can now be overriden and is defaulted to 16.+
.
° Android gradle version updated to 3.3.2
.
• Compile SDK version defaulted to 28
.
• Build tools version defaulted to 28.0.3
.
° BuildToolsVersion
and sdkVersion
are now taken from the main android project's gradle file.
° LocationCallback
added instead of LocationListener
to method getFusedLocation()
when last location returned null or forceNewLocation was set to true. This would guarantee the promise is resolved or rejected depending upon location availability.
° Made areProvidersAvailable
method public under FusedLocation.areProvidersAvailable()
.
° Semver for this repo started.
° Add timestamp
via getTime()
to the location
object. Returns the UNIX timestamp (in millis) of when the location was generated.
° Added forceNewLocation
as an optional argument to getFusedLocation
. This gets a new location everytime and never reuses a last known location.
° Added a check if GPS Provider or Network Provider exists on the device. Useful on emulators where getFusedLocation
used to hang when GPS was turned off.
° Added mocked
property to the Location
object.
• PR for #1 and #3 from - https://github.com/ginosi.
° Fixed typo in ReadMe. Changed setLocationFatestInterval
to setFastestLocationInterval
in js example.
° Fixed typo in ReadMe. Changed FusedLocation
to FusedLocationPackage
in manual linking.
PR by - https://github.com/jarvisluong
° Default values added to Readme.
° iOS compatibility fixes.
° Initial Commit.