-
Notifications
You must be signed in to change notification settings - Fork 1
Custom Splash 구현 #76
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
Merged
Merged
Custom Splash 구현 #76
Changes from 10 commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
4253487
feat: 앱 로고 리소스 추가
moondev03 bf5720e
feat: 스플래시 화면 테마 추가 및 적용
moondev03 a2adc38
feat: SplashScreen 구현
moondev03 5b2c9f9
feat: SplashScreen 전환 로직 추가
moondev03 16ddaf5
build: Hilt Navigation Compose 의존성 추가
moondev03 51289d2
refactor: 앱 시작점 변경 및 SharedTransitionLayout 적용
moondev03 608cb97
chore: 로고 리소스 이동 및 명칭 변경
moondev03 7ce7805
refactor: SharedTransition 적용을 위한 구조 개선 및 SplashScreen 제거
moondev03 76b887c
feat: Splash 및 Login 기능 분리 및 모듈화
moondev03 e1213a3
refactor: Splash 및 Login 기능의 UI 상태 관리 및 로직 개선
moondev03 32d6931
refactor: LoginScreen 레이아웃 구조 개선 및 UI 배치 수정
moondev03 945d270
build: hilt-navigation-compose -> hilt-lifecycle-viewmodel-compose
moondev03 fd56f75
refactor: Navigator의 replaceRoot 로직 개선 및 안정성 강화
moondev03 96370ee
refactor: PrezelApp 내 불필요한 ExperimentalSharedTransitionApi 어노테이션 제거
moondev03 efd4f35
refactor: Splash 화면 진입 및 로그인 상태 체크 로직 개선
moondev03 9517a03
refactor: LocalSharedTransitionScope를 staticCompositionLocalOf로 변경
moondev03 543444b
refactor: ViewModel 내 불필요한 @Stable 어노테이션 제거 및 코드 포맷 정리
moondev03 96779c3
refactor: SplashScreen UI 로직 분리 및 컴포저블 추출
moondev03 4b7ca0c
Merge branch 'develop' into feat/#75-custom-splash
moondev03 4e9569f
refactor: Navigator 정책 문서화 및 LoggingDecorator 구조 개선
moondev03 0b96d82
refactor: 네비게이션 구조 개선 및 TopLevelNavItems 정리
moondev03 31cc636
feat: 커스텀 스낵바 구현 및 관련 로직 개선
moondev03 41e2971
feat: PrezelSnackbar ID 필드 추가 및 특정 스낵바 dismiss 기능 구현
moondev03 1e6064d
refactor: Navigator 최상위 스택 관리 정책 변경 및 NavigationState 개선
moondev03 d8e7423
feat: DoubleBackToExitHandler 구현
moondev03 a56515a
style: 코드 포맷팅
moondev03 0152beb
refactor: PrezelSnackbar 내 버튼 렌더링 로직 단순화
moondev03 5c00978
refactor: LoggingDecorator 로그 메시지 형식 수정
moondev03 aaa7bd8
refactor: NavigationState 최적화 및 코드 정리
moondev03 1df9ad7
Merge branch 'develop' into feat/#75-custom-splash
moondev03 523ac5f
feat: 앱 로고 리소스 추가
moondev03 6e95088
feat: 스플래시 화면 테마 추가 및 적용
moondev03 64d3a2b
feat: SplashScreen 구현
moondev03 091a857
feat: SplashScreen 전환 로직 추가
moondev03 94ad204
build: Hilt Navigation Compose 의존성 추가
moondev03 7c20540
refactor: 앱 시작점 변경 및 SharedTransitionLayout 적용
moondev03 55de528
chore: 로고 리소스 이동 및 명칭 변경
moondev03 7b43d25
refactor: SharedTransition 적용을 위한 구조 개선 및 SplashScreen 제거
moondev03 715e6ab
feat: Splash 및 Login 기능 분리 및 모듈화
moondev03 1ffd329
refactor: Splash 및 Login 기능의 UI 상태 관리 및 로직 개선
moondev03 8b1289b
refactor: LoginScreen 레이아웃 구조 개선 및 UI 배치 수정
moondev03 c01db06
build: hilt-navigation-compose -> hilt-lifecycle-viewmodel-compose
moondev03 2db6984
refactor: Navigator의 replaceRoot 로직 개선 및 안정성 강화
moondev03 85da5c4
refactor: PrezelApp 내 불필요한 ExperimentalSharedTransitionApi 어노테이션 제거
moondev03 a7353f3
refactor: Splash 화면 진입 및 로그인 상태 체크 로직 개선
moondev03 bb3f648
refactor: LocalSharedTransitionScope를 staticCompositionLocalOf로 변경
moondev03 6532397
refactor: ViewModel 내 불필요한 @Stable 어노테이션 제거 및 코드 포맷 정리
moondev03 bf9150b
refactor: SplashScreen UI 로직 분리 및 컴포저블 추출
moondev03 71574ff
refactor: Navigator 정책 문서화 및 LoggingDecorator 구조 개선
moondev03 8f08cda
refactor: 네비게이션 구조 개선 및 TopLevelNavItems 정리
moondev03 8c536f5
feat: 커스텀 스낵바 구현 및 관련 로직 개선
moondev03 ab127fc
feat: PrezelSnackbar ID 필드 추가 및 특정 스낵바 dismiss 기능 구현
moondev03 a0e2765
refactor: Navigator 최상위 스택 관리 정책 변경 및 NavigationState 개선
moondev03 82f0e2a
feat: DoubleBackToExitHandler 구현
moondev03 a97cf9a
style: 코드 포맷팅
moondev03 582620d
refactor: PrezelSnackbar 내 버튼 렌더링 로직 단순화
moondev03 196c075
refactor: LoggingDecorator 로그 메시지 형식 수정
moondev03 703e733
refactor: NavigationState 최적화 및 코드 정리
moondev03 8503833
refactor: NavigationState 생성 로직 개선 및 접근 제어자 수정
moondev03 aca853b
refactor: NavigationState 최적화 및 DoubleBackToExitHandler 의존성 개선
moondev03 b58937e
Merge remote-tracking branch 'origin/feat/#75-custom-splash' into fea…
moondev03 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,9 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <resources> | ||
|
|
||
| <style name="Theme.Prezel" parent="android:Theme.Material.Light.NoActionBar" /> | ||
|
|
||
| <style name="Theme.PrezelSplashScreen" parent="Theme.Prezel"> | ||
| <item name="android:windowDisablePreview">true</item> | ||
| <item name="android:windowBackground">@color/white</item> | ||
| </style> | ||
| </resources> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
Prezel/core/designsystem/src/main/res/drawable/core_designsystem_logo_prezel.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:width="1017.5dp" | ||
| android:height="437.7dp" | ||
| android:viewportWidth="1017.5" | ||
| android:viewportHeight="437.7"> | ||
| <path | ||
| android:pathData="M942.9,50.5h24v260h-24z" | ||
| android:fillColor="#0069ff"/> | ||
| <path | ||
| android:pathData="M560.1,239.8h8.6c0.5,-3.9 0.8,-7.9 0.8,-12 0,-48 -39,-87 -87,-87s-87,39 -87,87 39,87 87,87c35.1,0 65.5,-20.9 79.2,-51h-27.5c-11.4,16.3 -30.3,27 -51.7,27 -30.6,0 -56.2,-22 -61.8,-51h139.4ZM482.6,164.8c30.6,0 56.2,22 61.8,51h-123.7c5.6,-29 31.2,-51 61.8,-51Z" | ||
| android:fillColor="#0069ff"/> | ||
| <path | ||
| android:pathData="M913.3,239.8h8.6c0.5,-3.9 0.8,-7.9 0.8,-12 0,-48 -39,-87 -87,-87s-87,39 -87,87 39,87 87,87c35.1,0 65.5,-20.9 79.2,-51h-27.5c-11.4,16.3 -30.3,27 -51.7,27 -30.6,0 -56.2,-22 -61.8,-51h139.4ZM835.7,164.8c30.6,0 56.2,22 61.8,51h-123.7c5.6,-29 31.2,-51 61.8,-51Z" | ||
| android:fillColor="#0069ff"/> | ||
| <path | ||
| android:pathData="M733.6,170.3l0,0l0,-24l-149,0l0,24l115.1,0l-115.1,115.1l0,0l-0,0l0,24l149,0l0,-24l-115.1,0l115.1,-115.1z" | ||
| android:fillColor="#0069ff"/> | ||
| <path | ||
| android:pathData="M218.9,197.6c-13,-35 -46.2,-56.7 -81.5,-56.7 -5,0 -10.1,0.4 -15.1,1.3 -5,0.9 -10.1,2.3 -15.1,4.1 -12.7,4.7 -23.7,12.1 -32.5,21.3v-26.8h-24v81c-0.3,3.9 -0.3,7.8 0,11.7v153.6h24v-99.3c16.3,17 39,26.8 62.7,26.8 10,0 20.2,-1.8 30.2,-5.4 45,-16.7 68,-66.7 51.3,-111.7ZM194.6,254c-7,15.3 -19.6,26.9 -35.3,32.7 -7.1,2.6 -14.4,3.9 -21.8,3.9 -12.7,0 -25,-3.8 -35.6,-11 -10.8,-7.4 -18.9,-17.8 -23.4,-30 -2,-5.5 -3.3,-11.2 -3.7,-17v-10c0.6,-7.2 2.4,-14.4 5.6,-21.2 7,-15.3 19.6,-26.9 35.3,-32.7 7.1,-2.6 14.4,-3.9 21.8,-3.9 12.7,0 25,3.8 35.6,11 10.8,7.4 18.9,17.8 23.4,30 5.8,15.8 5.2,32.8 -1.8,48.1Z" | ||
| android:fillColor="#0069ff"/> | ||
| <path | ||
| android:pathData="M292.8,314.8c-10,0 -18.5,-4.4 -24,-12.5 -4.4,-6.5 -6.6,-15.1 -6.6,-25.5 0,-18.2 6.9,-40 18.6,-59.9 -1.6,-2.9 -3.3,-5.8 -5.1,-8.6 -15.4,-24 -33.8,-37.7 -50.4,-37.7v-24c25.3,0 50.4,17.3 70.6,48.7 0,0 0,0 0,0 0.3,-0.3 0.5,-0.6 0.8,-0.9 26.1,-30.7 61.3,-47.7 99,-47.7v24c-39.2,0 -65.5,21.3 -80.7,39.2 -2.3,2.7 -4.5,5.5 -6.5,8.3 9.2,20 14.7,41.1 14.7,57.9 0,10.5 -2.1,19.1 -6.2,25.6 -5.3,8.3 -13.8,12.9 -24,12.9ZM293.3,245.5c-4.8,11.9 -7.1,23 -7.1,31.3 0,5.3 0.9,9.7 2.5,12.1 0.8,1.3 1.7,1.9 4.1,1.9s3.1,-0.8 3.8,-1.8c0.7,-1.2 2.5,-4.7 2.5,-12.7 0,-8.9 -2.1,-19.6 -5.7,-30.8Z" | ||
| android:fillColor="#0069ff"/> | ||
| </vector> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
Prezel/core/navigation/src/main/java/com/team/prezel/core/navigation/LocalNavigator.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,26 @@ | ||
| package com.team.prezel.core.navigation | ||
|
|
||
| import androidx.compose.animation.SharedTransitionScope | ||
| import androidx.compose.runtime.Composable | ||
| import androidx.compose.runtime.CompositionLocalProvider | ||
| import androidx.compose.runtime.compositionLocalOf | ||
| import androidx.compose.runtime.staticCompositionLocalOf | ||
|
|
||
| val LocalNavigator = staticCompositionLocalOf<Navigator> { | ||
| error("Navigator is not provided") | ||
| } | ||
|
|
||
| val LocalSharedTransitionScope = compositionLocalOf<SharedTransitionScope> { | ||
| error("SharedTransitionScope is not provided") | ||
| } | ||
|
|
||
| @Composable | ||
| fun ProvideSharedTransitionScope( | ||
| sharedTransitionScope: SharedTransitionScope, | ||
| content: @Composable () -> Unit, | ||
| ) { | ||
| CompositionLocalProvider( | ||
| LocalSharedTransitionScope provides sharedTransitionScope, | ||
| content = content, | ||
| ) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...re/navigation/src/main/java/com/team/prezel/core/navigation/decorator/LoggingDecorator.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| package com.team.prezel.core.navigation.decorator | ||
|
|
||
| import androidx.compose.runtime.DisposableEffect | ||
| import androidx.navigation3.runtime.NavEntry | ||
| import androidx.navigation3.runtime.NavEntryDecorator | ||
| import timber.log.Timber | ||
|
|
||
| private const val NAVIGATION_LOGGING_TAG = "Navigation" | ||
|
|
||
| class LoggingDecorator<T : Any>( | ||
| private val logger: Timber.Tree = Timber.tag(NAVIGATION_LOGGING_TAG), | ||
| ) : NavEntryDecorator<T>( | ||
| onPop = { key -> | ||
| logger.d("[Navigation] BACKSTACK_REMOVE | screen=$key") | ||
| }, | ||
| decorate = { entry -> | ||
| DisposableEffect(entry.contentKey, entry.metadata) { | ||
| logger.d(entry.enterLog()) | ||
|
|
||
| onDispose { | ||
| logger.d(entry.exitLog()) | ||
| } | ||
| } | ||
|
|
||
| entry.Content() | ||
| }, | ||
| ) | ||
|
|
||
| private fun <T : Any> NavEntry<T>.enterLog(): String = "[Navigation] SCREEN_ENTER | screen=$contentKey | metadata=$metadata" | ||
|
|
||
| private fun <T : Any> NavEntry<T>.exitLog(): String = "[Navigation] SCREEN_EXIT | screen=$contentKey | metadata=$metadata" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| plugins { | ||
| alias(libs.plugins.prezel.android.feature.api) | ||
| } | ||
|
|
||
| android { | ||
| namespace = "com.team.prezel.feature.login.api" | ||
| } |
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # Add project specific ProGuard rules here. | ||
| # You can control the set of applied configuration files using the | ||
| # proguardFiles setting in build.gradle. | ||
| # | ||
| # For more details, see | ||
| # http://developer.android.com/guide/developing/tools/proguard.html | ||
|
|
||
| # If your project uses WebView with JS, uncomment the following | ||
| # and specify the fully qualified class name to the JavaScript interface | ||
| # class: | ||
| #-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
| # public *; | ||
| #} | ||
|
|
||
| # Uncomment this to preserve the line number information for | ||
| # debugging stack traces. | ||
| #-keepattributes SourceFile,LineNumberTable | ||
|
|
||
| # If you keep the line number information, uncomment this to | ||
| # hide the original source file name. | ||
| #-renamesourcefileattribute SourceFile |
Empty file.
9 changes: 9 additions & 0 deletions
9
Prezel/feature/login/api/src/main/java/com/team/prezel/feature/login/api/LoginNavKey.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| package com.team.prezel.feature.login.api | ||
|
|
||
| import androidx.navigation3.runtime.NavKey | ||
| import kotlinx.serialization.Serializable | ||
|
|
||
| @Serializable | ||
| data object LoginNavKey : NavKey | ||
|
|
||
| const val AUTH_LOGO_SHARED_ELEMENT_KEY = "auth_logo_shared_element" |
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| plugins { | ||
| alias(libs.plugins.prezel.android.feature.impl) | ||
| } | ||
|
|
||
| android { | ||
| namespace = "com.team.prezel.feature.login.impl" | ||
| } | ||
|
|
||
| dependencies { | ||
| implementation(projects.featureLoginApi) | ||
| implementation(projects.featureHomeApi) | ||
| } |
Empty file.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.