Archived
Configured colours and added additional images to ready app for iOS 13 dark mode
This commit is contained in:
+1
-38
@@ -17,16 +17,6 @@
|
||||
#ifndef FIRMessaging_xcodeproj_FIRMessagingDefines_h
|
||||
#define FIRMessaging_xcodeproj_FIRMessagingDefines_h
|
||||
|
||||
#define _FIRMessaging_VERBOSE_LOGGING 1
|
||||
|
||||
// Verbose Logging
|
||||
#if (_FIRMessaging_VERBOSE_LOGGING)
|
||||
#define FIRMessaging_DEV_VERBOSE_LOG(...) NSLog(__VA_ARGS__)
|
||||
#else
|
||||
#define FIRMessaging_DEV_VERBOSE_LOG(...) do { } while (0)
|
||||
#endif // FIRMessaging_VERBOSE_LOGGING
|
||||
|
||||
|
||||
// WEAKIFY & STRONGIFY
|
||||
// Helper macro.
|
||||
#define _FIRMessaging_WEAKNAME(VAR) VAR ## _weak_
|
||||
@@ -40,45 +30,18 @@ __strong __typeof__(VAR) VAR = _FIRMessaging_WEAKNAME(VAR); \
|
||||
_Pragma("clang diagnostic pop")
|
||||
|
||||
|
||||
// Type Conversions (used for NSInteger etc)
|
||||
#ifndef _FIRMessaging_L
|
||||
#define _FIRMessaging_L(v) (long)(v)
|
||||
#endif
|
||||
|
||||
#ifndef _FIRMessaging_UL
|
||||
#define _FIRMessaging_UL(v) (unsigned long)(v)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// Debug Assert
|
||||
#ifndef _FIRMessagingDevAssert
|
||||
// we directly invoke the NSAssert handler so we can pass on the varargs
|
||||
// (NSAssert doesn't have a macro we can use that takes varargs)
|
||||
#ifdef DEBUG
|
||||
#define _FIRMessagingDevAssert(condition, ...) \
|
||||
do { \
|
||||
if (!(condition)) { \
|
||||
[[NSAssertionHandler currentHandler] \
|
||||
handleFailureInFunction:(NSString *) \
|
||||
[NSString stringWithUTF8String:__PRETTY_FUNCTION__] \
|
||||
file:(NSString *)[NSString stringWithUTF8String:__FILE__] \
|
||||
lineNumber:__LINE__ \
|
||||
description:__VA_ARGS__]; \
|
||||
} \
|
||||
} while(0)
|
||||
#else // !defined(DEBUG)
|
||||
#define _FIRMessagingDevAssert(condition, ...) do { } while (0)
|
||||
#endif // !defined(DEBUG)
|
||||
|
||||
#endif // _FIRMessagingDevAssert
|
||||
|
||||
// Invalidates the initializer from which it's called.
|
||||
#ifndef FIRMessagingInvalidateInitializer
|
||||
#define FIRMessagingInvalidateInitializer() \
|
||||
do { \
|
||||
[self class]; /* Avoid warning of dead store to |self|. */ \
|
||||
_FIRMessagingDevAssert(NO, @"Invalid initializer."); \
|
||||
NSAssert(NO, @"Invalid initializer."); \
|
||||
return nil; \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user