From 37b038c41fc1f34d2a44d649227f1f6bbc2df6f6 Mon Sep 17 00:00:00 2001 From: HyunWoo Lee Date: Tue, 31 Dec 2024 13:58:48 +0900 Subject: [PATCH] =?UTF-8?q?[#1012]=20=ED=8C=A8=ED=82=A4=EC=A7=80=EB=84=A4?= =?UTF-8?q?=EC=9E=84=EC=97=90=20camelCase=20=EC=A0=9C=EA=B1=B0,=20SignOutV?= =?UTF-8?q?iewModel=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/AndroidManifest.xml | 2 +- .../feature/mypage/mypage/MyPageActivity.kt | 2 +- .../mypage/signOut/SignOutViewModel.kt | 54 ------------------- .../{signOut => signout}/SignOutActivity.kt | 2 +- 4 files changed, 3 insertions(+), 57 deletions(-) delete mode 100644 feature/mypage/src/main/java/org/sopt/official/feature/mypage/signOut/SignOutViewModel.kt rename feature/mypage/src/main/java/org/sopt/official/feature/mypage/{signOut => signout}/SignOutActivity.kt (99%) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 5f00b1dca..466be8ced 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -97,7 +97,7 @@ android:exported="false" android:launchMode="singleTop" /> () - val event = _event.receiveAsFlow() - - fun signOut() { - viewModelScope.launch { - authRepository.withdraw() - .onSuccess { - _event.send(Unit) - }.onFailure { - Timber.e(it) - } - } - } -} diff --git a/feature/mypage/src/main/java/org/sopt/official/feature/mypage/signOut/SignOutActivity.kt b/feature/mypage/src/main/java/org/sopt/official/feature/mypage/signout/SignOutActivity.kt similarity index 99% rename from feature/mypage/src/main/java/org/sopt/official/feature/mypage/signOut/SignOutActivity.kt rename to feature/mypage/src/main/java/org/sopt/official/feature/mypage/signout/SignOutActivity.kt index 059b3acc2..1ab5ccbe0 100644 --- a/feature/mypage/src/main/java/org/sopt/official/feature/mypage/signOut/SignOutActivity.kt +++ b/feature/mypage/src/main/java/org/sopt/official/feature/mypage/signout/SignOutActivity.kt @@ -22,7 +22,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -package org.sopt.official.feature.mypage.signOut +package org.sopt.official.feature.mypage.signout import android.content.Context import android.content.Intent