Skip to content

7.0.0

Compare
Choose a tag to compare
@psteiger psteiger released this 12 Oct 06:44
· 20 commits to master since this release

API changes:

  • LocationFetcher.create() and LocationSource.create() abandoned
    in favour of builder functions LocationSource() and LocationFetcher().

  • LocationSource flows are now StateFlows instead of SharedFlows.

  • LocationSource's setCustomLocation(Location) and setPreferredSource(Source)
    changed to vars, customLocation and locationSource.

  • Dropped @ExperimentalCoroutinesApi.

  • Context.LocationFetcher() requires an explicit LifecycleOwner (previously,
    the ProcessLifecycleOwner singleton was used implicitly).
    ComponentActivity.LocationFetcher() still uses the Activity as the
    LifecycleOwner.

  • LocationFetcher.Config.requestLocationPermissions and
    LocationFetcher.Config.requestEnableLocationSettings booleans changed to:

var requestLocationPermissionOnLifecycle: Lifecycle.State? = Lifecycle.State.STARTED,
var requestEnableLocationSettingsOnLifecycle: Lifecycle.State? = Lifecycle.State.STARTED,

Which defines the Lifecycle state that will be used for asking for
location permission or location setting enablement. To disable them,
set to null.