Skip to content

Commit

Permalink
Merge pull request #81 from ttoklip/70-feat-우리동네-댓글-좋아요-스크랩-구현
Browse files Browse the repository at this point in the history
70 feat 우리동네 댓글 좋아요 스크랩 구현
  • Loading branch information
hangunhee39 authored Jul 2, 2024
2 parents 5febf23 + e66ac2e commit 23ae7a1
Show file tree
Hide file tree
Showing 25 changed files with 1,300 additions and 567 deletions.
4 changes: 2 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
<activity
android:name=".presentation.hometown.together.write.WriteTogetherActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan"
android:windowSoftInputMode="adjustResize"
android:exported="false" />
<activity
android:name=".presentation.hometown.communication.write.WriteCommunicationActivity"
Expand All @@ -130,7 +130,7 @@
android:windowSoftInputMode="adjustPan"
android:exported="true" />
<activity
android:name=".presentation.hometown.TradeLocationActivity"
android:name=".presentation.hometown.together.write.tradelocation.TradeLocationActivity"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan"
android:exported="false" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ package com.umc.ttoklip.data.model.naver
data class GeocodingResponse(
val status: String,
val meta: Meta,
val addresses: Addresses,
val addresses: List<Addresses>,
val errorMessage: String
)
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ class HomeFragment : BaseFragment<FragmentHomeBinding>(R.layout.fragment_home),
binding.vm = viewModel
binding.tipRV.adapter = tipRVA
viewModel.getMain()
viewModel.fetchGeocoding("분당구 불정로 6")
Log.d("엑세스", "${TtoklipApplication.prefs.getString("jwt", "")}")

CoroutineScope(Dispatchers.IO).launch {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface HomeViewModel {
fun getMain()
fun patchFCM(token: String)

fun fetchGeocoding(query: String)


enum class ActivityEventBus {
SEARCH,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ import javax.inject.Inject
@HiltViewModel
class HomeViewModelImpl @Inject constructor(
private val homeRepository: HomeRepository,
private val fcmRepository: FCMRepository,
private val naverRepository: NaverRepository
private val fcmRepository: FCMRepository
) : ViewModel(), HomeViewModel {

private val _haveWork: MutableStateFlow<Boolean> = MutableStateFlow(true)
Expand Down Expand Up @@ -126,12 +125,4 @@ class HomeViewModelImpl @Inject constructor(
}
}
}

override fun fetchGeocoding(query: String) {
viewModelScope.launch {
naverRepository.fetchGeocoding(query).onSuccess {
Log.d("naver", it.toString())
}
}
}
}

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 23ae7a1

Please sign in to comment.