update
This commit is contained in:
@@ -67,6 +67,7 @@ repositories {
|
||||
dependencies {
|
||||
api fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
|
||||
api files('libs/jcc-bate-0.7.3.jar')
|
||||
api files('libs/OpenInstall_v2.3.0.jar')
|
||||
compileOnly fileTree(dir: '../libs', include: ['*.aar'])
|
||||
api rootProject.ext.dependencies["appcompat-androidx"]
|
||||
api rootProject.ext.dependencies["recyclerview-androidx"]
|
||||
@@ -199,7 +200,7 @@ dependencies {
|
||||
api 'com.makeramen:roundedimageview:2.3.0'
|
||||
api 'com.google.android.gms:play-services-auth:15.0.0'
|
||||
api 'com.google.android.material:material:1.4.0'
|
||||
api files('libs/OpenInstall_v2.3.0.jar')
|
||||
|
||||
// api files('libs/svgaplayer-release-v1.2.1.aar')
|
||||
|
||||
}
|
||||
|
||||
BIN
common/libs/OpenInstall_v2.3.0.jar
Normal file
BIN
common/libs/OpenInstall_v2.3.0.jar
Normal file
Binary file not shown.
@@ -255,6 +255,16 @@ public class IMLoginModel extends BaseModel {
|
||||
|
||||
@SerializedName("guard_type")
|
||||
private String guardType = "";
|
||||
@SerializedName("need_bind")
|
||||
int needBind;
|
||||
|
||||
public int getNeedBind() {
|
||||
return needBind;
|
||||
}
|
||||
|
||||
public void setNeedBind(int needBind) {
|
||||
this.needBind = needBind;
|
||||
}
|
||||
|
||||
public String getCreateTime() {
|
||||
return createTime;
|
||||
|
||||
@@ -12,6 +12,7 @@ import androidx.annotation.Nullable;
|
||||
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.bumptech.glide.RequestBuilder;
|
||||
import com.bumptech.glide.load.resource.bitmap.CircleCrop;
|
||||
import com.bumptech.glide.request.RequestOptions;
|
||||
import com.bumptech.glide.request.target.CustomTarget;
|
||||
import com.bumptech.glide.request.transition.Transition;
|
||||
@@ -171,6 +172,13 @@ public class ImgLoader {
|
||||
|
||||
}
|
||||
|
||||
public static void displayAvatarForCircleCrop(Context context, String url, ImageView imageView) {
|
||||
Glide.with(context).load(url)
|
||||
.apply(RequestOptions.bitmapTransform(new CircleCrop()))
|
||||
.error(R.mipmap.icon_avatar_placeholder)
|
||||
.into(imageView);
|
||||
}
|
||||
|
||||
public static void display(Context context, File file, ImageView imageView) {
|
||||
if (!contextIsExist(context)) {
|
||||
return;
|
||||
|
||||
@@ -14,6 +14,7 @@ import com.yunbao.common.CommonAppContext;
|
||||
import com.yunbao.common.bean.IMLoginModel;
|
||||
import com.yunbao.common.manager.IMLoginManager;
|
||||
import com.yunbao.common.utils.RouteUtil;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
Reference in New Issue
Block a user