Skip to content

Commit e10d8ad

Browse files
author
Karl Rieb
committed
Add support for partial downloads using Range requests.
1 parent a14ce79 commit e10d8ad

12 files changed

Lines changed: 668 additions & 190 deletions

File tree

ChangeLog.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
- Migrate build from maven to gradle.
44
- Improve code shrinking when using ProGuard.
55
- Response/request serialization updated to be better optimized by ProGuard.
6-
- Properly support multidex builds
6+
- Properly support multidex builds.
77
- Response/request objects should no longer always be kept in primary dex.
8+
- Add partial download support through range requests.
9+
- Fix deserialization bug when handling new server responses that were previously void.
810

911
---------------------------------------------
1012
2.0.3 (2016-05-07)

babel.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ task generateBabelSources(type: Exec) {
2020
}
2121

2222
inputs.file generateScriptFile
23-
inputs.dir generatorDir
23+
inputs.dir fileTree(dir: generatorDir, exclude: '**/*.pyc')
2424
inputs.sourceDir specDir
2525
outputs.dir outputDir
2626

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ dependencies {
7676
testCompile 'org.mockito:mockito-core:1.10.19'
7777
testCompile 'org.openjdk.jmh:jmh-core:1.12'
7878
testCompile 'org.openjdk.jmh:jmh-generator-annprocess:1.12'
79+
testCompile 'com.squareup.okhttp:okhttp:2.7.5'
7980
}
8081

8182
processResources {

diff-generated-sources

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,29 +25,27 @@ branch=`git rev-parse --abbrev-ref HEAD`
2525
git checkout master
2626
git submodule sync
2727
git submodule update --init
28-
rm -rf target/generated-sources
29-
./run-babel-codegen
28+
./gradlew cleanGenerateBabelSources generateBabelSources
3029

3130
# Save these source files ia temp directory.
3231
temp_dir="$(mktemp -d -t diff-generated-sources.XXXXXX)" # Weird usage, but works on Linux and Mac OS
3332
function finish() {
3433
[[ ! -e "$temp_dir" ]] || rm -r "$temp_dir"
3534
}
3635
trap finish EXIT
37-
cp -r target/generated-sources/ $temp_dir
36+
cp -r build/generated-sources/ $temp_dir
3837

3938
# Switch back to the original branch, update the suprepos and generate source files.
4039
git checkout $branch
4140
git submodule sync
4241
git submodule update --init
43-
rm -rf target/generated-sources
44-
./run-babel-codegen
42+
./gradlew cleanGenerateBabelSources generateBabelSources
4543

4644
# Create the diff and open the page to submit to Phabricator.
4745
# The diff command uses its return command to signal whether there was any
4846
# difference, so we disable exiting on non-zero return codes for this command.
4947
set +e
50-
raw_diff=`diff -uNr ${temp_dir}/babel/ target/generated-sources/babel/`
48+
raw_diff=`diff -uNr ${temp_dir}/babel/ build/generated-sources/babel/`
5149
diff_status=$?
5250
set -e
5351
if [ $diff_status -eq 1 ]; then

0 commit comments

Comments
 (0)