Skip to content

Commit 2f4d1d8

Browse files
committed
Compatibility for API 23 with library 'org.apache.http.legacy'
1 parent d21cb9f commit 2f4d1d8

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44
}
55

66
dependencies {
7-
classpath 'com.android.tools.build:gradle:1.2.3'
7+
classpath 'com.android.tools.build:gradle:1.3.1'
88
}
99
}
1010

library/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion 22
5-
buildToolsVersion '22.0.1'
4+
compileSdkVersion 23
5+
buildToolsVersion '23.0.0'
6+
useLibrary 'org.apache.http.legacy'
67

78
defaultConfig {
89
minSdkVersion 3
9-
targetSdkVersion 22
10+
targetSdkVersion 23
1011
}
1112

1213
lintOptions {

sample/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,21 @@ repositories {
88
}
99

1010
android {
11-
compileSdkVersion 22
12-
buildToolsVersion '22.0.1'
11+
compileSdkVersion 23
12+
buildToolsVersion '23.0.0'
13+
useLibrary 'org.apache.http.legacy'
1314

1415
defaultConfig {
1516
minSdkVersion 3
16-
targetSdkVersion 22
17+
targetSdkVersion 23
1718
}
1819

1920
productFlavors {
2021
standard {
2122
}
2223
withLeakCanary {
2324
minSdkVersion 8
24-
targetSdkVersion 22
25+
targetSdkVersion 23
2526
}
2627
}
2728

0 commit comments

Comments
 (0)