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

[부나] 1, 2단계 영화 극장 선택 제출합니다. #15

Merged
merged 41 commits into from
Apr 29, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
0e6a17d
feat: 영화 티켓 예매 마이그레이션
tmdgh1592 Apr 25, 2023
fe3b115
docs: 예매 내역 기능 구현 목록 작성
tmdgh1592 Apr 25, 2023
8699f04
feat(MainActivity): 바텀 내비게이션 추가
tmdgh1592 Apr 25, 2023
41e7187
feat(MainActivity): 바텀 네비게이션 클릭 시 해당 프래그먼트로 이동하는 기능 구현
tmdgh1592 Apr 25, 2023
85207ff
feat(HistoryFragment): 리사이클러뷰 예매 내역 아이템 xml 구현
tmdgh1592 Apr 25, 2023
0f15d0b
refactor(Reservation): 예약 정보를 Reservation 모델로 전달하도록 변경
tmdgh1592 Apr 25, 2023
cb38495
feat(HistoryFragment): 예매 내역 목록을 보여주는 기능 구현
tmdgh1592 Apr 25, 2023
b6ff7d2
feat(HistoryFragment): 예매 내역 목록을 보여주는 기능 구현
tmdgh1592 Apr 25, 2023
08fc1a2
feat(MainActivity): 알림권한 허용을 요청하는 기능 구현
tmdgh1592 Apr 26, 2023
1741ebc
feat(SettingFragment): 설정 화면 구현
tmdgh1592 Apr 26, 2023
871d0ed
feat(Preferences): 설정 데이터를 저장하는 SharedPreference 구현
tmdgh1592 Apr 26, 2023
2b75a9b
feat(SettingFragment): 설정에서 알림 기능을 On/Off 하는 기능 구현
tmdgh1592 Apr 26, 2023
1426e31
feat(HistoryFragment): 예매 기록 구분선 추가
tmdgh1592 Apr 26, 2023
74a824e
feat: 영화 시작 시간 30분 전에 푸시 알림, 푸시 알림을 클릭하면 예매 정보를 보여주는 기능 구현
tmdgh1592 Apr 26, 2023
e1d4aa5
refactor: AlarmReceiver 클래스명 변경
tmdgh1592 Apr 26, 2023
a105c5b
refactor: Reminder를 추상화하도록 변경
tmdgh1592 Apr 26, 2023
4d54d12
refactor(PushReceiver): 푸시 알림 수신 여부에 따라 알림 제어
tmdgh1592 Apr 26, 2023
c3555ce
refactor(PushReceiver): 푸시 알림 수신 여부에 따라 알림 제어
tmdgh1592 Apr 26, 2023
4bab86b
refactor(PushAlarmManager): AlarmManager 클래스 분리
tmdgh1592 Apr 26, 2023
2a32d40
refactor(Notification): 아이콘 변경
tmdgh1592 Apr 26, 2023
bffd245
refactor(PushAlarmManager): set함수에서 시간을 Long타입으로 변환하도록 수정
tmdgh1592 Apr 26, 2023
5fd4448
fix(ReservationPushReceiver): 알림이 오지 않던 문제 키 값 변경으로 해결
tmdgh1592 Apr 26, 2023
a45577b
refactor(MovieApplication): sharedPreferences를 application이 관리하도록 변경
tmdgh1592 Apr 26, 2023
dd5e718
충돌해결
tmdgh1592 Apr 26, 2023
f37813b
refactor(ContextExt): 권한확인 기능을 확장 함수로 분리
tmdgh1592 Apr 27, 2023
b0feac7
feat: 권한이 허용되어 있지 않을 때 푸시 스위치를 켜면, 권한 요청 다이얼로그를 보여주는 기능 구현
tmdgh1592 Apr 27, 2023
e2cf7fe
feat(SettingFragment): 권한이 없는 상태에서 푸시 스위치를 켜면 시스템 설정 화면으로 이동하는 기능 구현
tmdgh1592 Apr 27, 2023
491371e
test(SettingFragment): 세팅 화면 테스트 코드 작성
tmdgh1592 Apr 27, 2023
03aa72e
refactor: Fragment 이동하는 기능을 함수로 분리
tmdgh1592 Apr 28, 2023
d097fac
refactor: 사용자에게 권한 요청을 한 번만 하도록 변경
tmdgh1592 Apr 28, 2023
e491a8f
fix(PushAlarmManager): PendingIntent 생성시 고유한 값을 사용하도록 변경
tmdgh1592 Apr 28, 2023
c175522
refactor(PushAlarmManager): pendingIntent 생성을 run 스코프 함수로 초기화하도록 변경
tmdgh1592 Apr 28, 2023
b9eac7a
refactor: 예매 내역 아이템을 클릭했을 때 이벤트를 함수로 분리
tmdgh1592 Apr 28, 2023
bb39788
refactor: Fragment의 newInstance() 호출시 불필요한 함수 호출 제거
tmdgh1592 Apr 28, 2023
d6aae69
refactor(AlarmManager): set() 함수 호출시 intent와 푸시할 데이터를 전달받도록 변경
tmdgh1592 Apr 28, 2023
4d37b79
refactor(DataStore): Preference의 이름을 LocalDataStore로 변경하고 DataStore를 …
tmdgh1592 Apr 28, 2023
b4189f7
refactor(LocalDataStore): Application을 제거하고 싱글톤으로 생성하도록 변경
tmdgh1592 Apr 28, 2023
0c3205f
refactor(TicketingResultActivity): intent 생성 방식을 동반 객체에서 정의하도록 변경
tmdgh1592 Apr 28, 2023
f633363
refactor: Reservation 도메인 생성
tmdgh1592 Apr 28, 2023
1694f40
fix: 푸시 알림을 30일 이전이 아닌 30분 전으로 수정
tmdgh1592 Apr 28, 2023
6eacceb
fix(TicketingResultActivity): intent() 메서드에 companion object가 아니라 액티비…
tmdgh1592 Apr 28, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package woowacourse.movie.presentation.activities.main.fragments.history

