NewsBlur/clients/ios/NewsBlur_Prefix.pch

36 lines
1.8 KiB
Text
Raw Normal View History

#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "Underscore.h"
2015-12-07 16:09:49 -08:00
#import "Utilities.h"
#import "ThemeManager.h"
#import <SystemConfiguration/SystemConfiguration.h>
#import <CoreServices/CoreServices.h>
2018-04-14 21:26:03 -07:00
//#define DEBUG 1
2017-11-10 17:57:50 -08:00
//#define PROD_DEBUG 1
#ifdef DEBUG
#define BACKGROUND_REFRESH_SECONDS 5
2016-01-21 22:11:37 -08:00
#define DEFAULT_NEWSBLUR_URL [NSString stringWithFormat:@"http://nb.local.com"]
#define DEFAULT_ICONS_HOST [NSString stringWithFormat:@"http://nb.local.com/rss_feeds/icon"]
2014-02-07 14:15:55 -08:00
#elif PROD_DEBUG
#define BACKGROUND_REFRESH_SECONDS 5
2016-01-21 22:11:37 -08:00
#define DEFAULT_NEWSBLUR_URL [NSString stringWithFormat:@"http://debug.newsblur.com"]
#define DEFAULT_ICONS_HOST [NSString stringWithFormat:@"https://s3.amazonaws.com/icons.newsblur.com"]
#else
#define BACKGROUND_REFRESH_SECONDS 10*60
2016-01-21 22:11:37 -08:00
#define DEFAULT_NEWSBLUR_URL [NSString stringWithFormat:@"https://www.newsblur.com"]
#define DEFAULT_ICONS_HOST [NSString stringWithFormat:@"https://s3.amazonaws.com/icons.newsblur.com"]
#endif
#define _ Underscore
2015-12-07 16:09:49 -08:00
#define SYSTEM_VERSION_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame)
#define SYSTEM_VERSION_GREATER_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending)
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
#define SYSTEM_VERSION_LESS_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending)
#define SYSTEM_VERSION_LESS_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedDescending)
2015-12-07 16:09:49 -08:00
#endif