Commit 1df7341 1 parent 5a0d88b commit 1df7341 Copy full SHA for 1df7341
File tree 5 files changed +22
-32
lines changed
src/main/kotlin/com/github/kittinunf/fuel/util
5 files changed +22
-32
lines changed Original file line number Diff line number Diff line change 1
1
# Fuel
2
2
3
- [ ![ Kotlin] ( https://img.shields.io/badge/Kotlin-1.0.0--beta--4589 -blue.svg )] ( http://kotlinlang.org ) [ ![ jcenter] ( https://api.bintray.com/packages/kittinunf/maven/Fuel-Android/images/download.svg ) ] ( https://bintray.com/kittinunf/maven/Fuel-Android/_latestVersion ) [ ![ Build Status] ( https://travis-ci.org/kittinunf/Fuel.svg?branch=master )] ( https://travis-ci.org/kittinunf/Fuel )
3
+ [ ![ Kotlin] ( https://img.shields.io/badge/Kotlin-1.0.0--rc--1036 -blue.svg )] ( http://kotlinlang.org ) [ ![ jcenter] ( https://api.bintray.com/packages/kittinunf/maven/Fuel-Android/images/download.svg ) ] ( https://bintray.com/kittinunf/maven/Fuel-Android/_latestVersion ) [ ![ Build Status] ( https://travis-ci.org/kittinunf/Fuel.svg?branch=master )] ( https://travis-ci.org/kittinunf/Fuel )
4
4
5
5
The easiest HTTP networking library for Kotlin/Android.
6
6
Original file line number Diff line number Diff line change @@ -17,7 +17,15 @@ buildscript {
17
17
18
18
allprojects {
19
19
ext {
20
- publishVersion = ' 0.71'
20
+ publish_version = ' 1.0.0-rc-1036'
21
+
22
+ // dependencies version
23
+ kotlin_version = ' 1.0.0-rc-1036'
24
+ result_version = ' 1.0.0-rc-1036'
25
+
26
+ // test dependencies version
27
+ junit_version = ' 4.12'
28
+ robolectric_version = ' 3.0'
21
29
}
22
30
23
31
repositories {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ android {
15
15
minSdkVersion 9
16
16
targetSdkVersion 23
17
17
versionCode 1
18
- versionName parent. ext. publishVersion
18
+ versionName parent. ext. publish_version
19
19
}
20
20
21
21
sourceSets {
@@ -46,30 +46,21 @@ android {
46
46
}
47
47
48
48
dependencies {
49
- compile " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
49
+ compile " org.jetbrains.kotlin:kotlin-stdlib:$p arent . ext . kotlin_version "
50
50
51
51
compile project(' :fuel' )
52
52
53
- testCompile " junit:junit:$junit_version "
54
- testCompile " org.robolectric:robolectric:$robolectric_version "
53
+ testCompile " junit:junit:$p arent . ext . junit_version "
54
+ testCompile " org.robolectric:robolectric:$p arent . ext . robolectric_version "
55
55
}
56
56
57
57
buildscript {
58
- ext {
59
- // dependencies version
60
- kotlin_version = ' 1.0.0-beta-4589'
61
-
62
- // test dependencies version
63
- junit_version = ' 4.12'
64
- robolectric_version = ' 3.0'
65
- }
66
-
67
58
repositories {
68
59
mavenCentral()
69
60
}
70
61
71
62
dependencies {
72
- classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
63
+ classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$p arent . ext . kotlin_version "
73
64
}
74
65
}
75
66
@@ -79,7 +70,7 @@ publish {
79
70
desc = ' The easiest HTTP networking library in Kotlin/Android'
80
71
groupId = ' com.github.kittinunf.fuel'
81
72
licences = [' MIT' ]
82
- publishVersion = parent. ext. publishVersion
73
+ publishVersion = parent. ext. publish_version
83
74
uploadName = ' Fuel-Android'
84
75
website = ' https://github.com/kittinunf/Fuel'
85
76
}
Original file line number Diff line number Diff line change @@ -12,28 +12,19 @@ repositories {
12
12
}
13
13
14
14
dependencies {
15
- compile " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
16
- compile " com.github.kittinunf.result:result:$result_version "
15
+ compile " org.jetbrains.kotlin:kotlin-stdlib:$p arent . ext . kotlin_version "
16
+ compile " com.github.kittinunf.result:result:$p arent . ext . result_version "
17
17
18
- testCompile " junit:junit:$junit_version "
18
+ testCompile " junit:junit:$p arent . ext . junit_version "
19
19
}
20
20
21
21
buildscript {
22
- ext {
23
- // dependencies version
24
- kotlin_version = ' 1.0.0-beta-4589'
25
- result_version = ' 0.31'
26
-
27
- // test dependencies version
28
- junit_version = ' 4.12'
29
- }
30
-
31
22
repositories {
32
23
mavenCentral()
33
24
}
34
25
35
26
dependencies {
36
- classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
27
+ classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$p arent . ext . kotlin_version "
37
28
}
38
29
}
39
30
@@ -43,7 +34,7 @@ publish {
43
34
desc = ' The easiest HTTP networking library in Kotlin/Android'
44
35
groupId = ' com.github.kittinunf.fuel'
45
36
licences = [' MIT' ]
46
- publishVersion = parent. ext. publishVersion
37
+ publishVersion = parent. ext. publish_version
47
38
uploadName = ' Fuel-Android'
48
39
website = ' https://github.com/kittinunf/Fuel'
49
40
}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package com.github.kittinunf.fuel.util
3
3
import java.io.InputStream
4
4
import java.io.OutputStream
5
5
6
- fun InputStream.copyTo (out : OutputStream , bufferSize : Int = defaultBufferSize , progress : ((Long ) -> Unit )? ): Long {
6
+ fun InputStream.copyTo (out : OutputStream , bufferSize : Int = DEFAULT_BUFFER_SIZE , progress : ((Long ) -> Unit )? ): Long {
7
7
var bytesCopied = 0L
8
8
val buffer = ByteArray (bufferSize)
9
9
var bytes = read(buffer)
You can’t perform that action at this time.
0 commit comments