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
网友评论