-
Notifications
You must be signed in to change notification settings - Fork 4
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 #534 from woowacourse-teams/release/v3.0
Release/v3.0
- Loading branch information
Showing
139 changed files
with
2,881 additions
and
1,186 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,16 @@ | ||
![제목](etc/images/header.png) | ||
|
||
## 💌 나아가로부터의 초대장이 도착했습니다 | ||
|
||
반복되는 인스타 피드를 보고, 게임을 하며 보내는 일상이 지루하지 않으시나요? | ||
공부와 일에 치여 실내에서 보내는 시간이 많을 텐데요. 작은 화면 속을 벗어나 현실 세계의 경험을 해보고 싶지 않으신가요? | ||
|
||
그런 당신을 ‘나아가’로 초대합니다. | ||
|
||
## 🚶🏻 추리와 발걸음의 만남 | ||
나아가는 현실 세계를 누비며 진행되는 추리 게임입니다. 게임을 시작하면, 당신 주변 어딘가의 사진이 제공됩니다. 사진이 알쏭달쏭하여 그곳이 어딘지 알아맞히기 어렵겠지만, 우선 발걸음을 옮겨보세요. | ||
|
||
|
||
<a href="https://play.google.com/store/apps/details?id=com.now.naaga&pcampaignid=web_share"><img src="etc/images/google play store.png"/></a> | ||
|
||
![상세 페이지](etc/images/service%20intro.png) |
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
2 changes: 1 addition & 1 deletion
2
android/app/src/main/java/com/now/naaga/data/mapper/AdventureResultMapper.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
2 changes: 1 addition & 1 deletion
2
android/app/src/main/java/com/now/naaga/data/mapper/AuthMapper.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
14 changes: 14 additions & 0 deletions
14
android/app/src/main/java/com/now/naaga/data/mapper/LetterMapper.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,14 @@ | ||
package com.now.naaga.data.mapper | ||
|
||
import com.now.domain.model.letter.Letter | ||
import com.now.naaga.data.remote.dto.LetterDto | ||
|
||
fun LetterDto.toDomain(): Letter { | ||
return Letter( | ||
id = id, | ||
player = player.toDomain(), | ||
coordinate = coordinateDto.toDomain(), | ||
message = message, | ||
registerDate = registerDate, | ||
) | ||
} |
11 changes: 11 additions & 0 deletions
11
android/app/src/main/java/com/now/naaga/data/mapper/LetterPreviewMapper.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,11 @@ | ||
package com.now.naaga.data.mapper | ||
|
||
import com.now.domain.model.letter.LetterPreview | ||
import com.now.naaga.data.remote.dto.LetterPreviewDto | ||
|
||
fun LetterPreviewDto.toDomain(): LetterPreview { | ||
return LetterPreview( | ||
id = id, | ||
coordinate = coordinateDto.toDomain(), | ||
) | ||
} |
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
android/app/src/main/java/com/now/naaga/data/remote/dto/LetterDto.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.now.naaga.data.remote.dto | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class LetterDto( | ||
@SerialName("id") | ||
val id: Long, | ||
@SerialName("player") | ||
val player: PlayerDto, | ||
@SerialName("coordinate") | ||
val coordinateDto: CoordinateDto, | ||
@SerialName("message") | ||
val message: String, | ||
@SerialName("registerDate") | ||
val registerDate: String, | ||
) |
12 changes: 12 additions & 0 deletions
12
android/app/src/main/java/com/now/naaga/data/remote/dto/LetterPreviewDto.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,12 @@ | ||
package com.now.naaga.data.remote.dto | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class LetterPreviewDto( | ||
@SerialName("id") | ||
val id: Long, | ||
@SerialName("coordinate") | ||
val coordinateDto: CoordinateDto, | ||
) |
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
16 changes: 16 additions & 0 deletions
16
android/app/src/main/java/com/now/naaga/data/remote/dto/PreferenceDto.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,16 @@ | ||
package com.now.naaga.data.remote.dto | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class PreferenceDto( | ||
@SerialName("id") | ||
val id: Int, | ||
@SerialName("playerId") | ||
val playerId: Int, | ||
@SerialName("placeId") | ||
val placeId: Int, | ||
@SerialName("type") | ||
val type: String, | ||
) |
10 changes: 10 additions & 0 deletions
10
android/app/src/main/java/com/now/naaga/data/remote/dto/PreferenceStateDto.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,10 @@ | ||
package com.now.naaga.data.remote.dto | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class PreferenceStateDto( | ||
@SerialName("type") | ||
val type: String, | ||
) |
14 changes: 14 additions & 0 deletions
14
android/app/src/main/java/com/now/naaga/data/remote/dto/post/PostLetterDto.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,14 @@ | ||
package com.now.naaga.data.remote.dto.post | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class PostLetterDto( | ||
@SerialName("message") | ||
val message: String, | ||
@SerialName("latitude") | ||
val latitude: Double, | ||
@SerialName("longitude") | ||
val longitude: Double, | ||
) |
3 changes: 2 additions & 1 deletion
3
...now/naaga/data/remote/dto/PostPlaceDto.kt → ...aaga/data/remote/dto/post/PostPlaceDto.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
26 changes: 0 additions & 26 deletions
26
android/app/src/main/java/com/now/naaga/data/remote/retrofit/RetrofitFactory.kt
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
android/app/src/main/java/com/now/naaga/data/remote/retrofit/service/LetterService.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,35 @@ | ||
package com.now.naaga.data.remote.retrofit.service | ||
|
||
import com.now.naaga.data.remote.dto.LetterDto | ||
import com.now.naaga.data.remote.dto.LetterPreviewDto | ||
import com.now.naaga.data.remote.dto.post.PostLetterDto | ||
import retrofit2.Response | ||
import retrofit2.http.Body | ||
import retrofit2.http.GET | ||
import retrofit2.http.POST | ||
import retrofit2.http.Path | ||
import retrofit2.http.Query | ||
|
||
interface LetterService { | ||
@POST("/letters") | ||
suspend fun registerLetter( | ||
@Body postLetterDto: PostLetterDto, | ||
): Response<LetterDto> | ||
|
||
@GET("/letters/nearby") | ||
suspend fun getNearbyLetters( | ||
@Query("latitude") latitude: Double, | ||
@Query("longitude") longitude: Double, | ||
): Response<List<LetterPreviewDto>> | ||
|
||
@GET("/letters/{letterId}") | ||
suspend fun getLetter( | ||
@Path("letterId") letterId: Long, | ||
): Response<LetterDto> | ||
|
||
@GET("/letterlogs") | ||
suspend fun getInGameLetters( | ||
@Query("gameId") gameId: Long, | ||
@Query("logType") logType: String, | ||
): Response<List<LetterDto>> | ||
} |
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
Oops, something went wrong.