Skip to content

NerdsCorner/android_mvp

 
 

Repository files navigation

Android MVP

This is a small lib that will help you through your Android features development in order to keep things simple, clear and tidy.

Events

Download

//Events oriented MVP Lib
compile 'com.nerdscorner.mvp:events:LATEST_EVENTS_VERSION'

Interfaces (Deprecated)

Download

//Interfaces oriented MVP Lib
compile 'com.nerdscorner.mvp:interfaces:LATEST_INTERFACES_VERSION'

Usage

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.

Direct reference

Attributes

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

Contributing

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.

Author

Diego Marcher | diego@marcher.com.uy

About

MVP skeleton builder, Kotlin-implemented and AndroidX compliant

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 83.9%
  • Java 16.1%