Skip to content

Commit

Permalink
fix view name
Browse files Browse the repository at this point in the history
  • Loading branch information
JsonChao committed May 18, 2018
1 parent cfb7fdd commit 8361cb3
Show file tree
Hide file tree
Showing 39 changed files with 134 additions and 128 deletions.
50 changes: 25 additions & 25 deletions App Architectrue.puml
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,34 @@ skinparam activityBorderColor #ef5345
skinparam activityFontName Impact

rectangle View #lightGreen
rectangle MvpView #white
rectangle MvpPresenter #white
rectangle AbstractView #white
rectangle AbstractPresenter #white
rectangle Presenter #lightGreen
rectangle AppDataManager #lightGreen
rectangle ApiHelper #white
rectangle AppApiHelper #lightGreen
rectangle DataManager #lightGreen
rectangle HttpHelper #white
rectangle HttpHelperImpl #lightGreen
rectangle PreferenceHelper #white
rectangle AppPreferenceHelper #lightGreen
rectangle PreferenceHelperImpl #lightGreen
rectangle DbHelper #white
rectangle AppDbHelper #lightGreen

View -- MvpView
View -r-> MvpPresenter
MvpPresenter -l-> View
MvpPresenter -- Presenter
Presenter -l-> MvpView
MvpView -r-> Presenter
Presenter -r-> AppDataManager
AppDataManager -l-> Presenter
AppDataManager -r-> PreferenceHelper
PreferenceHelper -l-> AppDataManager
PreferenceHelper -r- AppPreferenceHelper
AppDataManager -u-> ApiHelper
ApiHelper -d-> AppDataManager
ApiHelper -u-> AppApiHelper
AppDataManager -d-> DbHelper
DbHelper -u-> AppDataManager
DbHelper -d-> AppDbHelper
rectangle DBHelperImpl #lightGreen

View -- AbstractView
View -r-> AbstractPresenter
AbstractPresenter -l-> View
AbstractPresenter -- Presenter
Presenter -l-> AbstractView
AbstractView -r-> Presenter
Presenter -r-> DataManager
DataManager -l-> Presenter
DataManager -r-> PreferenceHelper
PreferenceHelper -l-> DataManager
PreferenceHelper -r- PreferenceHelperImpl
DataManager -u-> HttpHelper
HttpHelper -d-> DataManager
HttpHelper -u- HttpHelperImpl
DataManager -d-> DbHelper
DbHelper -u-> DataManager
DbHelper -d- DBHelperImpl



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
import dagger.android.AndroidInjector;
import dagger.android.DispatchingAndroidInjector;
import dagger.android.support.HasSupportFragmentInjector;
import json.chao.com.wanandroid.R;
import json.chao.com.wanandroid.base.presenter.AbstractPresenter;
import json.chao.com.wanandroid.base.view.BaseView;
import json.chao.com.wanandroid.base.view.AbstractView;
import json.chao.com.wanandroid.utils.CommonUtils;

/**
Expand All @@ -25,7 +24,7 @@

public abstract class BaseActivity<T extends AbstractPresenter> extends AbstractSimpleActivity implements
HasSupportFragmentInjector,
BaseView {
AbstractView {

@Inject
DispatchingAndroidInjector<Fragment> mFragmentDispatchingAndroidInjector;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @date 2018/3/30
*/

