This repository was archived by the owner on Feb 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed
fluxc/src/main/java/org/wordpress/android/fluxc Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,11 @@ import kotlinx.coroutines.flow.Flow
1111import kotlinx.coroutines.flow.callbackFlow
1212import kotlinx.coroutines.flow.onCompletion
1313import kotlinx.coroutines.flow.onStart
14- import okhttp3.*
14+ import okhttp3.Call
15+ import okhttp3.Callback
16+ import okhttp3.OkHttpClient
17+ import okhttp3.Request
18+ import okhttp3.Response
1519import org.json.JSONException
1620import org.json.JSONObject
1721import org.wordpress.android.fluxc.Dispatcher
@@ -24,7 +28,11 @@ import org.wordpress.android.fluxc.model.MediaModel.MediaUploadState.FAILED
2428import org.wordpress.android.fluxc.model.SiteModel
2529import org.wordpress.android.fluxc.network.rest.wpapi.WPAPIResponse
2630import org.wordpress.android.fluxc.network.rest.wpcom.WPComGsonRequest
27- import org.wordpress.android.fluxc.store.MediaStore.*
31+ import org.wordpress.android.fluxc.store.MediaStore.FetchMediaListResponsePayload
32+ import org.wordpress.android.fluxc.store.MediaStore.MediaError
33+ import org.wordpress.android.fluxc.store.MediaStore.MediaErrorType
34+ import org.wordpress.android.fluxc.store.MediaStore.MediaPayload
35+ import org.wordpress.android.fluxc.store.MediaStore.ProgressPayload
2836import org.wordpress.android.fluxc.tools.CoroutineEngine
2937import org.wordpress.android.fluxc.utils.MimeType
3038import org.wordpress.android.util.AppLog
Original file line number Diff line number Diff line change 11package org .wordpress .android .fluxc .store ;
22
33import android .text .TextUtils ;
4-
54import androidx .annotation .NonNull ;
65import androidx .annotation .Nullable ;
7-
86import com .wellsql .generated .MediaModelTable ;
9-
107import org .greenrobot .eventbus .Subscribe ;
118import org .greenrobot .eventbus .ThreadMode ;
129import org .wordpress .android .fluxc .Dispatcher ;
3532import org .wordpress .android .fluxc .utils .MimeType ;
3633import org .wordpress .android .util .AppLog ;
3734
35+ import javax .inject .Inject ;
36+ import javax .inject .Singleton ;
3837import java .io .IOException ;
3938import java .net .ConnectException ;
4039import java .net .SocketTimeoutException ;
4342import java .util .List ;
4443import java .util .Locale ;
4544
46- import javax .inject .Inject ;
47- import javax .inject .Singleton ;
48-
4945@ Singleton
5046public class MediaStore extends Store {
5147 public static final int DEFAULT_NUM_MEDIA_PER_FETCH = 50 ;
You can’t perform that action at this time.
0 commit comments