-
Notifications
You must be signed in to change notification settings - Fork 0
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: Timer Service Refactoring #140
Conversation
import timber.log.Timber | ||
|
||
internal class PomodoroNotificationManager @Inject constructor( | ||
@PomodoroNotification private val notificationBuilder: NotificationCompat.Builder, |
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.
어제 밤에 이야기 했던 NotificationBuilder 를 hilt를 아직 유지한 이유는 app과 관련된 정보를 presenter에서 알 수가 없다 보니 우선 유지하고 해당 정보들을 어떻게 할지 좀 고민해볼게
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.
알림 추가 기능 확인하고 변경해도 괜찮을듯!
private var focusTimer: Timer? = null | ||
private var restTimer: Timer? = null |
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.
하나의 Service에서 2개의 Timer 로직을 갖고 있으니 구분도 어렵고, 코딩을 할 때 실수가 잦아져서 구성 자체를 변경
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.
타이머 분리하니까 확실히 가독성이 좋아졌군요 bb
android:name=".presentation.service.focus.PomodoroFocusTimerService" | ||
android:foregroundServiceType="specialUse"> | ||
<meta-data | ||
android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE" |
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.
Android 14 대응이구나
가이드 보니까 meta-data 말고 property 태그를 사용하던데 차이가 있을까?
https://developer.android.com/about/versions/14/changes/fgs-types-required
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.
meta-data
가 익숙해서 사용한거였는데, 찾아 보니 property
는 Android 14부터 도입된 개념으로 나오네 이 방법으로 해동 상관 없을거 같아 변경해두고 다시 멘션할게!
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.
import timber.log.Timber | ||
|
||
internal class PomodoroNotificationManager @Inject constructor( | ||
@PomodoroNotification private val notificationBuilder: NotificationCompat.Builder, |
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.
알림 추가 기능 확인하고 변경해도 괜찮을듯!
작업 내용
체크리스트
동작 화면
살려주세요
LocalNotificationReceiver
나 다른 Service는 다음 PR에 나눠서 올릴 예정작업 내용
체크리스트
동작 화면
살려주세요