MortarLib

Supports building Android apps using Square's Flow and Mortar.

Лицензия

Лицензия

Группа

Группа

com.wemakebetterapps
Идентификатор

Идентификатор

mortar-lib
Последняя версия

Последняя версия

1.2.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

MortarLib
Supports building Android apps using Square's Flow and Mortar.
Ссылка на сайт

Ссылка на сайт

https://github.com/WeMakeBetterApps/MortarLib
Система контроля версий

Система контроля версий

http://github.com/wemakebetterapps/mortarlib

Скачать mortar-lib

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.wemakebetterapps/mortar-lib/ -->
<dependency>
    <groupId>com.wemakebetterapps</groupId>
    <artifactId>mortar-lib</artifactId>
    <version>1.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.wemakebetterapps/mortar-lib/
implementation 'com.wemakebetterapps:mortar-lib:1.2.1'
// https://jarcasting.com/artifacts/com.wemakebetterapps/mortar-lib/
implementation ("com.wemakebetterapps:mortar-lib:1.2.1")
'com.wemakebetterapps:mortar-lib:jar:1.2.1'
<dependency org="com.wemakebetterapps" name="mortar-lib" rev="1.2.1">
  <artifact name="mortar-lib" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.wemakebetterapps', module='mortar-lib', version='1.2.1')
)
libraryDependencies += "com.wemakebetterapps" % "mortar-lib" % "1.2.1"
[com.wemakebetterapps/mortar-lib "1.2.1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

MortarLib

Supports building Android apps using Square's Flow and Mortar.

APIs aren't finalized yet. Flow and Mortar are still in rapid development, and as such still is this. As I use Flow and Mortar, if I find the need to write a component that is a potential common use case it will be added to this library. Pull requests are welcome.


Currently supports Flow 0.7, and Mortar 0.16. Will be updated to Flow 0.9 when it's officially released.

Gradle Usage:

compile 'com.wemakebetterapps:mortar-lib:1.2.1'
compile 'com.squareup.flow:flow:0.7'
compile 'com.squareup.mortar:mortar:0.16'

Screen Generator Sample

Creating a new screen using Flow & Mortar is an effort unto itself, so included is a Screen Generator. It will generate your Screen, Presenter, Module, view, and xml file with all the necessary boiler plate. It's recommended that you set this up as a separate java project.

compile 'com.wemakebetterapps:mortar-gen:1.1.0'
public class ExampleScreenGenerator {

  public static void main(String[] args) {
    ScreenGenerator.ScreenGeneratorPrefs prefs =
        new ScreenGenerator.ScreenGeneratorPrefs(
            new File("app/src/main/java"),
            new File("app/src/main/res/layout"),
            "com.example.app",
            "com.example.app.screen",
            "view"
        ).customPresenter("com.example.app.presenter", "BasePresenter")
            .defaultBaseModule("com.example.app.screen", "MainScreen.Module")
            .presenterPackage("com.example.app.presenter");

    new ScreenGenerator(prefs).start();
  }

}

Версии библиотеки

Версия
1.2.1
1.2.0
1.0.0