This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.obidan.api | |
import com.obidan.api.delegate.OauthRefreshAuthenticatorDelegate | |
import okhttp3.Authenticator | |
import okhttp3.Request | |
import okhttp3.Response | |
import okhttp3.Route | |
import timber.log.Timber | |
class OauthRefreshAuthenticator( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.obidan.api | |
import okhttp3.Credentials | |
import okhttp3.Interceptor | |
import okhttp3.Response | |
/** | |
* BasicAuthInterceptor.kt | |
* | |
* A simple OkHttp Interceptor to rewrite the authorization header. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.obidan.badgedrawable | |
import android.content.Context | |
import android.graphics.* | |
import android.graphics.drawable.Drawable | |
import android.support.v4.content.ContextCompat | |
import com.obidan.badgedrawable.R | |
/** |