-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
opaque configuration via the Gradle plugin
- Loading branch information
Showing
6 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
wire-gradle-plugin/src/test/projects/opaque-message/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
plugins { | ||
id 'application' | ||
id 'org.jetbrains.kotlin.jvm' | ||
id 'com.squareup.wire' | ||
} | ||
|
||
wire { | ||
opaque("cafe.EspressoShot") | ||
|
||
proto {} | ||
} |
18 changes: 18 additions & 0 deletions
18
wire-gradle-plugin/src/test/projects/opaque-message/src/main/proto/cafe/cafe.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
syntax = "proto2"; | ||
|
||
package cafe; | ||
|
||
message CafeDrink { | ||
optional int32 size_ounces = 1; | ||
repeated EspressoShot shots = 2; | ||
} | ||
|
||
message EspressoShot { | ||
optional Roast roast = 1; | ||
optional bool decaf = 2; | ||
} | ||
|
||
enum Roast { | ||
MEDIUM = 1; | ||
DARK = 2; | ||
} |