Skip to content

Commit 5b7066f

Browse files
authored
Zip Builder - update protos (#4454)
1 parent fe67f46 commit 5b7066f

File tree

3 files changed

+109
-64
lines changed

3 files changed

+109
-64
lines changed

ZipBuilder/Sources/ManifestReader/FirebaseSDKs.pb.swift

Lines changed: 86 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
// Generated by the Swift generator plugin for the protocol buffer compiler.
2020
// Source: FirebaseSDKs.proto
2121
//
22-
// For information on using the generated types, please see the documenation:
22+
// For information on using the generated types, please see the documentation:
2323
// https://github.com/apple/swift-protobuf/
2424

2525
import Foundation
@@ -35,7 +35,6 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP
3535
typealias Version = _2
3636
}
3737

38-
/// A list of all Firebase SDKs.
3938
public struct ZipBuilder_FirebaseSDKs {
4039
// SwiftProtobuf.Message conformance is added in an extension below. See the
4140
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
@@ -48,96 +47,113 @@ public struct ZipBuilder_FirebaseSDKs {
4847
public init() {}
4948
}
5049

51-
/// Represents a single SDK that should be released.
5250
public struct ZipBuilder_SDK {
5351
// SwiftProtobuf.Message conformance is added in an extension below. See the
5452
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
5553
// methods supported on all messages.
5654

57-
/// SDK name
55+
/// SDK name.
5856
public var name: String {
5957
get {return _storage._name}
6058
set {_uniqueStorage()._name = newValue}
6159
}
6260

63-
/// MPM name for the blueprint. For internal use only.
64-
public var mpmName: String {
61+
/// MPM name for the blueprint.
62+
var mpmName: String {
6563
get {return _storage._mpmName}
6664
set {_uniqueStorage()._mpmName = newValue}
6765
}
6866

69-
/// Public version
67+
/// Public version.
7068
public var publicVersion: String {
7169
get {return _storage._publicVersion}
7270
set {_uniqueStorage()._publicVersion = newValue}
7371
}
7472

75-
/// List of MPM patterns to build
76-
public var mpmPattern: [String] {
73+
/// List of MPM patterns to build.
74+
var mpmPattern: [String] {
7775
get {return _storage._mpmPattern}
7876
set {_uniqueStorage()._mpmPattern = newValue}
7977
}
8078

81-
/// An optional list of additional build flags. For internal use only.
82-
public var buildFlags: ZipBuilder_BuildFlag {
83-
get {return _storage._buildFlags ?? ZipBuilder_BuildFlag()}
84-
set {_uniqueStorage()._buildFlags = newValue}
79+
/// An optional list of additional blaze flags.
80+
var blazeFlags: ZipBuilder_BlazeFlag {
81+
get {return _storage._blazeFlags ?? ZipBuilder_BlazeFlag()}
82+
set {_uniqueStorage()._blazeFlags = newValue}
8583
}
86-
/// Returns true if `buildFlags` has been explicitly set.
87-
public var hasBuildFlags: Bool {return _storage._buildFlags != nil}
88-
/// Clears the value of `buildFlags`. Subsequent reads from it will return its default value.
89-
public mutating func clearBuildFlags() {_uniqueStorage()._buildFlags = nil}
84+
/// Returns true if `blazeFlags` has been explicitly set.
85+
var hasBlazeFlags: Bool {return _storage._blazeFlags != nil}
86+
/// Clears the value of `blazeFlags`. Subsequent reads from it will return its default value.
87+
mutating func clearBlazeFlags() {_uniqueStorage()._blazeFlags = nil}
9088

91-
/// List of MPM patterns to build (optional nightly override). For internal use only.
92-
public var nightlyMpmPattern: [String] {
89+
/// List of MPM patterns to build (optional nightly override).
90+
var nightlyMpmPattern: [String] {
9391
get {return _storage._nightlyMpmPattern}
9492
set {_uniqueStorage()._nightlyMpmPattern = newValue}
9593
}
9694

97-
/// Whether or not the SDK is built from open-source. For internal use only.
98-
public var openSource: Bool {
95+
/// Whether or not the SDK is built from open-source.
96+
var openSource: Bool {
9997
get {return _storage._openSource}
10098
set {_uniqueStorage()._openSource = newValue}
10199
}
102100

103101
/// Whether or not to strip the i386 architecture from the build.
104-
public var stripI386: Bool {
102+
var stripI386: Bool {
105103
get {return _storage._stripI386}
106104
set {_uniqueStorage()._stripI386 = newValue}
107105
}
108106

109-
/// List of build targets. For internal use only.
110-
public var buildTarget: [String] {
107+
/// List of build targets to build the SDK - used for collecting licenses.
108+
var buildTarget: [String] {
111109
get {return _storage._buildTarget}
112110
set {_uniqueStorage()._buildTarget = newValue}
113111
}
114112

115113
/// Whether or not to strip both the i386 and armv7 architectures from the
116-
/// build. All SDKs that use this flag are built internally so this should be ignored.
117-
public var strip32Bits: Bool {
114+
/// build.
115+
var strip32Bits: Bool {
118116
get {return _storage._strip32Bits}
119117
set {_uniqueStorage()._strip32Bits = newValue}
120118
}
121119

120+
/// Specifies if the provided pod should be fetched from public repo.
121+
/// Mainly use for clash testing.
122+
var publicPod: Bool {
123+
get {return _storage._publicPod}
124+
set {_uniqueStorage()._publicPod = newValue}
125+
}
126+
127+
/// Whether or not to use the builtin flags.
128+
var noBuiltinFlags: Bool {
129+
get {return _storage._noBuiltinFlags}
130+
set {_uniqueStorage()._noBuiltinFlags = newValue}
131+
}
132+
133+
/// Whether or not to build arm64e slice.
134+
var buildArm64E: Bool {
135+
get {return _storage._buildArm64E}
136+
set {_uniqueStorage()._buildArm64E = newValue}
137+
}
138+
122139
public var unknownFields = SwiftProtobuf.UnknownStorage()
123140

124141
public init() {}
125142

126143
fileprivate var _storage = _StorageClass.defaultInstance
127144
}
128145

129-
/// Any extra build flags needed to build the SDK. For internal use only.
130-
public struct ZipBuilder_BuildFlag {
146+
struct ZipBuilder_BlazeFlag {
131147
// SwiftProtobuf.Message conformance is added in an extension below. See the
132148
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
133149
// methods supported on all messages.
134150

135-
/// An additional build flag needed to build the SDK
136-
public var flag: [String] = []
151+
/// An additional blaze flag needed to build the SDK
152+
var flag: [String] = []
137153

138-
public var unknownFields = SwiftProtobuf.UnknownStorage()
154+
var unknownFields = SwiftProtobuf.UnknownStorage()
139155

140-
public init() {}
156+
init() {}
141157
}
142158

143159
// MARK: - Code below here is support for the SwiftProtobuf runtime.
@@ -150,7 +166,7 @@ extension ZipBuilder_FirebaseSDKs: SwiftProtobuf.Message, SwiftProtobuf._Message
150166
1: .same(proto: "sdk"),
151167
]
152168

153-
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
169+
mutating public func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
154170
while let fieldNumber = try decoder.nextFieldNumber() {
155171
switch fieldNumber {
156172
case 1: try decoder.decodeRepeatedMessageField(value: &self.sdk)
@@ -180,25 +196,31 @@ extension ZipBuilder_SDK: SwiftProtobuf.Message, SwiftProtobuf._MessageImplement
180196
2: .standard(proto: "mpm_name"),
181197
3: .standard(proto: "public_version"),
182198
4: .standard(proto: "mpm_pattern"),
183-
5: .standard(proto: "build_flags"),
199+
5: .standard(proto: "blaze_flags"),
184200
6: .standard(proto: "nightly_mpm_pattern"),
185201
7: .standard(proto: "open_source"),
186202
8: .standard(proto: "strip_i386"),
187203
9: .standard(proto: "build_target"),
188204
10: .standard(proto: "strip_32bits"),
205+
11: .standard(proto: "public_pod"),
206+
12: .standard(proto: "no_builtin_flags"),
207+
13: .standard(proto: "build_arm64e"),
189208
]
190209

191210
fileprivate class _StorageClass {
192211
var _name: String = String()
193212
var _mpmName: String = String()
194213
var _publicVersion: String = String()
195214
var _mpmPattern: [String] = []
196-
var _buildFlags: ZipBuilder_BuildFlag? = nil
215+
var _blazeFlags: ZipBuilder_BlazeFlag? = nil
197216
var _nightlyMpmPattern: [String] = []
198217
var _openSource: Bool = false
199218
var _stripI386: Bool = false
200219
var _buildTarget: [String] = []
201220
var _strip32Bits: Bool = false
221+
var _publicPod: Bool = false
222+
var _noBuiltinFlags: Bool = false
223+
var _buildArm64E: Bool = false
202224

203225
static let defaultInstance = _StorageClass()
204226

@@ -209,12 +231,15 @@ extension ZipBuilder_SDK: SwiftProtobuf.Message, SwiftProtobuf._MessageImplement
209231
_mpmName = source._mpmName
210232
_publicVersion = source._publicVersion
211233
_mpmPattern = source._mpmPattern
212-
_buildFlags = source._buildFlags
234+
_blazeFlags = source._blazeFlags
213235
_nightlyMpmPattern = source._nightlyMpmPattern
214236
_openSource = source._openSource
215237
_stripI386 = source._stripI386
216238
_buildTarget = source._buildTarget
217239
_strip32Bits = source._strip32Bits
240+
_publicPod = source._publicPod
241+
_noBuiltinFlags = source._noBuiltinFlags
242+
_buildArm64E = source._buildArm64E
218243
}
219244
}
220245

@@ -225,7 +250,7 @@ extension ZipBuilder_SDK: SwiftProtobuf.Message, SwiftProtobuf._MessageImplement
225250
return _storage
226251
}
227252

228-
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
253+
mutating public func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
229254
_ = _uniqueStorage()
230255
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
231256
while let fieldNumber = try decoder.nextFieldNumber() {
@@ -234,12 +259,15 @@ extension ZipBuilder_SDK: SwiftProtobuf.Message, SwiftProtobuf._MessageImplement
234259
case 2: try decoder.decodeSingularStringField(value: &_storage._mpmName)
235260
case 3: try decoder.decodeSingularStringField(value: &_storage._publicVersion)
236261
case 4: try decoder.decodeRepeatedStringField(value: &_storage._mpmPattern)
237-
case 5: try decoder.decodeSingularMessageField(value: &_storage._buildFlags)
262+
case 5: try decoder.decodeSingularMessageField(value: &_storage._blazeFlags)
238263
case 6: try decoder.decodeRepeatedStringField(value: &_storage._nightlyMpmPattern)
239264
case 7: try decoder.decodeSingularBoolField(value: &_storage._openSource)
240265
case 8: try decoder.decodeSingularBoolField(value: &_storage._stripI386)
241266
case 9: try decoder.decodeRepeatedStringField(value: &_storage._buildTarget)
242267
case 10: try decoder.decodeSingularBoolField(value: &_storage._strip32Bits)
268+
case 11: try decoder.decodeSingularBoolField(value: &_storage._publicPod)
269+
case 12: try decoder.decodeSingularBoolField(value: &_storage._noBuiltinFlags)
270+
case 13: try decoder.decodeSingularBoolField(value: &_storage._buildArm64E)
243271
default: break
244272
}
245273
}
@@ -260,7 +288,7 @@ extension ZipBuilder_SDK: SwiftProtobuf.Message, SwiftProtobuf._MessageImplement
260288
if !_storage._mpmPattern.isEmpty {
261289
try visitor.visitRepeatedStringField(value: _storage._mpmPattern, fieldNumber: 4)
262290
}
263-
if let v = _storage._buildFlags {
291+
if let v = _storage._blazeFlags {
264292
try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
265293
}
266294
if !_storage._nightlyMpmPattern.isEmpty {
@@ -278,6 +306,15 @@ extension ZipBuilder_SDK: SwiftProtobuf.Message, SwiftProtobuf._MessageImplement
278306
if _storage._strip32Bits != false {
279307
try visitor.visitSingularBoolField(value: _storage._strip32Bits, fieldNumber: 10)
280308
}
309+
if _storage._publicPod != false {
310+
try visitor.visitSingularBoolField(value: _storage._publicPod, fieldNumber: 11)
311+
}
312+
if _storage._noBuiltinFlags != false {
313+
try visitor.visitSingularBoolField(value: _storage._noBuiltinFlags, fieldNumber: 12)
314+
}
315+
if _storage._buildArm64E != false {
316+
try visitor.visitSingularBoolField(value: _storage._buildArm64E, fieldNumber: 13)
317+
}
281318
}
282319
try unknownFields.traverse(visitor: &visitor)
283320
}
@@ -291,12 +328,15 @@ extension ZipBuilder_SDK: SwiftProtobuf.Message, SwiftProtobuf._MessageImplement
291328
if _storage._mpmName != rhs_storage._mpmName {return false}
292329
if _storage._publicVersion != rhs_storage._publicVersion {return false}
293330
if _storage._mpmPattern != rhs_storage._mpmPattern {return false}
294-
if _storage._buildFlags != rhs_storage._buildFlags {return false}
331+
if _storage._blazeFlags != rhs_storage._blazeFlags {return false}
295332
if _storage._nightlyMpmPattern != rhs_storage._nightlyMpmPattern {return false}
296333
if _storage._openSource != rhs_storage._openSource {return false}
297334
if _storage._stripI386 != rhs_storage._stripI386 {return false}
298335
if _storage._buildTarget != rhs_storage._buildTarget {return false}
299336
if _storage._strip32Bits != rhs_storage._strip32Bits {return false}
337+
if _storage._publicPod != rhs_storage._publicPod {return false}
338+
if _storage._noBuiltinFlags != rhs_storage._noBuiltinFlags {return false}
339+
if _storage._buildArm64E != rhs_storage._buildArm64E {return false}
300340
return true
301341
}
302342
if !storagesAreEqual {return false}
@@ -306,13 +346,13 @@ extension ZipBuilder_SDK: SwiftProtobuf.Message, SwiftProtobuf._MessageImplement
306346
}
307347
}
308348

309-
extension ZipBuilder_BuildFlag: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
310-
public static let protoMessageName: String = _protobuf_package + ".BuildFlag"
311-
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
349+
extension ZipBuilder_BlazeFlag: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
350+
static let protoMessageName: String = _protobuf_package + ".BlazeFlag"
351+
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
312352
1: .same(proto: "flag"),
313353
]
314354

315-
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
355+
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
316356
while let fieldNumber = try decoder.nextFieldNumber() {
317357
switch fieldNumber {
318358
case 1: try decoder.decodeRepeatedStringField(value: &self.flag)
@@ -321,14 +361,14 @@ extension ZipBuilder_BuildFlag: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
321361
}
322362
}
323363

324-
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
364+
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
325365
if !self.flag.isEmpty {
326366
try visitor.visitRepeatedStringField(value: self.flag, fieldNumber: 1)
327367
}
328368
try unknownFields.traverse(visitor: &visitor)
329369
}
330370

331-
public static func ==(lhs: ZipBuilder_BuildFlag, rhs: ZipBuilder_BuildFlag) -> Bool {
371+
static func ==(lhs: ZipBuilder_BlazeFlag, rhs: ZipBuilder_BlazeFlag) -> Bool {
332372
if lhs.flag != rhs.flag {return false}
333373
if lhs.unknownFields != rhs.unknownFields {return false}
334374
return true

ZipBuilder/Sources/ManifestReader/FirebaseSDKs.proto

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,54 @@ syntax = "proto3";
22

33
package ZipBuilder;
44

5-
// A list of all Firebase SDKs.
65
message FirebaseSDKs {
76
repeated SDK sdk = 1;
87
}
98

10-
// Represents a single SDK that should be released.
119
message SDK {
12-
// SDK name
10+
// SDK name.
1311
string name = 1;
1412

15-
// MPM name for the blueprint. For internal use only.
13+
// MPM name for the blueprint.
1614
string mpm_name = 2;
1715

18-
// Public version
16+
// Public version.
1917
string public_version = 3;
2018

21-
// List of MPM patterns to build
19+
// List of MPM patterns to build.
2220
repeated string mpm_pattern = 4;
2321

24-
// An optional list of additional build flags. For internal use only.
25-
BuildFlag build_flags = 5;
22+
// An optional list of additional blaze flags.
23+
BlazeFlag blaze_flags = 5;
2624

27-
// List of MPM patterns to build (optional nightly override). For internal use only.
25+
// List of MPM patterns to build (optional nightly override).
2826
repeated string nightly_mpm_pattern = 6;
2927

30-
// Whether or not the SDK is built from open-source. For internal use only.
28+
// Whether or not the SDK is built from open-source.
3129
bool open_source = 7;
3230

3331
// Whether or not to strip the i386 architecture from the build.
3432
bool strip_i386 = 8;
3533

36-
// List of build targets. For internal use only.
34+
// List of build targets to build the SDK - used for collecting licenses.
3735
repeated string build_target = 9;
3836

3937
// Whether or not to strip both the i386 and armv7 architectures from the
40-
// build. All SDKs that use this flag are built internally so this should be ignored.
38+
// build.
4139
bool strip_32bits = 10;
40+
41+
// Specifies if the provided pod should be fetched from public repo.
42+
// Mainly use for clash testing.
43+
bool public_pod = 11;
44+
45+
// Whether or not to use the builtin flags.
46+
bool no_builtin_flags = 12;
47+
48+
// Whether or not to build arm64e slice.
49+
bool build_arm64e = 13;
4250
}
4351

44-
// Any extra build flags needed to build the SDK. For internal use only.
45-
message BuildFlag {
46-
// An additional build flag needed to build the SDK
52+
message BlazeFlag {
53+
// An additional blaze flag needed to build the SDK.
4754
repeated string flag = 1;
4855
}

0 commit comments

Comments
 (0)