kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
fix: add workaround for Protobuf KSP 1.0.14+ compiler error
rodzic
45d93a1d9a
commit
c7d955e1c6
|
@ -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 {
|
dependencies {
|
||||||
|
|
||||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||||
|
|
Ładowanie…
Reference in New Issue