Generate and copy swift grpc/protobuf code
This commit is contained in:
@@ -8,5 +8,4 @@ target 'CarController' do
|
|||||||
# Pods for CarController
|
# Pods for CarController
|
||||||
pod 'gRPC-Swift', '1.0.0-alpha.11'
|
pod 'gRPC-Swift', '1.0.0-alpha.11'
|
||||||
pod 'SwiftyZeroMQ5'
|
pod 'SwiftyZeroMQ5'
|
||||||
pod 'SwiftProtobuf', '~> 1.0'
|
|
||||||
end
|
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 ':app'
|
||||||
include ':protobuf'
|
include ':protobuf'
|
||||||
include 'car'
|
include 'car'
|
||||||
|
include 'CarControlleriOS'
|
||||||
rootProject.name='CarController'
|
rootProject.name='CarController'
|
||||||
|
|||||||
Reference in New Issue
Block a user