From c254cc9e643c94a946ed014e359c765abf0dd308 Mon Sep 17 00:00:00 2001 From: youjin09222 Date: Fri, 3 May 2024 15:31:29 +0900 Subject: [PATCH] =?UTF-8?q?move/#9:=20presentation=20=ED=8C=A8=ED=82=A4?= =?UTF-8?q?=EC=A7=80=EB=A1=9C=20=EC=9D=B4=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/AndroidManifest.xml | 6 +++--- .../com/sopt/now/test/{ => presentation}/HomeFragment.kt | 3 +-- .../sopt/now/test/{data => presentation}/HomeViewModel.kt | 2 +- .../com/sopt/now/{ => test/presentation}/LoginActivity.kt | 2 +- .../com/sopt/now/{ => test/presentation}/MainActivity.kt | 6 ++---- .../com/sopt/now/test/{ => presentation}/MyPageFragment.kt | 2 +- .../com/sopt/now/test/{ => presentation}/SearchFragment.kt | 4 ++-- .../com/sopt/now/{ => test/presentation}/SignUpActivity.kt | 2 +- app/src/main/res/layout/activity_login.xml | 2 +- app/src/main/res/layout/activity_main.xml | 2 +- app/src/main/res/layout/activity_sign_up.xml | 2 +- app/src/main/res/layout/fragment_mypage.xml | 2 +- app/src/main/res/layout/fragment_search.xml | 2 +- 13 files changed, 17 insertions(+), 20 deletions(-) rename app/src/main/java/com/sopt/now/test/{ => presentation}/HomeFragment.kt (96%) rename app/src/main/java/com/sopt/now/test/{data => presentation}/HomeViewModel.kt (97%) rename app/src/main/java/com/sopt/now/{ => test/presentation}/LoginActivity.kt (98%) rename app/src/main/java/com/sopt/now/{ => test/presentation}/MainActivity.kt (91%) rename app/src/main/java/com/sopt/now/test/{ => presentation}/MyPageFragment.kt (97%) rename app/src/main/java/com/sopt/now/test/{ => presentation}/SearchFragment.kt (96%) rename app/src/main/java/com/sopt/now/{ => test/presentation}/SignUpActivity.kt (98%) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 9cbbf81..019c045 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -13,11 +13,11 @@ android:theme="@style/Theme.NOWSOPTAndroid" tools:targetApi="31"> @@ -26,7 +26,7 @@ \ No newline at end of file diff --git a/app/src/main/java/com/sopt/now/test/HomeFragment.kt b/app/src/main/java/com/sopt/now/test/presentation/HomeFragment.kt similarity index 96% rename from app/src/main/java/com/sopt/now/test/HomeFragment.kt rename to app/src/main/java/com/sopt/now/test/presentation/HomeFragment.kt index 6d17d20..caadb4e 100644 --- a/app/src/main/java/com/sopt/now/test/HomeFragment.kt +++ b/app/src/main/java/com/sopt/now/test/presentation/HomeFragment.kt @@ -1,4 +1,4 @@ -package com.sopt.now.test +package com.sopt.now.test.presentation import android.os.Bundle import android.view.LayoutInflater @@ -10,7 +10,6 @@ import androidx.recyclerview.widget.LinearLayoutManager import com.sopt.now.R import com.sopt.now.databinding.FragmentHomeBinding import com.sopt.now.test.data.Friend -import com.sopt.now.test.data.HomeViewModel import com.sopt.now.test.data.UserPreference import com.sopt.now.test.friend.FriendAdapter diff --git a/app/src/main/java/com/sopt/now/test/data/HomeViewModel.kt b/app/src/main/java/com/sopt/now/test/presentation/HomeViewModel.kt similarity index 97% rename from app/src/main/java/com/sopt/now/test/data/HomeViewModel.kt rename to app/src/main/java/com/sopt/now/test/presentation/HomeViewModel.kt index 39663b2..9b4be37 100644 --- a/app/src/main/java/com/sopt/now/test/data/HomeViewModel.kt +++ b/app/src/main/java/com/sopt/now/test/presentation/HomeViewModel.kt @@ -1,4 +1,4 @@ -package com.sopt.now.test.data +package com.sopt.now.test.presentation import androidx.lifecycle.ViewModel import com.sopt.now.R diff --git a/app/src/main/java/com/sopt/now/LoginActivity.kt b/app/src/main/java/com/sopt/now/test/presentation/LoginActivity.kt similarity index 98% rename from app/src/main/java/com/sopt/now/LoginActivity.kt rename to app/src/main/java/com/sopt/now/test/presentation/LoginActivity.kt index 67ad22c..f822527 100644 --- a/app/src/main/java/com/sopt/now/LoginActivity.kt +++ b/app/src/main/java/com/sopt/now/test/presentation/LoginActivity.kt @@ -1,4 +1,4 @@ -package com.sopt.now +package com.sopt.now.test.presentation import android.content.Intent import android.os.Bundle diff --git a/app/src/main/java/com/sopt/now/MainActivity.kt b/app/src/main/java/com/sopt/now/test/presentation/MainActivity.kt similarity index 91% rename from app/src/main/java/com/sopt/now/MainActivity.kt rename to app/src/main/java/com/sopt/now/test/presentation/MainActivity.kt index a9a899a..a73d7a6 100644 --- a/app/src/main/java/com/sopt/now/MainActivity.kt +++ b/app/src/main/java/com/sopt/now/test/presentation/MainActivity.kt @@ -1,12 +1,10 @@ -package com.sopt.now +package com.sopt.now.test.presentation import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import androidx.fragment.app.Fragment +import com.sopt.now.R import com.sopt.now.databinding.ActivityMainBinding -import com.sopt.now.test.HomeFragment -import com.sopt.now.test.MyPageFragment -import com.sopt.now.test.SearchFragment class MainActivity : AppCompatActivity() { diff --git a/app/src/main/java/com/sopt/now/test/MyPageFragment.kt b/app/src/main/java/com/sopt/now/test/presentation/MyPageFragment.kt similarity index 97% rename from app/src/main/java/com/sopt/now/test/MyPageFragment.kt rename to app/src/main/java/com/sopt/now/test/presentation/MyPageFragment.kt index c3b8d53..0a0b231 100644 --- a/app/src/main/java/com/sopt/now/test/MyPageFragment.kt +++ b/app/src/main/java/com/sopt/now/test/presentation/MyPageFragment.kt @@ -1,4 +1,4 @@ -package com.sopt.now.test +package com.sopt.now.test.presentation import android.os.Bundle import android.view.LayoutInflater diff --git a/app/src/main/java/com/sopt/now/test/SearchFragment.kt b/app/src/main/java/com/sopt/now/test/presentation/SearchFragment.kt similarity index 96% rename from app/src/main/java/com/sopt/now/test/SearchFragment.kt rename to app/src/main/java/com/sopt/now/test/presentation/SearchFragment.kt index 7365c4f..739d6f8 100644 --- a/app/src/main/java/com/sopt/now/test/SearchFragment.kt +++ b/app/src/main/java/com/sopt/now/test/presentation/SearchFragment.kt @@ -1,4 +1,4 @@ -package com.sopt.now.test +package com.sopt.now.test.presentation import android.os.Bundle import android.view.LayoutInflater @@ -30,4 +30,4 @@ class SearchFragment: Fragment() { super.onDestroyView() _binding = null } -} +} \ No newline at end of file diff --git a/app/src/main/java/com/sopt/now/SignUpActivity.kt b/app/src/main/java/com/sopt/now/test/presentation/SignUpActivity.kt similarity index 98% rename from app/src/main/java/com/sopt/now/SignUpActivity.kt rename to app/src/main/java/com/sopt/now/test/presentation/SignUpActivity.kt index ce07ce6..ce74a72 100644 --- a/app/src/main/java/com/sopt/now/SignUpActivity.kt +++ b/app/src/main/java/com/sopt/now/test/presentation/SignUpActivity.kt @@ -1,4 +1,4 @@ -package com.sopt.now +package com.sopt.now.test.presentation import android.content.Intent import android.os.Bundle diff --git a/app/src/main/res/layout/activity_login.xml b/app/src/main/res/layout/activity_login.xml index e7ad30c..1145d6d 100644 --- a/app/src/main/res/layout/activity_login.xml +++ b/app/src/main/res/layout/activity_login.xml @@ -7,7 +7,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:paddingHorizontal="30dp" - tools:context=".LoginActivity"> + tools:context=".test.presentation.LoginActivity"> + tools:context=".test.presentation.MainActivity"> + tools:context=".test.presentation.SignUpActivity"> + tools:context=".test.presentation.MainActivity"> + tools:context=".test.presentation.SearchFragment">