Watch 2 Star 1 Fork 0

wm / AndroidMvpKotlinApache-2.0

Join us
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
一款精简的MVC框架 spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.en.md

中文

AndroidMvp

Introduction

Instructions for use

Add dependency

dependencies {
    ...
    implementation 'com.gitee.wm1989: AndroidMvp: 1.0.0'
    // If you need to use View injection framework (butterknife)
    kapt 'com.jakewharton: butterknife-compiler: 10.2.1'
}

// To use butterknife, you need to add a plugin
apply plugin: 'kotlin-kapt'

Using Bus event bus (Usage):

Add the bus plugin to build.gradle in the project root:

buildscript {
    dependencies {
        ...
        classpath 'com.blankj: bus-gradle-plugin: 2.4'
    }
}

Then use the plugin in the application module:

apply plugin: "com.blankj.bus"

Call

  • model inherits BaseModel
  • view inherits BaseView
  • Presenter inherits Presenter

Activity extends BaseActivity and implements View interface

class MainActivity: BaseActivity <MainModel, MainView, MainPresenter> (), MainView {
    ...
}

scene inherits BaseScene and implements View interface

class MainScene: BaseScene <MainModel, MainView, MainPresenter> (), MainView {
    ...
}

License

Copyright 2013 wang meng

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.

Comments ( 0 )

Sign in for post a comment

Kotlin
1
https://gitee.com/wm1989/AndroidMvp.git
git@gitee.com:wm1989/AndroidMvp.git
wm1989
AndroidMvp
AndroidMvp
master

Help Search

205735 778617b6 1899542 205747 347fc4a1 1899542