Skip to content

Conversation

@jamesarich
Copy link
Collaborator

This commit migrates the project from using the protobuf-java library to wire. This involves extensive changes across the codebase to adapt to the new generated models and their APIs.

Key changes include:

  • Replaced Protobuf builders with Wire's immutable data classes and copy() method.
  • Updated field access from camelCase (longName) to snake_case (long_name).
  • Switched from com.google.protobuf.ByteString to okio.ByteString.
  • Replaced Protobuf's hasField() checks with null checks on Wire's optional fields.
  • Adapted enum handling to work with Wire-generated enums, removing "UNRECOGNIZED" filters.
  • Removed Protobuf-specific utility code, such as userFieldsToString and compareUsers which relied on Descriptors.
  • Updated Gradle build scripts (build.gradle.kts, libs.versions.toml) to remove Protobuf dependencies and add Wire dependencies and the Wire plugin.
  • Updated ProGuard rules to keep Wire-generated classes.

@github-actions github-actions bot added the enhancement New feature or request label Jan 16, 2026
@codecov
Copy link

codecov bot commented Jan 16, 2026

⚠️ JUnit XML file not found

The CLI was unable to find any JUnit XML files to upload.
For more help, visit our troubleshooting guide.

This commit migrates the project from using the `protobuf-java` library to `wire`. This involves extensive changes across the codebase to adapt to the new generated models and their APIs.

Key changes include:
- Replaced Protobuf builders with Wire's immutable data classes and `copy()` method.
- Updated field access from camelCase (`longName`) to snake_case (`long_name`).
- Switched from `com.google.protobuf.ByteString` to `okio.ByteString`.
- Replaced Protobuf's `hasField()` checks with null checks on Wire's optional fields.
- Adapted `enum` handling to work with Wire-generated enums, removing "UNRECOGNIZED" filters.
- Removed Protobuf-specific utility code, such as `userFieldsToString` and `compareUsers` which relied on Descriptors.
- Updated Gradle build scripts (`build.gradle.kts`, `libs.versions.toml`) to remove Protobuf dependencies and add Wire dependencies and the Wire plugin.
- Updated ProGuard rules to keep Wire-generated classes.

Signed-off-by: James Rich <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants