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

[feature/refactor-code-structure] 홈쪽 코드 로직 개편 #367

Merged
merged 6 commits into from
Sep 26, 2023

Conversation

l2hyunwoo
Copy link
Member

What is this issue?

  • NullableWrapper 제거
  • BaseAdapter, BaseViewHolder 제거
  • MainView -> Home으로 바꾸기
  • 변수명 보다 직관적으로 변경

@l2hyunwoo l2hyunwoo requested a review from a team as a code owner September 24, 2023 01:58
@l2hyunwoo l2hyunwoo self-assigned this Sep 24, 2023
@l2hyunwoo l2hyunwoo marked this pull request as draft September 25, 2023 07:52
@l2hyunwoo l2hyunwoo force-pushed the feature/refactor-code-structure branch from ff6f9dd to 3a76f0a Compare September 25, 2023 08:18
@l2hyunwoo l2hyunwoo force-pushed the feature/refactor-code-structure branch from 44bbd5e to 75f2a2c Compare September 26, 2023 04:08
code lint apply

[feature/refactor-code-structure] NullableWrapper 삭제

Mypage 초기화면 코드 정리

User activeState 변수명 변경

MainView -> Home 패키지 명 변경 및 Home에 사용되는 모델들 Ui/Domain 분리

Generation Domain 로직 설정 및 Home 로직 개편

StartArgs 삭제

Home에서 사용하는 데이터 클래스 분리 및 참조 변경

apply ktlintFormat
@l2hyunwoo l2hyunwoo force-pushed the feature/refactor-code-structure branch from 75f2a2c to e24d369 Compare September 26, 2023 04:39
@l2hyunwoo
Copy link
Member Author

Screenshot_20230926_134404

홈화면 이상없게 수정해놨습니다.

@l2hyunwoo l2hyunwoo marked this pull request as ready for review September 26, 2023 04:44
Comment on lines +66 to +83
private fun requestNotificationPermission() {
// This is only necessary for API level >= 33 (TIRAMISU)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
if (ContextCompat.checkSelfPermission(this, Manifest.permission.POST_NOTIFICATIONS) ==
PackageManager.PERMISSION_GRANTED
) {
// FCM SDK (and your app) can post notifications.
} else if (shouldShowRequestPermissionRationale(Manifest.permission.POST_NOTIFICATIONS)) {
// TODO: display an educational UI explaining to the user the features that will be enabled
// by them granting the POST_NOTIFICATION permission. This UI should provide the user
// "OK" and "No thanks" buttons. If the user selects "OK," directly request the permission.
// If the user selects "No thanks," allow the user to continue without notifications.
} else {
// Directly ask for the permission
requestNotificationPermissionLauncher.launch(Manifest.permission.POST_NOTIFICATIONS)
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

이 부분 tiramisu under는 어떻게 처리되나욥,,?

Copy link
Member Author

Choose a reason for hiding this comment

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

광고 id 받는건 api 33 이후라서 아레 버전에선 동작 안해도 될 것 같습니다.

@@ -1,7 +1,7 @@
package org.sopt.official.domain.entity

enum class UserState {
enum class UserActiveState {
Copy link
Contributor

Choose a reason for hiding this comment

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

걍 질문인데 UserActiveState(이전 UserState)랑 UserStatus랑 정확한 차이가 뭔가여
솝트 활동 상태 / Auth 상태..?

Copy link
Member Author

Choose a reason for hiding this comment

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

중복해서 쓰고 있는듯…후우…이것도 적폐척결해야됨

@l2hyunwoo l2hyunwoo merged commit 53d9ca2 into develop Sep 26, 2023
1 check passed
@l2hyunwoo l2hyunwoo deleted the feature/refactor-code-structure branch September 26, 2023 14:28
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.

2 participants