This repository has been archived by the owner on Nov 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
181 changed files
with
4,081 additions
and
4,253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
package com.badoo.barf.data.repo; | ||
|
||
/** | ||
* A marker interface for repository queries | ||
* A marker interface for repository queries. Any class implementing this must also provide implementations of equals() and hashCode() | ||
* otherwise you might risk having queries executed multiple times (concurrently) since we cannot deduplicate them. | ||
* <p> | ||
* <R> the expected return type for this query | ||
*/ | ||
public interface Query { | ||
public interface Query<Result> { | ||
} |
60 changes: 0 additions & 60 deletions
60
Barf/src/main/java/com/badoo/barf/data/repo/Repositories.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.badoo.barf.mvp; | ||
|
||
/** | ||
* An marker interface that is used in addition to the View for allowing the presenter to control navigation related functionality of the app. | ||
* This was introduced to solve issues that arose from separating the View implementation from the containing Fragment/Activity as well | ||
* as from the decision to split functionality into several View/Presenter pairs for each screen (based on areas or responsibility). | ||
*/ | ||
public interface FlowListener { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package com.badoo.barf.mvp; | ||
|
||
import android.app.Activity; | ||
import android.app.Fragment; | ||
|
||
/** | ||
* Interface definition of a MVP Presenter. | ||
*/ | ||
public interface MvpPresenter { | ||
|
||
/** | ||
* Lifecycle callback that is invoked when the presenter is created | ||
*/ | ||
void onCreate(); | ||
|
||
/** | ||
* Lifecycle callback that is invoked from onStart of the Fragment/Activity managing the presenter | ||
*/ | ||
void onStart(); | ||
|
||
/** | ||
* Lifecycle callback that is invoked from onStop of the Fragment/Activity managing the presenter | ||
*/ | ||
void onStop(); | ||
|
||
/** | ||
* Should be called by either {@link Activity#onDestroy()}, {@link Fragment#onDestroy()} or {@link Fragment#onDestroyView()} | ||
*/ | ||
void destroy(); | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.badoo.barf.mvp; | ||
|
||
/** | ||
* Interface definition of a MVP View | ||
*/ | ||
public interface MvpView { | ||
} |
Oops, something went wrong.