Commit 73da01cf by 郭倩芳

Merge remote-tracking branch 'origin/sobot_module_x' into sobot_module_x

parents 03d14fab 74542b25
......@@ -10,7 +10,7 @@ android {
//这里就是打jar包
task makeJar(type: Copy) {
//删除旧的jar包
delete 'build/libs/sobot_net_1.2.2.jar'
delete 'build/libs/sobot_net_1.2.3.jar'
//原地址
from('build/intermediates/packaged-classes/release/')
//导出jar包的地址
......@@ -18,7 +18,7 @@ android {
//包含的jar包
include('classes.jar')
//重命名jar包为mysdk
rename ('classes.jar', 'sobot_net_1.2.2.jar')
rename ('classes.jar', 'sobot_net_1.2.3.jar')
}
makeJar.dependsOn(build)
}
......
......@@ -12,7 +12,7 @@ task androidSourcesJar(type: Jar) {
ext {
PUBLISH_GROUP_ID = "com.sobot.library" //项目包名
PUBLISH_ARTIFACT_ID = 'net' //项目名
PUBLISH_VERSION = '1.2.2' //版本号
PUBLISH_VERSION = '1.2.3' //版本号
}
......
......@@ -44,9 +44,9 @@ public class SobotOkHttpUtils {
private Handler mDelivery;
public SobotOkHttpUtils(OkHttpClient okHttpClient) {
if (okHttpClient == null) {
OkHttpClient.Builder okHttpClientBuilder = new OkHttpClient.Builder();
okHttpClientBuilder.retryOnConnectionFailure(false);//网络问题导致请求失败时,禁止自动重试
okHttpClientBuilder.addInterceptor(new SobotInternetPermissionExceptionInterceptor());
mDelivery = new Handler(Looper.getMainLooper());
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment