mosby
3.1.1
适用于 Android 应用程序的模型-视图-呈现器和模型-视图-意图库。
dependencies {
compile ' com.hannesdorfmann.mosby3:mvi:3.1.1 ' // Model-View-Intent
// or
compile ' com.hannesdorfmann.mosby3:mvp:3.1.1 ' // Plain MVP
// or
compile ' com.hannesdorfmann.mosby3:viewstate:3.1.1 ' // MVP + ViewState support
}
附加模块:
dependencies {
// MVP + ViewState + LCE Views
compile ' com.hannesdorfmann.mosby3:mvp-lce:3.1.1 '
// Null Object Presenter for MVP
compile ' com.hannesdorfmann.mosby3:mvp-nullobject-presenter:3.1.1 '
// Queuing Presenter for MVP
compile ' com.hannesdorfmann.mosby3:mvp-queuing-presenter:3.1.1 '
}
快照:
dependencies {
compile ' com.hannesdorfmann.mosby3:mvi:3.1.2-SNAPSHOT '
compile ' com.hannesdorfmann.mosby3:mvp:3.1.2-SNAPSHOT '
compile ' com.hannesdorfmann.mosby3:viewstate:3.1.2-SNAPSHOT '
compile ' com.hannesdorfmann.mosby3:mvp-lce:3.1.2-SNAPSHOT '
compile ' com.hannesdorfmann.mosby3:mvp-nullobject-presenter:3.1.2-SNAPSHOT '
compile ' com.hannesdorfmann.mosby3:mvp-queuing-presenter:3.1.2-SNAPSHOT '
}
您还必须将 url 添加到快照存储库:
allprojects {
repositories {
maven { url " https://oss.sonatype.org/content/repositories/snapshots/ " }
}
}
请参阅项目网站。
对于模型-视图-意图,请查看此博客文章系列。
更改日志可以在发布部分找到
在 Mosby 3.0 中,我们将包名称从com.hannesdorfmann.mosby
更改为com.hannesdorfmann.mosby3
(注意末尾的3 )。将基于 Mosby 2.x 的应用程序迁移到 Mosby 3.0 应该很简单:只需将 Android Studio 中应用程序的所有导入语句替换为Edit -> Find -> Replace in Path ...
并将 find import com.hannesdorfmann.mosby
替换为import com.hannesdorfmann.mosby3
。还有一些小的 API 更改(请参阅更改日志),但大多数应用程序通过替换导入语句应该没问题。
Mosby 有一个 Conductor 插件。您可以在这里找到它:https://github.com/sockeqwe/mosby-conductor
Copyright 2015 Hannes Dorfmann
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.