fix: add workaround for Protobuf KSP 1.0.14+ compiler error

This commit is contained in:
andrekir 2024-01-10 17:19:23 -03:00
parent 45d93a1d9a
commit c7d955e1c6

View file

@ -126,6 +126,18 @@ protobuf {
}
}
// workaround for https://github.com/google/ksp/issues/1590
androidComponents {
onVariants(selector().all(), { variant ->
afterEvaluate {
def capName = variant.name.capitalize()
tasks.getByName("ksp${capName}Kotlin") {
setSource(tasks.getByName("generate${capName}Proto").outputs)
}
}
})
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])