From 8fa42bd5a8fcb1e07a31997a579b705369714d9c Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Sat, 31 Dec 2022 13:04:55 +0100 Subject: fix(backend): Fix aot compilation --- src/backend/tau/downloader_impl.clj | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/backend/tau/downloader_impl.clj b/src/backend/tau/downloader_impl.clj index 7083973..cf355e1 100644 --- a/src/backend/tau/downloader_impl.clj +++ b/src/backend/tau/downloader_impl.clj @@ -1,17 +1,24 @@ (ns tau.downloader-impl (:import [org.schabi.newpipe.extractor.downloader Response Request] - [okhttp3 Request$Builder OkHttpClient$Builder RequestBody]) - (:gen-class - :extends org.schabi.newpipe.extractor.downloader.Downloader - :constructors {[okhttp3.OkHttpClient$Builder] []} - :name tau.DownloaderImpl - :init downloader-impl - :state state - :methods [#^{:static true} [init [] tau.DownloaderImpl] - #^{:static true} [getInstance [] tau.DownloaderImpl]] - :prefix "-" - :main false)) + [okhttp3 Request$Builder OkHttpClient$Builder RequestBody])) + +(gen-class + :name tau.DownloaderImpl + :constructors {[okhttp3.OkHttpClient$Builder] []} + :extends org.schabi.newpipe.extractor.downloader.Downloader + :init downloader-impl) + +(gen-class + :name tau.DownloaderImpl + :constructors {[okhttp3.OkHttpClient$Builder] []} + :extends org.schabi.newpipe.extractor.downloader.Downloader + :prefix "-" + :main false + :state state + :init downloader-impl + :methods [#^{:static true} [init [] tau.DownloaderImpl] + #^{:static true} [getInstance [] tau.DownloaderImpl]]) (def user-agent "Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0") (def instance (atom nil)) -- cgit v1.2.3