Skip to content

Commit

Permalink
move DOWNLOAD_IDENTIFIER_HEADER to a separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
jobinlawrance committed Oct 5, 2017
1 parent aaee061 commit a0184c8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
15 changes: 15 additions & 0 deletions .idea/artifacts/okhttp3_downloadprogress_interceptor_main_jar.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@file:JvmName("Constants")

package com.jobinlawrance.downloadprogressinterceptor

const val DOWNLOAD_IDENTIFIER_HEADER = "download-identifier"
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit a0184c8

Please sign in to comment.