1
0
mirror of https://github.com/TwidereProject/Twidere-Android synced 2024-12-18 11:39:10 +01:00

switching to gradle 2.11

don't crash while deadlock detected
This commit is contained in:
Mariotaku Lee 2016-02-17 21:37:08 +08:00
parent 066b63fca1
commit db02a0f145
2 changed files with 10 additions and 3 deletions

View File

@ -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

View File

@ -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) {
throw new RuntimeException(e);
if (BuildConfig.DEBUG) {
throw new RuntimeException(e);
} else {
BugReporter.logException(e);
throw new RestConverter.ConvertException(e);
}
}
return new JsonConverter(mapper);
}