Skip to content

Commit

Permalink
move plugins to version catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivchar Vitaly committed Jul 18, 2024
1 parent f812fac commit 2aed9ee
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 15 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id("com.android.application") version "8.5.1" apply false
id("com.android.library") version "8.5.1" apply false
id("org.jetbrains.kotlin.android") version "1.9.0" apply false
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.android.kotlin) apply false
}
4 changes: 2 additions & 2 deletions example/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
alias(libs.plugins.android.application)
alias(libs.plugins.android.kotlin)
}

android {
Expand Down
15 changes: 9 additions & 6 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
[versions]
applicationID = "com.example.vivchar.example"

versionCode = "1"
versionName = "1.0.0"

minSdkVersion = "21"
targetSdkVersion = "34"
compileSdkVersion = "34"
coreKtxVersion = "1.13.1"
materialDesignVersion = "1.12.0"
constraintVersion = "2.1.4"
streamVersion = "1.2.1"

retrofit = "2.11.0"

Expand All @@ -29,6 +27,10 @@ cardview = "1.0.0"
material = "1.12.0"
appcompat = "1.7.0"

plugin-application = "8.5.1"
plugin-library = "8.5.1"
plugin-kotlin = "1.9.0"

kotlinVersion = "1.9.24"

[libraries]
Expand All @@ -48,7 +50,6 @@ androidx-material = { group = "com.google.android.material", name = "material",
squareup-retrofit = { group = "com.squareup.retrofit2", name = "retrofit", version.ref = "retrofit" }
squareup-converter = { group = "com.squareup.retrofit2", name = "converter-gson", version.ref = "retrofit" }

kotlin-stdlib = { group = "org.jetbrains.kotlin", name = "kotlin-stdlib", version.ref = "kotlinVersion" }
kotlin-stdlib-jdk7 = { group = "org.jetbrains.kotlin", name = "kotlin-stdlib-jdk7", version.ref = "kotlinVersion" }

androidx-swiperefreshlayout = { group = "androidx.swiperefreshlayout", name = "swiperefreshlayout", version.ref = "swiperefreshlayout" }
Expand All @@ -58,4 +59,6 @@ glide-compiler = { group = "com.github.bumptech.glide", name = "compiler", versi
glide-transformations = { group = "jp.wasabeef", name = "glide-transformations", version.ref = "glide-transformations" }

[plugins]

android-kotlin = { id = "org.jetbrains.kotlin.android", version.ref = "plugin-kotlin" }
android-application = { id = "com.android.application", version.ref = "plugin-application" }
android-library = { id = "com.android.library", version.ref = "plugin-library" }
4 changes: 2 additions & 2 deletions network/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
alias(libs.plugins.android.library)
alias(libs.plugins.android.kotlin)
}

android {
Expand Down
4 changes: 2 additions & 2 deletions rendererrecyclerviewadapter/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
alias(libs.plugins.android.library)
alias(libs.plugins.android.kotlin)
}

android {
Expand Down

0 comments on commit 2aed9ee

Please sign in to comment.