summaryrefslogtreecommitdiff
path: root/Example Apps
diff options
context:
space:
mode:
authorSatbir Tanda <satbirtanda@gmail.com>2019-07-28 23:53:37 -0700
committerSatbir Tanda <satbirtanda@gmail.com>2019-07-29 04:56:39 -0700
commit252fbb398e994d69de56ec739755c670df84118a (patch)
tree9aea69864b6d4e88461635508f2912c7f9fbe449 /Example Apps
parent01b673edf8166eb87990a8c848ca413d89e09ca2 (diff)
downloadsdl_ios-252fbb398e994d69de56ec739755c670df84118a.tar.gz
Properly decreate enum
Fix SDL warning
Diffstat (limited to 'Example Apps')
-rw-r--r--Example Apps/Example ObjC/VehicleDataManager.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/Example Apps/Example ObjC/VehicleDataManager.m b/Example Apps/Example ObjC/VehicleDataManager.m
index cc2ee46fa..d6650eae9 100644
--- a/Example Apps/Example ObjC/VehicleDataManager.m
+++ b/Example Apps/Example ObjC/VehicleDataManager.m
@@ -142,7 +142,11 @@ NS_ASSUME_NONNULL_BEGIN
}
SDLLogD(@"App has permission to access vehicle data. Requesting vehicle data...");
+
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
SDLGetVehicleData *getAllVehicleData = [[SDLGetVehicleData alloc] initWithAccelerationPedalPosition:YES airbagStatus:YES beltStatus:YES bodyInformation:YES clusterModeStatus:YES deviceStatus:YES driverBraking:YES eCallInfo:YES electronicParkBrakeStatus:YES emergencyEvent:YES engineOilLife:YES engineTorque:YES externalTemperature:YES fuelLevel:YES fuelLevelState:YES fuelRange:YES gps:YES headLampStatus:YES instantFuelConsumption:YES myKey:YES odometer:YES prndl:YES rpm:YES speed:YES steeringWheelAngle:YES tirePressure:YES turnSignal:YES vin:YES wiperStatus:YES];
+#pragma clang diagnostic pop
[manager sendRequest:getAllVehicleData withResponseHandler:^(__kindof SDLRPCRequest * _Nullable request, __kindof SDLRPCResponse * _Nullable response, NSError * _Nullable error) {
if (error || ![response isKindOfClass:SDLGetVehicleDataResponse.class]) {