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
6c101c12
Commit
6c101c12
authored
Nov 08, 2023
by
zhengnw@sobot.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
utils 1.1.3 添加 isNoEmpty
parent
335d6fe5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
build.gradle
sobot_utils/build.gradle
+2
-2
sobot-utils-publish-mavencentral.gradle
sobot_utils/sobot-utils-publish-mavencentral.gradle
+1
-1
SobotStringUtils.java
...utils/src/main/java/com/sobot/utils/SobotStringUtils.java
+9
-0
No files found.
sobot_utils/build.gradle
View file @
6c101c12
...
...
@@ -12,7 +12,7 @@ android {
//这里就是打jar包
task
makeJar
(
type:
Copy
)
{
//删除旧的jar包
delete
'build/libs/sobot_utils_1.1.
2
.jar'
delete
'build/libs/sobot_utils_1.1.
3
.jar'
//原地址
from
(
'build/intermediates/packaged-classes/release/'
)
//导出jar包的地址
...
...
@@ -20,7 +20,7 @@ android {
//包含的jar包
include
(
'classes.jar'
)
//重命名jar包为mysdk
rename
(
'classes.jar'
,
'sobot_utils_1.1.
2
.jar'
)
rename
(
'classes.jar'
,
'sobot_utils_1.1.
3
.jar'
)
}
makeJar
.
dependsOn
(
build
)
...
...
sobot_utils/sobot-utils-publish-mavencentral.gradle
View file @
6c101c12
...
...
@@ -12,7 +12,7 @@ task androidSourcesJar(type: Jar) {
ext
{
PUBLISH_GROUP_ID
=
"com.sobot.library"
//项目包名
PUBLISH_ARTIFACT_ID
=
'utils'
//项目名
PUBLISH_VERSION
=
'1.1.
2
'
//版本号
PUBLISH_VERSION
=
'1.1.
3
'
//版本号
}
...
...
sobot_utils/src/main/java/com/sobot/utils/SobotStringUtils.java
View file @
6c101c12
...
...
@@ -30,6 +30,15 @@ public final class SobotStringUtils {
}
}
//检查字符串是否不为空
public
static
boolean
isNoEmpty
(
String
str
)
{
if
(
TextUtils
.
isEmpty
(
str
)
||
"null"
.
equals
(
str
)
||
"NULL"
.
equals
(
str
))
{
return
false
;
}
else
{
return
true
;
}
}
//检查字符串为空的情况,如果是空,返回 “”
public
static
String
checkStringIsNull
(
String
str
)
{
if
(
TextUtils
.
isEmpty
(
str
)
||
"null"
.
equals
(
str
)
||
"NULL"
.
equals
(
str
))
{
...
...
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