This is a small lib that will help you through your Android features development in order to keep things simple, clear and tidy.
//Events oriented MVP Lib
compile 'com.nerdscorner.mvp:events:LATEST_EVENTS_VERSION'//Interfaces oriented MVP Lib
compile 'com.nerdscorner.mvp:interfaces:LATEST_INTERFACES_VERSION'There are three different options to integrate this MVP library to your application, either having a reference to the presenter within your Activity/Fragment, using behaviours or extending a BaseActivity/BaseFragment that handles all the wiring and setup automagically.
public class AttributeEventsMainActivity extends AppCompatActivity {
private AttributeMainPresenter presenter;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
...
presenter = new AttributeMainPresenter(
new AttributeMainView(this, bus),
new AttributeMainModel(bus)
);
}
}//TODO
Please fork this repository and contribute back using pull requests.
Any contributions, large or small, major features, bug fixes, unit tests are welcomed and appreciated but will be thoroughly reviewed and discussed.
Diego Marcher | diego@marcher.com.uy