summaryrefslogtreecommitdiff
path: root/SmartDeviceLink
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2017-04-18 11:08:32 -0400
committerJoel Fischer <joeljfischer@gmail.com>2017-04-18 11:08:32 -0400
commit55a0d236fed0bf576b73cfc7c254670b7bc8a134 (patch)
tree90a9cd229c5813e7378575b14a68889030ebbe52 /SmartDeviceLink
parenta912993d78989e288746516e35af2a25677b43ec (diff)
parentdefbaecd441a10655498eebd5cfd1e57e5e3cf87 (diff)
downloadsdl_ios-55a0d236fed0bf576b73cfc7c254670b7bc8a134.tar.gz
Merge branch 'master' into develop
# Conflicts: # SmartDeviceLink/SDLProxyFactory.m
Diffstat (limited to 'SmartDeviceLink')
-rw-r--r--SmartDeviceLink/NSBundle+SDLBundle.m10
-rw-r--r--SmartDeviceLink/SDLArtwork.h4
-rw-r--r--SmartDeviceLink/SDLLifecycleConfiguration.h4
-rw-r--r--SmartDeviceLink/SDLLifecycleManager.m2
-rw-r--r--SmartDeviceLink/SDLLockScreenConfiguration.h4
-rw-r--r--SmartDeviceLink/SDLProxyFactory.m1
-rw-r--r--SmartDeviceLink/SDLProxyListener.h2
-rw-r--r--SmartDeviceLink/SDLStreamingMediaManager.h2
-rw-r--r--SmartDeviceLink/SDLStreamingMediaManager.m2
-rw-r--r--SmartDeviceLink/SDLTouchManagerDelegate.h4
10 files changed, 19 insertions, 16 deletions
diff --git a/SmartDeviceLink/NSBundle+SDLBundle.m b/SmartDeviceLink/NSBundle+SDLBundle.m
index 032994883..5880a5927 100644
--- a/SmartDeviceLink/NSBundle+SDLBundle.m
+++ b/SmartDeviceLink/NSBundle+SDLBundle.m
@@ -22,7 +22,15 @@ NS_ASSUME_NONNULL_BEGIN
sdlBundle = [NSBundle bundleWithURL:sdlBundleURL];
}
if (sdlBundle == nil) {
- sdlBundle = [NSBundle bundleForClass:[SDLManager class]];
+ NSBundle *frameworkBundle = [NSBundle bundleForClass:[SDLManager class]];
+
+ // HAX: Cocoapods will have the bundle as an inner bundle that we need to unpack...because reasons. Otherwise it's just the bundle we need
+ NSURL *innerBundleURL = [frameworkBundle URLForResource:@"SmartDeviceLink" withExtension:@"bundle"];
+ if (innerBundleURL) {
+ sdlBundle = [NSBundle bundleWithURL:innerBundleURL];
+ } else {
+ sdlBundle = frameworkBundle;
+ }
}
if (sdlBundle == nil) {
@throw [NSException exceptionWithName:NSInternalInconsistencyException reason:@"SDL WARNING: The 'SmartDeviceLink.bundle' resources bundle was not found. If you are using cocoapods, try dragging the bundle from the SmartDeviceLink-iOS pod 'products' directory into your resources build phase. If this does not work, please go to the SDL slack at slack.smartdevicelink.com and explain your issue. You may disable the lockscreen in configuration to prevent this failure, for now." userInfo:nil];
diff --git a/SmartDeviceLink/SDLArtwork.h b/SmartDeviceLink/SDLArtwork.h
index 9bbd81cb9..d9e82dff2 100644
--- a/SmartDeviceLink/SDLArtwork.h
+++ b/SmartDeviceLink/SDLArtwork.h
@@ -6,7 +6,7 @@
// Copyright © 2015 smartdevicelink. All rights reserved.
//
-@import UIKit;
+#import <UIKit/UIKit.h>
#import "SDLFile.h"
@@ -67,4 +67,4 @@ NS_ASSUME_NONNULL_BEGIN
@end
-NS_ASSUME_NONNULL_END \ No newline at end of file
+NS_ASSUME_NONNULL_END
diff --git a/SmartDeviceLink/SDLLifecycleConfiguration.h b/SmartDeviceLink/SDLLifecycleConfiguration.h
index 479369030..36b11ea63 100644
--- a/SmartDeviceLink/SDLLifecycleConfiguration.h
+++ b/SmartDeviceLink/SDLLifecycleConfiguration.h
@@ -6,9 +6,7 @@
// Copyright © 2015 smartdevicelink. All rights reserved.
//
-@import UIKit;
-
-#import <Foundation/Foundation.h>
+#import <UIKit/UIKit.h>
#import "SDLAppHMIType.h"
#import "SDLLanguage.h"
diff --git a/SmartDeviceLink/SDLLifecycleManager.m b/SmartDeviceLink/SDLLifecycleManager.m
index e2eec84e0..d9e384f49 100644
--- a/SmartDeviceLink/SDLLifecycleManager.m
+++ b/SmartDeviceLink/SDLLifecycleManager.m
@@ -150,7 +150,7 @@ SDLLifecycleState *const SDLLifecycleStateReady = @"Ready";
return @{
SDLLifecycleStateStopped: @[SDLLifecycleStateStarted],
SDLLifecycleStateStarted : @[SDLLifecycleStateConnected, SDLLifecycleStateStopped, SDLLifecycleStateReconnecting],
- SDLLifecycleStateReconnecting: @[SDLLifecycleStateStarted],
+ SDLLifecycleStateReconnecting: @[SDLLifecycleStateStarted, SDLLifecycleStateStopped],
SDLLifecycleStateConnected: @[SDLLifecycleStateStopped, SDLLifecycleStateReconnecting, SDLLifecycleStateRegistered],
SDLLifecycleStateRegistered: @[SDLLifecycleStateStopped, SDLLifecycleStateReconnecting, SDLLifecycleStateSettingUpManagers],
SDLLifecycleStateSettingUpManagers: @[SDLLifecycleStateStopped, SDLLifecycleStateReconnecting, SDLLifecycleStatePostManagerProcessing],
diff --git a/SmartDeviceLink/SDLLockScreenConfiguration.h b/SmartDeviceLink/SDLLockScreenConfiguration.h
index 4bf55e9a0..cf1287cc3 100644
--- a/SmartDeviceLink/SDLLockScreenConfiguration.h
+++ b/SmartDeviceLink/SDLLockScreenConfiguration.h
@@ -6,9 +6,7 @@
// Copyright © 2015 smartdevicelink. All rights reserved.
//
-@import UIKit;
-
-#import <Foundation/Foundation.h>
+#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
diff --git a/SmartDeviceLink/SDLProxyFactory.m b/SmartDeviceLink/SDLProxyFactory.m
index ddb3e42b0..3a703e073 100644
--- a/SmartDeviceLink/SDLProxyFactory.m
+++ b/SmartDeviceLink/SDLProxyFactory.m
@@ -3,7 +3,6 @@
#import "SDLProxyFactory.h"
-#import "SDLLogMacros.h"
#import "SDLIAPTransport.h"
#import "SDLProtocol.h"
#import "SDLProxy.h"
diff --git a/SmartDeviceLink/SDLProxyListener.h b/SmartDeviceLink/SDLProxyListener.h
index 2d1f6e96f..45afd483d 100644
--- a/SmartDeviceLink/SDLProxyListener.h
+++ b/SmartDeviceLink/SDLProxyListener.h
@@ -1,7 +1,7 @@
// SDLProxyListener.h
//
-@import UIKit;
+#import <UIKit/UIKit.h>
@class SDLAddCommandResponse;
@class SDLAddSubMenuResponse;
diff --git a/SmartDeviceLink/SDLStreamingMediaManager.h b/SmartDeviceLink/SDLStreamingMediaManager.h
index d34a6a9fc..375c3bb61 100644
--- a/SmartDeviceLink/SDLStreamingMediaManager.h
+++ b/SmartDeviceLink/SDLStreamingMediaManager.h
@@ -7,7 +7,7 @@
//
#import <Foundation/Foundation.h>
-@import VideoToolbox;
+#import <VideoToolbox/VideoToolbox.h>
#import "SDLProtocolListener.h"
diff --git a/SmartDeviceLink/SDLStreamingMediaManager.m b/SmartDeviceLink/SDLStreamingMediaManager.m
index 41241062f..18f4d5b93 100644
--- a/SmartDeviceLink/SDLStreamingMediaManager.m
+++ b/SmartDeviceLink/SDLStreamingMediaManager.m
@@ -8,7 +8,7 @@
#import "SDLStreamingMediaManager.h"
-@import UIKit;
+#import <UIKit/UIKit.h>
#import "SDLAbstractProtocol.h"
#import "SDLLogMacros.h"
diff --git a/SmartDeviceLink/SDLTouchManagerDelegate.h b/SmartDeviceLink/SDLTouchManagerDelegate.h
index 9bbcb433d..924780612 100644
--- a/SmartDeviceLink/SDLTouchManagerDelegate.h
+++ b/SmartDeviceLink/SDLTouchManagerDelegate.h
@@ -6,7 +6,7 @@
// Copyright © 2016 smartdevicelink. All rights reserved.
//
-@import UIKit;
+#import <UIKit/UIKit.h>
@class SDLTouchManager;
@@ -103,4 +103,4 @@ NS_ASSUME_NONNULL_BEGIN
@end
-NS_ASSUME_NONNULL_END \ No newline at end of file
+NS_ASSUME_NONNULL_END