Skip to content

Commit f7ed381

Browse files
SimonMarquiszsmb13
authored andcommitted
Add protobuf generated sources to the sourceSets
And update to version 3.23.4.
1 parent 2731e98 commit f7ed381

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

core/datastore/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ protobuf {
5252
}
5353
}
5454

55+
androidComponents.beforeVariants {
56+
android.sourceSets.register(it.name) {
57+
java.srcDir(buildDir.resolve("generated/source/proto/${it.name}/java"))
58+
kotlin.srcDir(buildDir.resolve("generated/source/proto/${it.name}/kotlin"))
59+
}
60+
}
61+
5562
dependencies {
5663
implementation(project(":core:common"))
5764
implementation(project(":core:model"))

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ kotlinxSerializationJson = "1.5.1"
4545
ksp = "1.9.0-1.0.11"
4646
lint = "30.3.1"
4747
okhttp = "4.10.0"
48-
protobuf = "3.23.0"
48+
protobuf = "3.23.4"
4949
protobufPlugin = "0.9.3"
5050
retrofit = "2.9.0"
5151
retrofitKotlinxSerializationJson = "1.0.0"

0 commit comments

Comments
 (0)