Skip to content

Commit 490d170

Browse files
authored
Upgrade SwiftProtobuf dependency (#352)
I noticed the SwiftProtobuf dependency hasn't been updated in a while. This PR aims to update to the latest [1.30.0 release](https://github.com/apple/swift-protobuf/releases/tag/1.30.0). --------- Signed-off-by: Mike Fridman <mfridman@buf.build>
1 parent 534a58d commit 490d170

File tree

12 files changed

+15
-23
lines changed

12 files changed

+15
-23
lines changed

Connect-Swift-Mocks.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Pod::Spec.new do |spec|
1414
spec.watchos.deployment_target = '6.0'
1515

1616
spec.dependency 'Connect-Swift', "#{spec.version.to_s}"
17-
spec.dependency 'SwiftProtobuf', '~> 1.28.2'
17+
spec.dependency 'SwiftProtobuf', '~> 1.30.0'
1818

1919
spec.source_files = 'Libraries/ConnectMocks/**/*.swift'
2020

Connect-Swift.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Pod::Spec.new do |spec|
1313
spec.tvos.deployment_target = '13.0'
1414
spec.watchos.deployment_target = '6.0'
1515

16-
spec.dependency 'SwiftProtobuf', '~> 1.28.2'
16+
spec.dependency 'SwiftProtobuf', '~> 1.30.0'
1717

1818
spec.source_files = 'Libraries/Connect/**/*.swift'
1919

Examples/ElizaCocoaPodsApp/Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PODS:
22
- Connect-Swift (1.0.4):
3-
- SwiftProtobuf (~> 1.28.2)
4-
- SwiftProtobuf (1.28.2)
3+
- SwiftProtobuf (~> 1.30.0)
4+
- SwiftProtobuf (1.30.0)
55

66
DEPENDENCIES:
77
- Connect-Swift (from `../..`)
@@ -15,8 +15,8 @@ EXTERNAL SOURCES:
1515
:path: "../.."
1616

1717
SPEC CHECKSUMS:
18-
Connect-Swift: 5d888f34286e7aab1652b531503e106cc8bdbbaf
19-
SwiftProtobuf: 4dbaffec76a39a8dc5da23b40af1a5dc01a4c02d
18+
Connect-Swift: d9d98ea6a5eb46ba26dd5ba3199104f29f86be2c
19+
SwiftProtobuf: 3697407f0d5b23bedeba9c2eaaf3ec6fdff69349
2020

2121
PODFILE CHECKSUM: b598f373a6ab5add976b09c2ac79029bf2200d48
2222

Examples/ElizaSwiftPackageApp/ElizaSwiftPackageApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Examples/buf.gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: v1
22
plugins:
3-
- plugin: buf.build/apple/swift:v1.28.2
3+
- plugin: buf.build/apple/swift:v1.30.0
44
opt: Visibility=Internal
55
out: ./ElizaSharedSources/GeneratedSources
66
- name: connect-swift

Libraries/Connect/buf.gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version: v1
22
plugins:
3-
- plugin: buf.build/apple/swift:v1.28.2
3+
- plugin: buf.build/apple/swift:v1.30.0
44
opt: Visibility=Internal
55
out: ./Internal/GeneratedSources

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ let package = Package(
6161
),
6262
.package(
6363
url: "https://github.com/apple/swift-protobuf.git",
64-
from: "1.28.2"
64+
from: "1.30.0"
6565
),
6666
],
6767
targets: [

Tests/ConformanceClient/GeneratedSources/connectrpc/conformance/v1/client_compat.pb.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -583,15 +583,11 @@ extension Connectrpc_Conformance_V1_ClientCompatRequest: SwiftProtobuf.Message,
583583
var _cancel: Connectrpc_Conformance_V1_ClientCompatRequest.Cancel? = nil
584584
var _rawRequest: Connectrpc_Conformance_V1_RawHTTPRequest? = nil
585585

586-
#if swift(>=5.10)
587586
// This property is used as the initial default value for new instances of the type.
588587
// The type itself is protecting the reference to its storage via CoW semantics.
589588
// This will force a copy to be made of this reference when the first mutation occurs;
590589
// hence, it is safe to mark this as `nonisolated(unsafe)`.
591590
static nonisolated(unsafe) let defaultInstance = _StorageClass()
592-
#else
593-
static let defaultInstance = _StorageClass()
594-
#endif
595591

596592
private init() {}
597593

Tests/ConformanceClient/buf.gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: v1
22
plugins:
3-
- plugin: buf.build/apple/swift:v1.28.2
3+
- plugin: buf.build/apple/swift:v1.30.0
44
opt: Visibility=Internal
55
out: ./GeneratedSources
66
- name: connect-swift

0 commit comments

Comments
 (0)