summaryrefslogtreecommitdiff
path: root/ui/glide
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2024-03-17 20:25:44 +0100
committerGitHub <noreply@github.com>2024-03-17 20:25:44 +0100
commit2d77b1f11802da28cbcd87c9456bcc7ee3abf2a0 (patch)
tree7f54438ed59eee3272cd38dab79f8ebfe291e9e4 /ui/glide
parentb84a05bd4e2bf2d10b7791155cc0a7a0e5aa3dcf (diff)
downloadAntennaPod-2d77b1f11802da28cbcd87c9456bcc7ee3abf2a0.zip
Remove dependency from :ui:glide to :core module (#6998)
Diffstat (limited to 'ui/glide')
-rw-r--r--ui/glide/build.gradle2
-rw-r--r--ui/glide/src/main/java/de/danoeh/antennapod/ui/glide/ApOkHttpUrlLoader.java4
-rw-r--r--ui/glide/src/main/java/de/danoeh/antennapod/ui/glide/ChapterImageModelLoader.java3
3 files changed, 5 insertions, 4 deletions
diff --git a/ui/glide/build.gradle b/ui/glide/build.gradle
index d518e1d69..c281fbf04 100644
--- a/ui/glide/build.gradle
+++ b/ui/glide/build.gradle
@@ -10,7 +10,7 @@ android {
dependencies {
implementation project(":model")
- implementation project(":core")
+ implementation project(':net:common')
implementation project(':storage:preferences')
implementation "androidx.palette:palette:$paletteVersion"
diff --git a/ui/glide/src/main/java/de/danoeh/antennapod/ui/glide/ApOkHttpUrlLoader.java b/ui/glide/src/main/java/de/danoeh/antennapod/ui/glide/ApOkHttpUrlLoader.java
index 3814c0700..d66f08ec8 100644
--- a/ui/glide/src/main/java/de/danoeh/antennapod/ui/glide/ApOkHttpUrlLoader.java
+++ b/ui/glide/src/main/java/de/danoeh/antennapod/ui/glide/ApOkHttpUrlLoader.java
@@ -10,10 +10,10 @@ import com.bumptech.glide.load.model.ModelLoader;
import com.bumptech.glide.load.model.ModelLoaderFactory;
import com.bumptech.glide.load.model.MultiModelLoaderFactory;
import com.bumptech.glide.signature.ObjectKey;
-import de.danoeh.antennapod.core.service.download.AntennapodHttpClient;
-import de.danoeh.antennapod.core.util.NetworkUtils;
import de.danoeh.antennapod.model.feed.Feed;
import de.danoeh.antennapod.model.feed.FeedMedia;
+import de.danoeh.antennapod.net.common.AntennapodHttpClient;
+import de.danoeh.antennapod.net.common.NetworkUtils;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;
import okhttp3.Protocol;
diff --git a/ui/glide/src/main/java/de/danoeh/antennapod/ui/glide/ChapterImageModelLoader.java b/ui/glide/src/main/java/de/danoeh/antennapod/ui/glide/ChapterImageModelLoader.java
index 9f82e0b31..3f6aa7c48 100644
--- a/ui/glide/src/main/java/de/danoeh/antennapod/ui/glide/ChapterImageModelLoader.java
+++ b/ui/glide/src/main/java/de/danoeh/antennapod/ui/glide/ChapterImageModelLoader.java
@@ -9,13 +9,14 @@ import com.bumptech.glide.load.model.ModelLoader;
import com.bumptech.glide.load.model.ModelLoaderFactory;
import com.bumptech.glide.load.model.MultiModelLoaderFactory;
import com.bumptech.glide.signature.ObjectKey;
-import de.danoeh.antennapod.core.service.download.AntennapodHttpClient;
import de.danoeh.antennapod.model.feed.EmbeddedChapterImage;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
+
+import de.danoeh.antennapod.net.common.AntennapodHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import org.apache.commons.io.IOUtils;