-
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 #243 from Nexters/release/1.5.0
Release/1.5.0
- Loading branch information
Showing
89 changed files
with
1,876 additions
and
1,064 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,44 @@ | ||
name: Android Pull Request CI | ||
|
||
on: | ||
pull_request: | ||
branches: [ develop ] | ||
|
||
jobs: | ||
unit_test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v3 | ||
|
||
- name: set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'corretto' | ||
java-version: '17' | ||
|
||
- name: set up Android SDK | ||
uses: android-actions/setup-android@v2 | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Run unit tests | ||
env: | ||
DEBUG_KEYSTORE: ${{ secrets.DEBUG_KEYSTORE }} | ||
KEYSTORE_PROPERTIES: ${{ secrets.KEYSTORE_PROPERTIES }} | ||
LOCAL_PROPERTIES: ${{ secrets.LOCAL_PROPERTIES }} | ||
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }} | ||
run: | | ||
echo "$KEYSTORE" | base64 -d > ./app/boolti-keystore.keystore | ||
echo "$KEYSTORE_PROPERTIES" > keystore.properties | ||
echo "$LOCAL_PROPERTIES" > local.properties | ||
echo "$GOOGLE_SERVICES" | base64 -d > ./app/google-services.json | ||
./gradlew test --stacktrace | ||
- name: Publish Test Results | ||
if: always() | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
with: | ||
files: "**/test-results/**/*.xml" |
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 |
---|---|---|
|
@@ -57,7 +57,6 @@ google-services.json | |
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.nar | ||
*.ear | ||
|
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
4 changes: 3 additions & 1 deletion
4
data/src/main/java/com/nexters/boolti/data/datasource/TicketDataSource.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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
package com.nexters.boolti.data.datasource | ||
|
||
import com.nexters.boolti.data.network.api.TicketService | ||
import com.nexters.boolti.data.network.response.TicketDetailDto | ||
import com.nexters.boolti.domain.model.Ticket | ||
import retrofit2.Response | ||
import javax.inject.Inject | ||
|
||
internal class TicketDataSource @Inject constructor( | ||
private val apiService: TicketService, | ||
) { | ||
suspend fun getTickets(): List<Ticket> = apiService.getTickets().map { it.toDomain() } | ||
suspend fun getTicket(ticketId: String): Ticket = apiService.getTicket(ticketId).toDomain() | ||
suspend fun getTicket(ticketId: String): Response<TicketDetailDto> = apiService.getTicket(ticketId) | ||
} |
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/response/ApprovePaymentResponse.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.response | ||
|
||
import com.nexters.boolti.domain.model.ApprovePaymentResponse | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class ApprovePaymentResponse( | ||
@SerialName("orderId") val orderId: String, | ||
@SerialName("reservationId") val reservationId: String, | ||
) { | ||
fun toDomain(): ApprovePaymentResponse = ApprovePaymentResponse(orderId, reservationId) | ||
} |
9 changes: 9 additions & 0 deletions
9
data/src/main/java/com/nexters/boolti/data/network/response/OrderIdDto.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,9 @@ | ||
package com.nexters.boolti.data.network.response | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class OrderIdDto( | ||
@SerialName("orderId") val orderId: String, | ||
) |
Oops, something went wrong.