From 276419055019e516b45666e9fb115e8eb2d595dd Mon Sep 17 00:00:00 2001 From: starry-shivam Date: Fri, 17 May 2024 13:44:09 +0530 Subject: [PATCH] Bump targrt SDK to 34 and update AGP to gradle v8 Signed-off-by: starry-shivam --- build.gradle | 2 +- gradle.properties | 5 ++++- gradle/wrapper/gradle-wrapper.properties | 2 +- library/build.gradle | 6 +++--- library/publish-mavencentral.gradle | 2 +- sample/build.gradle | 4 ++-- 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/build.gradle b/build.gradle index d1f7c23..8b326a3 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:7.2.1' + classpath 'com.android.tools.build:gradle:8.4.0' } } diff --git a/gradle.properties b/gradle.properties index dde311d..a07ac29 100644 --- a/gradle.properties +++ b/gradle.properties @@ -17,4 +17,7 @@ # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true android.useAndroidX=true -android.enableJetifier=true \ No newline at end of file +android.enableJetifier=true +android.defaults.buildfeatures.buildconfig=true +android.nonTransitiveRClass=false +android.nonFinalResIds=false \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 5a630f9..c768556 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-all.zip diff --git a/library/build.gradle b/library/build.gradle index 614fc07..abe198d 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -1,12 +1,12 @@ apply plugin: 'com.android.library' android { - compileSdkVersion 32 + compileSdk 34 resourcePrefix 'customactivityoncrash_' defaultConfig { minSdkVersion 16 - targetSdkVersion 32 + targetSdkVersion 34 } namespace 'cat.ereza.customactivityoncrash' } @@ -20,5 +20,5 @@ ext { apply from: "publish-mavencentral.gradle" dependencies { - api 'androidx.appcompat:appcompat:1.4.1' + api 'androidx.appcompat:appcompat:1.6.1' } \ No newline at end of file diff --git a/library/publish-mavencentral.gradle b/library/publish-mavencentral.gradle index f0e19d4..76af69c 100644 --- a/library/publish-mavencentral.gradle +++ b/library/publish-mavencentral.gradle @@ -2,7 +2,7 @@ apply plugin: 'maven-publish' apply plugin: 'signing' task androidSourcesJar(type: Jar) { - classifier = 'sources' + archiveClassifier = 'sources' from android.sourceSets.main.java.source } diff --git a/sample/build.gradle b/sample/build.gradle index 6261b42..f633d29 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -1,11 +1,11 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 32 + compileSdk 34 defaultConfig { minSdkVersion 16 - targetSdkVersion 32 + targetSdkVersion 34 versionCode 13 versionName "2.4.0-SNAPSHOT" }