Skip to content

Commit

Permalink
Added Google-Places plugin as a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
this-Aditya committed Sep 27, 2023
1 parent 003eca3 commit 45c35db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions plugins/radar-android-phone/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ description = 'Basic phone sensor plugin for RADAR passive remote monitoring app
dependencies {
api project(':radar-commons-android')
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.1.0'
implementation project(path: ':radar-android-google-places')
}

apply from: "$rootDir/gradle/publishing.gradle"
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import org.radarbase.android.util.ChangeRunner
import org.radarbase.android.util.SafeHandler
import org.radarbase.android.util.StageLevels
import org.radarbase.android.util.send
import org.radarbase.passive.google.places.GooglePlacesManager.Companion.DEVICE_LOCATION_CHANGED
import org.radarbase.passive.phone.PhoneLocationService.Companion.LOCATION_GPS_INTERVAL_DEFAULT
import org.radarbase.passive.phone.PhoneLocationService.Companion.LOCATION_GPS_INTERVAL_REDUCED_DEFAULT
import org.radarbase.passive.phone.PhoneLocationService.Companion.LOCATION_NETWORK_INTERVAL_DEFAULT
Expand Down Expand Up @@ -104,7 +105,7 @@ class PhoneLocationManager(context: PhoneLocationService) : AbstractSourceManage
handler.start()

status = SourceStatusListener.Status.READY
broadcaster = LocalBroadcastManager.getInstance(this)
broadcaster = LocalBroadcastManager.getInstance(service)

handler.execute {
isStarted = true
Expand Down

0 comments on commit 45c35db

Please sign in to comment.