diff --git a/brvahKtx/.gitignore b/brvahKtx/.gitignore deleted file mode 100644 index 796b96d1c..000000000 --- a/brvahKtx/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/build diff --git a/brvahKtx/build.gradle b/brvahKtx/build.gradle deleted file mode 100644 index 2d28ec7db..000000000 --- a/brvahKtx/build.gradle +++ /dev/null @@ -1,33 +0,0 @@ -apply plugin: 'com.android.library' -apply plugin: 'kotlin-android' -apply plugin: 'kotlin-android-extensions' - -android { - compileSdkVersion 28 - - defaultConfig { - minSdkVersion 14 - targetSdkVersion 28 - versionCode 1 - versionName "1.0" - - testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" - - } - - buildTypes { - release { - consumerProguardFiles 'proguard-rules.pro' - } - } - -} - -dependencies { - implementation fileTree(dir: 'libs', include: ['*.jar']) - - compileOnly 'com.android.support:recyclerview-v7:28.0.0' - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" - implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.0-RC' - implementation project(path: ':library') -} diff --git a/brvahKtx/proguard-rules.pro b/brvahKtx/proguard-rules.pro deleted file mode 100644 index 97a05a301..000000000 --- a/brvahKtx/proguard-rules.pro +++ /dev/null @@ -1,31 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile -# ServiceLoader support --keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {} --keepnames class kotlinx.coroutines.CoroutineExceptionHandler {} --keepnames class kotlinx.coroutines.android.AndroidExceptionPreHandler {} --keepnames class kotlinx.coroutines.android.AndroidDispatcherFactory {} - -# Most of volatile fields are updated with AFU and should not be mangled --keepclassmembernames class kotlinx.** { - volatile ; -} \ No newline at end of file diff --git a/brvahKtx/src/main/AndroidManifest.xml b/brvahKtx/src/main/AndroidManifest.xml deleted file mode 100644 index ede31adea..000000000 --- a/brvahKtx/src/main/AndroidManifest.xml +++ /dev/null @@ -1,2 +0,0 @@ - diff --git a/brvahKtx/src/main/java/com/chinakingo/brvahktx/AdapterKtx.kt b/brvahKtx/src/main/java/com/chinakingo/brvahktx/AdapterKtx.kt deleted file mode 100644 index ee812b6a7..000000000 --- a/brvahKtx/src/main/java/com/chinakingo/brvahktx/AdapterKtx.kt +++ /dev/null @@ -1,29 +0,0 @@ -package com.chinakingo.brvahktx - -import android.support.v7.util.DiffUtil -import com.chad.library.adapter.base.BaseQuickAdapter -import com.chad.library.adapter.base.BaseViewHolder -import com.chad.library.adapter.base.diff.BaseQuickDiffCallback -import kotlinx.coroutines.Dispatchers -import kotlinx.coroutines.withContext - -/** - * author : limuyang - * e-mail : limuyang2@163.com - * date : 2019/07/28 - * desc : About the kotlin extension of the adapter - */ - -/** - * this is kotlin Expansion, quick use async diff - * @receiver BaseQuickAdapter - * @param baseQuickDiffCallback BaseQuickDiffCallback - * @param detectMoves Boolean - */ -suspend inline fun BaseQuickAdapter.setNewDiffDataAsync(baseQuickDiffCallback: BaseQuickDiffCallback, detectMoves: Boolean) { - baseQuickDiffCallback.oldList = this.data - val diffResult = withContext(Dispatchers.IO) { - DiffUtil.calculateDiff(baseQuickDiffCallback, detectMoves) - } - this.setNewDiffData(diffResult, baseQuickDiffCallback.newList) -} \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index f0319ddf8..33069973b 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1 @@ -include ':app', ':library', ':brvahKtx' +include ':app', ':library'