Skip to content

Is there has a better way support protobufs? #250

@lincleejun

Description

@lincleejun

Hi there!
I was use stetho for a while, but right now I working on stetho support protobuf, I didn't find a good way to support it, can any one help me?

My currently solution is rewrite a NetWork implements ChromeDevtoolsDomain, as same as stetho provided except response body, translate the body from Protobuf to Json .

Is there a better way to solve this problem??

PS: In the beginning, I wrote a class extends stetho Network, but It didn't work, finnally I found out that in the MethodDispatcher it use class name as RPC called method name.
Why not provide a getName in the ChromeDevtoolsDomain or something like that???

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions