美文网首页
MVVM-导入配置

MVVM-导入配置

作者: tea也么 | 来源:发表于2019-11-19 14:19 被阅读0次

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设置

  • classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.6'
  • maven { url 'https://jitpack.io' }
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

相关文章

网友评论

      本文标题:MVVM-导入配置

      本文链接:https://www.haomeiwen.com/subject/urbwictx.html