diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2024-03-17 20:25:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-17 20:25:44 +0100 |
commit | 2d77b1f11802da28cbcd87c9456bcc7ee3abf2a0 (patch) | |
tree | 7f54438ed59eee3272cd38dab79f8ebfe291e9e4 /net/discovery | |
parent | b84a05bd4e2bf2d10b7791155cc0a7a0e5aa3dcf (diff) | |
download | AntennaPod-2d77b1f11802da28cbcd87c9456bcc7ee3abf2a0.zip |
Remove dependency from :ui:glide to :core module (#6998)
Diffstat (limited to 'net/discovery')
6 files changed, 8 insertions, 7 deletions
diff --git a/net/discovery/build.gradle b/net/discovery/build.gradle index df47258fa..d071f1ba7 100644 --- a/net/discovery/build.gradle +++ b/net/discovery/build.gradle @@ -21,6 +21,7 @@ android { dependencies { implementation project(':core') implementation project(':model') + implementation project(':net:common') implementation project(':net:sync:gpoddernet') implementation project(':net:sync:model') diff --git a/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/FyydPodcastSearcher.java b/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/FyydPodcastSearcher.java index 30be87931..2899af677 100644 --- a/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/FyydPodcastSearcher.java +++ b/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/FyydPodcastSearcher.java @@ -1,6 +1,6 @@ package de.danoeh.antennapod.net.discovery; -import de.danoeh.antennapod.core.service.download.AntennapodHttpClient; +import de.danoeh.antennapod.net.common.AntennapodHttpClient; import de.mfietz.fyydlin.FyydClient; import de.mfietz.fyydlin.FyydResponse; import de.mfietz.fyydlin.SearchHit; diff --git a/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/GpodnetPodcastSearcher.java b/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/GpodnetPodcastSearcher.java index 222c415ab..a3f2c648f 100644 --- a/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/GpodnetPodcastSearcher.java +++ b/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/GpodnetPodcastSearcher.java @@ -1,7 +1,7 @@ package de.danoeh.antennapod.net.discovery; import de.danoeh.antennapod.core.sync.SynchronizationCredentials; -import de.danoeh.antennapod.core.service.download.AntennapodHttpClient; +import de.danoeh.antennapod.net.common.AntennapodHttpClient; import de.danoeh.antennapod.net.sync.gpoddernet.GpodnetService; import de.danoeh.antennapod.net.sync.gpoddernet.GpodnetServiceException; import de.danoeh.antennapod.net.sync.gpoddernet.model.GpodnetPodcast; diff --git a/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/ItunesPodcastSearcher.java b/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/ItunesPodcastSearcher.java index 32e150f76..b9df9d185 100644 --- a/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/ItunesPodcastSearcher.java +++ b/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/ItunesPodcastSearcher.java @@ -1,7 +1,7 @@ package de.danoeh.antennapod.net.discovery; import de.danoeh.antennapod.core.feed.FeedUrlNotFoundException; -import de.danoeh.antennapod.core.service.download.AntennapodHttpClient; +import de.danoeh.antennapod.net.common.AntennapodHttpClient; import io.reactivex.Single; import io.reactivex.SingleOnSubscribe; import io.reactivex.android.schedulers.AndroidSchedulers; diff --git a/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/ItunesTopListLoader.java b/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/ItunesTopListLoader.java index 5fa48458e..128aad593 100644 --- a/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/ItunesTopListLoader.java +++ b/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/ItunesTopListLoader.java @@ -2,8 +2,8 @@ package de.danoeh.antennapod.net.discovery; import android.content.Context; import android.util.Log; -import de.danoeh.antennapod.core.service.download.AntennapodHttpClient; import de.danoeh.antennapod.model.feed.Feed; +import de.danoeh.antennapod.net.common.AntennapodHttpClient; import okhttp3.CacheControl; import okhttp3.OkHttpClient; import okhttp3.Request; diff --git a/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/PodcastIndexPodcastSearcher.java b/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/PodcastIndexPodcastSearcher.java index 105667393..c777827df 100644 --- a/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/PodcastIndexPodcastSearcher.java +++ b/net/discovery/src/main/java/de/danoeh/antennapod/net/discovery/PodcastIndexPodcastSearcher.java @@ -1,5 +1,7 @@ package de.danoeh.antennapod.net.discovery; +import de.danoeh.antennapod.net.common.AntennapodHttpClient; +import de.danoeh.antennapod.net.common.UserAgentInterceptor; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; @@ -15,8 +17,6 @@ import java.util.List; import java.util.Locale; import java.util.TimeZone; -import de.danoeh.antennapod.core.ClientConfig; -import de.danoeh.antennapod.core.service.download.AntennapodHttpClient; import io.reactivex.Single; import io.reactivex.SingleOnSubscribe; import io.reactivex.android.schedulers.AndroidSchedulers; @@ -100,7 +100,7 @@ public class PodcastIndexPodcastSearcher implements PodcastSearcher { .addHeader("X-Auth-Date", apiHeaderTime) .addHeader("X-Auth-Key", BuildConfig.PODCASTINDEX_API_KEY) .addHeader("Authorization", hashString) - .addHeader("User-Agent", ClientConfig.USER_AGENT) + .addHeader("User-Agent", UserAgentInterceptor.USER_AGENT) .url(url); return httpReq.build(); } |