File tree 23 files changed +27
-28
lines changed
java/com/fernandocejas/android10/sample/app
test/java/com/fernandocejas/android10/sample/app/interactor
23 files changed +27
-28
lines changed Original file line number Diff line number Diff line change 13
13
android : theme =" @style/AppTheme" >
14
14
15
15
<activity
16
- android : name =" .core. view.activity.MainActivity"
16
+ android : name =" .view.activity.MainActivity"
17
17
android : label =" @string/app_name" >
18
18
<intent-filter >
19
19
<action android : name =" android.intent.action.MAIN" />
Original file line number Diff line number Diff line change 20
20
import com .fernandocejas .android10 .sample .app .core .executor .ThreadExecutor ;
21
21
import com .fernandocejas .android10 .sample .app .users .UserRepository ;
22
22
import com .fernandocejas .android10 .sample .app .core .di .modules .ApplicationModule ;
23
- import com .fernandocejas .android10 .sample .app .core . view .activity .BaseActivity ;
23
+ import com .fernandocejas .android10 .sample .app .view .activity .BaseActivity ;
24
24
import dagger .Component ;
25
25
import javax .inject .Singleton ;
26
26
Original file line number Diff line number Diff line change 19
19
import com .fernandocejas .android10 .sample .app .core .executor .ThreadExecutor ;
20
20
import com .fernandocejas .android10 .sample .app .users .GetUserDetails ;
21
21
import com .fernandocejas .android10 .sample .app .users .GetUserList ;
22
- import com .fernandocejas .android10 .sample .app .core . interactor .UseCase ;
22
+ import com .fernandocejas .android10 .sample .app .interactor .UseCase ;
23
23
import com .fernandocejas .android10 .sample .app .users .UserRepository ;
24
24
import com .fernandocejas .android10 .sample .app .core .di .PerActivity ;
25
25
import dagger .Module ;
Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
- package com .fernandocejas .android10 .sample .app .core . interactor ;
16
+ package com .fernandocejas .android10 .sample .app .interactor ;
17
17
18
18
/**
19
19
* Default subscriber base class to be used whenever you want default error handling.
Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
- package com .fernandocejas .android10 .sample .app .core . interactor ;
16
+ package com .fernandocejas .android10 .sample .app .interactor ;
17
17
18
18
import com .fernandocejas .android10 .sample .app .core .executor .PostExecutionThread ;
19
19
import com .fernandocejas .android10 .sample .app .core .executor .ThreadExecutor ;
Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
- package com .fernandocejas .android10 .sample .app .core . presenter ;
16
+ package com .fernandocejas .android10 .sample .app .presenter ;
17
17
18
18
/**
19
19
* Interface representing a Presenter in a model view presenter (MVP) pattern.
Original file line number Diff line number Diff line change 17
17
18
18
import com .fernandocejas .android10 .sample .app .core .executor .PostExecutionThread ;
19
19
import com .fernandocejas .android10 .sample .app .core .executor .ThreadExecutor ;
20
- import com .fernandocejas .android10 .sample .app .core . interactor .UseCase ;
20
+ import com .fernandocejas .android10 .sample .app .interactor .UseCase ;
21
21
import javax .inject .Inject ;
22
22
import rx .Observable ;
23
23
Original file line number Diff line number Diff line change 17
17
18
18
import com .fernandocejas .android10 .sample .app .core .executor .PostExecutionThread ;
19
19
import com .fernandocejas .android10 .sample .app .core .executor .ThreadExecutor ;
20
- import com .fernandocejas .android10 .sample .app .core . interactor .UseCase ;
20
+ import com .fernandocejas .android10 .sample .app .interactor .UseCase ;
21
21
import javax .inject .Inject ;
22
22
import rx .Observable ;
23
23
Original file line number Diff line number Diff line change 14
14
import com .fernandocejas .android10 .sample .app .core .di .components .DaggerUserComponent ;
15
15
import com .fernandocejas .android10 .sample .app .core .di .components .UserComponent ;
16
16
import com .fernandocejas .android10 .sample .app .core .di .modules .UserModule ;
17
- import com .fernandocejas .android10 .sample .app .core . view .activity .BaseActivity ;
17
+ import com .fernandocejas .android10 .sample .app .view .activity .BaseActivity ;
18
18
19
19
/**
20
20
* Activity that shows details of a certain user.
Original file line number Diff line number Diff line change 17
17
import butterknife .OnClick ;
18
18
import com .fernandocejas .android10 .sample .app .R ;
19
19
import com .fernandocejas .android10 .sample .app .core .di .components .UserComponent ;
20
- import com .fernandocejas .android10 .sample .app .core . view .component .AutoLoadImageView ;
21
- import com .fernandocejas .android10 .sample .app .core . view .fragment .BaseFragment ;
20
+ import com .fernandocejas .android10 .sample .app .view .component .AutoLoadImageView ;
21
+ import com .fernandocejas .android10 .sample .app .view .fragment .BaseFragment ;
22
22
import javax .inject .Inject ;
23
23
24
24
/**
Original file line number Diff line number Diff line change 16
16
package com .fernandocejas .android10 .sample .app .users ;
17
17
18
18
import android .support .annotation .NonNull ;
19
- import com .fernandocejas .android10 .sample .app .core . presenter .Presenter ;
19
+ import com .fernandocejas .android10 .sample .app .presenter .Presenter ;
20
20
import com .fernandocejas .android10 .sample .app .exception .DefaultErrorBundle ;
21
21
import com .fernandocejas .android10 .sample .app .exception .ErrorBundle ;
22
- import com .fernandocejas .android10 .sample .app .core . interactor .DefaultSubscriber ;
23
- import com .fernandocejas .android10 .sample .app .core . interactor .UseCase ;
22
+ import com .fernandocejas .android10 .sample .app .interactor .DefaultSubscriber ;
23
+ import com .fernandocejas .android10 .sample .app .interactor .UseCase ;
24
24
import com .fernandocejas .android10 .sample .app .exception .ErrorMessageFactory ;
25
25
import com .fernandocejas .android10 .sample .app .core .di .PerActivity ;
26
26
import com .fernandocejas .frodo .annotation .RxLogSubscriber ;
Original file line number Diff line number Diff line change 4
4
*/
5
5
package com .fernandocejas .android10 .sample .app .users ;
6
6
7
- import com .fernandocejas .android10 .sample .app .core . view .component .LoadDataView ;
7
+ import com .fernandocejas .android10 .sample .app .view .component .LoadDataView ;
8
8
9
9
/**
10
10
* Interface representing a View in a model view presenter (MVP) pattern.
Original file line number Diff line number Diff line change 13
13
import com .fernandocejas .android10 .sample .app .core .di .HasComponent ;
14
14
import com .fernandocejas .android10 .sample .app .core .di .components .DaggerUserComponent ;
15
15
import com .fernandocejas .android10 .sample .app .core .di .components .UserComponent ;
16
- import com .fernandocejas .android10 .sample .app .core . view .activity .BaseActivity ;
16
+ import com .fernandocejas .android10 .sample .app .view .activity .BaseActivity ;
17
17
18
18
/**
19
19
* Activity that shows a list of Users.
Original file line number Diff line number Diff line change 19
19
import butterknife .OnClick ;
20
20
import com .fernandocejas .android10 .sample .app .R ;
21
21
import com .fernandocejas .android10 .sample .app .core .di .components .UserComponent ;
22
- import com .fernandocejas .android10 .sample .app .core . view .fragment .BaseFragment ;
22
+ import com .fernandocejas .android10 .sample .app .view .fragment .BaseFragment ;
23
23
import java .util .Collection ;
24
24
import javax .inject .Inject ;
25
25
Original file line number Diff line number Diff line change 16
16
package com .fernandocejas .android10 .sample .app .users ;
17
17
18
18
import android .support .annotation .NonNull ;
19
- import com .fernandocejas .android10 .sample .app .core . presenter .Presenter ;
19
+ import com .fernandocejas .android10 .sample .app .presenter .Presenter ;
20
20
import com .fernandocejas .android10 .sample .app .exception .DefaultErrorBundle ;
21
21
import com .fernandocejas .android10 .sample .app .exception .ErrorBundle ;
22
- import com .fernandocejas .android10 .sample .app .core . interactor .DefaultSubscriber ;
23
- import com .fernandocejas .android10 .sample .app .core . interactor .UseCase ;
22
+ import com .fernandocejas .android10 .sample .app .interactor .DefaultSubscriber ;
23
+ import com .fernandocejas .android10 .sample .app .interactor .UseCase ;
24
24
import com .fernandocejas .android10 .sample .app .exception .ErrorMessageFactory ;
25
25
import com .fernandocejas .android10 .sample .app .core .di .PerActivity ;
26
26
import java .util .Collection ;
Original file line number Diff line number Diff line change 4
4
*/
5
5
package com .fernandocejas .android10 .sample .app .users ;
6
6
7
- import com .fernandocejas .android10 .sample .app .core . view .component .LoadDataView ;
7
+ import com .fernandocejas .android10 .sample .app .view .component .LoadDataView ;
8
8
import java .util .Collection ;
9
9
10
10
/**
Original file line number Diff line number Diff line change 1
- package com .fernandocejas .android10 .sample .app .core . view .activity ;
1
+ package com .fernandocejas .android10 .sample .app .view .activity ;
2
2
3
3
import android .app .Activity ;
4
4
import android .app .Fragment ;
Original file line number Diff line number Diff line change 1
- package com .fernandocejas .android10 .sample .app .core . view .activity ;
1
+ package com .fernandocejas .android10 .sample .app .view .activity ;
2
2
3
3
import android .os .Bundle ;
4
4
import android .widget .Button ;
Original file line number Diff line number Diff line change 3
3
*
4
4
* @author Fernando Cejas (the android10 coder)
5
5
*/
6
- package com .fernandocejas .android10 .sample .app .core . view .component ;
6
+ package com .fernandocejas .android10 .sample .app .view .component ;
7
7
8
8
import android .app .Activity ;
9
9
import android .content .Context ;
Original file line number Diff line number Diff line change 2
2
* Copyright (C) 2014 android10.org. All rights reserved.
3
3
* @author Fernando Cejas (the android10 coder)
4
4
*/
5
- package com .fernandocejas .android10 .sample .app .core . view .component ;
5
+ package com .fernandocejas .android10 .sample .app .view .component ;
6
6
7
7
import android .content .Context ;
8
8
Original file line number Diff line number Diff line change 3
3
*
4
4
* @author Fernando Cejas (the android10 coder)
5
5
*/
6
- package com .fernandocejas .android10 .sample .app .core . view .fragment ;
6
+ package com .fernandocejas .android10 .sample .app .view .fragment ;
7
7
8
8
import android .app .Fragment ;
9
9
import android .widget .Toast ;
Original file line number Diff line number Diff line change 5
5
android : orientation =" vertical"
6
6
>
7
7
8
- <com .fernandocejas.android10.sample.app.core. view.component.AutoLoadImageView
8
+ <com .fernandocejas.android10.sample.app.view.component.AutoLoadImageView
9
9
android : id =" @+id/iv_cover"
10
10
android : layout_width =" match_parent"
11
11
android : layout_height =" @dimen/iv_cover_height"
Original file line number Diff line number Diff line change 17
17
18
18
import com .fernandocejas .android10 .sample .app .core .executor .PostExecutionThread ;
19
19
import com .fernandocejas .android10 .sample .app .core .executor .ThreadExecutor ;
20
- import com .fernandocejas .android10 .sample .app .core .interactor .UseCase ;
21
20
import org .junit .Before ;
22
21
import org .junit .Test ;
23
22
import org .mockito .Mock ;
You can’t perform that action at this time.
0 commit comments