---
title: "Square Wire"
description: "1 posts about Square Wire, summarised, each linking to the original."
---

# Square Wire
> 1 posts about Square Wire, summarised, each linking to the original.

## Articles

### [How Swiggy Migrated from protobuf-java to Square Wire](https://yomu.fyi/post/how-swiggy-migrated-from-protobuf-java-to-square-wire.md)
- Company: [Swiggy](https://yomu.fyi/company/swiggy.md)
- Author: Balvinder Gambhir
- Published: Jul 10, 2026
- Type: Problem & solution

Swiggy migrated from protobuf-java to Square Wire after profiling showed that the runtime and protoc-generated code consumed 6.735 MB of Android app size. protobuf-javalite was rejected because Swiggy relies extensively on google.protobuf.Any, while Wire retained support for Any and other well-known types with a smaller runtime and immutable Kotlin models. The migration required updating snake\_case property access, message construction, serialization calls, ProGuard rules, and a custom pipeline that compiled all schemas together before publishing package-specific AARs to AWS CodeArtifact. The team also fixed repeated enum fields with \[packed = true\] after discovering a silent wire-format mismatch. It reduced Swiggy’s app size by 3.52 MB and produced measurable reductions for Instamart and Toing.
