-
Notifications
You must be signed in to change notification settings - Fork 0
π¨ λ‘κ·ΈμΈ, νμκ°μ μ»΄ν¬λνΈ λΆλ¦¬ λ° λ¦¬νν λ§ #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,6 @@ | ||
| *.iml | ||
| *.jks | ||
| *.keystore | ||
| .gradle | ||
| /local.properties | ||
| .idea/ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,21 +54,21 @@ import androidx.navigation.compose.currentBackStackEntryAsState | |
| import com.example.home.HomeApp | ||
| import com.example.curation.ui.CurationDetailScreen | ||
| import com.example.curation.ui.CurationScreen | ||
| import com.example.login.auth.AnimatedLoginScreen | ||
| import com.example.login.auth.EmailVerificationScreen | ||
| import com.example.login.auth.ServiceTermsScreen | ||
| import com.example.login.auth.PrivacyTermsScreenFixed | ||
| import com.example.login.auth.MarketingTermsScreenComposable | ||
| import com.example.login.auth.SignUpPasswordScreen | ||
| import com.example.login.auth.EmailLoginScreen | ||
| import com.example.login.auth.InterestContentScreen | ||
| import com.example.login.auth.InterestPurposeScreen | ||
| import com.example.login.auth.SignUpGenderScreen | ||
| import com.example.login.auth.SignUpNicknameScreen | ||
| import com.example.login.auth.SignUpJobScreen | ||
| import com.example.login.auth.WelcomeScreen | ||
| import com.example.login.auth.ResetPasswordScreen | ||
| import com.example.login.auth.SignUpViewModel | ||
| import com.example.login.ui.animation.AnimatedLoginScreen | ||
| import com.example.login.ui.screen.EmailVerificationScreen | ||
| import com.example.login.ui.terms.ServiceTermsScreen | ||
| import com.example.login.ui.terms.PrivacyTermsScreenFixed | ||
| import com.example.login.ui.terms.MarketingTermsScreenComposable | ||
| import com.example.login.ui.screen.SignUpPasswordScreen | ||
| import com.example.login.ui.screen.EmailLoginScreen | ||
| import com.example.login.ui.screen.InterestContentScreen | ||
| import com.example.login.ui.screen.InterestPurposeScreen | ||
| import com.example.login.ui.screen.SignUpGenderScreen | ||
| import com.example.login.ui.screen.SignUpNicknameScreen | ||
| import com.example.login.ui.screen.SignUpJobScreen | ||
| import com.example.login.ui.screen.WelcomeScreen | ||
| import com.example.login.ui.screen.ResetPasswordScreen | ||
| import com.example.login.viewmodel.SignUpViewModel | ||
| import java.io.File | ||
| import java.io.FileOutputStream | ||
|
|
||
|
|
@@ -82,7 +82,7 @@ import com.example.file.ui.theme.DefaultFont | |
| import com.example.file.ui.theme.Gray600 | ||
| import com.example.file.viewmodel.folder.state.FolderStateViewModel | ||
| import com.example.linku_android.deeplink.DeepLinkHandlerViewModel | ||
| import com.example.login.auth.LoginViewModel | ||
| import com.example.login.viewmodel.LoginViewModel | ||
|
|
||
| import dagger.hilt.android.EntryPointAccessors | ||
| import androidx.core.net.toUri | ||
|
|
@@ -260,56 +260,39 @@ fun MainApp( | |
| ) { | ||
|
|
||
| /* β Login composable */ | ||
| composable(NavigationRoute.Login.route) { entry -> | ||
| val parentEntry = entry | ||
| composable(NavigationRoute.Login.route) { parentEntry -> | ||
| val signUpVm: SignUpViewModel = hiltViewModel(parentEntry) | ||
|
|
||
| val showTermsSheet by parentEntry.savedStateHandle | ||
| .getStateFlow("show_terms_sheet", false) | ||
| .collectAsStateWithLifecycle() | ||
|
|
||
| BackHandler(enabled = showTermsSheet) { | ||
| parentEntry.savedStateHandle["show_terms_sheet"] = false | ||
| } | ||
|
|
||
| // μ΄λ©μΌ μΈμ¦μμ λ°±λ²νΌμΌλ‘ κ°μ λ, μ½κ΄ νμ΄μ§ λμ€λκ² λ§λμ§. | ||
| val skipAnimation = | ||
| parentEntry.savedStateHandle | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. parentEntryλΌλ λ³μλ₯Ό λ°λ‘ νμ entryλ₯Ό κ·Έλλ‘ μ°Έμ‘°νκ³ μλλ°, λ³μ μλ‘ νμ§ λ§κ³ entry λ³μλͺ μ parentEntryλ‘ λ°κΎΈλ©΄ μ’μ κ±° κ°μ.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. λ΅ λ§μΆ°μ λ³κ²½νκ² μ΅λλ€. |
||
| .get<Boolean>("skip_login_animation") == true | ||
|
|
||
| // μ΄λ©μΌ μΈμ¦μμ λμμ€λμ§ νμΈ | ||
| var cameFromEmail by remember { mutableStateOf(false) } | ||
|
|
||
| LaunchedEffect(navigator.currentBackStackEntry) { | ||
| if (parentEntry.savedStateHandle.get<Boolean>("from_email_verification") == true) { | ||
| cameFromEmail = true | ||
| parentEntry.savedStateHandle["show_terms_sheet"] = true | ||
|
|
||
| kotlinx.coroutines.delay(120) | ||
|
|
||
| cameFromEmail = false | ||
| parentEntry.savedStateHandle["from_email_verification"] = false | ||
| // μ½μ μ§ν μ΄κΈ°ν | ||
| LaunchedEffect(skipAnimation) { | ||
| if (skipAnimation) { | ||
| parentEntry.savedStateHandle["skip_login_animation"] = false | ||
| } | ||
| } | ||
|
|
||
| // μ½κ°μ μ§μ° + μ¬λ λλ§ μν΄ λΉ λ°μ€ λ§λ¬. | ||
| if (cameFromEmail) { | ||
| Box(Modifier.fillMaxSize()) {} | ||
| return@composable | ||
| } | ||
|
|
||
|
|
||
| AnimatedLoginScreen( | ||
| navigator = navigator, | ||
| skipAnimation = skipAnimation, | ||
| onSignUpClick = { | ||
| parentEntry.savedStateHandle["show_terms_sheet"] = true | ||
| } | ||
| ) | ||
|
|
||
| } | ||
|
|
||
| /* β‘ Service Terms */ | ||
| composable("terms/service") { entry -> | ||
| val parentEntry = remember(entry) { navigator.getBackStackEntry("auth_graph") } | ||
| val vm: SignUpViewModel = hiltViewModel(parentEntry) | ||
|
|
||
| //μμ€ν λ°±λ²νΌ μ²λ¦¬ | ||
| BackHandler { | ||
| parentEntry.savedStateHandle["show_terms_sheet"] = true | ||
| navigator.popBackStack() | ||
| } | ||
|
|
||
| ServiceTermsScreen( | ||
| onBackClicked = { | ||
| parentEntry.savedStateHandle["show_terms_sheet"] = true | ||
|
|
@@ -368,6 +351,15 @@ fun MainApp( | |
|
|
||
|
|
||
| val vm: SignUpViewModel = hiltViewModel(parentEntry) | ||
| //λ°±λ²νΌμΌλ‘ μ¨ κ²½μ° μ λλ©μ΄μ μ μ©X | ||
| BackHandler { | ||
| // λ‘κ·ΈμΈ νλ©΄(AnimatedLoginScreen)μ μ λλ©μ΄μ μ€ν΅ νλκ·Έ μ λ¬ν¨. | ||
| parentEntry.savedStateHandle["skip_login_animation"] = true | ||
| parentEntry.savedStateHandle["from_email_verification"] = true | ||
|
|
||
| navigator.popBackStack() | ||
| } | ||
|
Comment on lines
+354
to
+361
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. email_verification BackHandlerκ° νλ©΄ λ΄λΆ νΈλ€λ¬μ κ°λ €μ§ μ μμ π€ Prompt for AI Agents
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. μ΄λ©μΌ μΈμ¦ νλ©΄μ μ μμ μΌλ‘ κ±°μ³ λ‘κ·ΈμΈ νλ©΄μΌλ‘ 볡κ·νλ κ²½μ°μλ§ μ¬μ©νκΈ°μ, μ½λ μμ μ΄ λΆνμν΄λ³΄μ λλ€. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| EmailVerificationScreen( | ||
| navigator = navigator, | ||
| parentEntry = parentEntry, // β¬ μΆκ° | ||
|
|
@@ -433,14 +425,19 @@ fun MainApp( | |
|
|
||
| composable("email_login") { | ||
|
|
||
| val parentEntry = remember { | ||
| val parentEntry = remember(navigator.currentBackStackEntry) { | ||
| navigator.getBackStackEntry("auth_graph") | ||
| } | ||
|
|
||
| val showTermsSheet by parentEntry.savedStateHandle | ||
| .getStateFlow("show_terms_sheet", false) | ||
| .collectAsStateWithLifecycle() | ||
|
|
||
| //μ½κ΄ λ°ν μνΈ λ μμ λ λ°±λ²νΌ = μνΈ λ«κΈ° | ||
| BackHandler(enabled = showTermsSheet) { | ||
| parentEntry.savedStateHandle["show_terms_sheet"] = false | ||
| } | ||
|
|
||
| LaunchedEffect(Unit) { showNavBar = false } | ||
|
|
||
| // λ‘κ·ΈμΈ μν κ΄μ°° | ||
|
|
@@ -821,12 +818,20 @@ fun MainApp( | |
|
|
||
| // βΊ μ€μ λ‘κ·ΈμΈ UI(AnimatedLoginScreen λ±) λ λλ§ | ||
| // AnimatedLoginScreen(navigator = navigator) | ||
| AnimatedLoginScreen(navigator = navigator, onSignUpClick = {}) | ||
| val skipAnimation = | ||
| backStackEntry.savedStateHandle | ||
| .get<Boolean>("skip_login_animation") == true | ||
|
|
||
| AnimatedLoginScreen( | ||
| navigator = navigator, | ||
| skipAnimation = skipAnimation, | ||
| onSignUpClick = {} | ||
| ) | ||
| } | ||
|
|
||
|
|
||
|
|
||
| // TODO: λ‘κ·ΈμΈ λμ΄ μμ§ μμ μν© μ²λ¦¬ | ||
| // TODO: λ‘κ·ΈμΈ λμ΄ μμ§ μμ μν© μ²λ¦¬ ?μ΄κ² λλ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. λ΄κ° νλ κ±΄λ° κ°μ΄ 컀λ°λλ€;; γ γ
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. κ·Έλ¬λ©΄... λ₯λ§ν¬ λΉ λ₯΄κ² μμ λλμ..? |
||
| // λ§ν¬ 곡μ μ±λ§ν¬ | ||
| composable( | ||
| route = "open?action={action}&folderId={folderId}", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,7 +8,7 @@ data object Basic: ThemeColorScheme( | |
| maincolor= Brush.horizontalGradient( | ||
| listOf( | ||
| Color(0xFF2C6FFF), | ||
| Color(0xFFCB59EB) | ||
| Color(0xFFC800FF) //μμ ν¨. | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. μ»¬λ¬ μ½λμ μ€νκ° μμ΄μ λΆλμ΄νκ² μμ νμ΅λλ€. |
||
| ) | ||
| ), | ||
| blue = ColorMap( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ΄κ±° λ¬΄μ¨ ν΄λμΈμ§ μλ €μ€ μ μμ΄?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ideμμ μλμΌλ‘ μΆκ°ν ννμ λλ€.