Skip to content

Instantly share code, notes, and snippets.

View teojunjie's full-sized avatar
🎯
Focusing

Teo Jun Jie teojunjie

🎯
Focusing
View GitHub Profile
### Keybase proof
I hereby claim:
* I am teojunjie on github.
* I am teojunjie (https://keybase.io/teojunjie) on keybase.
* I have a public key ASCAW5f2B9GaTx_WVXAwXRQ7DgmIEy5Eb5I3ngTD1owzkgo
To claim this, I am signing this object:
@teojunjie
teojunjie / AddCookiesInterceptor.java
Created June 25, 2018 16:48 — forked from nikhiljha/AddCookiesInterceptor.java
Retrofit2/OkHttp3 Cookies (Drag and Drop, One Size Fits 99%)
// Original written by tsuharesu
// Adapted to create a "drop it in and watch it work" approach by Nikhil Jha.
// Just add your package statement and drop it in the folder with all your other classes.
import android.content.Context;
import android.preference.PreferenceManager;
import android.util.Log;
import java.io.IOException;
import java.util.HashSet;