Skip to content

aartikov/Sesame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Artur Artikov
Aug 13, 2021
de09f98 · Aug 13, 2021
Jan 15, 2021
Apr 27, 2021
Mar 5, 2021
Mar 29, 2021
Jun 25, 2021
Jun 25, 2021
Jul 7, 2021
Mar 5, 2021
Apr 12, 2021
Aug 13, 2021
Sep 7, 2020
Mar 4, 2021
Aug 13, 2021
Mar 4, 2021
Mar 29, 2021
Apr 9, 2021
Sep 7, 2020
Sep 7, 2020
Sep 7, 2020
Aug 13, 2021
Mar 29, 2021

Repository files navigation

Sesame

Maven Central license

Sesame is a set of architecture components for Android development. It is based on modern technologies including coroutines and Flow. Sesame is simple to learn and easy to use. It is ideally suited for MVVM and MVI architectures.

Some Sesame features are inspired by RxPM library.

Components

property - provides observable properties and one-time commands.
dialog - allows to control dialogs from View Models.
navigation - gives an universal way to navigate between screens.
activable - equips View Models with a very simple lifecycle.
loading - helps to manage state for data loading (including paged one).
loop - provides a simple MVI implementation.
localized string - helps to deal with string resources.
form - provides input field validation.

Sesame components are separate modules. Use only that you like.

Gradle Setup

dependencies {
    implementation 'com.github.aartikov:sesame-property:1.0.0-beta4'
    implementation 'com.github.aartikov:sesame-dialog:1.0.0-beta4'
    implementation 'com.github.aartikov:sesame-navigation:1.0.0-beta4'
    implementation 'com.github.aartikov:sesame-activable:1.0.0-beta4'
    implementation 'com.github.aartikov:sesame-loading:1.0.0-beta4'
    implementation 'com.github.aartikov:sesame-loop:1.0.0-beta4'
    implementation 'com.github.aartikov:sesame-localized-string:1.0.0-beta4'
    implementation 'com.github.aartikov:sesame-form:1.0.0-beta4'
}

Sample

The sample application consists of several screens. Each screen demonstrates certain Sesame feature.

COUNTER - shows how to use properties and commands from property.
PROFILE - loads ordinary data with loading.
DIALOGS - shows how to use dialog and localized string.
MOVIES - loads paged data with loading.
CLOCK - shows how to use activable.
FORM - validates input fields with form.
The whole app - demonstrates navigation.

There is no sample for loop. See LoadingLoop and PagedLoadingLoop as good examples how to use it.

Contact the author

Artur Artikov [email protected]

License

The MIT License (MIT)

Copyright (c) 2021 Artur Artikov, Alexander Rovnov, Pavel Aleksandrov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.