Summary: https://github.com/facebook/flipper/pull/2080 enables storing protobuf definitions and displaying payloads in the network inspector plugin. However, describing those definitions in ProtobufJS format can be time consuming and error prone. This PR enables sending definitions from an entire Retrofit service with a single line. ## Changelog * Adds a retrofit2-protobuf plugin Pull Request resolved: https://github.com/facebook/flipper/pull/2084 Test Plan: Used as a single line per service, ie: `SendProtobufToFlipperFromRetrofit(baseUrl, PersonService::class.java)` For more details see demo app in https://github.com/hbmartin/protobuf_java_to_protobufjs Reviewed By: mweststrate Differential Revision: D27507872 Pulled By: passy fbshipit-source-id: 859d7636c9512de0abde0aa1dcb2e023851369cf
50 lines
1.7 KiB
Groovy
50 lines
1.7 KiB
Groovy
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
include ':android'
|
|
include ':folly'
|
|
include ':sonarcpp'
|
|
include ':sample'
|
|
include ':tutorial'
|
|
include ':doubleconversion'
|
|
include ':glog'
|
|
include ':libevent'
|
|
include ':rsocket'
|
|
include ':third-party'
|
|
include ':noop'
|
|
|
|
project(':sonarcpp').projectDir = file('xplat')
|
|
project(':sample').projectDir = file('android/sample')
|
|
project(':tutorial').projectDir = file('android/tutorial')
|
|
project(':android').projectDir = file('android')
|
|
project(':doubleconversion').projectDir = file('android/third-party/external/double-conversion/')
|
|
project(':glog').projectDir = file('android/third-party/external/glog/')
|
|
project(':folly').projectDir = file('android/third-party/external/folly/')
|
|
project(':libevent').projectDir = file('android/third-party/external/LibEvent/')
|
|
project(':rsocket').projectDir = file('android/third-party/external/RSocket/')
|
|
project(':third-party').projectDir = file('android/third-party/')
|
|
project(':noop').projectDir = file('android/no-op/')
|
|
|
|
// Plugins
|
|
include ':fresco-plugin'
|
|
project(':fresco-plugin').projectDir = file('android/plugins/fresco')
|
|
|
|
include ':network-plugin'
|
|
project(':network-plugin').projectDir = file('android/plugins/network')
|
|
|
|
include ':litho-plugin'
|
|
project(':litho-plugin').projectDir = file('android/plugins/litho')
|
|
|
|
include ':leakcanary-plugin'
|
|
project(':leakcanary-plugin').projectDir = file('android/plugins/leakcanary')
|
|
|
|
include ':leakcanary2-plugin'
|
|
project(':leakcanary2-plugin').projectDir = file('android/plugins/leakcanary2')
|
|
|
|
include ':retrofit2-protobuf'
|
|
project(':retrofit2-protobuf').projectDir = file('android/plugins/retrofit2-protobuf')
|