Revert "AndroidX"

This reverts commit c126ca0392.
This commit is contained in:
oujunhui
2020-04-09 12:34:55 +08:00
parent c126ca0392
commit c8b351c82e
29 changed files with 55 additions and 61 deletions

View File

@@ -184,7 +184,7 @@ dependencies {
api fileTree(include: ['*.jar'], dir: 'libs') api fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12' testImplementation 'junit:junit:4.12'
androidTestImplementation('androidx.test.espresso:espresso-core:3.2.0', { androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
exclude group: 'com.android.support', module: 'support-annotations' exclude group: 'com.android.support', module: 'support-annotations'
}) })

View File

@@ -6,13 +6,11 @@ import android.os.Build;
import android.os.Handler; import android.os.Handler;
import android.os.Message; import android.os.Message;
import androidx.annotation.NonNull;
import com.opensource.svgaplayer.SVGADrawable; import com.opensource.svgaplayer.SVGADrawable;
import com.opensource.svgaplayer.SVGAParser; import com.opensource.svgaplayer.SVGAParser;
import com.opensource.svgaplayer.SVGAVideoEntity; import com.opensource.svgaplayer.SVGAVideoEntity;
import org.jetbrains.annotations.NotNull;
import io.reactivex.Single; import io.reactivex.Single;
import io.reactivex.SingleOnSubscribe; import io.reactivex.SingleOnSubscribe;
@@ -101,7 +99,7 @@ public class SvgaCacheManager {
String path = isBottle ? "svga/svga_voice_bottle.svga" : "svga/svga_voice_bubble.svga"; String path = isBottle ? "svga/svga_voice_bottle.svga" : "svga/svga_voice_bubble.svga";
parser.decodeFromAssets(path, new SVGAParser.ParseCompletion() { parser.decodeFromAssets(path, new SVGAParser.ParseCompletion() {
@Override @Override
public void onComplete(@NonNull SVGAVideoEntity svgaVideoEntity) { public void onComplete(@NotNull SVGAVideoEntity svgaVideoEntity) {
if (isBig) { if (isBig) {
if (isBottle) { if (isBottle) {
bigBottleSvga = new SVGADrawable(svgaVideoEntity); bigBottleSvga = new SVGADrawable(svgaVideoEntity);

View File

@@ -47,7 +47,7 @@ public class RoomImposeDialog extends BottomSheetDialog implements View.OnClickL
binding = DataBindingUtil.bind(findViewById(R.id.dialog_container)); binding = DataBindingUtil.bind(findViewById(R.id.dialog_container));
binding.setClick(this); binding.setClick(this);
FrameLayout bottomSheet = findViewById(R.id.design_bottom_sheet); FrameLayout bottomSheet = findViewById(android.support.design.R.id.design_bottom_sheet);
if (bottomSheet != null) { if (bottomSheet != null) {
BottomSheetBehavior.from(bottomSheet).setSkipCollapsed(false); BottomSheetBehavior.from(bottomSheet).setSkipCollapsed(false);
BottomSheetBehavior.from(bottomSheet).setPeekHeight( BottomSheetBehavior.from(bottomSheet).setPeekHeight(

View File

@@ -3,8 +3,6 @@ package com.yizhuan.erban.avroom.fragment;
import android.Manifest; import android.Manifest;
import android.annotation.SuppressLint; import android.annotation.SuppressLint;
import android.app.Activity; import android.app.Activity;
import androidx.annotation.NonNull;
import androidx.lifecycle.ViewModelProviders; import androidx.lifecycle.ViewModelProviders;
import android.content.DialogInterface; import android.content.DialogInterface;
import android.content.Intent; import android.content.Intent;
@@ -190,7 +188,7 @@ import com.yizhuan.xchat_android_library.utils.config.BasicConfig;
import org.greenrobot.eventbus.EventBus; import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe; import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode; import org.greenrobot.eventbus.ThreadMode;
import org.jetbrains.annotations.NotNull;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
@@ -3101,7 +3099,7 @@ public class HomePartyRoomFragment extends BaseMvpFragment<IHomePartyView, HomeP
} }
@Override @Override
public void notInWorld(@NonNull MiniWorldInWorldInfo miniWorldInWorldInfo) { public void notInWorld(@NotNull MiniWorldInWorldInfo miniWorldInWorldInfo) {
messageView.postDelayed(new Runnable() { messageView.postDelayed(new Runnable() {
@Override @Override
public void run() { public void run() {

View File

@@ -1,7 +1,5 @@
package com.yizhuan.erban.avroom.view; package com.yizhuan.erban.avroom.view;
import androidx.annotation.NonNull;
import com.netease.nimlib.sdk.chatroom.model.ChatRoomMember; import com.netease.nimlib.sdk.chatroom.model.ChatRoomMember;
import com.yizhuan.erban.avroom.widget.ViewItem; import com.yizhuan.erban.avroom.widget.ViewItem;
import com.yizhuan.xchat_android_core.bean.RoomMicInfo; import com.yizhuan.xchat_android_core.bean.RoomMicInfo;
@@ -9,6 +7,8 @@ import com.yizhuan.xchat_android_core.miniworld.bean.MiniWorldInWorldInfo;
import com.yizhuan.xchat_android_core.room.bean.RoomInfo; import com.yizhuan.xchat_android_core.room.bean.RoomInfo;
import com.yizhuan.xchat_android_library.base.IMvpBaseView; import com.yizhuan.xchat_android_library.base.IMvpBaseView;
import org.jetbrains.annotations.NotNull;
import java.util.List; import java.util.List;
/** /**
@@ -89,7 +89,7 @@ public interface IHomePartyView extends IMvpBaseView {
* *
* @param miniWorldInWorldInfo * @param miniWorldInWorldInfo
*/ */
void notInWorld(@NonNull MiniWorldInWorldInfo miniWorldInWorldInfo); void notInWorld(@NotNull MiniWorldInWorldInfo miniWorldInWorldInfo);
/** /**
* 关注成功 * 关注成功

View File

@@ -19,8 +19,6 @@ import android.widget.ImageView;
import android.widget.RelativeLayout; import android.widget.RelativeLayout;
import android.widget.TextView; import android.widget.TextView;
import androidx.annotation.NonNull;
import com.netease.nim.uikit.common.util.string.StringUtil; import com.netease.nim.uikit.common.util.string.StringUtil;
import com.opensource.svgaplayer.SVGACallback; import com.opensource.svgaplayer.SVGACallback;
import com.opensource.svgaplayer.SVGADrawable; import com.opensource.svgaplayer.SVGADrawable;
@@ -39,7 +37,7 @@ import com.yizhuan.xchat_android_core.gift.bean.GiftReceiver;
import com.yizhuan.xchat_android_core.manager.AvRoomDataManager; import com.yizhuan.xchat_android_core.manager.AvRoomDataManager;
import com.yizhuan.xchat_android_library.utils.ResolutionUtils; import com.yizhuan.xchat_android_library.utils.ResolutionUtils;
import org.jetbrains.annotations.NotNull;
import java.lang.ref.WeakReference; import java.lang.ref.WeakReference;
import java.net.MalformedURLException; import java.net.MalformedURLException;
@@ -191,7 +189,7 @@ public class GiftEffectView extends RelativeLayout implements SVGACallback {
SVGAParser parser = new SVGAParser(getContext()); SVGAParser parser = new SVGAParser(getContext());
parser.parse(new URL(url), new SVGAParser.ParseCompletion() { parser.parse(new URL(url), new SVGAParser.ParseCompletion() {
@Override @Override
public void onComplete(@NonNull SVGAVideoEntity videoItem) { public void onComplete(@NotNull SVGAVideoEntity videoItem) {
SVGADrawable drawable = new SVGADrawable(videoItem); SVGADrawable drawable = new SVGADrawable(videoItem);
svgaImageView.setImageDrawable(drawable); svgaImageView.setImageDrawable(drawable);
svgaImageView.startAnimation(); svgaImageView.startAnimation();

View File

@@ -9,8 +9,6 @@ import android.view.View;
import android.view.animation.AccelerateDecelerateInterpolator; import android.view.animation.AccelerateDecelerateInterpolator;
import android.widget.RelativeLayout; import android.widget.RelativeLayout;
import androidx.annotation.NonNull;
import com.netease.nim.uikit.common.util.string.StringUtil; import com.netease.nim.uikit.common.util.string.StringUtil;
import com.opensource.svgaplayer.SVGACallback; import com.opensource.svgaplayer.SVGACallback;
import com.opensource.svgaplayer.SVGADrawable; import com.opensource.svgaplayer.SVGADrawable;
@@ -25,7 +23,7 @@ import com.yizhuan.erban.ui.gift.widget.GiftDataInfo;
import com.yizhuan.xchat_android_core.gift.bean.GiftInfo; import com.yizhuan.xchat_android_core.gift.bean.GiftInfo;
import com.yizhuan.xchat_android_core.gift.bean.GiftReceiveInfo; import com.yizhuan.xchat_android_core.gift.bean.GiftReceiveInfo;
import org.jetbrains.annotations.NotNull;
import java.net.MalformedURLException; import java.net.MalformedURLException;
import java.net.URL; import java.net.URL;
@@ -151,7 +149,7 @@ public class GiftView extends RelativeLayout implements SVGACallback {
SVGAParser parser = new SVGAParser(getContext()); SVGAParser parser = new SVGAParser(getContext());
parser.parse(new URL(url), new SVGAParser.ParseCompletion() { parser.parse(new URL(url), new SVGAParser.ParseCompletion() {
@Override @Override
public void onComplete(@NonNull SVGAVideoEntity videoItem) { public void onComplete(@NotNull SVGAVideoEntity videoItem) {
SVGADrawable drawable = new SVGADrawable(videoItem); SVGADrawable drawable = new SVGADrawable(videoItem);
svgaImageView.setImageDrawable(drawable); svgaImageView.setImageDrawable(drawable);
svgaImageView.startAnimation(); svgaImageView.startAnimation();

View File

@@ -33,7 +33,7 @@ public abstract class BaseBsDialog extends BottomSheetDialog {
setContentView(getDialogLayout()); setContentView(getDialogLayout());
ButterKnife.bind(this); ButterKnife.bind(this);
setCanceledOnTouchOutside(isCanceledOnTouchOutside()); setCanceledOnTouchOutside(isCanceledOnTouchOutside());
FrameLayout bottomSheet = (FrameLayout) findViewById(R.id.design_bottom_sheet); FrameLayout bottomSheet = (FrameLayout) findViewById(android.support.design.R.id.design_bottom_sheet);
if (bottomSheet != null) { if (bottomSheet != null) {
BottomSheetBehavior.from(bottomSheet).setSkipCollapsed(false); BottomSheetBehavior.from(bottomSheet).setSkipCollapsed(false);
} }

View File

@@ -4,8 +4,6 @@ import android.annotation.TargetApi;
import android.os.Build; import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import androidx.annotation.ColorInt; import androidx.annotation.ColorInt;
import androidx.annotation.NonNull;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
@@ -16,6 +14,9 @@ import com.yizhuan.xchat_android_library.utils.NetworkUtils;
import com.yizhuan.xchat_android_library.utils.log.MLog; import com.yizhuan.xchat_android_library.utils.log.MLog;
import com.yizhuan.erban.R; import com.yizhuan.erban.R;
import org.jetbrains.annotations.NotNull;
/** /**
* Created by xujiexing on 14-4-9. * Created by xujiexing on 14-4-9.
*/ */
@@ -46,7 +47,7 @@ public class ReloadFragment extends AbsStatusFragment {
} }
@Override @Override
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { public View onCreateView(@NotNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = LayoutInflater.from(getActivity()).inflate(R.layout.fragment_reload, container, false); View view = LayoutInflater.from(getActivity()).inflate(R.layout.fragment_reload, container, false);
if (savedInstanceState != null) { if (savedInstanceState != null) {

View File

@@ -106,7 +106,7 @@ public class CommonPopupDialog extends BottomSheetDialog implements OnClickListe
mCancelBtn.setVisibility(View.VISIBLE); mCancelBtn.setVisibility(View.VISIBLE);
mCancelBtn.setText(bottomButton.mText); mCancelBtn.setText(bottomButton.mText);
} }
FrameLayout bottomSheet = findViewById(R.id.design_bottom_sheet); FrameLayout bottomSheet = findViewById(android.support.design.R.id.design_bottom_sheet);
if (bottomSheet != null) { if (bottomSheet != null) {
BottomSheetBehavior.from(bottomSheet).setSkipCollapsed(false); BottomSheetBehavior.from(bottomSheet).setSkipCollapsed(false);
BottomSheetBehavior.from(bottomSheet).setPeekHeight( BottomSheetBehavior.from(bottomSheet).setPeekHeight(

View File

@@ -35,7 +35,7 @@ public class CarShopAdapter extends BaseAdapter<CarInfo> {
ItemCarShopBinding binding = (ItemCarShopBinding) helper.getBinding(); ItemCarShopBinding binding = (ItemCarShopBinding) helper.getBinding();
boolean isSelect = selectPosition == helper.getAdapterPosition(); boolean isSelect = selectPosition == helper.getAdapterPosition();
binding.llCarHolder.setSelected(isSelect); binding.llCarHolder.setSelected(isSelect);
// binding.setSelectPosition(isSelect); binding.setSelectPosition(isSelect);
if (item.getLabelType() == CarInfo.TAG_TYPE_NORMAL) { if (item.getLabelType() == CarInfo.TAG_TYPE_NORMAL) {
binding.ivTag.setVisibility(View.GONE); binding.ivTag.setVisibility(View.GONE);

View File

@@ -37,7 +37,7 @@ public class HeadWearShopAdapter extends BaseAdapter<HeadWearInfo> {
ItemHeadWearBinding binding = (ItemHeadWearBinding) helper.getBinding(); ItemHeadWearBinding binding = (ItemHeadWearBinding) helper.getBinding();
binding.llRoot.setSelected(selectPosition == helper.getAdapterPosition()); binding.llRoot.setSelected(selectPosition == helper.getAdapterPosition());
NobleUtil.loadHeadWears(item.getPic(), binding.ivHeadWear); NobleUtil.loadHeadWears(item.getPic(), binding.ivHeadWear);
// binding.setSelectPosition(selectPosition == helper.getAdapterPosition()); binding.setSelectPosition(selectPosition == helper.getAdapterPosition());
if (item.getLabelType() == HeadWearInfo.LABEL_TYPE_NORMAL) { if (item.getLabelType() == HeadWearInfo.LABEL_TYPE_NORMAL) {
binding.ivTag.setVisibility(View.GONE); binding.ivTag.setVisibility(View.GONE);

View File

@@ -71,7 +71,7 @@ import com.yizhuan.xchat_android_core.user.bean.UserInfo;
import com.yizhuan.xchat_android_library.utils.ListUtils; import com.yizhuan.xchat_android_library.utils.ListUtils;
import com.yizhuan.xchat_android_library.utils.StringUtils; import com.yizhuan.xchat_android_library.utils.StringUtils;
import org.jetbrains.annotations.NotNull;
import java.net.MalformedURLException; import java.net.MalformedURLException;
import java.net.URL; import java.net.URL;
@@ -537,7 +537,7 @@ public class HomeFragmentAdapter extends BaseMultiItemQuickAdapter<HomeItem, Bas
try { try {
svgaParser.decodeFromURL(new URL(badge), new SVGAParser.ParseCompletion() { svgaParser.decodeFromURL(new URL(badge), new SVGAParser.ParseCompletion() {
@Override @Override
public void onComplete(@NonNull SVGAVideoEntity svgaVideoEntity) { public void onComplete(@NotNull SVGAVideoEntity svgaVideoEntity) {
SVGADrawable drawable = new SVGADrawable(svgaVideoEntity); SVGADrawable drawable = new SVGADrawable(svgaVideoEntity);
ivTabLabel.setImageDrawable(drawable); ivTabLabel.setImageDrawable(drawable);
ivTabLabel.startAnimation(); ivTabLabel.startAnimation();

View File

@@ -111,6 +111,7 @@ import com.yizhuan.xchat_android_library.utils.ListUtils;
import org.greenrobot.eventbus.EventBus; import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe; import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode; import org.greenrobot.eventbus.ThreadMode;
import org.jetbrains.annotations.NotNull;
import java.security.MessageDigest; import java.security.MessageDigest;
import java.util.ArrayList; import java.util.ArrayList;
@@ -236,7 +237,7 @@ public class GameHomeFragment extends BaseMvpFragment<IMainFragmentView, MainFra
@Override @Override
public void onSetListener() { public void onSetListener() {
mBinding.setClick(this); mBinding.setClick(this);
// mBinding.setOpenVisible(true); mBinding.setOpenVisible(true);
} }
@Override @Override
@@ -752,7 +753,7 @@ public class GameHomeFragment extends BaseMvpFragment<IMainFragmentView, MainFra
/** /**
* 转换成带箭头的文本 * 转换成带箭头的文本
*/ */
@NonNull @NotNull
private SpannableString getArrowSpannableString(boolean isUp, String text) { private SpannableString getArrowSpannableString(boolean isUp, String text) {
if (!text.endsWith("[arrow]")) { if (!text.endsWith("[arrow]")) {
text = text + " [arrow]"; text = text + " [arrow]";
@@ -933,7 +934,7 @@ public class GameHomeFragment extends BaseMvpFragment<IMainFragmentView, MainFra
startLocation(); startLocation();
// 超管不展示开房按钮 // 超管不展示开房按钮
// mBinding.setOpenVisible(!(userInfo != null && userInfo.getPlatformRole() == 1)); mBinding.setOpenVisible(!(userInfo != null && userInfo.getPlatformRole() == 1));
} }
public List<View> getHomeBanner(int num) { public List<View> getHomeBanner(int num) {

View File

@@ -3,15 +3,15 @@ package com.yizhuan.erban.push;
import android.content.Context; import android.content.Context;
import android.os.Bundle; import android.os.Bundle;
import com.netease.nimlib.sdk.mixpush.HWPushMessageService; import com.netease.nimlib.sdk.mixpush.HWPushMessageReceiver;
import com.orhanobut.logger.Logger; import com.orhanobut.logger.Logger;
import com.yizhuan.xchat_android_core.statistic.StatisticManager; import com.yizhuan.xchat_android_core.statistic.StatisticManager;
public class HwPushMessageReceiver extends HWPushMessageService { public class HwPushMessageReceiver extends HWPushMessageReceiver {
@Override @Override
public void onNewToken(String token) { public void onToken(Context context, String token, Bundle extras) {
super.onNewToken(token); super.onToken(context, token, extras);
StatisticManager.Instance().logToLocalFile("华为推送token:" + token); StatisticManager.Instance().logToLocalFile("华为推送token:" + token);
} }
} }

View File

@@ -24,7 +24,7 @@ public final class Preconditions {
} }
} }
public static <T> T checkNonNull(T value, String message) { public static <T> T checkNotNull(T value, String message) {
if (value == null) { if (value == null) {
throw new NullPointerException(message); throw new NullPointerException(message);
} }

View File

@@ -18,7 +18,7 @@ import java.security.MessageDigest;
*/ */
public class GlideCircleTransform extends BitmapTransformation { public class GlideCircleTransform extends BitmapTransformation {
public GlideCircleTransform(Context context) { public GlideCircleTransform(Context context) {
super(); super(context);
} }
@Override @Override

View File

@@ -164,7 +164,7 @@ public class CustSlidingTabLayout extends HorizontalScrollView implements ViewPa
mDividerPadding = ta.getDimension(R.styleable.CustSlidingTabLayout_tl_divider_padding, dp2px(12)); mDividerPadding = ta.getDimension(R.styleable.CustSlidingTabLayout_tl_divider_padding, dp2px(12));
mTextsize = ta.getDimension(R.styleable.CustSlidingTabLayout_tl_textsize, sp2px(14)); mTextsize = ta.getDimension(R.styleable.CustSlidingTabLayout_tl_textsize, sp2px(14));
// mTextSizeNormal = ta.getDimension(R.styleable.CustSlidingTabLayout_tl_textsize_normal, mTextsize); mTextSizeNormal = ta.getDimension(R.styleable.CustSlidingTabLayout_tl_textsize_normal, mTextsize);
mTextSelectColor = ta.getColor(R.styleable.CustSlidingTabLayout_tl_textSelectColor, Color.parseColor("#ffffff")); mTextSelectColor = ta.getColor(R.styleable.CustSlidingTabLayout_tl_textSelectColor, Color.parseColor("#ffffff"));
mTextUnselectColor = ta.getColor(R.styleable.CustSlidingTabLayout_tl_textUnselectColor, Color.parseColor("#AAffffff")); mTextUnselectColor = ta.getColor(R.styleable.CustSlidingTabLayout_tl_textUnselectColor, Color.parseColor("#AAffffff"));

View File

@@ -284,7 +284,7 @@ public class GiftDialog extends BottomSheetDialog implements View.OnClickListene
setContentView(R.layout.dialog_bottom_gift); setContentView(R.layout.dialog_bottom_gift);
compositeDisposable = new CompositeDisposable(); compositeDisposable = new CompositeDisposable();
init(findViewById(R.id.ll_dialog_bottom_gift)); init(findViewById(R.id.ll_dialog_bottom_gift));
FrameLayout bottomSheet = findViewById(R.id.design_bottom_sheet); FrameLayout bottomSheet = findViewById(android.support.design.R.id.design_bottom_sheet);
if (bottomSheet != null) { if (bottomSheet != null) {
BottomSheetBehavior.from(bottomSheet).setSkipCollapsed(false); BottomSheetBehavior.from(bottomSheet).setSkipCollapsed(false);
BottomSheetBehavior.from(bottomSheet).setHideable(false); BottomSheetBehavior.from(bottomSheet).setHideable(false);

View File

@@ -78,7 +78,7 @@ public class ShareDialog extends BottomSheetDialog implements View.OnClickListen
tvQqZone.setOnClickListener(this); tvQqZone.setOnClickListener(this);
tvCancel.setOnClickListener(this); tvCancel.setOnClickListener(this);
findViewById(R.id.tv_qq_game).setOnClickListener(this); findViewById(R.id.tv_qq_game).setOnClickListener(this);
FrameLayout bottomSheet = (FrameLayout) findViewById(R.id.design_bottom_sheet); FrameLayout bottomSheet = (FrameLayout) findViewById(android.support.design.R.id.design_bottom_sheet);
if (bottomSheet != null) { if (bottomSheet != null) {
BottomSheetBehavior.from(bottomSheet).setSkipCollapsed(false); BottomSheetBehavior.from(bottomSheet).setSkipCollapsed(false);
} }

View File

@@ -67,7 +67,7 @@ public class DynamicFaceDialog extends BottomSheetDialog
setContentView(R.layout.dialog_bottom_face); setContentView(R.layout.dialog_bottom_face);
EventBus.getDefault().register(this); EventBus.getDefault().register(this);
init(findViewById(R.id.rl_dynamic_face_dialog_root)); init(findViewById(R.id.rl_dynamic_face_dialog_root));
FrameLayout bottomSheet = (FrameLayout) findViewById(R.id.design_bottom_sheet); FrameLayout bottomSheet = (FrameLayout) findViewById(android.support.design.R.id.design_bottom_sheet);
if (bottomSheet != null) { if (bottomSheet != null) {
BottomSheetBehavior.from(bottomSheet).setSkipCollapsed(false); BottomSheetBehavior.from(bottomSheet).setSkipCollapsed(false);
BottomSheetBehavior.from(bottomSheet).setPeekHeight( BottomSheetBehavior.from(bottomSheet).setPeekHeight(

View File

@@ -10,7 +10,7 @@
name="headWearInfo" name="headWearInfo"
type="com.yizhuan.xchat_android_core.decoration.headwear.bean.HeadWearInfo" /> type="com.yizhuan.xchat_android_core.decoration.headwear.bean.HeadWearInfo" />
<variable <variable
name="clickPosition" name="select_position"
type="Boolean" /> type="Boolean" />
</data> </data>

View File

@@ -254,7 +254,7 @@
<attr name="tl_textUnselectColor"/> <attr name="tl_textUnselectColor"/>
<attr name="tl_textBold"/> <attr name="tl_textBold"/>
<attr name="tl_textAllCaps"/> <attr name="tl_textAllCaps"/>
<!-- <attr name="tl_textsize_normal"/>--> <attr name="tl_textsize_normal"/>
</declare-styleable> </declare-styleable>
<declare-styleable name="LimitEditText"> <declare-styleable name="LimitEditText">
<attr name="let_app_cursor" format="boolean" /> <attr name="let_app_cursor" format="boolean" />

View File

@@ -53,7 +53,7 @@ public class VoiceSeekDialog extends BottomSheetDialog implements SeekBar.OnSeek
musicVoiceNum.setText(PlayerModel.get().getCurrentVolume()+"%"); musicVoiceNum.setText(PlayerModel.get().getCurrentVolume()+"%");
voiceNum.setText(PlayerModel.get().getCurrentRecordingVolume()+"%"); voiceNum.setText(PlayerModel.get().getCurrentRecordingVolume()+"%");
FrameLayout bottomSheet = findViewById(R.id.design_bottom_sheet); FrameLayout bottomSheet = findViewById(android.support.design.R.id.design_bottom_sheet);
if (bottomSheet != null) { if (bottomSheet != null) {
BottomSheetBehavior.from(bottomSheet).setSkipCollapsed(false); BottomSheetBehavior.from(bottomSheet).setSkipCollapsed(false);
BottomSheetBehavior.from(bottomSheet).setPeekHeight( BottomSheetBehavior.from(bottomSheet).setPeekHeight(

View File

@@ -12,8 +12,6 @@ import android.view.WindowManager;
import android.widget.ImageView; import android.widget.ImageView;
import android.widget.TextView; import android.widget.TextView;
import androidx.annotation.NonNull;
import com.opensource.svgaplayer.SVGADrawable; import com.opensource.svgaplayer.SVGADrawable;
import com.opensource.svgaplayer.SVGAImageView; import com.opensource.svgaplayer.SVGAImageView;
import com.opensource.svgaplayer.SVGAParser; import com.opensource.svgaplayer.SVGAParser;
@@ -28,7 +26,7 @@ import com.yizhuan.xchat_android_core.gift.bean.GiftInfo;
import com.yizhuan.xchat_android_core.gift.bean.GiftReceiveInfo; import com.yizhuan.xchat_android_core.gift.bean.GiftReceiveInfo;
import com.yizhuan.xchat_android_core.utils.ActivityUtil; import com.yizhuan.xchat_android_core.utils.ActivityUtil;
import org.jetbrains.annotations.NotNull;
import java.net.MalformedURLException; import java.net.MalformedURLException;
import java.net.URL; import java.net.URL;
@@ -108,7 +106,7 @@ public class PublicChatHallGiftAnimationDialog extends BaseSdDialog {
try { try {
svgaParser.parse(new URL("https://img.erbanyy.com/public_chat_spring.svga"), new SVGAParser.ParseCompletion() { svgaParser.parse(new URL("https://img.erbanyy.com/public_chat_spring.svga"), new SVGAParser.ParseCompletion() {
@Override @Override
public void onComplete(@NonNull SVGAVideoEntity svgaVideoEntity) { public void onComplete(@NotNull SVGAVideoEntity svgaVideoEntity) {
SVGADrawable drawable = new SVGADrawable(svgaVideoEntity); SVGADrawable drawable = new SVGADrawable(svgaVideoEntity);
svgaImageView.setImageDrawable(drawable); svgaImageView.setImageDrawable(drawable);
svgaImageView.startAnimation(); svgaImageView.startAnimation();

View File

@@ -11,7 +11,7 @@ import com.yizhuan.xchat_android_core.music.db.dao.LocalMusicDao;
import com.yizhuan.xchat_android_core.music.db.dao.SongDao; import com.yizhuan.xchat_android_core.music.db.dao.SongDao;
import com.yizhuan.xchat_android_library.utils.config.BasicConfig; import com.yizhuan.xchat_android_library.utils.config.BasicConfig;
@Database(entities = {LocalMusicBean.class, SongBean.class}, version = 1, exportSchema = false) @Database(entities = {LocalMusicBean.class, SongBean.class}, version = 1, exportSchema = true)
public abstract class AppDataBase extends RoomDatabase { public abstract class AppDataBase extends RoomDatabase {
private static volatile AppDataBase mInstance; private static volatile AppDataBase mInstance;

View File

@@ -9,23 +9,25 @@
# Specifies the JVM arguments used for the daemon process. # Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings. # The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=1024m
org.gradle.daemon=true org.gradle.daemon=true
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
android.enableD8=true android.enableD8=true
org.gradle.parallel=true
android.injected.testOnly=false android.injected.testOnly=false
org.gradle.configureondemand=true
android.enableBuildScriptClasspathCheck=false
# CI jenkins 参数化构建传入参数 # CI jenkins 参数化构建传入参数
version_name=1.0.0 version_name=1.0.0
version_code=1 version_code=1
# jenkins打包参数 可选值 arm x86 arm_x86 # jenkins打包参数 可选值 arm x86 arm_x86
ndk_abi_filters=arm ndk_abi_filters=arm
# jenkins参数debug下打渠道包用到 # jenkins参数debug下打渠道包用到
# 可选值 v1仅支持v1签名v1v2支持v1v2签名 # 可选值 v1仅支持v1签名v1v2支持v1v2签名
sign_mode=v1 sign_mode=v1
with_jenkins=false
android.useAndroidX=true android.useAndroidX=true
android.enableJetifier=true android.enableJetifier=true
org.gradle.caching=true

View File

@@ -1,4 +1,4 @@
#Thu Apr 09 00:51:19 CST 2020 #Thu Aug 09 10:54:29 CST 2018
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME

View File

@@ -36,7 +36,7 @@ import java.util.regex.Pattern;
* <p/> * <p/>
* <pre> * <pre>
* Validate.isTrue(i &gt; 0, "The value must be greater than zero: %d", i); * Validate.isTrue(i &gt; 0, "The value must be greater than zero: %d", i);
* Validate.NonNull(surname, "The surname must not be %s", null); * Validate.notNull(surname, "The surname must not be %s", null);
* </pre> * </pre>
* <p/> * <p/>
* <p>#ThreadSafe#</p> * <p>#ThreadSafe#</p>
@@ -182,7 +182,7 @@ public class Validate {
} }
} }
// NonNull // notNull
//--------------------------------------------------------------------------------- //---------------------------------------------------------------------------------
/** /**