-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #218 from Nexters/release/1.4.0_2
Release/1.4.0
- Loading branch information
Showing
177 changed files
with
4,531 additions
and
1,955 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# 핫한 공연 예매의 시작 불티 | ||
|
||
- 플레이 스토어 : https://play.google.com/store/apps/details?id=com.nexters.boolti | ||
- 앱 스토어 : https://apps.apple.com/kr/app/%EB%B6%88%ED%8B%B0/id6476589322 | ||
- 주최자용 웹 : https://boolti.in | ||
|
||
</br> | ||
|
||
## Screenshots | ||
<img width=20% src="https://github.com/Nexters/Boolti/assets/35232655/1720adc2-80aa-46aa-a079-cdf23bfd8a01"> | ||
<img width=20% src="https://github.com/Nexters/Boolti/assets/35232655/b218b684-7022-49a9-9b97-308d4d7a942b"> | ||
<img width=20% src="https://github.com/Nexters/Boolti/assets/35232655/bc784377-ec05-4d28-b578-1c638d2cd5b5"> | ||
<img width=20% src="https://github.com/Nexters/Boolti/assets/35232655/d080d5e0-e979-4e66-94f8-dcd8d49d3d78"> | ||
|
||
</br></br> | ||
|
||
## Android developers | ||
|
||
|Android|Android| | ||
|:---:|:---:| | ||
|[박명범](https://github.com/mangbaam)|[송준영](https://github.com/HamBP)| | ||
|<img src="https://github.com/mangbaam.png?size=144">|<img src="https://github.com/HamBP.png?size=144">| | ||
|
||
</br> | ||
|
||
## Other repositories | ||
- iOS Repository : https://github.com/Nexters/Boolti-iOS | ||
- FE Repository : https://github.com/Nexters/boolti-web | ||
- BE Repository : private |
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
/build | ||
/build | ||
*.jks | ||
*keystore |
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
37 changes: 37 additions & 0 deletions
37
data/src/main/java/com/nexters/boolti/data/datasource/DeviceTokenDataSource.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,37 @@ | ||
package com.nexters.boolti.data.datasource | ||
|
||
import com.google.android.gms.tasks.OnCompleteListener | ||
import com.google.firebase.messaging.FirebaseMessaging | ||
import com.nexters.boolti.data.network.api.DeviceTokenService | ||
import com.nexters.boolti.data.network.request.DeviceTokenRequest | ||
import java.io.IOException | ||
import javax.inject.Inject | ||
import kotlin.coroutines.resume | ||
import kotlin.coroutines.resumeWithException | ||
import kotlin.coroutines.suspendCoroutine | ||
|
||
internal class DeviceTokenDataSource @Inject constructor( | ||
private val deviceTokenService: DeviceTokenService, | ||
) { | ||
suspend fun sendFcmToken(): Result<Unit> = runCatching { | ||
val response = deviceTokenService.postFcmToken( | ||
DeviceTokenRequest(deviceToken = getFcmToken(), deviceType = "ANDROID") | ||
) | ||
|
||
if (!response.isSuccessful) throw IOException("fcm 토큰을 서버에 전송하는 데 실패했어요.") | ||
} | ||
|
||
private suspend fun getFcmToken(): String = suspendCoroutine { continuation -> | ||
val firebaseMessaging = FirebaseMessaging.getInstance() | ||
firebaseMessaging.token.addOnCompleteListener(OnCompleteListener { task -> | ||
if (!task.isSuccessful) { | ||
continuation.resumeWithException(IllegalStateException("fcm 토큰을 가져오는 데 실패했어요.")) | ||
return@OnCompleteListener | ||
} | ||
|
||
val token = task.result | ||
|
||
continuation.resume(token) | ||
}) | ||
} | ||
} |
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
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
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
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
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
13 changes: 13 additions & 0 deletions
13
data/src/main/java/com/nexters/boolti/data/network/api/DeviceTokenService.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,13 @@ | ||
package com.nexters.boolti.data.network.api | ||
|
||
|
||
import com.nexters.boolti.data.network.request.DeviceTokenRequest | ||
import com.nexters.boolti.data.network.response.DeviceTokenResponse | ||
import retrofit2.Response | ||
import retrofit2.http.Body | ||
import retrofit2.http.POST | ||
|
||
internal interface DeviceTokenService { | ||
@POST("/app/papi/v1/device-token") | ||
suspend fun postFcmToken(@Body request: DeviceTokenRequest): Response<DeviceTokenResponse> | ||
} |
Oops, something went wrong.