From 8094c6f4c0bffc8e46e5b1da692b4e058a09adfe Mon Sep 17 00:00:00 2001 From: "lge6716@gmail.com" Date: Mon, 8 Jan 2024 17:01:07 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20import=EB=AC=B8=20=EC=82=AC?= =?UTF-8?q?=EC=A0=84=EC=88=9C=20=EC=A0=95=EB=A0=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project/meongcare/info/model/data/remote/ProfileApi.kt | 2 +- .../info/model/data/repository/ProfileRepository.kt | 2 +- .../info/model/data/repository/ProfileRepositoryImpl.kt | 4 ++-- .../java/com/project/meongcare/info/view/PetEditFragment.kt | 4 ++-- .../java/com/project/meongcare/info/view/PetInfoFragment.kt | 6 +++--- .../java/com/project/meongcare/info/view/ProfileFragment.kt | 2 +- .../java/com/project/meongcare/info/view/SettingFragment.kt | 2 +- .../project/meongcare/info/viewmodel/ProfileViewModel.kt | 4 ++-- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/src/main/java/com/project/meongcare/info/model/data/remote/ProfileApi.kt b/app/src/main/java/com/project/meongcare/info/model/data/remote/ProfileApi.kt index cb4b8bf80..dace3415d 100644 --- a/app/src/main/java/com/project/meongcare/info/model/data/remote/ProfileApi.kt +++ b/app/src/main/java/com/project/meongcare/info/model/data/remote/ProfileApi.kt @@ -1,8 +1,8 @@ package com.project.meongcare.info.model.data.remote -import com.project.meongcare.info.model.entities.GetDogInfoResponse import com.project.meongcare.home.model.entities.GetDogListResponse import com.project.meongcare.home.model.entities.GetUserProfileResponse +import com.project.meongcare.info.model.entities.GetDogInfoResponse import okhttp3.MultipartBody import okhttp3.RequestBody import retrofit2.Response diff --git a/app/src/main/java/com/project/meongcare/info/model/data/repository/ProfileRepository.kt b/app/src/main/java/com/project/meongcare/info/model/data/repository/ProfileRepository.kt index 063743f1a..316779a18 100644 --- a/app/src/main/java/com/project/meongcare/info/model/data/repository/ProfileRepository.kt +++ b/app/src/main/java/com/project/meongcare/info/model/data/repository/ProfileRepository.kt @@ -1,8 +1,8 @@ package com.project.meongcare.info.model.data.repository -import com.project.meongcare.info.model.entities.GetDogInfoResponse import com.project.meongcare.home.model.entities.DogProfile import com.project.meongcare.home.model.entities.GetUserProfileResponse +import com.project.meongcare.info.model.entities.GetDogInfoResponse import okhttp3.MultipartBody import okhttp3.RequestBody diff --git a/app/src/main/java/com/project/meongcare/info/model/data/repository/ProfileRepositoryImpl.kt b/app/src/main/java/com/project/meongcare/info/model/data/repository/ProfileRepositoryImpl.kt index fad3f7484..32e8c310c 100644 --- a/app/src/main/java/com/project/meongcare/info/model/data/repository/ProfileRepositoryImpl.kt +++ b/app/src/main/java/com/project/meongcare/info/model/data/repository/ProfileRepositoryImpl.kt @@ -1,10 +1,10 @@ package com.project.meongcare.info.model.data.repository import android.util.Log -import com.project.meongcare.info.model.data.remote.ProfileRetrofitClient -import com.project.meongcare.info.model.entities.GetDogInfoResponse import com.project.meongcare.home.model.entities.DogProfile import com.project.meongcare.home.model.entities.GetUserProfileResponse +import com.project.meongcare.info.model.data.remote.ProfileRetrofitClient +import com.project.meongcare.info.model.entities.GetDogInfoResponse import okhttp3.MultipartBody import okhttp3.RequestBody import javax.inject.Inject diff --git a/app/src/main/java/com/project/meongcare/info/view/PetEditFragment.kt b/app/src/main/java/com/project/meongcare/info/view/PetEditFragment.kt index 3010b59ff..a428cba3d 100644 --- a/app/src/main/java/com/project/meongcare/info/view/PetEditFragment.kt +++ b/app/src/main/java/com/project/meongcare/info/view/PetEditFragment.kt @@ -16,11 +16,11 @@ import androidx.navigation.fragment.findNavController import com.bumptech.glide.Glide import com.google.gson.Gson import com.project.meongcare.CalendarBottomSheetFragment -import com.project.meongcare.info.model.entities.GetDogInfoResponse -import com.project.meongcare.info.viewmodel.ProfileViewModel import com.project.meongcare.MainActivity import com.project.meongcare.R import com.project.meongcare.databinding.FragmentPetEditBinding +import com.project.meongcare.info.model.entities.GetDogInfoResponse +import com.project.meongcare.info.viewmodel.ProfileViewModel import com.project.meongcare.onboarding.model.data.local.DateSubmitListener import com.project.meongcare.onboarding.model.data.local.PhotoMenuListener import com.project.meongcare.onboarding.model.entities.Dog diff --git a/app/src/main/java/com/project/meongcare/info/view/PetInfoFragment.kt b/app/src/main/java/com/project/meongcare/info/view/PetInfoFragment.kt index e8328dbef..935f29cea 100644 --- a/app/src/main/java/com/project/meongcare/info/view/PetInfoFragment.kt +++ b/app/src/main/java/com/project/meongcare/info/view/PetInfoFragment.kt @@ -8,10 +8,10 @@ import androidx.fragment.app.Fragment import androidx.fragment.app.viewModels import androidx.navigation.fragment.findNavController import com.bumptech.glide.Glide -import com.project.meongcare.info.model.entities.GetDogInfoResponse -import com.project.meongcare.info.viewmodel.ProfileViewModel import com.project.meongcare.R import com.project.meongcare.databinding.FragmentPetAddEditBinding +import com.project.meongcare.info.model.entities.GetDogInfoResponse +import com.project.meongcare.info.viewmodel.ProfileViewModel import com.project.meongcare.onboarding.view.Gender import com.project.meongcare.onboarding.view.dateFormat import dagger.hilt.android.AndroidEntryPoint @@ -35,7 +35,7 @@ class PetInfoFragment : Fragment() { } } - val accessToken = "Bearer eyJhbGciOiJIUzI1NiJ9.eyJpZCI6MywiZXhwIjoxNzA0NTI5MzQxfQ.OyMJ6nYc5ts7pIik__904ClK01HFUeYxjCbITeZMLr0" + val accessToken = "" val dogId = arguments?.getLong("dogId")!! petInfoViewModel.getDogInfo(dogId, accessToken) diff --git a/app/src/main/java/com/project/meongcare/info/view/ProfileFragment.kt b/app/src/main/java/com/project/meongcare/info/view/ProfileFragment.kt index 78c93c4dd..8a818f0eb 100644 --- a/app/src/main/java/com/project/meongcare/info/view/ProfileFragment.kt +++ b/app/src/main/java/com/project/meongcare/info/view/ProfileFragment.kt @@ -17,10 +17,10 @@ import com.google.android.gms.auth.api.signin.GoogleSignIn import com.google.android.gms.auth.api.signin.GoogleSignInOptions import com.kakao.sdk.user.UserApiClient import com.navercorp.nid.NaverIdLoginSDK -import com.project.meongcare.info.viewmodel.ProfileViewModel import com.project.meongcare.MainActivity import com.project.meongcare.R import com.project.meongcare.databinding.FragmentProfileBinding +import com.project.meongcare.info.viewmodel.ProfileViewModel import com.project.meongcare.login.model.data.local.UserPreferences import com.project.meongcare.onboarding.model.data.local.PhotoMenuListener import dagger.hilt.android.AndroidEntryPoint diff --git a/app/src/main/java/com/project/meongcare/info/view/SettingFragment.kt b/app/src/main/java/com/project/meongcare/info/view/SettingFragment.kt index a8c129211..d6e2b5492 100644 --- a/app/src/main/java/com/project/meongcare/info/view/SettingFragment.kt +++ b/app/src/main/java/com/project/meongcare/info/view/SettingFragment.kt @@ -12,9 +12,9 @@ import androidx.fragment.app.Fragment import androidx.fragment.app.viewModels import androidx.navigation.fragment.findNavController import com.google.android.material.snackbar.Snackbar -import com.project.meongcare.info.viewmodel.ProfileViewModel import com.project.meongcare.R import com.project.meongcare.databinding.FragmentSettingBinding +import com.project.meongcare.info.viewmodel.ProfileViewModel import com.project.meongcare.login.model.data.local.UserPreferences import dagger.hilt.android.AndroidEntryPoint import javax.inject.Inject diff --git a/app/src/main/java/com/project/meongcare/info/viewmodel/ProfileViewModel.kt b/app/src/main/java/com/project/meongcare/info/viewmodel/ProfileViewModel.kt index d1d9e2bd2..4900d869e 100644 --- a/app/src/main/java/com/project/meongcare/info/viewmodel/ProfileViewModel.kt +++ b/app/src/main/java/com/project/meongcare/info/viewmodel/ProfileViewModel.kt @@ -4,10 +4,10 @@ import android.net.Uri import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope -import com.project.meongcare.info.model.data.repository.ProfileRepository -import com.project.meongcare.info.model.entities.GetDogInfoResponse import com.project.meongcare.home.model.entities.DogProfile import com.project.meongcare.home.model.entities.GetUserProfileResponse +import com.project.meongcare.info.model.data.repository.ProfileRepository +import com.project.meongcare.info.model.entities.GetDogInfoResponse import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.launch import okhttp3.MultipartBody