Skip to content

Commit 2dd888b

Browse files
committed
LIBcc31118
1 parent 541c3bc commit 2dd888b

6 files changed

Lines changed: 22 additions & 8 deletions

File tree

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Features
1010
- Requests use a **threadpool** to cap concurrent resource usage
1111
- GET/POST **params builder** (RequestParams)
1212
- **Multipart file uploads** with no additional third party libraries
13-
- Tiny size overhead to your application, only **104kb** for everything
1413
- Automatic smart **request retries** optimized for spotty mobile connections
1514
- Automatic **gzip** response decoding support for super-fast requests
1615
- Optional built-in response parsing into **JSON** (JsonHttpResponseHandler)

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ buildscript {
2020
jcenter()
2121
}
2222
dependencies {
23-
classpath 'com.android.tools.build:gradle:3.1.0-alpha03'
23+
classpath 'com.android.tools.build:gradle:3.1.0-alpha04'
2424
}
2525
}
2626

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Nov 08 15:56:56 MSK 2017
1+
#Sat Nov 18 21:52:01 MSK 2017
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions-snapshots/gradle-4.4-20171031235950+0000-all.zip

sample/build.gradle

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ android {
2424
targetSdkVersion 27
2525
versionCode 8
2626
versionName "1.5.0"
27+
multiDexEnabled true
2728
}
2829
compileOptions {
2930
sourceCompatibility JavaVersion.VERSION_1_8
@@ -60,23 +61,29 @@ android {
6061
eachDependency { DependencyResolveDetails details ->
6162
def requested = details.requested
6263
if (requested.group == 'com.android.support') {
63-
details.useVersion '27.0.1'
64+
if (!requested.name.startsWith("multidex")) {
65+
details.useVersion '27.0.1'
66+
}
6467
}
6568
}
6669
}
6770
variant.runtimeConfiguration.resolutionStrategy {
6871
eachDependency { DependencyResolveDetails details ->
6972
def requested = details.requested
7073
if (requested.group == 'com.android.support') {
71-
details.useVersion '27.0.1'
74+
if (!requested.name.startsWith("multidex")) {
75+
details.useVersion '27.0.1'
76+
}
7277
}
7378
}
7479
}
7580
variant.getAnnotationProcessorConfiguration().resolutionStrategy {
7681
eachDependency { DependencyResolveDetails details ->
7782
def requested = details.requested
7883
if (requested.group == 'com.android.support') {
79-
details.useVersion '27.0.1'
84+
if (!requested.name.startsWith("multidex")) {
85+
details.useVersion '27.0.1'
86+
}
8087
}
8188
}
8289
}
@@ -87,6 +94,7 @@ android {
8794
}
8895

8996
dependencies {
97+
implementation 'com.android.support:multidex:1.0.2'
9098
implementation 'com.android.support:support-annotations:27.0.1'
9199
implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.2'
92100
implementation 'cz.msebera.android:httpclient:4.4.1.2'

sample/src/main/java/com/vorlonsoft/android/http/sample/SampleApplication.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@
2121
import android.os.Process;
2222
import android.os.StrictMode;
2323
import android.support.annotation.RequiresApi;
24+
import android.support.multidex.MultiDexApplication;
2425
import android.util.Log;
2526

2627
import com.squareup.leakcanary.LeakCanary;
2728

28-
public class SampleApplication extends Application {
29+
public class SampleApplication extends MultiDexApplication {
2930

3031
private static final String LOG_TAG = "SampleApplication";
3132

0 commit comments

Comments
 (0)