Commit d12c7004 by zhengnw@sobot.com

common 1.6.3 jar

parent 0e4f414b
......@@ -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)
}
......
......@@ -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' //版本号
}
......
......@@ -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) {
......
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