Giter Site home page Giter Site logo

patloew / colocation Goto Github PK

View Code? Open in Web Editor NEW
119.0 1.0 15.0 142 KB

๐Ÿ—บ Coroutines Location APIs Library for Android and Kotlin

License: Other

Kotlin 100.00%
kotlin-android coroutines-android location location-services kotlin android android-library coroutines coroutines-flow

colocation's People

Contributors

alexvanyo avatar patloew avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

colocation's Issues

Doesn't work in WorkManager

I was trying to use this inside CoroutineWorker, but it doesn't seem to return any result.

inside doWork() I am using this

PlayServices 21.0.1 - IncompatibleClassChangeError

Hi,

When trying to update play-services-location from 20.0.0 to 21.0.1 I face an issue with IncompatibleClassChangeError coming from CoLocation. I included the exact error message below. I managed to find an exact, although already solved, issue in Mapbox's issue tracker.

java.lang.IncompatibleClassChangeError: 
Found interface com.google.android.gms.location.FusedLocationProviderClient, but class was expected
(declaration of 'com.google.android.gms.location.FusedLocationProviderClient' appears in base.apk!classes35.dex)
   at com.patloew.colocation.CoLocationImpl$getLocationUpdates$1.invokeSuspend(CoLocationImpl.kt:111)

as well as

 java.lang.IncompatibleClassChangeError:
 Found interface com.google.android.gms.location.FusedLocationProviderClient, but class was expected 
 (declaration of 'com.google.android.gms.location.FusedLocationProviderClient' appears in base.apk!classes35.dex)
     at com.patloew.colocation.CoLocationImpl.getLastLocation(CoLocationImpl.kt:68)

This issue happens independently from Android, Coroutines, or other dependencies versions. It's also reproducible 100% of the time.

Please let me know if I can assist with more information.

HMS integration

It will be a great thing to have Huawei Mobile Services location provider support.

Crash in getting address using GeoCoder

I am getting this crash in my app. I have cancelled the job used to get location updates in onStop() and onDestroy() of my activity.
Here are the traces,

Exception java.io.IOException:
  at android.location.Geocoder$SynchronousGeocoder.getResults (Geocoder.java:388)
  at android.location.Geocoder.getFromLocation (Geocoder.java:134)
  at com.patloew.colocation.CoGeocoderImpl$getAddressListFromLocation$3.invokeSuspend
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (BaseContinuationImpl.java)
  at kotlinx.coroutines.DispatchedTask.run (DispatchedTask.java)
  at kotlinx.coroutines.internal.LimitedDispatcher.run (LimitedDispatcher.java)
  at kotlinx.coroutines.scheduling.TaskImpl.run (TaskImpl.java)
  at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely (CoroutineScheduler.java:82)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask (CoroutineScheduler.java:82)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker (CoroutineScheduler.java:82)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run (CoroutineScheduler.java:82)

I'm not using ViewModel.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.