mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: add workaround for Protobuf KSP 1.0.14+ compiler error
This commit is contained in:
parent
45d93a1d9a
commit
c7d955e1c6
1 changed files with 12 additions and 0 deletions
|
|
@ -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'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue