Skip to content

Commit 199acc2

Browse files
committed
CHANGE centralize Kotlin serialization config and update lib version
1 parent 6fd5343 commit 199acc2

File tree

6 files changed

+6
-8
lines changed

6 files changed

+6
-8
lines changed

build.dep.network.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
apply {
2+
plugin(libs.plugins.kotlinSerialization.get().getPluginId())
3+
}
4+
15
dependencies {
26
implementation libs.retrofit
37
implementation(libs.kotlinx.serialization.json)

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ plugins { // sets class paths only (because of 'apply false')
1212
alias libs.plugins.androidApplication apply false
1313
alias libs.plugins.androidLibrary apply false
1414
alias libs.plugins.jetbrainsKotlinAndroid apply false
15+
alias libs.plugins.kotlinSerialization apply false
1516
alias libs.plugins.hilt apply false
1617
alias libs.plugins.ksp apply false
1718
}

core/actionresult/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
plugins {
22
id "com.android.library"
3-
alias libs.plugins.kotlinSerialization // todo can we centralize this?
43
}
54
apply from: "$rootDir/build.module.library.gradle"
65
apply from: "$rootDir/build.dep.json.gradle"
@@ -12,5 +11,4 @@ android {
1211

1312
dependencies {
1413
implementation libs.networkResponseAdapter
15-
implementation libs.kotlinx.serialization.json
1614
}

core/network/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
plugins {
22
id "com.android.library"
3-
alias libs.plugins.kotlinSerialization
43
}
54
apply from: "$rootDir/build.module.library.gradle"
65
apply from: "$rootDir/build.dep.network.gradle"

data/user/build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
plugins {
22
id "com.android.library"
3-
alias libs.plugins.kotlinSerialization // todo can we centralize this?
43
}
54

65
apply from: "$rootDir/build.module.library.gradle"
@@ -15,7 +14,4 @@ dependencies {
1514
implementation project(':domain:user')
1615
implementation project(':core:network')
1716
implementation project(':core:actionresult')
18-
19-
implementation(libs.kotlinx.serialization.json)
20-
2117
}

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ littleRobotsCatalogUpdates = "0.8.1"
1212
hilt = "2.49"
1313
ksp = "1.9.21-1.0.16"
1414
retrofit = "2.9.0"
15-
kotlinx-serialization = "1.6.0"
15+
kotlinx-serialization = "1.6.2"
1616
retrofit2KotlinxSerializationConverter = "1.0.0"
1717
networkResponseAdapter = "5.0.0"
1818
napier = "2.6.1"

0 commit comments

Comments
 (0)