diff --git a/CarControlleriOS/CarController/Podfile b/CarControlleriOS/CarController/Podfile index 215eb47..ac4cb24 100644 --- a/CarControlleriOS/CarController/Podfile +++ b/CarControlleriOS/CarController/Podfile @@ -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 diff --git a/CarControlleriOS/build.gradle b/CarControlleriOS/build.gradle index e69de29..ea6f5da 100644 --- a/CarControlleriOS/build.gradle +++ b/CarControlleriOS/build.gradle @@ -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' +} \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index 06d1ba1..553d966 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,4 +1,5 @@ include ':app' include ':protobuf' include 'car' +include 'CarControlleriOS' rootProject.name='CarController'