Skip to content

Instantly share code, notes, and snippets.

@julianfalcionelli
julianfalcionelli / RetrofitManager.java
Created November 28, 2017 18:35
Retrofit Manager + Offline Mode + Cache Mode Full example
public class RetrofitManager {
public static final String TAG = "RetrofitManager";
public static final String BASE_URL = "https://lateralview.co";
public static final String HEADER_CACHE_CONTROL = "Cache-Control";
public static final String HEADER_PRAGMA = "Pragma";
private Context mContext;
private Retrofit mRetrofit, mCachedRetrofit;
@erkattak
erkattak / AndroidManifest.xml
Created June 19, 2017 18:47
Android Application Setup for use with Charles Proxy
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:networkSecurityConfig="@xml/network_security_config">