-
Notifications
You must be signed in to change notification settings - Fork 2
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] GA4 클릭/스크롤 이벤트 추가 #245
Conversation
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.
고생하셨습니다 !!
koin/src/main/java/in/koreatech/koin/ui/main/activity/MainActivity.kt
Outdated
Show resolved
Hide resolved
koin/src/main/java/in/koreatech/koin/ui/main/fragment/DiningContainerFragment.kt
Outdated
Show resolved
Hide resolved
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.
로깅하는 함수를 추가할 때, 굉장히 기네요.. 뭔가 더 줄일 방법이 없을 지 고민해봐도 괜찮을 것 같아요! 고생하셨습니다!
@@ -41,14 +43,40 @@ class BusMainFragment : Fragment(R.layout.bus_main_fragment) { | |||
initViewModel() | |||
} | |||
|
|||
private var isUserSelection = false |
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.
Configuration changed가 발생했을때 해당 flag값이 날라갈수도 있습니다. AAC ViewModel을 활용해보는거는 어떨까요?
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.
ViewModel 활용해서 flag 체크하도록 변경하였습니다!!
88a12f9
busDepartureSpinner.setOnItemSelectedListener { _, _, position, _ -> | ||
viewModel.setDeparture(position.busNodeSelection) | ||
if(isUserSelection) { |
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.
해당 Interection도 ViewModel에 추가하면 테스트 케이스로 추가 가능합니다.
아무래도 일일이 로깅할 문자열을 지정해서 넘겨줘야 하다보니 길어질 수 밖에 없었던 것 같습니다... |
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.
리뷰했습니다.
core/src/main/java/in/koreatech/koin/core/appbar/AppBarBase.java
Outdated
Show resolved
Hide resolved
core/src/main/java/in/koreatech/koin/core/analytics/EventLogger.kt
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,48 @@ | |||
package `in`.koreatech.koin.core.constant | |||
|
|||
object AnalyticsConstant { |
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.
object in object 구조를 차용하는 이유가 있을까요?
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.
이벤트 로깅에 사용되는 상수임을 명확히 하기 위해 관련 상수들을 AnalyticsConstant라는 object 내에 배치하였고, 그 안에서도 각 상수들이 어떤 parameter에 쓰이는지 명확히 하기 위해 object로 다시 한 번 분류하였습니다.
domain/src/main/java/in/koreatech/koin/domain/util/DiningUtil.kt
Outdated
Show resolved
Hide resolved
koin/src/main/java/in/koreatech/koin/ui/navigation/KoinNavigationDrawerActivity.kt
Outdated
Show resolved
Hide resolved
koin/src/main/java/in/koreatech/koin/ui/store/activity/StoreActivity.kt
Outdated
Show resolved
Hide resolved
koin/src/main/java/in/koreatech/koin/ui/store/activity/StoreActivity.kt
Outdated
Show resolved
Hide resolved
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.
고생하셨어요! 👍
개요
상세 작업 내용
TabLayout + ViewPager2 이슈
해결 방안
이벤트 명세