*** 4 years ago
parent c5b077e7ed
commit bd4174b0c7

@ -10,11 +10,6 @@ import org.junit.runner.RunWith;
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)
public class ExampleInstrumentedTest {
@Test

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

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

@ -15,13 +15,6 @@ import com.yechaoa.yutils.YUtils;
import butterknife.ButterKnife;
import butterknife.Unbinder;
/**
* Description : BaseFragment
*
* @author XuCanyou666
* @date 2020/2/7
*/
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 retrofit2.HttpException;
/**
* Description : BaseObserver
*
* @author XuCanyou666
* @date 2020/2/7
*/
public abstract class BaseObserver<T> extends DisposableObserver<T> {

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

@ -2,20 +2,7 @@ package com.cwj.we.bean;
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 version;

@ -15,7 +15,6 @@ import butterknife.ButterKnife;
/**
* activity
* Created by yangjinxiao on 2016/7/3.
*/
public abstract class BaseActivity extends FragmentActivity implements View.OnClickListener{
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 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 {
private static PopupWindow mPopupWindow;

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

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

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

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

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

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

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

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

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

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

@ -8,17 +8,11 @@ import java.util.List;
/**
* Description:
* Data2016/9/11-19:53
* Blogwww.qiuchengjia.cn
* Author: qiu
*/
public class ImageSplitter {
/**
* 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){

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

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

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

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

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

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

@ -12,7 +12,6 @@ import okhttp3.ResponseBody;
import retrofit2.Converter;
/**
* Created by yechao on 2019/11/18/018.
* Describe : ResponseBodyConverterjson
*/
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.content.ContextCompat;
/**
* @author : maning
* @desc :
*/
public class PermissionUtils {
/**

@ -13,13 +13,6 @@ import com.luck.picture.lib.entity.LocalMedia;
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 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
*/

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

Loading…
Cancel
Save