summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2016-11-02 08:49:26 -0400
committerJoel Fischer <joeljfischer@gmail.com>2016-11-02 08:49:26 -0400
commit27c01e0c2a768a242a4da10254b8f5108ded3a0e (patch)
tree955106265fd904fca6e76b548f7c6e46e1362d2b
parent0fffcc41092e7899b4e5721ce31f6fb396174422 (diff)
downloadsdl_ios-27c01e0c2a768a242a4da10254b8f5108ded3a0e.tar.gz
Add a passthrough SDLProxy property to SDLManager for minor backcompat cases
-rw-r--r--SmartDeviceLink/SDLManager.h6
-rw-r--r--SmartDeviceLink/SDLManager.m7
2 files changed, 13 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLManager.h b/SmartDeviceLink/SDLManager.h
index 6fd75f9e0..5393ef4f6 100644
--- a/SmartDeviceLink/SDLManager.h
+++ b/SmartDeviceLink/SDLManager.h
@@ -61,6 +61,12 @@ typedef void (^SDLManagerReadyBlock)(BOOL success, NSError *_Nullable error);
*/
@property (weak, nonatomic, nullable) id<SDLManagerDelegate> delegate;
+// Deprecated internal proxy object
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+@property (strong, nonatomic, readonly, nullable) SDLProxy *proxy;
+#pragma clang diagnostic pop
+
#pragma mark Lifecycle
diff --git a/SmartDeviceLink/SDLManager.m b/SmartDeviceLink/SDLManager.m
index 1efe5db65..c83511db6 100644
--- a/SmartDeviceLink/SDLManager.m
+++ b/SmartDeviceLink/SDLManager.m
@@ -92,6 +92,13 @@ NS_ASSUME_NONNULL_BEGIN
self.lifecycleManager.delegate = delegate;
}
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
+- (nullable SDLProxy *)proxy {
+ return self.lifecycleManager.proxy;
+}
+#pragma clang diagnostic pop
+
#pragma mark SDLConnectionManager Protocol