Skip to content

Commit

Permalink
Merge branch 'develop_front' of https://github.com/tukcomCD2024/YooDoRi
Browse files Browse the repository at this point in the history
… into develop_front
  • Loading branch information
Dodi029 committed Jun 20, 2024
2 parents e1fe3f4 + 2eab52b commit dce88a9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions frontend/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ plugins {

// Firebase추가를 위함
id("com.google.gms.google-services")

id ("kotlin-parcelize")
}

val properties = Properties().apply{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package kr.ac.tukorea.whereareu.data.model.nok.home

import kr.ac.tukorea.whereareu.domain.home.LocationInfo
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize

@Parcelize
data class LocationInfoResponse(
val battery: Int,
val isGpsOn: Boolean,
Expand All @@ -12,7 +15,7 @@ data class LocationInfoResponse(
val userStatus: String,
val bearing: Float,
val currentSpeed: Float
){
): Parcelable{
constructor(): this(100, true, true, 0, 37.5666103, 126.9783882, "", 0f, 0f)
fun toModel(isPredicted: Boolean): LocationInfo {
return LocationInfo(battery, isGpsOn, isInternetOn, isRingstoneOn, latitude, longitude, userStatus, bearing, currentSpeed, isPredicted)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
package kr.ac.tukorea.whereareu.presentation.nok.home

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.localbroadcastmanager.content.LocalBroadcastManager
import com.naver.maps.geometry.LatLng
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.async
Expand Down

0 comments on commit dce88a9

Please sign in to comment.