From a0184c88f598b24b9589dc5960cfb64afabd4fed Mon Sep 17 00:00:00 2001 From: Jobin Lawrance Date: Thu, 5 Oct 2017 12:27:03 +0530 Subject: [PATCH] move DOWNLOAD_IDENTIFIER_HEADER to a separate file --- ...ttp3_downloadprogress_interceptor_main_jar.xml | 15 +++++++++++++++ .../downloadprogressinterceptor/Constants.kt | 5 +++++ .../DownloadProgressInterceptor.kt | 4 ---- 3 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 .idea/artifacts/okhttp3_downloadprogress_interceptor_main_jar.xml create mode 100644 src/main/kotlin/com/jobinlawrance/downloadprogressinterceptor/Constants.kt diff --git a/.idea/artifacts/okhttp3_downloadprogress_interceptor_main_jar.xml b/.idea/artifacts/okhttp3_downloadprogress_interceptor_main_jar.xml new file mode 100644 index 0000000..d8064ff --- /dev/null +++ b/.idea/artifacts/okhttp3_downloadprogress_interceptor_main_jar.xml @@ -0,0 +1,15 @@ + + + $PROJECT_DIR$/out/artifacts/okhttp3_downloadprogress_interceptor_main_jar + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/kotlin/com/jobinlawrance/downloadprogressinterceptor/Constants.kt b/src/main/kotlin/com/jobinlawrance/downloadprogressinterceptor/Constants.kt new file mode 100644 index 0000000..3e967d5 --- /dev/null +++ b/src/main/kotlin/com/jobinlawrance/downloadprogressinterceptor/Constants.kt @@ -0,0 +1,5 @@ +@file:JvmName("Constants") + +package com.jobinlawrance.downloadprogressinterceptor + +const val DOWNLOAD_IDENTIFIER_HEADER = "download-identifier" diff --git a/src/main/kotlin/com/jobinlawrance/downloadprogressinterceptor/DownloadProgressInterceptor.kt b/src/main/kotlin/com/jobinlawrance/downloadprogressinterceptor/DownloadProgressInterceptor.kt index 3eff929..8d2ec50 100644 --- a/src/main/kotlin/com/jobinlawrance/downloadprogressinterceptor/DownloadProgressInterceptor.kt +++ b/src/main/kotlin/com/jobinlawrance/downloadprogressinterceptor/DownloadProgressInterceptor.kt @@ -10,10 +10,6 @@ import java.io.IOException */ class DownloadProgressInterceptor(val progressEventBus: ProgressEventBus) : Interceptor { - companion object { - const val DOWNLOAD_IDENTIFIER_HEADER = "download-identifier" - } - @Throws(IOException::class) override fun intercept(chain: Interceptor.Chain): Response { val originalResponse = chain.proceed(chain.request())