MVVM-导入配置

2019-11-19  本文已影响0人  tea也么

application build.gradle设置

dependencies {
  implementation 'com.github.kwcn:One:1.1.8'
}
apply plugin: 'com.android.application'
apply plugin: 'android-aspectjx'

加入databinding

android {
    dataBinding {
        enabled = true
    }
}

项目 build.gradle设置

buildscript {
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.4.1'
        classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.6'
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven { url 'https://jitpack.io' }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

项目地址和demo

https://github.com/kwcn/One

上一篇 下一篇

猜你喜欢

热点阅读