Commit 594daad
fix(codegen): disambiguate duplicate param names in union-signature proxies
When multiple API versions contribute params with the same name to a
union signature (e.g., attributionSource from API 35 and API 36), the
generated Go code previously emitted duplicate parameter names, causing
compilation errors.
Add disambiguateParams() that detects name collisions and appends
API-level suffixes: _untilAPINN for params with MaxAPILevel,
_sinceAPINN for params with MinAPILevel, and _paramN as a positional
fallback. Apply this in all code paths: interface types, proxy method
signatures, parcel serialization, stub deserialization, and server
wrappers.
Also regenerate bluetooth bindings, CLI commands, and update examples
to match the new signatures.1 parent 71fbd88 commit 594daad
File tree
12 files changed
+3278
-1272
lines changed- android/bluetooth
- cmd/bindercli
- gen/android_bluetooth
- examples
- ble_sensor_collector
- bluetooth_audio_routing
- specs/android/bluetooth
- tools/pkg/codegen
12 files changed
+3278
-1272
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments