MIT License

项目介绍

aartikov/Sesame 是一个托管在 GitHub 上的开源项目,主要使用 Kotlin 编写,采用 MIT License 许可证,目前获得 113 个 Star、8 次 Fork。

仓库全名
aartikov/Sesame
开源许可证
MIT License
Star 数
113
Fork 数
8

README 摘要

Sesame 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…

完整内容见 GitHub 原始 README 或本页 。

常见问题

Sesame 用什么语言开发?

主要使用 Kotlin 编写,采用 MIT License 许可证,目前有 113 个 Star。

Sesame 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 Sesame 的源码?

可以直接克隆仓库:git clone https://github.com/aartikov/Sesame.git,默认分支为 master;安装与运行步骤见仓库 README。

Sesame 最近还在维护吗?

仓库最近一次更新为 2022年4月22日,当前没有未关闭的 Issue;Star 数为 113,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Android architecture components made right

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
133
价值分
70
活跃状态
活跃

语言占比

Kotlin

Release

README

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.
compose-form - same as form but for Jetpack Compose.

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

Gradle Setup

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

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.

Compose Sample

The compose sample shows how to use Sesame with Jetpack Compose and Decompose. Each screen demonstrates certain Sesame feature.

COUNTER - shows that we don’t need property to manage Jetpack Compose state. mutableStateOf and derivedStateOf are used instead.
PROFILE - loads ordinary data with loading.
DIALOGS - shows how to use dialog and localized string.
MOVIES - loads paged data with loading.
FORM - validates input fields with compose-form.

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.

评论

暂无评论