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.