diff options
author | Chen Liang <chliang@google.com> | 2018-07-09 14:33:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-09 14:33:41 -0700 |
commit | 954e4d5df13b14aee9c1112db67a23729d12acfd (patch) | |
tree | debab82666deb5d7ff1e99d55f5dba749db1ffb1 /Firebase/Messaging/FIRMessagingUtilities.h | |
parent | bd69fae81077dd1107e4abe8a8722cb3d8a5fb29 (diff) |
avoid calling [UIApplication sharedApplication] in app extensions (#1503)
Diffstat (limited to 'Firebase/Messaging/FIRMessagingUtilities.h')
-rw-r--r-- | Firebase/Messaging/FIRMessagingUtilities.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Firebase/Messaging/FIRMessagingUtilities.h b/Firebase/Messaging/FIRMessagingUtilities.h index 45770bf..206ff07 100644 --- a/Firebase/Messaging/FIRMessagingUtilities.h +++ b/Firebase/Messaging/FIRMessagingUtilities.h @@ -14,7 +14,7 @@ * limitations under the License. */ -#import <Foundation/Foundation.h> +#import <UIKit/UIKit.h> typedef NS_ENUM(int8_t, FIRMessagingProtoTag) { kFIRMessagingProtoTagInvalid = -1, @@ -51,4 +51,8 @@ FOUNDATION_EXPORT int64_t FIRMessagingCurrentTimestampInMilliseconds(void); FOUNDATION_EXPORT NSString *FIRMessagingCurrentAppVersion(void); FOUNDATION_EXPORT NSString *FIRMessagingAppIdentifier(void); +#pragma mark - Others + FOUNDATION_EXPORT uint64_t FIRMessagingGetFreeDiskSpaceInMB(void); +FOUNDATION_EXPORT UIApplication *FIRMessagingUIApplication(void); + |