Skip to content

Commit 6b97b45

Browse files
committed
1 parent cc740d1 commit 6b97b45

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

library/build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@ android {
1313
}
1414
}
1515

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+
1627
android.libraryVariants.all { variant ->
1728

1829
task("generate${variant.name}Javadoc", type: Javadoc) {

library/src/com/loopj/android/http/AsyncHttpClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public AsyncHttpClient(SchemeRegistry schemeRegistry) {
213213

214214
ThreadSafeClientConnManager cm = new ThreadSafeClientConnManager(httpParams, schemeRegistry);
215215

216-
threadPool = (ThreadPoolExecutor) Executors.newCachedThreadPool();
216+
threadPool = (ThreadPoolExecutor) Executors.newFixedThreadPool(DEFAULT_MAX_CONNECTIONS);
217217
requestMap = new WeakHashMap<Context, List<WeakReference<Future<?>>>>();
218218
clientHeaderMap = new HashMap<String, String>();
219219

@@ -286,7 +286,7 @@ public void setCookieStore(CookieStore cookieStore) {
286286

287287
/**
288288
* Overrides the threadpool implementation used when queuing/pooling
289-
* requests. By default, Executors.newCachedThreadPool() is used.
289+
* requests. By default, Executors.newFixedThreadPool() is used.
290290
*
291291
* @param threadPool an instance of {@link ThreadPoolExecutor} to use for queuing/pooling requests.
292292
*/

maven_push.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ afterEvaluate { project ->
8282
sign configurations.archives
8383
}
8484

85-
task androidReleaseJar(type: Jar, dependsOn: assembleRelease) {
86-
from "$buildDir/classes/release/"
87-
}
88-
8985
task androidJavadocsJar(type: Jar) {
9086
classifier = 'javadoc'
9187
from generateReleaseJavadoc.destinationDir

0 commit comments

Comments
 (0)