VLC for iOS-Prefix.pch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*****************************************************************************
  2. * Prefix header for all source files of the 'vlc-ios' target
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2013-2014 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Felix Paul Kühne <fkuehne # videolan.org>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. #import <Availability.h>
  13. #ifndef __IPHONE_9_0
  14. #error "This project uses features only available in iOS SDK 9.0 and later."
  15. #endif
  16. #ifdef __OBJC__
  17. #import <UIKit/UIKit.h>
  18. #import <Foundation/Foundation.h>
  19. #endif
  20. #import <MobileVLCKit/MobileVLCKit.h>
  21. #import <MediaLibraryKit/MediaLibraryKit.h>
  22. #import "VLCConstants.h"
  23. #import "UIColor+Presets.h"
  24. #import "UIBarButtonItem+Theme.h"
  25. #import "VLCAlertView.h"
  26. #import "VLCNavigationController.h"
  27. #import "VLCSidebarController.h"
  28. #define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[UIDevice currentDevice] systemVersion].floatValue >= [v floatValue])
  29. #define SYSTEM_RUNS_IOS8_OR_LATER SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0")
  30. #define SYSTEM_RUNS_IOS82_OR_LATER SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.2")
  31. #ifndef NDEBUG
  32. #define APLog(format, ...) NSLog(format, ## __VA_ARGS__)
  33. #else
  34. #define APLog(format, ...)
  35. #endif