Skip to content

Commit

Permalink
perf: 更新Gradle插件
Browse files Browse the repository at this point in the history
  • Loading branch information
limuyang2 committed Aug 23, 2022
1 parent 4f3f207 commit b60d77d
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 15 deletions.
5 changes: 2 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'

android {
compileSdkVersion 28
buildToolsVersion "30.0.3"
compileSdkVersion 31

defaultConfig {
applicationId "com.chad.baserecyclerviewadapterhelper"
minSdkVersion 16
targetSdkVersion 28
targetSdkVersion 31
versionCode 9
versionName "3.0"
}
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
android:theme="@style/AppTheme"
android:name=".MyApplication"
tools:ignore="GoogleAppIndexingWarning">
<activity android:name=".activity.WelcomeActivity">
<activity android:name=".activity.WelcomeActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
buildscript {
ext.kotlin_version = '1.5.31'
ext.kotlin_version = '1.6.21'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
classpath 'com.android.tools.build:gradle:7.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down
2 changes: 0 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,5 @@
#Wed Feb 26 13:11:31 CST 2020
android.enableJetifier=true
org.gradle.jvmargs=-Xmx2048M -Dkotlin.daemon.jvm.options\="-Xmx2048M"
android.buildCacheDir=./build/buildCache/
android.useAndroidX=true
android.enableD8=true
android.enableBuildCache=true
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sun Nov 14 15:55:02 CST 2021
#Tue Aug 23 11:54:38 CST 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
7 changes: 2 additions & 5 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ apply plugin: 'kotlin-android'

android {
compileSdkVersion 28
buildToolsVersion "30.0.3"

defaultConfig {
minSdkVersion 14
Expand All @@ -21,7 +20,7 @@ android {
}
}
compileOptions {
kotlinOptions.freeCompilerArgs += ['-module-name', "com.github.CymChad.brvah"]
kotlinOptions.freeCompilerArgs += ['-module-name', "com.github.CymChad.brvah", "-Xjvm-default=all"]
}

lintOptions {
Expand All @@ -43,9 +42,7 @@ task sourcesJar(type: Jar) {
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.annotation:annotation:1.2.0'

compileOnly 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'androidx.recyclerview:recyclerview:1.2.1'
}

0 comments on commit b60d77d

Please sign in to comment.