*** 4 years ago
parent c5b077e7ed
commit bd4174b0c7

@ -10,11 +10,6 @@ import org.junit.runner.RunWith;
import static org.junit.Assert.*; import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest { public class ExampleInstrumentedTest {
@Test @Test

@ -17,8 +17,6 @@ import butterknife.ButterKnife;
/** /**
* Description : BaseActivity * Description : BaseActivity
* *
* @author XuCanyou666
* @date 2020/2/7
*/ */
public abstract class BaseActivity<P extends BasePresenter> extends AppCompatActivity implements BaseView { public abstract class BaseActivity<P extends BasePresenter> extends AppCompatActivity implements BaseView {

@ -5,8 +5,6 @@ import java.io.Serializable;
/** /**
* Description : BaseBean * Description : BaseBean
* *
* @author XuCanyou666
* @date 2020/2/7
*/ */

@ -15,13 +15,6 @@ import com.yechaoa.yutils.YUtils;
import butterknife.ButterKnife; import butterknife.ButterKnife;
import butterknife.Unbinder; import butterknife.Unbinder;
/**
* Description : BaseFragment
*
* @author XuCanyou666
* @date 2020/2/7
*/
public abstract class BaseFragment<P extends BasePresenter> extends Fragment implements BaseView { public abstract class BaseFragment<P extends BasePresenter> extends Fragment implements BaseView {

@ -12,12 +12,7 @@ import java.text.ParseException;
import io.reactivex.observers.DisposableObserver; import io.reactivex.observers.DisposableObserver;
import retrofit2.HttpException; import retrofit2.HttpException;
/**
* Description : BaseObserver
*
* @author XuCanyou666
* @date 2020/2/7
*/
public abstract class BaseObserver<T> extends DisposableObserver<T> { public abstract class BaseObserver<T> extends DisposableObserver<T> {

@ -1,11 +1,5 @@
package com.cwj.we.base; package com.cwj.we.base;
/**
* Description : BaseView
*
* @author XuCanyou666
* @date 2020/2/7
*/
public interface BaseView { public interface BaseView {

@ -2,20 +2,7 @@ package com.cwj.we.bean;
public class LatestBean { public class LatestBean {
/**
* name :
* version : 11
* changelog :
* updated_at : 1589016775
* versionShort : 1.1.8
* build : 11
* installUrl : https://download.jappstore.com/apps/5e77278df9454809b991dfda/install?download_token=1d4098da8015603c7b0aa9c0f3fb71ea&source=update
* install_url : https://download.jappstore.com/apps/5e77278df9454809b991dfda/install?download_token=1d4098da8015603c7b0aa9c0f3fb71ea&source=update
* direct_install_url : https://download.jappstore.com/apps/5e77278df9454809b991dfda/install?download_token=1d4098da8015603c7b0aa9c0f3fb71ea&source=update
* update_url : http://jappstore.com/dfyr
* binary : {"fsize":11900042}
*/
private String name; private String name;
private String version; private String version;

@ -15,7 +15,6 @@ import butterknife.ButterKnife;
/** /**
* activity * activity
* Created by yangjinxiao on 2016/7/3.
*/ */
public abstract class BaseActivity extends FragmentActivity implements View.OnClickListener{ public abstract class BaseActivity extends FragmentActivity implements View.OnClickListener{
private static final String LANGUAGE = "language"; private static final String LANGUAGE = "language";

@ -2,7 +2,6 @@ package com.cwj.we.game.gobang;
/** /**
* *
* Created by yangjinxiao on 2016/7/3.
*/ */
public class Constants { public class Constants {
public static final int MAX_LINE = 10;//棋盘的行数 public static final int MAX_LINE = 10;//棋盘的行数

@ -15,7 +15,6 @@ import com.cwj.we.R;
/** /**
* *
* Created by yangjinxiao on 2016/7/3.
*/ */
public class DialogUtil { public class DialogUtil {
private static PopupWindow mPopupWindow; private static PopupWindow mPopupWindow;

@ -2,9 +2,6 @@ package com.cwj.we.game.gobang;
import com.google.gson.Gson; import com.google.gson.Gson;
/**
* Created by yangjinxiao on 2016/7/4.
*/
public class JsonUtil { public class JsonUtil {
private static final Gson mGson = new Gson(); private static final Gson mGson = new Gson();
public static String encode(Object o) { public static String encode(Object o) {

@ -2,9 +2,7 @@ package com.cwj.we.game.gobang;
import java.util.ArrayList; import java.util.ArrayList;
/**
* Created by yangjinxiao on 2016/7/8.
*/
public class Language { public class Language {
private String type;//"english" "simple_chinese" private String type;//"english" "simple_chinese"
private String type4Show;//"English" "简体汉字" private String type4Show;//"English" "简体汉字"

@ -14,9 +14,6 @@ import com.cwj.we.R;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/**
* Created by yangjinxiao on 2016/6/30.
*/
public class PannelView extends View { public class PannelView extends View {
private int mPannaWidth;//棋盘的宽度 private int mPannaWidth;//棋盘的宽度
private float mLineHeight;//行高(定义成float型防止精度丢失) private float mLineHeight;//行高(定义成float型防止精度丢失)

@ -2,9 +2,6 @@ package com.cwj.we.game.gobang;
import android.graphics.Point; import android.graphics.Point;
/**
* Created by yangjinxiao on 2016/7/5.
*/
public class Piece extends Point { public class Piece extends Point {
public static final Creator<Point> CREATOR = null; public static final Creator<Point> CREATOR = null;
public Piece(int x, int y) { public Piece(int x, int y) {

@ -5,7 +5,6 @@ import android.preference.PreferenceActivity;
/** /**
* Created by yangjinxiao on 2016/7/4.
*/ */
public class SharedPreferenceUtil { public class SharedPreferenceUtil {

@ -2,7 +2,6 @@ package com.cwj.we.game.gobang;
/** /**
* *
* Created by yangjinxiao on 2016/7/3.
*/ */
public class StringUtil { public class StringUtil {
public static boolean isNullOrEmpty(String str) { public static boolean isNullOrEmpty(String str) {

@ -4,9 +4,6 @@ import com.cwj.we.R;
import java.util.ArrayList; import java.util.ArrayList;
/**
* Created by yangjinxiao on 2016/7/8.
*/
public class ThemeModel { public class ThemeModel {
private ThemeType type; private ThemeType type;
private String type4Show;//用于显示 private String type4Show;//用于显示

@ -6,9 +6,7 @@ import android.util.TypedValue;
import android.view.Display; import android.view.Display;
import android.view.WindowManager; import android.view.WindowManager;
/**
* Created by yangjinxiao on 2016/7/3.
*/
public class Util { public class Util {
public static float dp2px(int dpVal, Context context) { public static float dp2px(int dpVal, Context context) {
return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dpVal, context.getResources().getDisplayMetrics()); return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dpVal, context.getResources().getDisplayMetrics());

@ -22,9 +22,6 @@ import java.util.List;
/** /**
* Description: 2048 * Description: 2048
* Data2016/9/11-19:48
* Blogwww.qiuchengjia.cn
* Author: qiu
*/ */
public class GamePintuLayout extends RelativeLayout implements View.OnClickListener { public class GamePintuLayout extends RelativeLayout implements View.OnClickListener {
/** /**

@ -4,9 +4,6 @@ import android.graphics.Bitmap;
/** /**
* Description: * Description:
* Data2016/9/11-19:54
* Blogwww.qiuchengjia.cn
* Author: qiu
*/ */
public class ImagePiece { public class ImagePiece {
public int index=0;//图片的索引 public int index=0;//图片的索引

@ -8,17 +8,11 @@ import java.util.List;
/** /**
* Description: * Description:
* Data2016/9/11-19:53
* Blogwww.qiuchengjia.cn
* Author: qiu
*/ */
public class ImageSplitter { public class ImageSplitter {
/** /**
* piece * piece * piece * piece
* @param bitmap the bitmap
* @param piece the piece
* @return the list
* @author qiu www.qiuchengjia.cn 2016-09-11
*/ */
public static List<ImagePiece> split(Bitmap bitmap, int piece){ public static List<ImagePiece> split(Bitmap bitmap, int piece){

@ -11,9 +11,6 @@ import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
/** /**
* Description : RetrofitService * Description : RetrofitService
*
* @author XuCanyou666
* @date 2020/2/8
*/ */

@ -8,10 +8,7 @@ import okhttp3.Cookie;
import okhttp3.CookieJar; import okhttp3.CookieJar;
import okhttp3.HttpUrl; import okhttp3.HttpUrl;
/**
* Created by yechao on 2019/11/19/019.
* Describe :
*/
public class CookiesManager implements CookieJar { public class CookiesManager implements CookieJar {
private final PersistentCookieStore cookieStore; private final PersistentCookieStore cookieStore;

@ -20,10 +20,7 @@ import java.util.concurrent.ConcurrentHashMap;
import okhttp3.Cookie; import okhttp3.Cookie;
import okhttp3.HttpUrl; import okhttp3.HttpUrl;
/**
* Created by yechao on 2019/11/19/019.
* Describe :
*/
public class PersistentCookieStore { public class PersistentCookieStore {
private static final String LOG_TAG = "PersistentCookieStore"; private static final String LOG_TAG = "PersistentCookieStore";

@ -7,10 +7,6 @@ import java.io.Serializable;
import okhttp3.Cookie; import okhttp3.Cookie;
/**
* Created by yechao on 2019/11/19/019.
* Describe :
*/
public class SerializableOkHttpCookies implements Serializable { public class SerializableOkHttpCookies implements Serializable {
private transient final Cookie cookies; private transient final Cookie cookies;

@ -12,10 +12,7 @@ import okhttp3.ResponseBody;
import retrofit2.Converter; import retrofit2.Converter;
import retrofit2.Retrofit; import retrofit2.Retrofit;
/**
* Created by yechao on 2019/11/18/018.
* Describe :
*/
public class BaseConverterFactory extends Converter.Factory { public class BaseConverterFactory extends Converter.Factory {
public static BaseConverterFactory create() { public static BaseConverterFactory create() {

@ -14,10 +14,7 @@ import okhttp3.RequestBody;
import okio.Buffer; import okio.Buffer;
import retrofit2.Converter; import retrofit2.Converter;
/**
* Created by yechao on 2019/11/18/018.
* Describe :
*/
public class BaseRequestBodyConverter<T> implements Converter<T, RequestBody> { public class BaseRequestBodyConverter<T> implements Converter<T, RequestBody> {
private static final MediaType MEDIA_TYPE = MediaType.parse("application/json; charset=UTF-8"); private static final MediaType MEDIA_TYPE = MediaType.parse("application/json; charset=UTF-8");

@ -12,7 +12,6 @@ import okhttp3.ResponseBody;
import retrofit2.Converter; import retrofit2.Converter;
/** /**
* Created by yechao on 2019/11/18/018.
* Describe : ResponseBodyConverterjson * Describe : ResponseBodyConverterjson
*/ */
public class BaseResponseBodyConverter<T> implements Converter<ResponseBody, T> { public class BaseResponseBodyConverter<T> implements Converter<ResponseBody, T> {

@ -8,10 +8,7 @@ import android.content.pm.PackageManager;
import androidx.core.app.ActivityCompat; import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat; import androidx.core.content.ContextCompat;
/**
* @author : maning
* @desc :
*/
public class PermissionUtils { public class PermissionUtils {
/** /**

@ -13,13 +13,6 @@ import com.luck.picture.lib.entity.LocalMedia;
import java.util.List; import java.util.List;
/**
* @author CuiZhen
* @date 2019/6/4
* QQ: 302833254
* E-mail: goweii@163.com
* GitHub: https://github.com/goweii
*/
public class PictureSelectorUtils { public class PictureSelectorUtils {
public static void ofImage(Fragment fragment, int requestCode) { public static void ofImage(Fragment fragment, int requestCode) {

@ -25,7 +25,6 @@ import com.cwj.we.R;
/** /**
* Created by yc.Zhao on 2017/12/27 0027.
* View,new * View,new
*/ */

@ -22,10 +22,6 @@ import androidx.annotation.RequiresApi;
import java.util.Calendar; import java.util.Calendar;
/**
* Created by yc.Zhao on 2017/12/26 0026.
* View,change
*/
public class OclockView extends View { public class OclockView extends View {
//时钟正方形的宽高 //时钟正方形的宽高

Loading…
Cancel
Save