提交 fbe7be0b 编写于 作者: J jackjintai

modify:

[Android]-修改打包脚本
上级 e16bc997
......@@ -12,7 +12,7 @@ ext {
// group_id : 'com.didichuxing.doraemonkit',
group_id : 'io.github.didi.dokit',
// version : '3.4.0-SNAPSHOT'
version : '3.4.0-alpha02'
version : '3.4.0-alpha03'
]
android = [compileSdkVersion : 29,
......
package com.didichuxing.doraemonkit.aop.urlconnection;
import android.os.Build;
import android.util.Log;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import com.didichuxing.doraemonkit.kit.network.utils.StreamUtil;
import com.didichuxing.doraemonkit.util.ConvertUtils;
import com.didichuxing.doraemonkit.util.LogHelper;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
......@@ -453,9 +458,17 @@ final class ObsoleteUrlFactory implements URLStreamHandlerFactory, Cloneable {
}
Response response = getResponse(false);
if (response.code() >= HTTP_BAD_REQUEST)
throw new FileNotFoundException(url.toString());
if (response.code() >= HTTP_BAD_REQUEST) {
Log.e("DoKit", "FileNotFoundException:" + url.toString());
return ConvertUtils.string2InputStream("FileNotFoundException:" + url.toString(), "utf-8");
}
if (response.body() != null) {
return response.body().byteStream();
} else {
return ConvertUtils.string2InputStream("response.body() is null:" + url.toString(), "utf-8");
}
}
@Override
......
......@@ -235,8 +235,7 @@ public abstract class AbsDokitView implements DokitView, TouchProxy.OnTouchEvent
} else {
onSystemLayoutParamsCreated(mWindowLayoutParams);
}
} catch (
Exception e) {
} catch (Exception e) {
LogHelper.e(TAG, "e===>" + e.getMessage());
e.printStackTrace();
}
......
......@@ -50,10 +50,6 @@ class RouteKitView : AbsDokitView() {
lateinit var mTvTip: TextView
override fun onViewCreated(rootView: FrameLayout?) {
rootView?.let {
// val oaY: ObjectAnimator = ObjectAnimator.ofFloat(rootView, "rotationY", 0.0f, 90.0f)
// oaY.duration = 100
// oaY.start()
val close = it.findViewById<ImageView>(R.id.iv_close)
mSeekbar = it.findViewById<SeekBar>(R.id.seekbar)
mTvTip = it.findViewById<TextView>(R.id.tv_tip)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册