Skip to content

Commit

Permalink
perf: 修改 gradle 对 Databinding 对引用
Browse files Browse the repository at this point in the history
  • Loading branch information
limuyang2 committed Sep 29, 2022
1 parent 8f66c48 commit d5c4e92
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
3 changes: 1 addition & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,11 @@ android {

dependencies {
implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation project(path: ':library')
implementation 'com.google.android.material:material:1.2.1'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.kyleduo.switchbutton:library:2.0.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
}
13 changes: 1 addition & 12 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
//apply plugin: 'kotlin-kapt'

android {
compileSdkVersion 28
Expand All @@ -23,16 +22,6 @@ android {
kotlinOptions.freeCompilerArgs += ['-module-name', "com.github.CymChad.brvah", "-Xjvm-default=all"]
}

lintOptions {
abortOnError false
}

viewBinding {
enabled = true
}
buildFeatures {
dataBinding = true
}
}

// 打包源码jar
Expand All @@ -43,6 +32,6 @@ task sourcesJar(type: Jar) {

dependencies {
implementation 'androidx.annotation:annotation:1.2.0'

implementation 'androidx.databinding:databinding-runtime:4.2.2'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
package com.chad.library.adapter.base.diff

import androidx.annotation.RestrictTo
import androidx.recyclerview.widget.DiffUtil
import java.util.concurrent.Executor
import java.util.concurrent.Executors

class BrvahAsyncDifferConfig<T>(
@RestrictTo(RestrictTo.Scope.LIBRARY)
val mainThreadExecutor: Executor?,
val backgroundThreadExecutor: Executor,
val diffCallback: DiffUtil.ItemCallback<T>) {
Expand Down

0 comments on commit d5c4e92

Please sign in to comment.