From 195e8420df25808f14c0d9ecf0cc155e433b1215 Mon Sep 17 00:00:00 2001 From: tangwanchao <18284228392@163.com> Date: Thu, 2 Feb 2023 16:38:39 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E6=94=AF=E6=8C=81=E7=AE=80=E5=8D=95?= =?UTF-8?q?=E7=9A=84=20Retrofit=20=E4=B8=8B=E8=BD=BD,=E5=B8=A6=E8=BF=9B?= =?UTF-8?q?=E5=BA=A6=E7=9A=84=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/gradle.xml | 1 + build.gradle | 2 +- download/.gitignore | 1 + download/build.gradle | 68 +++++++++++++++++++ download/consumer-rules.pro | 0 download/proguard-rules.pro | 21 ++++++ .../download/ExampleInstrumentedTest.kt | 24 +++++++ download/src/main/AndroidManifest.xml | 5 ++ .../twc/source/download/DownloadCallback.kt | 47 +++++++++++++ .../java/me/twc/source/download/Downloader.kt | 54 +++++++++++++++ .../twc/source/download/ProgressListener.kt | 50 ++++++++++++++ .../source/download/ProgressRequestBody.kt | 47 +++++++++++++ .../me/twc/source/download/ExampleUnitTest.kt | 17 +++++ settings.gradle | 1 + source/build.gradle | 6 +- 15 files changed, 340 insertions(+), 4 deletions(-) create mode 100644 download/.gitignore create mode 100644 download/build.gradle create mode 100644 download/consumer-rules.pro create mode 100644 download/proguard-rules.pro create mode 100644 download/src/androidTest/java/me/twc/source/download/ExampleInstrumentedTest.kt create mode 100644 download/src/main/AndroidManifest.xml create mode 100644 download/src/main/java/me/twc/source/download/DownloadCallback.kt create mode 100644 download/src/main/java/me/twc/source/download/Downloader.kt create mode 100644 download/src/main/java/me/twc/source/download/ProgressListener.kt create mode 100644 download/src/main/java/me/twc/source/download/ProgressRequestBody.kt create mode 100644 download/src/test/java/me/twc/source/download/ExampleUnitTest.kt diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 51880d4..3a7d15e 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -13,6 +13,7 @@