public abstract class AbstractRootActivity<T extends BasePresenter> extends BaseActivity<T> {
public abstract class BaseRootActivity<T extends BasePresenter> extends BaseActivity<T> {

private static final int NORMAL_STATE = 0;
private static final int LOADING_STATE = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
import javax.inject.Inject;

import dagger.android.support.AndroidSupportInjection;
import json.chao.com.wanandroid.R;
import json.chao.com.wanandroid.base.presenter.AbstractPresenter;
import json.chao.com.wanandroid.base.view.BaseView;
import json.chao.com.wanandroid.base.view.AbstractView;
import json.chao.com.wanandroid.utils.CommonUtils;

/**
Expand All @@ -19,7 +18,7 @@
*/

public abstract class BaseDialogFragment<T extends AbstractPresenter> extends AbstractSimpleDialogFragment
implements BaseView {
implements AbstractView {

@Inject
protected T mPresenter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
import javax.inject.Inject;

import dagger.android.support.AndroidSupportInjection;
import json.chao.com.wanandroid.R;
import json.chao.com.wanandroid.base.presenter.AbstractPresenter;
import json.chao.com.wanandroid.base.view.BaseView;
import json.chao.com.wanandroid.base.view.AbstractView;
import json.chao.com.wanandroid.utils.CommonUtils;

/**
Expand All @@ -21,7 +20,7 @@
*/

public abstract class BaseFragment<T extends AbstractPresenter> extends AbstractSimpleFragment
implements BaseView {
implements AbstractView {

@Inject
protected T mPresenter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @date 2018/3/30
*/

public abstract class AbstractRootFragment<T extends BasePresenter> extends BaseFragment<T> {
public abstract class BaseRootFragment<T extends BasePresenter> extends BaseFragment<T> {

private static final int NORMAL_STATE = 0;
private static final int LOADING_STATE = 1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package json.chao.com.wanandroid.base.presenter;

import io.reactivex.disposables.Disposable;
import json.chao.com.wanandroid.base.view.BaseView;
import json.chao.com.wanandroid.base.view.AbstractView;

/**
* Presenter 基类
Expand All @@ -10,7 +10,7 @@
* @date 2017/11/27
*/

public interface AbstractPresenter<T extends BaseView> {
public interface AbstractPresenter<T extends AbstractView> {

/**
* 注入View
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import io.reactivex.disposables.CompositeDisposable;
import io.reactivex.disposables.Disposable;
import json.chao.com.wanandroid.base.view.BaseView;
import json.chao.com.wanandroid.base.view.AbstractView;
import json.chao.com.wanandroid.core.DataManager;

/**
Expand All @@ -13,7 +13,7 @@
* @date 2017/11/28
*/

public class BasePresenter<T extends BaseView> implements AbstractPresenter<T> {
public class BasePresenter<T extends AbstractView> implements AbstractPresenter<T> {

protected T mView;
private CompositeDisposable compositeDisposable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @date 2017/11/27
*/

public interface BaseView {
public interface AbstractView {

/**
* Use night mode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import java.util.List;

import json.chao.com.wanandroid.base.presenter.AbstractPresenter;
import json.chao.com.wanandroid.base.view.AbstractView;
import json.chao.com.wanandroid.core.bean.hierarchy.KnowledgeHierarchyData;
import json.chao.com.wanandroid.base.view.BaseView;

/**
* @author quchao
Expand All @@ -13,7 +13,7 @@

public interface KnowledgeHierarchyContract {

interface View extends BaseView {
interface View extends AbstractView {

/**
* Show Knowledge Hierarchy Data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package json.chao.com.wanandroid.contract.hierarchy;

import json.chao.com.wanandroid.base.presenter.AbstractPresenter;
import json.chao.com.wanandroid.base.view.BaseView;
import json.chao.com.wanandroid.base.view.AbstractView;

/**
* @author quchao
Expand All @@ -10,7 +10,7 @@

public interface KnowledgeHierarchyDetailContract {

interface View extends BaseView {
interface View extends AbstractView {

/**
* Show switch project
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package json.chao.com.wanandroid.contract.hierarchy;

import json.chao.com.wanandroid.base.presenter.AbstractPresenter;
import json.chao.com.wanandroid.base.view.AbstractView;
import json.chao.com.wanandroid.core.bean.main.collect.FeedArticleData;
import json.chao.com.wanandroid.base.view.BaseView;
import json.chao.com.wanandroid.core.bean.main.collect.FeedArticleListData;

/**
Expand All @@ -12,7 +12,7 @@

public interface KnowledgeHierarchyListContract {

interface View extends BaseView {
interface View extends AbstractView {

/**
* Show Knowledge Hierarchy Detail Data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.tbruyelle.rxpermissions2.RxPermissions;

import json.chao.com.wanandroid.base.presenter.AbstractPresenter;
import json.chao.com.wanandroid.base.view.BaseView;
import json.chao.com.wanandroid.base.view.AbstractView;
import json.chao.com.wanandroid.core.bean.main.collect.FeedArticleListData;

/**
Expand All @@ -13,7 +13,7 @@

public interface ArticleDetailContract {

interface View extends BaseView {
interface View extends AbstractView {

/**
* Show collect article data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package json.chao.com.wanandroid.contract.main;

import json.chao.com.wanandroid.base.presenter.AbstractPresenter;
import json.chao.com.wanandroid.base.view.BaseView;
import json.chao.com.wanandroid.base.view.AbstractView;
import json.chao.com.wanandroid.core.bean.main.collect.FeedArticleData;
import json.chao.com.wanandroid.core.bean.main.collect.FeedArticleListData;

Expand All @@ -12,7 +12,7 @@

public interface CollectContract {

interface View extends BaseView {
interface View extends AbstractView {

/**
* Show collect list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import json.chao.com.wanandroid.base.presenter.AbstractPresenter;
import json.chao.com.wanandroid.core.bean.main.login.LoginData;
import json.chao.com.wanandroid.base.view.BaseView;
import json.chao.com.wanandroid.base.view.AbstractView;

/**
* @author quchao
Expand All @@ -11,7 +11,7 @@

public interface LoginContract {

interface View extends BaseView {
interface View extends AbstractView {

/**
* Show login data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package json.chao.com.wanandroid.contract.main;

import json.chao.com.wanandroid.base.presenter.AbstractPresenter;
import json.chao.com.wanandroid.base.view.BaseView;
import json.chao.com.wanandroid.base.view.AbstractView;

/**
* @author quchao
Expand All @@ -10,7 +10,7 @@

public interface MainContract {

interface View extends BaseView {
interface View extends AbstractView {

/**
* Show switch project
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package json.chao.com.wanandroid.contract.main;

import json.chao.com.wanandroid.base.presenter.AbstractPresenter;
import json.chao.com.wanandroid.base.view.BaseView;
import json.chao.com.wanandroid.base.view.AbstractView;
import json.chao.com.wanandroid.core.bean.main.login.LoginData;

/**
Expand All @@ -10,7 +10,7 @@
*/
public interface RegisterContract {

interface View extends BaseView {
interface View extends AbstractView {

/**
* Show register data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import json.chao.com.wanandroid.base.presenter.AbstractPresenter;
import json.chao.com.wanandroid.core.bean.main.search.TopSearchData;
import json.chao.com.wanandroid.base.view.BaseView;
import json.chao.com.wanandroid.base.view.AbstractView;
import json.chao.com.wanandroid.core.dao.HistoryData;

/**
Expand All @@ -14,7 +14,7 @@

public interface SearchContract {

interface View extends BaseView {
interface View extends AbstractView {

/**
* Show history data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


import json.chao.com.wanandroid.base.presenter.AbstractPresenter;
import json.chao.com.wanandroid.base.view.BaseView;
import json.chao.com.wanandroid.base.view.AbstractView;
import json.chao.com.wanandroid.core.bean.main.collect.FeedArticleData;
import json.chao.com.wanandroid.core.bean.main.collect.FeedArticleListData;

Expand All @@ -13,7 +13,7 @@

public interface SearchListContract {

interface View extends BaseView {
interface View extends AbstractView {

/**
* Show search list
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package json.chao.com.wanandroid.contract.main;

import json.chao.com.wanandroid.base.presenter.AbstractPresenter;
import json.chao.com.wanandroid.base.view.BaseView;
import json.chao.com.wanandroid.base.view.AbstractView;

/**
* @author quchao
Expand All @@ -10,7 +10,7 @@

public interface SettingContract {

interface View extends BaseView {
interface View extends AbstractView {


}
Expand Down
Loading

0 comments on commit 8361cb3

Please sign in to comment.