├── .gitignore ├── .idea ├── gradle.xml ├── markdown-navigator.xml ├── markdown-navigator │ └── profiles_settings.xml ├── misc.xml ├── modules.xml ├── runConfigurations.xml └── vcs.xml ├── LICENSE.txt ├── README.md ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── xiaolei │ │ └── Example │ │ ├── MainActivity.java │ │ └── Net │ │ ├── DataBean.java │ │ ├── Net.java │ │ └── RetrofitBase.java │ └── res │ ├── drawable-v24 │ └── ic_launcher_foreground.xml │ ├── drawable │ └── ic_launcher_background.xml │ ├── layout │ └── activity_main.xml │ ├── mipmap-anydpi-v26 │ ├── ic_launcher.xml │ └── ic_launcher_round.xml │ ├── mipmap-hdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-mdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xxhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ ├── mipmap-xxxhdpi │ ├── ic_launcher.png │ └── ic_launcher_round.png │ └── values │ ├── colors.xml │ ├── strings.xml │ └── styles.xml ├── cacheinterceptor ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── xiaolei │ │ └── OkhttpCacheInterceptor │ │ ├── CacheInterceptor.java │ │ ├── CacheType.java │ │ ├── Catch │ │ ├── CacheCallback.java │ │ ├── CacheManager.java │ │ └── DiskLruCache.java │ │ ├── Config │ │ └── Config.java │ │ ├── Header │ │ └── CacheHeaders.java │ │ └── Log │ │ └── Log.java │ └── res │ └── values │ └── strings.xml ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/.gitignore -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/.idea/gradle.xml -------------------------------------------------------------------------------- /.idea/markdown-navigator.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/.idea/markdown-navigator.xml -------------------------------------------------------------------------------- /.idea/markdown-navigator/profiles_settings.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/.idea/markdown-navigator/profiles_settings.xml -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/.idea/misc.xml -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/.idea/modules.xml -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/.idea/runConfigurations.xml -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/.idea/vcs.xml -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/README.md -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/build.gradle -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/proguard-rules.pro -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/src/main/AndroidManifest.xml -------------------------------------------------------------------------------- /app/src/main/java/com/xiaolei/Example/MainActivity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/src/main/java/com/xiaolei/Example/MainActivity.java -------------------------------------------------------------------------------- /app/src/main/java/com/xiaolei/Example/Net/DataBean.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/src/main/java/com/xiaolei/Example/Net/DataBean.java -------------------------------------------------------------------------------- /app/src/main/java/com/xiaolei/Example/Net/Net.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/src/main/java/com/xiaolei/Example/Net/Net.java -------------------------------------------------------------------------------- /app/src/main/java/com/xiaolei/Example/Net/RetrofitBase.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/src/main/java/com/xiaolei/Example/Net/RetrofitBase.java -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/src/main/res/drawable-v24/ic_launcher_foreground.xml -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_launcher_background.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/src/main/res/drawable/ic_launcher_background.xml -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/src/main/res/layout/activity_main.xml -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/src/main/res/values/colors.xml -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/src/main/res/values/strings.xml -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/app/src/main/res/values/styles.xml -------------------------------------------------------------------------------- /cacheinterceptor/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /cacheinterceptor/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/cacheinterceptor/build.gradle -------------------------------------------------------------------------------- /cacheinterceptor/proguard-rules.pro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/cacheinterceptor/proguard-rules.pro -------------------------------------------------------------------------------- /cacheinterceptor/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/cacheinterceptor/src/main/AndroidManifest.xml -------------------------------------------------------------------------------- /cacheinterceptor/src/main/java/com/xiaolei/OkhttpCacheInterceptor/CacheInterceptor.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/cacheinterceptor/src/main/java/com/xiaolei/OkhttpCacheInterceptor/CacheInterceptor.java -------------------------------------------------------------------------------- /cacheinterceptor/src/main/java/com/xiaolei/OkhttpCacheInterceptor/CacheType.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/cacheinterceptor/src/main/java/com/xiaolei/OkhttpCacheInterceptor/CacheType.java -------------------------------------------------------------------------------- /cacheinterceptor/src/main/java/com/xiaolei/OkhttpCacheInterceptor/Catch/CacheCallback.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/cacheinterceptor/src/main/java/com/xiaolei/OkhttpCacheInterceptor/Catch/CacheCallback.java -------------------------------------------------------------------------------- /cacheinterceptor/src/main/java/com/xiaolei/OkhttpCacheInterceptor/Catch/CacheManager.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/cacheinterceptor/src/main/java/com/xiaolei/OkhttpCacheInterceptor/Catch/CacheManager.java -------------------------------------------------------------------------------- /cacheinterceptor/src/main/java/com/xiaolei/OkhttpCacheInterceptor/Catch/DiskLruCache.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/cacheinterceptor/src/main/java/com/xiaolei/OkhttpCacheInterceptor/Catch/DiskLruCache.java -------------------------------------------------------------------------------- /cacheinterceptor/src/main/java/com/xiaolei/OkhttpCacheInterceptor/Config/Config.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/cacheinterceptor/src/main/java/com/xiaolei/OkhttpCacheInterceptor/Config/Config.java -------------------------------------------------------------------------------- /cacheinterceptor/src/main/java/com/xiaolei/OkhttpCacheInterceptor/Header/CacheHeaders.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/cacheinterceptor/src/main/java/com/xiaolei/OkhttpCacheInterceptor/Header/CacheHeaders.java -------------------------------------------------------------------------------- /cacheinterceptor/src/main/java/com/xiaolei/OkhttpCacheInterceptor/Log/Log.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/cacheinterceptor/src/main/java/com/xiaolei/OkhttpCacheInterceptor/Log/Log.java -------------------------------------------------------------------------------- /cacheinterceptor/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/cacheinterceptor/src/main/res/values/strings.xml -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/gradle.properties -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/gradle/wrapper/gradle-wrapper.properties -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/gradlew -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaolei123/OkhttpCacheInterceptor/HEAD/gradlew.bat -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':cacheinterceptor' 2 | --------------------------------------------------------------------------------