Generate and copy swift grpc/protobuf code

This commit is contained in:
Piv
2020-04-29 19:10:07 +09:30
parent a7057e5b5f
commit 77dff59d38
3 changed files with 17 additions and 1 deletions

View File

@@ -8,5 +8,4 @@ target 'CarController' do
# Pods for CarController
pod 'gRPC-Swift', '1.0.0-alpha.11'
pod 'SwiftyZeroMQ5'
pod 'SwiftProtobuf', '~> 1.0'
end

View File

@@ -0,0 +1,16 @@
configurations{
swift {
canBeConsumed = false
canBeResolved = true
}
}
dependencies {
swift project(path: ':protobuf', configuration: 'swift')
}
task copySwiftCode(type: Copy, dependsOn: configurations.swift) {
// Copy python protobuf code from proto project.
from zipTree(configurations.swift.asPath)
into './CarController/CarController'
}