-
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 branch 'develop' into feature/video-upload-api
- Loading branch information
Showing
77 changed files
with
1,255 additions
and
460 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="40dp" | ||
android:height="40dp" | ||
android:viewportWidth="40" | ||
android:viewportHeight="40"> | ||
<path | ||
android:pathData="M12,20m-2,0a2,2 0,1 1,4 0a2,2 0,1 1,-4 0" | ||
android:fillColor="#ffffff"/> | ||
<path | ||
android:pathData="M20,20m-2,0a2,2 0,1 1,4 0a2,2 0,1 1,-4 0" | ||
android:fillColor="#ffffff"/> | ||
<path | ||
android:pathData="M28,20m-2,0a2,2 0,1 1,4 0a2,2 0,1 1,-4 0" | ||
android:fillColor="#ffffff"/> | ||
</vector> |
30 changes: 30 additions & 0 deletions
30
core/designsystem/src/main/res/drawable/ic_viskit_logo.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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="76dp" | ||
android:height="23dp" | ||
android:viewportWidth="76" | ||
android:viewportHeight="23"> | ||
<path | ||
android:pathData="M31.219,10.831L37.033,8.712L35.843,4.858L24.645,8.903V14.509C24.645,14.509 31.46,14.272 34.441,15.943C34.862,16.181 34.854,16.823 34.422,17.039C33.265,17.621 30.596,18.473 24.875,18.473V22.591C24.875,22.591 39.111,22.973 39.111,16.617C39.111,16.617 40.003,12.332 31.216,10.834L31.219,10.831Z" | ||
android:fillColor="#EEDA24"/> | ||
<path | ||
android:pathData="M11.07,5.942C11.776,12.355 11.138,14.983 10.654,16.542C10.517,16.976 10.025,17.155 9.796,16.765C7.682,13.147 6.766,5.245 6.766,5.245L0.432,7.428L0,11.719L2.207,10.956C2.398,10.889 2.603,11.002 2.661,11.204L3.448,13.917C6.295,24.586 10.889,22.903 10.889,22.903C17.885,22.044 15.908,4.43 15.908,4.43L11.07,5.945V5.942Z" | ||
android:fillColor="#EEDA24"/> | ||
<path | ||
android:pathData="M18.073,22.594H22.624V7.252L18.073,8.631V22.594Z" | ||
android:fillColor="#EEDA24"/> | ||
<path | ||
android:pathData="M20.348,0C18.844,0 17.627,1.29 17.627,2.877C17.627,4.464 18.847,5.754 20.348,5.754C21.85,5.754 23.069,4.464 23.069,2.877C23.069,1.29 21.853,0 20.348,0Z" | ||
android:fillColor="#EEDA24"/> | ||
<path | ||
android:pathData="M55.702,22.594H60.253V7.252L55.702,8.631V22.594Z" | ||
android:fillColor="#EEDA24"/> | ||
<path | ||
android:pathData="M47.113,13.373L47.674,13.171L53.898,10.944L52.708,7.09L44.189,10.137V0.893H40.137V22.594H44.189V18.101L51.538,22.701L55.443,20.049L46.995,14.414C46.604,14.154 46.675,13.532 47.113,13.376V13.373Z" | ||
android:fillColor="#EEDA24"/> | ||
<path | ||
android:pathData="M57.978,0C56.474,0 55.257,1.29 55.257,2.877C55.257,4.464 56.477,5.754 57.978,5.754C59.479,5.754 60.699,4.464 60.699,2.877C60.699,1.29 59.479,0 57.978,0Z" | ||
android:fillColor="#EEDA24"/> | ||
<path | ||
android:pathData="M73.451,15.889C69.119,15.889 66.754,18.144 66.754,18.144V12.971L71.799,11.106L70.609,7.252L66.754,8.709V4.441H62.701V22.591H66.754C70.508,19.584 75.042,19.566 75.042,19.566L73.451,15.889Z" | ||
android:fillColor="#EEDA24"/> | ||
</vector> |
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,15 @@ | ||
package com.record.model | ||
|
||
data class VideoData( | ||
val id: String, | ||
val videoUri: String, | ||
val previewUri: String, | ||
val location: String, | ||
val userName: String, | ||
val content: String, | ||
val bookmarkCount: Int, | ||
val bookmarkId: Long, | ||
val id: Long, | ||
val isBookmark: Boolean, | ||
val bookmarkCount: Int, | ||
val content: String, | ||
val videoUrl: String, | ||
val previewUrl: String, | ||
val location: String, | ||
val uploaderId: Long, | ||
val nickname: String, | ||
val isMine: Boolean, | ||
) |
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 @@ | ||
/build |
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 @@ | ||
plugins { | ||
alias(libs.plugins.recordy.data) | ||
alias(libs.plugins.kotlin.serialization) | ||
} | ||
|
||
android { | ||
namespace = "com.record.exhibition" | ||
} | ||
|
||
dependencies { | ||
implementation(projects.domain.exhibition) | ||
implementation(projects.domain.video) | ||
} |
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,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
</manifest> |
23 changes: 23 additions & 0 deletions
23
data/exhibition/src/main/java/com/example/exhibition/di/RepositoryModule.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.example.exhibition.di | ||
|
||
import com.example.exhibition.repository.ExhibitionRepositoryImpl | ||
import com.example.exhibition.repository.SearchRepositoryImpl | ||
import com.record.exhibition.repository.ExhibitionRepository | ||
import com.record.exhibition.repository.SearchRepository | ||
import dagger.Binds | ||
import dagger.Module | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
import javax.inject.Singleton | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
abstract class RepositoryModule { | ||
@Binds | ||
@Singleton | ||
abstract fun bindsExhibitionRepository(exhibitionRepositoryImpl: ExhibitionRepositoryImpl): ExhibitionRepository | ||
|
||
@Binds | ||
@Singleton | ||
abstract fun bindsSearchRepository(searchRepositoryImpl: SearchRepositoryImpl): SearchRepository | ||
} |
18 changes: 18 additions & 0 deletions
18
...on/src/main/java/com/example/exhibition/model/remote/request/RequestPatchExhibitionDto.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.example.exhibition.model.remote.request | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class RequestPatchExhibitionDto( | ||
@SerialName("endDate") | ||
val endDate: String, | ||
@SerialName("id") | ||
val id: Int, | ||
@SerialName("isFree") | ||
val isFree: Boolean, | ||
@SerialName("name") | ||
val name: String, | ||
@SerialName("startDate") | ||
val startDate: String, | ||
) |
18 changes: 18 additions & 0 deletions
18
...ion/src/main/java/com/example/exhibition/model/remote/request/RequestPostExhibitionDto.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.example.exhibition.model.remote.request | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class RequestPostExhibitionDto( | ||
@SerialName("endDate") | ||
val endDate: String, | ||
@SerialName("isFree") | ||
val isFree: Boolean, | ||
@SerialName("name") | ||
val name: String, | ||
@SerialName("placeId") | ||
val placeId: Int, | ||
@SerialName("startDate") | ||
val startDate: String, | ||
) |
18 changes: 18 additions & 0 deletions
18
...hibition/src/main/java/com/example/exhibition/model/remote/request/RequestPostPlaceDto.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.example.exhibition.model.remote.request | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class RequestPostPlaceDto( | ||
@SerialName("address") | ||
val address: String, | ||
@SerialName("id") | ||
val id: String, | ||
@SerialName("latitude") | ||
val latitude: Int, | ||
@SerialName("longitude") | ||
val longitude: Int, | ||
@SerialName("name") | ||
val name: String, | ||
) |
14 changes: 14 additions & 0 deletions
14
data/exhibition/src/main/java/com/example/exhibition/model/remote/response/Location.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.example.exhibition.model.remote.response | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class Location( | ||
@SerialName("id") | ||
val id: Int, | ||
@SerialName("latitude") | ||
val latitude: Double, | ||
@SerialName("longitude") | ||
val longitude: Double, | ||
) |
29 changes: 29 additions & 0 deletions
29
.../main/java/com/example/exhibition/model/remote/response/ResponseGetExhibitionSearchDto.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,29 @@ | ||
package com.example.exhibition.model.remote.response | ||
|
||
import com.record.exhibition.model.ResultType | ||
import com.record.exhibition.model.SearchResult | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class ResponseGetExhibitionSearchDto( | ||
@SerialName("id") | ||
val id: Long, | ||
@SerialName("type") | ||
val type: String, | ||
@SerialName("address") | ||
val address: String, | ||
@SerialName("name") | ||
val name: String, | ||
) | ||
|
||
fun ResponseGetExhibitionSearchDto.toDomain() = SearchResult( | ||
id = this.id, | ||
type = when (this.type) { | ||
"PLACE" -> ResultType.PLACE | ||
"EXHIBITION" -> ResultType.EXHIBITION | ||
else -> ResultType.UNKNOWN | ||
}, | ||
address = this.address, | ||
name = this.name, | ||
) |
27 changes: 27 additions & 0 deletions
27
...n/src/main/java/com/example/exhibition/model/remote/response/ResponseGetExhibitionsDto.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,27 @@ | ||
package com.example.exhibition.model.remote.response | ||
|
||
import com.record.exhibition.model.Exhibition | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class ResponseGetExhibitionsDto( | ||
@SerialName("id") | ||
val id: Int, | ||
@SerialName("isFree") | ||
val isFree: Boolean, | ||
@SerialName("name") | ||
val name: String, | ||
@SerialName("startDate") | ||
val startDate: String, | ||
@SerialName("endDate") | ||
val endDate: String, | ||
) | ||
|
||
fun ResponseGetExhibitionsDto.toDomain() = Exhibition( | ||
id = this.id, | ||
isFree = this.isFree, | ||
name = this.name, | ||
startDate = this.startDate, | ||
endDate = this.endDate, | ||
) |
14 changes: 14 additions & 0 deletions
14
...n/src/main/java/com/example/exhibition/model/remote/response/ResponseGetPagingPlaceDto.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.example.exhibition.model.remote.response | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class ResponseGetPagingPlaceDto( | ||
@SerialName("content") | ||
val content: List<ResponseGetPlaceDto>, | ||
@SerialName("hasNext") | ||
val hasNext: Boolean, | ||
@SerialName("pageNumber") | ||
val pageNumber: Int, | ||
) |
22 changes: 22 additions & 0 deletions
22
...ibition/src/main/java/com/example/exhibition/model/remote/response/ResponseGetPlaceDto.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,22 @@ | ||
package com.example.exhibition.model.remote.response | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class ResponseGetPlaceDto( | ||
@SerialName("address") | ||
val address: String?, | ||
@SerialName("exhibitionSize") | ||
val exhibitionSize: Int, | ||
@SerialName("id") | ||
val id: Int, | ||
@SerialName("location") | ||
val location: Location, | ||
@SerialName("name") | ||
val name: String, | ||
@SerialName("platformId") | ||
val platformId: String?, | ||
@SerialName("recordSize") | ||
val recordSize: Int, | ||
) |
18 changes: 18 additions & 0 deletions
18
...ition/src/main/java/com/example/exhibition/model/remote/response/ResponseGetReviewsDto.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.example.exhibition.model.remote.response | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class ResponseGetReviewsDto( | ||
@SerialName("authorName") | ||
val authorName: String, | ||
@SerialName("content") | ||
val content: String, | ||
@SerialName("createdAt") | ||
val createdAt: String, | ||
@SerialName("id") | ||
val id: Int, | ||
@SerialName("rating") | ||
val rating: Int, | ||
) |
Oops, something went wrong.