Generate and copy swift grpc/protobuf code
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
include ':app'
|
||||
include ':protobuf'
|
||||
include 'car'
|
||||
include 'CarControlleriOS'
|
||||
rootProject.name='CarController'
|
||||
|
||||
Reference in New Issue
Block a user