Commit 2e800cab by app_dev@sobot.com

网络库和图片库正式更新为1.0;

网络库可以打jar 给sobot sdk用
parent 65774c88
...@@ -22,7 +22,7 @@ public class MainActivity extends Activity { ...@@ -22,7 +22,7 @@ public class MainActivity extends Activity {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main); setContentView(R.layout.activity_main);
img = findViewById(R.id.img); img = findViewById(R.id.img);
SobotBitmapUtil.display(this, "https://sobot-test.oss-cn-beijing.aliyuncs.com/console/66a522ea3ef944a98af45bac09220861/kb/image/d19dafc0ccd941f3841f8f9858910157.png", img); SobotBitmapUtil.display(this, "https://img.sobot.com/console/common/face/admin.png", img,R.mipmap.ic_launcher,R.mipmap.ic_launcher);
img2 = findViewById(R.id.img2); img2 = findViewById(R.id.img2);
SobotBitmapUtil.display(this, R.mipmap.ic_launcher, img2); SobotBitmapUtil.display(this, R.mipmap.ic_launcher, img2);
......
...@@ -7,8 +7,25 @@ android { ...@@ -7,8 +7,25 @@ android {
defaultConfig { defaultConfig {
minSdkVersion 14 minSdkVersion 14
} }
//这里就是打jar包
// task makeJar(type: Copy) {
// //删除旧的jar包
// delete 'build/libs/sobot_net_1.0.jar'
// //原地址
// from('build/intermediates/packaged-classes/release/')
// //导出jar包的地址
// into('build/libs/')
// //包含的jar包
// include('classes.jar')
// //重命名jar包为mysdk
// rename ('classes.jar', 'sobot_net_1.0.jar')
// }
// makeJar.dependsOn(build)
} }
dependencies { dependencies {
api fileTree(include: ['*.jar'], dir: 'libs') api fileTree(include: ['*.jar'], dir: 'libs')
compileOnly 'com.squareup.okhttp3:okhttp:3.12.0' compileOnly 'com.squareup.okhttp3:okhttp:3.12.0'
......
...@@ -251,6 +251,7 @@ public class SobotDownload { ...@@ -251,6 +251,7 @@ public class SobotDownload {
*/ */
public static String getSDCardRootPath(Context context) { public static String getSDCardRootPath(Context context) {
if (context == null) { if (context == null) {
SobotNetLogUtils.i("context为空:SobotHttpUtils init 没有初始化");
return ""; return "";
} }
String path; String path;
......
...@@ -12,7 +12,7 @@ task androidSourcesJar(type: Jar) { ...@@ -12,7 +12,7 @@ task androidSourcesJar(type: Jar) {
ext { ext {
PUBLISH_GROUP_ID = "com.sobot.library" //项目包名 PUBLISH_GROUP_ID = "com.sobot.library" //项目包名
PUBLISH_ARTIFACT_ID = 'picture' //项目名 PUBLISH_ARTIFACT_ID = 'picture' //项目名
PUBLISH_VERSION = '0.2' //版本号 PUBLISH_VERSION = '1.0' //版本号
} }
......
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