Skip to content

Commit

Permalink
sample refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
MaksTuev committed Aug 1, 2016
1 parent b09ddba commit 31ab5dd
Show file tree
Hide file tree
Showing 18 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import android.content.Context;

import com.agna.ferro.mvp.component.scope.PerApplication;
import com.agna.ferro.sample.module.book.BookRepository;
import com.agna.ferro.sample.interactor.book.BookRepository;

import dagger.Component;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.agna.ferro.sample.domain.entity;
package com.agna.ferro.sample.domain;

/**
* Book entity
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.agna.ferro.sample.module.book;
package com.agna.ferro.sample.interactor.book;

import android.content.Context;

import com.agna.ferro.mvp.component.scope.PerApplication;
import com.agna.ferro.sample.R;
import com.agna.ferro.sample.domain.entity.Book;
import com.agna.ferro.sample.domain.Book;

import java.util.Arrays;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.agna.ferro.sample.ui.dagger;
package com.agna.ferro.sample.ui.common.dagger;

import com.agna.ferro.core.PersistentScreenScope;
import com.agna.ferro.mvp.component.provider.ActivityProvider;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.agna.ferro.sample.ui.dagger;
package com.agna.ferro.sample.ui.common.dagger;

import com.agna.ferro.core.PersistentScreenScope;
import com.agna.ferro.mvp.component.provider.ActivityProvider;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.agna.ferro.sample.ui.navigation;
package com.agna.ferro.sample.ui.common.navigation;

import com.agna.ferro.mvp.component.provider.ActivityProvider;
import com.agna.ferro.mvp.component.scope.PerScreen;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.agna.ferro.sample.ui.widget;
package com.agna.ferro.sample.ui.common.widget;

import android.annotation.TargetApi;
import android.content.Context;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import com.agna.ferro.mvp.view.fragment.MvpFragmentV4View;
import com.agna.ferro.mvp.presenter.MvpPresenter;
import com.agna.ferro.sample.R;
import com.agna.ferro.sample.domain.entity.Book;
import com.agna.ferro.sample.domain.Book;
import com.agna.ferro.sample.ui.base.BaseActivity;
import com.bumptech.glide.Glide;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import com.agna.ferro.mvp.component.scope.PerScreen;
import com.agna.ferro.mvprx.MvpRxPresenter;
import com.agna.ferro.rx.OperatorFreeze;
import com.agna.ferro.sample.domain.entity.Book;
import com.agna.ferro.sample.module.book.BookRepository;
import com.agna.ferro.sample.domain.Book;
import com.agna.ferro.sample.interactor.book.BookRepository;

import javax.inject.Inject;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.agna.ferro.sample.ui.screen.book;

import com.agna.ferro.sample.domain.entity.Book;
import com.agna.ferro.sample.domain.Book;

/**
* inner model, which used inside Book screen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
import com.agna.ferro.mvp.component.ScreenComponent;
import com.agna.ferro.mvp.presenter.MvpPresenter;
import com.agna.ferro.sample.R;
import com.agna.ferro.sample.domain.entity.Book;
import com.agna.ferro.sample.domain.Book;
import com.agna.ferro.sample.ui.base.BaseActivityView;
import com.agna.ferro.sample.ui.dagger.ActivityModule;
import com.agna.ferro.sample.ui.common.dagger.ActivityModule;
import com.agna.ferro.sample.ui.screen.catalog.grid.BookItemListener;
import com.agna.ferro.sample.ui.screen.catalog.grid.BooksAdapter;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import com.agna.ferro.mvp.component.scope.PerScreen;
import com.agna.ferro.mvprx.MvpRxPresenter;
import com.agna.ferro.rx.OperatorFreeze;
import com.agna.ferro.sample.domain.entity.Book;
import com.agna.ferro.sample.module.book.BookRepository;
import com.agna.ferro.sample.ui.navigation.Navigator;
import com.agna.ferro.sample.domain.Book;
import com.agna.ferro.sample.interactor.book.BookRepository;
import com.agna.ferro.sample.ui.common.navigation.Navigator;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.agna.ferro.mvp.component.ScreenComponent;
import com.agna.ferro.mvp.component.scope.PerScreen;
import com.agna.ferro.sample.app.AppComponent;
import com.agna.ferro.sample.ui.dagger.ActivityModule;
import com.agna.ferro.sample.ui.common.dagger.ActivityModule;

import dagger.Component;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import android.widget.TextView;

import com.agna.ferro.sample.R;
import com.agna.ferro.sample.domain.entity.Book;
import com.agna.ferro.sample.domain.Book;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.resource.drawable.GlideDrawable;
import com.bumptech.glide.request.RequestListener;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.agna.ferro.sample.ui.screen.catalog.grid;

import com.agna.ferro.sample.domain.entity.Book;
import com.agna.ferro.sample.domain.Book;

public interface BookItemListener {
void onDownloadClick(Book book);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import android.support.v7.widget.RecyclerView;
import android.view.ViewGroup;

import com.agna.ferro.sample.domain.entity.Book;
import com.agna.ferro.sample.domain.Book;

import java.util.ArrayList;
import java.util.List;
Expand Down
2 changes: 1 addition & 1 deletion sample/src/main/res/layout/fragment_book.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
android:padding="15dp"
android:visibility="gone">

<com.agna.ferro.sample.ui.widget.SquareImageView
<com.agna.ferro.sample.ui.common.widget.SquareImageView
android:id="@+id/book_cover_iv"
android:layout_width="200dp"
android:layout_height="wrap_content"
Expand Down
2 changes: 1 addition & 1 deletion sample/src/main/res/layout/item_book.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
android:layout_height="match_parent"
android:orientation="vertical">

<com.agna.ferro.sample.ui.widget.SquareImageView
<com.agna.ferro.sample.ui.common.widget.SquareImageView
android:id="@+id/book_item_image"
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand Down

0 comments on commit 31ab5dd

Please sign in to comment.