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
d12c7004
Commit
d12c7004
authored
Feb 26, 2024
by
zhengnw@sobot.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common 1.6.3 jar
parent
0e4f414b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
10 deletions
+32
-10
build.gradle
sobot_common/build.gradle
+2
-2
sobot-common-publish-mavencentral.gradle
sobot_common/sobot-common-publish-mavencentral.gradle
+1
-1
SobotLoginTools.java
...src/main/java/com/sobot/common/login/SobotLoginTools.java
+29
-7
No files found.
sobot_common/build.gradle
View file @
d12c7004
...
...
@@ -11,7 +11,7 @@ android {
//这里就是打jar包
task
makeJar
(
type:
Copy
)
{
//删除旧的jar包
delete
'build/libs/sobot_common_x_1.6.
2
.jar'
delete
'build/libs/sobot_common_x_1.6.
3
.jar'
//原地址
from
(
'build/intermediates/packaged-classes/release/'
)
//导出jar包的地址
...
...
@@ -19,7 +19,7 @@ android {
//包含的jar包
include
(
'classes.jar'
)
//重命名jar包为mysdk
rename
(
'classes.jar'
,
'sobot_common_x_1.6.
2
.jar'
)
rename
(
'classes.jar'
,
'sobot_common_x_1.6.
3
.jar'
)
}
makeJar
.
dependsOn
(
build
)
}
...
...
sobot_common/sobot-common-publish-mavencentral.gradle
View file @
d12c7004
...
...
@@ -12,7 +12,7 @@ task androidSourcesJar(type: Jar) {
ext
{
PUBLISH_GROUP_ID
=
"com.sobot.library"
//项目包名
PUBLISH_ARTIFACT_ID
=
'sobotcommon_x'
//项目名
PUBLISH_VERSION
=
'1.6.
2
'
//版本号
PUBLISH_VERSION
=
'1.6.
3
'
//版本号
}
...
...
sobot_common/src/main/java/com/sobot/common/login/SobotLoginTools.java
View file @
d12c7004
...
...
@@ -116,13 +116,6 @@ public class SobotLoginTools {
}
}
//清除登录信息
public
void
clearLoginInfo
()
{
LoginUserManager
.
getInstance
().
deleteAll
();
ServiceInfoManager
.
getInstance
().
deleteAll
();
user
=
null
;
mServiceInfoModel
=
null
;
}
//呼叫 v6 获取 accessToken
public
String
getAccessToken
()
{
...
...
@@ -179,6 +172,35 @@ public class SobotLoginTools {
}
}
//清除登录token
public
void
clearLoginToken
()
{
LoginUserEntity
tempUserEntity
=
getLoginUser
();
if
(
tempUserEntity
!=
null
){
tempUserEntity
.
setAccess_token
(
""
);
tempUserEntity
.
setToken
(
""
);
setLoginUser
(
tempUserEntity
);
}
}
//清除登录信息,不清除域名
public
void
clearLoginInfo
()
{
clearLoginInfo
(
false
);
}
/**
* 清除登录信息
* @param isClearHost 是否清理域名
*/
public
void
clearLoginInfo
(
boolean
isClearHost
)
{
LoginUserManager
.
getInstance
().
deleteAll
();
ServiceInfoManager
.
getInstance
().
deleteAll
();
user
=
null
;
mServiceInfoModel
=
null
;
if
(
isClearHost
){
HostManager
.
getInstance
().
deleteAll
();
}
}
// 执行APP登录接口
public
void
doAppLogin
(
final
Object
cancelTag
,
final
Context
mContext
,
final
String
host
,
final
String
openApiHost
,
long
timeout
,
Map
<
String
,
Object
>
params
,
Map
<
String
,
String
>
headers
,
final
String
loginAccount
,
final
String
loginPwd
,
final
SobotResultBlock
resultBlock
)
{
...
...
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