Skip to content

zoltanf/mosby

 
 

Repository files navigation

mosby

A Model-View-Presenter framework for modern Android apps.

Read more about mosby in my blog post

Dependency

Latest version: Maven Central

Pick the module(s) you want to use:

dependencies {

	compile 'com.hannesdorfmann.mosby:core:x.x.x'
	compile 'com.hannesdorfmann.mosby:core-dagger1:x.x.x'
	compile 'com.hannesdorfmann.mosby:mvp:x.x.x'
	compile 'com.hannesdorfmann.mosby:mvp-dagger1:x.x.x'
	compile 'com.hannesdorfmann.mosby:retrofit:x.x.x'
	compile 'com.hannesdorfmann.mosby:rx:x.x.x'
	compile 'com.hannesdorfmann.mosby:viewstate:x.x.x'
	compile 'com.hannesdorfmann.mosby:viewstate-dagger1:x.x.x'

	testCompile 'com.hannesdorfmann.mosby:testing:x.x.x'

}

where you have to replace x.x.x with the latest version.

This library uses annotation processing libraries. You need to apply Hugo Visser's awesome android-apt gradle plugin to run annotation processing and you have to include the following dependencies:

buildscript {
  repositories {
    jcenter()
  }
  dependencies {
    classpath 'com.android.tools.build:gradle:1.1.3'
    classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
  }
}

allprojects {
  repositories {
    jcenter()
    maven {
      // For icepick
      url 'https://clojars.org/repo/'
    }
  }
}

dependencies {
  apt 'frankiesardo:icepick-processor:3.0.2'
  apt 'com.hannesdorfmann.fragmentargs:processor:2.0.1'

  // If you want to use dagger1
  apt 'com.squareup.dagger:dagger-compiler:1.2.2'
}

Sample APK

You can download the sample apk from here. The Dagger1 sample apk can be downloaded here and Dagger2 sample apk can be downloaded here

About

A Model-View-Presenter framework for modern Android apps

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%