-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* chore: 파이어 베이스 메세지 라이브러리 추가 * feat: 입장 티켓 서비스 클래스 추가 * feat: 입장완료 메세지가 오면 화면이 나가지도록 처리 * refactor: 인증 로그인 요청 데이터 클래스 추가 후 리포지터리에 반영 * feat: 파이어베이스 fcmToken을 로그인할 때 전송하도록 변경 * feat: fcm 토큰 추가후 에러 발생 시 throw를 던지지 않도록 변경 * feat: 레거시 제거 * refactor: dev 브랜치 머지후 실행되지 않는 코드 변경 * refactor: fcm을 data layer에서 처리하도록 변경 * refactor: fcm을 data layer에서 처리하도록 변경 * refactor: isExactlyInstanceOf을 사용하여 타입 체크 * fix: 테스트코드 빌드에러 수정 * refactor: fcm 토큰을 TokenRepository에서만 접근하도록 변경 * refactor: 머지 후 생긴 문제 해결 * refactor: 추가되는 api에 대해서 에러가 발생하지 않도록 변경 * refactor: 머지전 필요없는 사항 변경 * refactor: 머지전 필요없는 사항 변경
- Loading branch information
Showing
12 changed files
with
119 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...id/festago/app/src/main/java/com/festago/festago/data/di/singletonscope/FirebaseModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.festago.festago.data.di.singletonscope | ||
|
||
import com.google.firebase.messaging.FirebaseMessaging | ||
import dagger.Module | ||
import dagger.Provides | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
import javax.inject.Singleton | ||
|
||
@InstallIn(SingletonComponent::class) | ||
@Module | ||
object FirebaseModule { | ||
@Provides | ||
@Singleton | ||
fun provideFirebaseMessaging(): FirebaseMessaging { | ||
return FirebaseMessaging.getInstance() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
.../festago/app/src/main/java/com/festago/festago/presentation/service/TicketEntryService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.festago.festago.presentation.service | ||
|
||
import com.google.firebase.messaging.FirebaseMessagingService | ||
import com.google.firebase.messaging.RemoteMessage | ||
import kotlinx.coroutines.flow.MutableSharedFlow | ||
import kotlinx.coroutines.runBlocking | ||
|
||
class TicketEntryService : FirebaseMessagingService() { | ||
override fun onMessageReceived(remoteMessage: RemoteMessage) { | ||
runBlocking { | ||
// TODO: 입장완료 로직인지 확인하는 로직 추가 필요 | ||
ticketStateChangeEvent.emit(true) | ||
} | ||
} | ||
|
||
override fun onNewToken(token: String) { | ||
// TODO: 토큰이 변경되었을 때 처리 | ||
} | ||
|
||
companion object { | ||
val ticketStateChangeEvent: MutableSharedFlow<Boolean> = MutableSharedFlow() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters