Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Sobot_module_Dev
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sobot_android
Sobot_module_Dev
Commits
2e800cab
Commit
2e800cab
authored
Sep 13, 2021
by
app_dev@sobot.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
网络库和图片库正式更新为1.0;
网络库可以打jar 给sobot sdk用
parent
65774c88
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
2 deletions
+20
-2
MainActivity.java
app/src/main/java/com/sobot/moduletest/MainActivity.java
+1
-1
build.gradle
sobot_network/build.gradle
+17
-0
SobotDownload.java
...n/java/com/sobot/network/http/download/SobotDownload.java
+1
-0
sobot-picture-publish-mavencentral.gradle
sobot_pictureframe/sobot-picture-publish-mavencentral.gradle
+1
-1
No files found.
app/src/main/java/com/sobot/moduletest/MainActivity.java
View file @
2e800cab
...
@@ -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
);
...
...
sobot_network/build.gradle
View file @
2e800cab
...
@@ -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'
...
...
sobot_network/src/main/java/com/sobot/network/http/download/SobotDownload.java
View file @
2e800cab
...
@@ -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
;
...
...
sobot_pictureframe/sobot-picture-publish-mavencentral.gradle
View file @
2e800cab
...
@@ -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
'
//版本号
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment