square / wire

gRPC and protocol buffers for Android, Kotlin, Swift and Java.
https://square.github.io/wire/
Apache License 2.0
4.24k stars 571 forks source link

Filter extend fields based on the emitting rules #2991

Closed oldergod closed 3 months ago

oldergod commented 3 months ago

Fixes https://github.com/cashapp/misk/pull/3286

This PR filters extend fields (like options) based on the file they are generated in, looking at their package name. Before that, even if one has multiple targets, the first target would generate all the extend fields, all the time.