File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed
src/com/loopj/android/http Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,17 @@ android {
13
13
}
14
14
}
15
15
16
+ android. libraryVariants. all { variant ->
17
+ def name = variant. buildType. name
18
+ if (name. equals(com.android.builder.BuilderConstants . DEBUG )) {
19
+ return ; // Skip debug builds.
20
+ }
21
+ def task = project. tasks. create " android${ name.capitalize()} Jar" , Jar
22
+ task. dependsOn variant. javaCompile
23
+ task. from variant. javaCompile. destinationDir
24
+ artifacts. add(' archives' , task);
25
+ }
26
+
16
27
android. libraryVariants. all { variant ->
17
28
18
29
task(" generate${ variant.name} Javadoc" , type : Javadoc ) {
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ public AsyncHttpClient(SchemeRegistry schemeRegistry) {
213
213
214
214
ThreadSafeClientConnManager cm = new ThreadSafeClientConnManager (httpParams , schemeRegistry );
215
215
216
- threadPool = (ThreadPoolExecutor ) Executors .newCachedThreadPool ( );
216
+ threadPool = (ThreadPoolExecutor ) Executors .newFixedThreadPool ( DEFAULT_MAX_CONNECTIONS );
217
217
requestMap = new WeakHashMap <Context , List <WeakReference <Future <?>>>>();
218
218
clientHeaderMap = new HashMap <String , String >();
219
219
@@ -286,7 +286,7 @@ public void setCookieStore(CookieStore cookieStore) {
286
286
287
287
/**
288
288
* Overrides the threadpool implementation used when queuing/pooling
289
- * requests. By default, Executors.newCachedThreadPool () is used.
289
+ * requests. By default, Executors.newFixedThreadPool () is used.
290
290
*
291
291
* @param threadPool an instance of {@link ThreadPoolExecutor} to use for queuing/pooling requests.
292
292
*/
Original file line number Diff line number Diff line change @@ -82,10 +82,6 @@ afterEvaluate { project ->
82
82
sign configurations. archives
83
83
}
84
84
85
- task androidReleaseJar(type : Jar , dependsOn : assembleRelease) {
86
- from " $buildDir /classes/release/"
87
- }
88
-
89
85
task androidJavadocsJar(type : Jar ) {
90
86
classifier = ' javadoc'
91
87
from generateReleaseJavadoc. destinationDir
You can’t perform that action at this time.
0 commit comments