Skip to content

Commit

Permalink
[chore] #9 - 파일 구조 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
sayyyho committed Dec 8, 2024
1 parent b766625 commit a346adb
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 16 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/org/sopt/and/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ import org.sopt.and.signup.SignUpScreen
import org.sopt.and.signin.SignInScreen

import org.sopt.and.ui.theme.ANDANDROIDTheme
import org.sopt.and.viewmodel.SignViewModel
import org.sopt.and.presentation.viewmodel.SignViewModel

import dagger.hilt.android.AndroidEntryPoint
import dagger.hilt.android.HiltAndroidApp

@AndroidEntryPoint
class MainActivity : ComponentActivity() {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/org/sopt/and/MainScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import androidx.navigation.compose.currentBackStackEntryAsState
import androidx.navigation.compose.rememberNavController
import org.sopt.and.navigation.BottomNavigationGraph
import org.sopt.and.navigation.BottomNavigation
import org.sopt.and.viewmodel.SignViewModel
import org.sopt.and.presentation.viewmodel.SignViewModel

@Composable
fun MainScreen(signViewModel: SignViewModel) {
Expand Down
4 changes: 1 addition & 3 deletions app/src/main/java/org/sopt/and/myinfo/MyScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package org.sopt.and.myinfo

import android.annotation.SuppressLint
import android.util.Log
import androidx.annotation.ColorRes
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.material.icons.Icons
Expand All @@ -15,7 +14,6 @@ import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
Expand All @@ -26,7 +24,7 @@ import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import kotlinx.coroutines.launch
import org.sopt.and.viewmodel.SignViewModel
import org.sopt.and.presentation.viewmodel.SignViewModel

enum class BottomNavItem(val icon: ImageVector, val description: String) {
Home(Icons.Default.Home, ""),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import androidx.navigation.compose.composable
import org.sopt.and.home.HomeScreen
import org.sopt.and.myinfo.MyScreen
import org.sopt.and.search.SearchScreen
import org.sopt.and.viewmodel.SignViewModel
import org.sopt.and.presentation.viewmodel.SignViewModel


@Composable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.sopt.and.viewmodel
package org.sopt.and.presentation.viewmodel

import android.app.Application
import android.content.SharedPreferences
Expand Down Expand Up @@ -155,11 +155,11 @@ class SignViewModel @Inject constructor(

private fun isPasswordComplexEnough(password: String): Boolean {
val criteriaCount = listOf(
Constants.LOWER_CASE_REGEX.containsMatchIn(password),
Constants.UPPER_CASE_REGEX.containsMatchIn(password),
Constants.DIGIT_REGEX.containsMatchIn(password),
Constants.SPECIAL_REGEX.containsMatchIn(password)
LOWER_CASE_REGEX.containsMatchIn(password),
UPPER_CASE_REGEX.containsMatchIn(password),
DIGIT_REGEX.containsMatchIn(password),
SPECIAL_REGEX.containsMatchIn(password)
).count { it }
return criteriaCount >= Constants.PASSWORD_CRITERIA_COUNT
return criteriaCount >= PASSWORD_CRITERIA_COUNT
}
}
2 changes: 1 addition & 1 deletion app/src/main/java/org/sopt/and/signin/SignInScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import kotlinx.coroutines.launch

import org.sopt.and.R
import org.sopt.and.components.AuthSignButton
import org.sopt.and.viewmodel.SignViewModel
import org.sopt.and.presentation.viewmodel.SignViewModel

import org.sopt.and.components.CustomTextField
import org.sopt.and.components.SignTopBar
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/java/org/sopt/and/signup/SignUpScreen.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.sopt.and.signup

import android.widget.Toast
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
Expand All @@ -19,7 +18,7 @@ import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import org.sopt.and.R
import org.sopt.and.components.AuthSignButton
import org.sopt.and.viewmodel.SignViewModel
import org.sopt.and.presentation.viewmodel.SignViewModel
import org.sopt.and.components.CustomTextField
import org.sopt.and.components.SignTopBar

Expand Down

0 comments on commit a346adb

Please sign in to comment.