Skip to content

Commit

Permalink
fix: build.gradle.kts - source dir for .proto files
Browse files Browse the repository at this point in the history
Signed-off-by: Lachezar Lechev <lachezar@ambire.com>
  • Loading branch information
elpiel committed Oct 24, 2024
1 parent ebf72b7 commit 711ba89
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ kotlin {

@Suppress("UNUSED_VARIABLE")
sourceSets {
main {
proto {
// In addition to the default 'src/main/proto' which we don't use
// we add the proto files from stremio-core-protobuf
srcDir 'stremio-core-protobuf/proto'
}
}
val commonMain by getting {
dependencies {
implementation("pro.streem.pbandk:pbandk-runtime:${pbandkVersion}")
Expand Down Expand Up @@ -90,7 +97,7 @@ android {
}

protobuf {
generatedFilesBaseDir = "$projectDir/stremio-core-protobuf/proto"
generatedFilesBaseDir = "$projectDir/src"

protoc {
artifact = "com.google.protobuf:protoc:${protobufVersion}"
Expand Down

0 comments on commit 711ba89

Please sign in to comment.