VLC for iOS-Prefix.pch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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_8_2
  14. #error "This project uses features only available in iOS SDK 8.2 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. #define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
  28. #define SYSTEM_RUNS_IOS8_OR_LATER SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0")
  29. #define SYSTEM_RUNS_IOS82_OR_LATER SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.2")
  30. #ifndef NDEBUG
  31. #define APLog(format, ...) NSLog(format, ## __VA_ARGS__)
  32. #else
  33. #define APLog(format, ...)
  34. #endif