mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2024-12-18 19:43:35 +01:00
switching to gradle 2.11
don't crash while deadlock detected
This commit is contained in:
parent
066b63fca1
commit
db02a0f145
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,6 +1,6 @@
|
||||
#Sun Nov 22 23:26:08 CST 2015
|
||||
#Wed Feb 17 21:33:36 CST 2016
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.9-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.11-all.zip
|
||||
|
@ -31,10 +31,12 @@ import com.fasterxml.jackson.core.JsonParseException;
|
||||
import org.mariotaku.restfu.RestConverter;
|
||||
import org.mariotaku.restfu.http.HttpResponse;
|
||||
import org.mariotaku.restfu.http.mime.Body;
|
||||
import org.mariotaku.twidere.BuildConfig;
|
||||
import org.mariotaku.twidere.api.twitter.TwitterException;
|
||||
import org.mariotaku.twidere.api.twitter.auth.OAuthToken;
|
||||
import org.mariotaku.twidere.api.twitter.model.ResponseCode;
|
||||
import org.mariotaku.twidere.api.twitter.model.TwitterResponse;
|
||||
import org.mariotaku.twidere.util.BugReporter;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Type;
|
||||
@ -104,7 +106,12 @@ public class TwitterConverterFactory extends RestConverter.SimpleFactory<Twitter
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
} catch (TimeoutException e) {
|
||||
if (BuildConfig.DEBUG) {
|
||||
throw new RuntimeException(e);
|
||||
} else {
|
||||
BugReporter.logException(e);
|
||||
throw new RestConverter.ConvertException(e);
|
||||
}
|
||||
}
|
||||
return new JsonConverter(mapper);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user