Skip to content

Commit 38e293e

Browse files
committed
修复onFailure部分手机不能被调用的问题;并打jar
1 parent 713a430 commit 38e293e

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

build.gradle

-6
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,3 @@ allprojects {
2121
task clean(type: Delete) {
2222
delete rootProject.buildDir
2323
}
24-
25-
26-
ext {
27-
versionCode = 3
28-
versionName = '3.0.0'
29-
}

downloads/lite-http-3.0.1.jar

148 KB
Binary file not shown.

litehttp/build.gradle

+11-5
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@ import proguard.gradle.ProGuardTask
22

33
apply plugin: 'com.android.library'
44

5+
6+
def liteHttpVersion = '3.0.1'
7+
8+
59
android {
610
compileSdkVersion 22
711
buildToolsVersion '23.0.3'
812

913
defaultConfig {
1014
minSdkVersion 9
1115
targetSdkVersion 22
12-
versionCode rootProject.versionCode
13-
versionName rootProject.versionName
16+
versionCode 4
17+
versionName liteHttpVersion
1418
}
1519
buildTypes {
1620
release {
@@ -34,8 +38,8 @@ task cleanBuildDir(type: Delete) {
3438
}
3539

3640
def jarPath = 'build/libs/';
37-
def jarName = 'lite-http-' + rootProject.versionName + '.jar';
38-
def jarProName = 'lite-http-pro-' + rootProject.versionName + '.jar';
41+
def jarName = 'lite-http-' + liteHttpVersion + '.jar';
42+
def jarProName = 'lite-http-pro-' + liteHttpVersion + '.jar';
3943

4044
task makeJar(type: Jar, dependsOn: ['assembleRelease']) {
4145
archiveName jarName;
@@ -52,4 +56,6 @@ task makeProguardJar(type: ProGuardTask, dependsOn: ['makeJar']) {
5256
configuration 'proguard-rules.pro'
5357
injars(jarPath + jarName)
5458
outjars(jarPath + jarProName)
55-
}
59+
}
60+
61+

0 commit comments

Comments
 (0)