File tree Expand file tree Collapse file tree
data-api/src/main/java/com/neki/android/core/dataapi/repository
data/src/main/java/com/neki/android/core/data/repository/impl Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,12 +18,6 @@ interface MediaUploadRepository {
1818 mediaType : String ,
1919 ): Result <List <MediaUploadTicket >>
2020
21- suspend fun uploadImage (
22- uploadUrl : String ,
23- imageBytes : ByteArray ,
24- contentType : ContentType ,
25- ): Result <Unit >
26-
2721 suspend fun uploadImageFromUri (
2822 uploadUrl : String ,
2923 uri : Uri ,
Original file line number Diff line number Diff line change @@ -56,18 +56,6 @@ class MediaUploadRepositoryImpl @Inject constructor(
5656 ).data.toModels()
5757 }
5858
59- override suspend fun uploadImage (
60- uploadUrl : String ,
61- imageBytes : ByteArray ,
62- contentType : ContentType ,
63- ) = runSuspendCatching {
64- uploadService.uploadImage(
65- presignedUrl = uploadUrl,
66- imageBytes = imageBytes,
67- contentType = contentType.label,
68- )
69- }
70-
7159 override suspend fun uploadImageFromUri (
7260 uploadUrl : String ,
7361 uri : Uri ,
You can’t perform that action at this time.
0 commit comments