VLC for iOS-Prefix.pch 1.41 KB
Newer Older
1 2 3 4
/*****************************************************************************
 * Prefix header for all source files of the 'vlc-ios' target
 * VLC for iOS
 *****************************************************************************
5
 * Copyright (c) 2013-2014 VideoLAN. All rights reserved.
6 7 8 9 10 11
 * $Id$
 *
 * Authors: Felix Paul Kühne <fkuehne # videolan.org>
 *
 * Refer to the COPYING file of the official project for license.
 *****************************************************************************/
Felix Paul Kühne's avatar
Felix Paul Kühne committed
12 13 14

#import <Availability.h>

Felix Paul Kühne's avatar
Felix Paul Kühne committed
15 16
#ifndef __IPHONE_8_2
#error "This project uses features only available in iOS SDK 8.2 and later."
Felix Paul Kühne's avatar
Felix Paul Kühne committed
17 18 19 20 21 22
#endif

#ifdef __OBJC__
    #import <UIKit/UIKit.h>
    #import <Foundation/Foundation.h>
#endif
23

24 25 26
#import <MobileVLCKit/MobileVLCKit.h>
#import <MediaLibraryKit/MediaLibraryKit.h>

27
#import "VLCConstants.h"
28
#import "UIColor+Presets.h"
29
#import "UIBarButtonItem+Theme.h"
30
#import "VLCAlertView.h"
31

32 33
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v)  ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)

Felix Paul Kühne's avatar
Felix Paul Kühne committed
34
#define SYSTEM_RUNS_IOS7_OR_LATER SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")
35

36 37
#define SYSTEM_RUNS_IOS8_OR_LATER SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0")

Felix Paul Kühne's avatar
Felix Paul Kühne committed
38 39
#define SYSTEM_RUNS_IOS82_OR_LATER SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.2")

40 41 42 43
#ifndef NDEBUG
#define APLog(format, ...) NSLog(format, ## __VA_ARGS__)
#else
#define APLog(format, ...)
44
#endif