Skip to content
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

[UI/#35] splash screen 구현 #38

Merged
merged 9 commits into from
Jan 8, 2024
Merged

[UI/#35] splash screen 구현 #38

merged 9 commits into from
Jan 8, 2024

Conversation

chattymin
Copy link
Member

@chattymin chattymin commented Jan 8, 2024

⛳️ Work Description

  • splash 구현
  • update여부 확인
  • 네트워크 여부 확인

📸 Screenshot

2024-01-08.7.13.01.mov

📢 To Reviewers

  • 자동로그인, 메인페이지 이동 등 다른 요소 연관되어있는 부분은 제외하고 구현하였습니다.

Copy link
Member

@Marchbreeze Marchbreeze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

조하요 ~ 앱 업데이트 부분들만 다 수정해주세요

Comment on lines 101 to 104
object GooglePlayDependencies {
const val update = "com.google.android.play:app-update:${Versions.googlePlayUpdate}"
const val updateKtx = "com.google.android.play:app-update-ktx:${Versions.googlePlayUpdate}"
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요 친구들도 지금 자동 업데이트 기능 지금 안쓸거면 지금은 필요없을 듯 합니닷

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

허헣 삭제했습니다~

@@ -41,6 +41,7 @@ object Versions {
const val junitVersion = "4.13.2"
const val espressoVersion = "3.3.0"
const val androidTestVersion = "1.1.2"
const val googlePlayUpdate = "2.1.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

얘도 ~

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

얘도~

import android.net.ConnectivityManager
import android.net.NetworkCapabilities

object NetworkManager {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

음~ 최고

import timber.log.Timber

class SplashActivity : BaseActivity<ActivitySplashBinding>(R.layout.activity_splash) {
private val appUpdateManager by lazy { AppUpdateManagerFactory.create(this) }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요 친구도 일단 지워주셔도 될듯합니당

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

지웠읍니다...

isConnectedNetwork()
}

private fun isConnectedNetwork() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

변수 이름으로는 is가 적합하지만, 함수명으로는 check가 더 어울릴 것 같습니당

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

변경 완~

finish()
}

private fun requestUpdate(appUpdateInfo: AppUpdateInfo) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요 친구들도 뺴주셔야 할듯~

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

넹~

<string name="notice">안내</string>
<string name="okay">확인</string>
<string name="internet_connect_error">인터넷 연결을 확인해주세요</string>
<string name="splash_update_error">업데이트에 문제가 생겼어요\n다시 시도해주세요</string>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요친구도 ~

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

나머지는 network 연결 에러시 dialog에도 사용되기 때문에 마지막만 지우도록 하겠습니다~

Comment on lines +62 to +64
<style name="splash_delete" parent="Base.Theme.Doorip">
<item name="android:windowIsTranslucent">true</item>
</style>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요 친구는 아이템 하나인 것 같은데, 무슨 기능을 위해 사용되나요?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

기존에 존재하는 splashScreen을 제거하는 기능을 합니다!!
이게 없으면 splash가 두개가 떠용

@chattymin chattymin merged commit 8990a43 into develop Jan 8, 2024
1 check passed
Copy link
Contributor

@crownjoe crownjoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

스플래쉬!!! 멋집니다 수고하셨습니다 최고.........👍👍👍

Comment on lines +68 to +72
private fun navigateToSignInScreen() {
Intent(this, SignInActivity::class.java).apply {
startActivity(this)
}
finish()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

스코프 함수 좋습니다!

.build(),
)
}.onFailure {
Timber.e(it)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

팀버!!!

Copy link
Member

@leeeyubin leeeyubin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

스플래쉬에 동작 방식에 대해서 알아간 것 같네용 최고!

Comment on lines +44 to +47
.setPositiveButton(
R.string.okay,
) { _, _ ->
finishAffinity()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

불필요한 아이들은 이렇게 처리할 수도 있군요!

Comment on lines 53 to 60
Handler(Looper.getMainLooper()).postDelayed({
navigateToSignInScreen()
if (false) { // 자동 로그인 판정으로 변경 예정
navigateToMainScreen()
} else {
navigateToSignInScreen()
}
}, 3000)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

핸들러 사용 좋네용

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[UI] Splash Screen 구현
4 participants