From 18adb9c44f483227a606f912411aeb3246c146d5 Mon Sep 17 00:00:00 2001 From: steven Date: Mon, 13 Dec 2021 15:49:19 +0800 Subject: [PATCH] kotlin use default interface method and uniform recyclerview version into 1.2.1 --- app/build.gradle | 7 +++++-- library/build.gradle | 7 +++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index bc7d56c1c..35c801701 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -32,7 +32,10 @@ android { targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { - jvmTarget = "1.8" + jvmTarget = JavaVersion.VERSION_1_8.toString() + freeCompilerArgs += [ + '-Xjvm-default', 'all' + ] } buildFeatures { @@ -49,6 +52,6 @@ dependencies { 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" } diff --git a/library/build.gradle b/library/build.gradle index c59154eeb..303e97778 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -23,6 +23,13 @@ android { compileOptions { kotlinOptions.freeCompilerArgs += ['-module-name', "com.github.CymChad.brvah"] } + kotlinOptions { + jvmTarget = JavaVersion.VERSION_1_8.toString() + freeCompilerArgs += [ + '-Xjvm-default', 'all' + ] + } + lintOptions { abortOnError false