Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit 478fb95

Browse files
Fix detekt issues
1 parent 5a78315 commit 478fb95

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

fluxc/src/main/java/org/wordpress/android/fluxc/network/rest/wpapi/media/BaseWPV2MediaRestClient.kt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ import kotlinx.coroutines.flow.Flow
1111
import kotlinx.coroutines.flow.callbackFlow
1212
import kotlinx.coroutines.flow.onCompletion
1313
import 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
1519
import org.json.JSONException
1620
import org.json.JSONObject
1721
import org.wordpress.android.fluxc.Dispatcher
@@ -24,7 +28,11 @@ import org.wordpress.android.fluxc.model.MediaModel.MediaUploadState.FAILED
2428
import org.wordpress.android.fluxc.model.SiteModel
2529
import org.wordpress.android.fluxc.network.rest.wpapi.WPAPIResponse
2630
import 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
2836
import org.wordpress.android.fluxc.tools.CoroutineEngine
2937
import org.wordpress.android.fluxc.utils.MimeType
3038
import org.wordpress.android.util.AppLog

fluxc/src/main/java/org/wordpress/android/fluxc/store/MediaStore.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
package org.wordpress.android.fluxc.store;
22

33
import android.text.TextUtils;
4-
54
import androidx.annotation.NonNull;
65
import androidx.annotation.Nullable;
7-
86
import com.wellsql.generated.MediaModelTable;
9-
107
import org.greenrobot.eventbus.Subscribe;
118
import org.greenrobot.eventbus.ThreadMode;
129
import org.wordpress.android.fluxc.Dispatcher;
@@ -35,6 +32,8 @@
3532
import org.wordpress.android.fluxc.utils.MimeType;
3633
import org.wordpress.android.util.AppLog;
3734

35+
import javax.inject.Inject;
36+
import javax.inject.Singleton;
3837
import java.io.IOException;
3938
import java.net.ConnectException;
4039
import java.net.SocketTimeoutException;
@@ -43,9 +42,6 @@
4342
import java.util.List;
4443
import java.util.Locale;
4544

46-
import javax.inject.Inject;
47-
import javax.inject.Singleton;
48-
4945
@Singleton
5046
public class MediaStore extends Store {
5147
public static final int DEFAULT_NUM_MEDIA_PER_FETCH = 50;

0 commit comments

Comments
 (0)