import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
Expand Down Expand Up @@ -45,10 +44,7 @@ class HistoryFragment : Fragment() {
}

private fun startResultActivity(item: Reservation) {
startActivity(
Intent(requireContext(), TicketingResultActivity::class.java)
.putExtra(TicketingResultActivity.RESERVATION_KEY, item)
)
startActivity(TicketingResultActivity.intent(requireContext(), item))

Choose a reason for hiding this comment

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

함수명은 동사나 동사구로 지으면 어덜까요?

}

companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,7 @@ class SeatPickerActivity : AppCompatActivity(), View.OnClickListener {
}

private fun startTicketingResultActivity(reservation: Reservation) {
startActivity(
Intent(this@SeatPickerActivity, TicketingResultActivity::class.java)
.putExtra(TicketingResultActivity.RESERVATION_KEY, reservation)
)
startActivity(TicketingResultActivity.intent(this, reservation))
finish()
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package woowacourse.movie.presentation.activities.ticketingresult

import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.MenuItem
import android.widget.TextView
Expand Down Expand Up @@ -60,5 +62,9 @@ class TicketingResultActivity : AppCompatActivity() {

companion object {
internal const val RESERVATION_KEY = "reservation"

fun intent(context: Context, reservation: Reservation): Intent =
Intent(context, this::class.java)
.putExtra(RESERVATION_KEY, reservation)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package woowacourse.movie.presentation.reminder

import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.os.Parcelable
import woowacourse.movie.R
import woowacourse.movie.presentation.activities.ticketing.SeatPickerActivity.Companion.REMINDER_TIME_MINUTES_AGO
Expand Down Expand Up @@ -36,8 +35,7 @@ class ReservationReminder(
context: Context,
data: Reservation
): PendingIntent {
val intent = Intent(context, TicketingResultActivity::class.java)
intent.putExtra(TicketingResultActivity.RESERVATION_KEY, data)
val intent = TicketingResultActivity.intent(context, data)
return PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_IMMUTABLE)
}

Expand Down