forked from ObjectiveSeki/dragongoclient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Config.h
64 lines (53 loc) · 1.51 KB
/
Config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifdef __OBJC__
#import "TestFlight.h"
#import "Keys.h"
#endif
#define CACHING 1
#if defined (CONFIGURATION_Debug)
#define DEBUG 1
//#define DEVELOPMENT_DGS
#define PUSH_ENABLED
#define PUSH_HOST @"dgs.uberweiss.net:3000"
#define PUSH_USE_SSL NO
#define REMOTE_LOGGING
// set to '1' to see SGFs that test various aspects of
// the board view.
//#define TEST_GAMES 1
#endif
#if defined (CONFIGURATION_Adhoc)
#define TESTFLIGHT_UUID_TRACKING
#define PUSH_ENABLED
#define PUSH_HOST @"dgs.uberweiss.net"
#define PUSH_USE_SSL YES
#define REMOTE_LOGGING
#endif
#if defined (CONFIGURATION_Release)
#define PUSH_ENABLED
#define PUSH_HOST @"dgs.uberweiss.net"
#define PUSH_USE_SSL YES
#endif
#ifdef DEVELOPMENT_DGS
# define SERVER_CLASS @"DGSDev"
#else
# define SERVER_CLASS @"DGS"
#endif
#ifdef CACHING
# import "CachingGameServer.h"
# define GenericGameServer CachingGameServer
#else
# define GenericGameServer NSClassFromString(SERVER_CLASS)
#endif
// Wrap TestFlight calls in TF() to only call them when TestFlight keys are set
#ifdef TESTFLIGHT_APP_TOKEN
# define TF(testflight_call) { (testflight_call); }
# ifdef REMOTE_LOGGING
# define NSLog(__FORMAT__, ...) TFLog((@"%s [Line %d] " __FORMAT__), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
# endif
#else
# warning You must define TestFlight app tokens in Keys.h to get TestFlight functionality.
# define TF(...)
#endif
#if defined (CONFIGURATION_Release)
#define NSLog(...)
#endif
#define S(fmt, ...) [NSString stringWithFormat:(fmt), ##__VA_ARGS__]