diff options
author | Paul Beusterien <paulbeusterien@google.com> | 2017-06-20 13:32:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-20 13:32:03 -0700 |
commit | f5cabf4feb54fe39940873fe9a7de8c98c4d1bb2 (patch) | |
tree | 45b474eff6bb19306bdbb8c1ff771f011fcfbe32 /Firebase/Core/Private | |
parent | cf5604218c04aa559e4e975f79c5b9beed9c9b45 (diff) |
Move FIRAppEnvironmentUtil.m to third_party directory (#89)
Diffstat (limited to 'Firebase/Core/Private')
-rw-r--r-- | Firebase/Core/Private/FIRAppEnvironmentUtil.h | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/Firebase/Core/Private/FIRAppEnvironmentUtil.h b/Firebase/Core/Private/FIRAppEnvironmentUtil.h deleted file mode 100644 index 7ae9827..0000000 --- a/Firebase/Core/Private/FIRAppEnvironmentUtil.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2017 Google - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#import <Foundation/Foundation.h> - -#if TARGET_OS_IOS -#import <UIKit/UIKit.h> -#elif TARGET_OS_OSX -#import <AppKit/AppKit.h> -#endif - -@interface FIRAppEnvironmentUtil : NSObject - -/// Indicates whether the app is from Apple Store or not. Returns NO if the app is on simulator, -/// development environment or sideloaded. -+ (BOOL)isFromAppStore; - -/// Indicates whether the app is a Testflight app. Returns YES if the app has sandbox receipt. -/// Returns NO otherwise. -+ (BOOL)isAppStoreReceiptSandbox; - -/// Indicates whether the app is on simulator or not at runtime depending on the device -/// architecture. -+ (BOOL)isSimulator; - -/// The current device model. Returns an empty string if device model cannot be retrieved. -+ (NSString *)deviceModel; - -/// The current operating system version. Returns an empty string if the system version cannot be -/// retrieved. -+ (NSString *)systemVersion; - -/// Indicates whether it is running inside an extension or an app. -+ (BOOL)isAppExtension; - -#if TARGET_OS_IOS -/// Returns the [UIApplication sharedApplication] if it is running on an app, not an extension. -+ (UIApplication *)sharedApplication; -#elif TARGET_OS_OSX -/// Returns the [NSApplication sharedApplication]. -+ (NSApplication *)sharedApplication; -#endif - -@end |