2010-06-17 13:10:45 -04:00
|
|
|
#ifdef __OBJC__
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import <UIKit/UIKit.h>
|
2013-03-04 15:09:09 -08:00
|
|
|
#import "Underscore.h"
|
2015-12-07 16:09:49 -08:00
|
|
|
#import "Utilities.h"
|
|
|
|
#import "ThemeManager.h"
|
2013-09-30 12:13:10 -07:00
|
|
|
#import <SystemConfiguration/SystemConfiguration.h>
|
2020-03-27 20:42:33 -07:00
|
|
|
#import <CoreServices/CoreServices.h>
|
2013-03-04 15:09:09 -08:00
|
|
|
|
2018-04-14 21:26:03 -07:00
|
|
|
//#define DEBUG 1
|
2017-11-10 17:57:50 -08:00
|
|
|
//#define PROD_DEBUG 1
|
2013-07-18 18:24:38 -07:00
|
|
|
|
|
|
|
#ifdef DEBUG
|
2018-04-06 09:53:00 -04:00
|
|
|
#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
|
2018-04-06 09:53:00 -04:00
|
|
|
#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"]
|
2013-07-18 18:24:38 -07:00
|
|
|
#else
|
2018-04-06 09:53:00 -04:00
|
|
|
#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"]
|
2013-07-18 18:24:38 -07:00
|
|
|
#endif
|
|
|
|
|
2013-03-04 15:09:09 -08:00
|
|
|
#define _ Underscore
|
2015-12-07 16:09:49 -08:00
|
|
|
|
2013-07-10 15:57:19 -07: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
|