-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
readme
- Loading branch information
Showing
1 changed file
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
[  ](https://bintray.com/muhammedthasneem1993/MVVMKotlinBase/MVVMBase/_latestVersion) | ||
|
||
# MVVM Base Library written in Kotlin | ||
The MVVM design pattern is similar to the well known MVC pattern in that the M (Model) and V (View) are relatively the same. The only difference resides between the C (Controller) and the VM (View Model). | ||
|
||
This library is providing some base functionality of MVVM architecture and DataBinding. | ||
|
||
* **Model** | ||
|
||
Represents the Data + State + Business logic. It is not tied to the view nor to the controller, which makes it reusable in many contexts. | ||
|
||
* **View** | ||
|
||
Binds to observable variables and actions exposed by the View Model. It is possible for multiple views to bind to a single View Model. | ||
|
||
* **ViewModel** | ||
|
||
Responsible for wrapping the model and preparing observable data needed by the view. It also provides hooks for the view to pass events to the model. An important thing to keep in mind is that the View Model is not tied to the view. | ||
|
||
* **Data Binding** | ||
|
||
Introduced in Google I/O 2015, the Data Binding library helps write declarative layouts and minimize the glue code necessary to bind application logic and layouts. | ||
|
||
## Dependency | ||
|
||
Firstly, add repository in your root build.gradle file (not your module build.gradle file): | ||
|
||
``` | ||
repositories { | ||
jcenter() | ||
} | ||
``` | ||
|
||
Add dependency to your module's build.gradle file: | ||
|
||
``` | ||
dependencies { | ||
implementation 'com.mhdthasneemp.mvvmbase:MVVMK-BASE:1.0' | ||
} | ||
``` | ||
|
||
#### Refrence | ||
|
||
``` | ||
https://github.com/MindorksOpenSource/android-mvvm-architecture | ||
``` | ||
|
||
#### License | ||
|
||
```` | ||
Copyright 2018 Muhammed Thasneem P | ||
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. | ||
```` | ||
|