From 7e3c8c465fb0bbaede9cbaf32ffe8a724488ad2d Mon Sep 17 00:00:00 2001 From: Shivam Goyal Date: Mon, 25 Sep 2023 01:17:35 +0530 Subject: [PATCH] Upgrade Gradle to 8.1.1 --- app/build.gradle | 2 +- benchmark/build.gradle | 2 +- build.gradle | 18 ++++++------------ gradle/libs.versions.toml | 15 +++++++++++++++ 4 files changed, 23 insertions(+), 14 deletions(-) create mode 100644 gradle/libs.versions.toml diff --git a/app/build.gradle b/app/build.gradle index 51848b0..588cfe5 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -82,7 +82,7 @@ dependencies { testImplementation "junit:junit:4.13.2" androidTestImplementation "androidx.test.ext:junit:1.1.5" androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' - implementation "androidx.navigation:navigation-compose:$nav_version" + implementation 'androidx.navigation:navigation-compose:2.6.0' implementation 'androidx.profileinstaller:profileinstaller:1.3.1' // Retrofit diff --git a/benchmark/build.gradle b/benchmark/build.gradle index 066e6bc..2f0fdb0 100644 --- a/benchmark/build.gradle +++ b/benchmark/build.gradle @@ -5,7 +5,7 @@ plugins { android { namespace 'com.navi.uitron.benchmark' - compileSdk 33 + compileSdk 34 compileOptions { sourceCompatibility = JavaVersion.VERSION_17 diff --git a/build.gradle b/build.gradle index fd5f466..7ba17b6 100644 --- a/build.gradle +++ b/build.gradle @@ -1,14 +1,8 @@ -// Top-level build file where you can add configuration options common to all sub-projects/modules. -buildscript { - ext { - nav_version = "2.6.0" - } -} plugins { - id 'com.android.application' version '8.1.0' apply false - id 'com.android.library' version '8.1.0' apply false - id 'org.jetbrains.kotlin.android' version '1.9.10' apply false - id 'com.android.test' version '8.1.0' apply false - id 'com.google.dagger.hilt.android' version '2.48' apply false - id 'com.google.devtools.ksp' version '1.9.10-1.0.13' apply false + alias libs.plugins.android.application apply false + alias libs.plugins.android.library apply false + alias libs.plugins.android.test apply false + alias libs.plugins.hilt.android apply false + alias libs.plugins.kotlin.android apply false + alias libs.plugins.ksp apply false } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml new file mode 100644 index 0000000..1c1e6d2 --- /dev/null +++ b/gradle/libs.versions.toml @@ -0,0 +1,15 @@ +[versions] +androidGradlePlugin = "8.1.1" +hilt = "2.48" +kotlin = "1.9.10" +ksp = "1.9.10-1.0.13" + +[libraries] + +[plugins] +android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" } +android-library = { id = "com.android.library", version.ref = "androidGradlePlugin" } +android-test = { id = "com.android.test", version.ref = "androidGradlePlugin" } +hilt-android = { id = "com.google.dagger.hilt.android", version.ref = "hilt" } +kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } +ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }