aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase
diff options
context:
space:
mode:
authorGravatar Ryan Wilson <wilsonryan@google.com>2018-01-04 14:21:23 -0500
committerGravatar Ryan Wilson <wilsonryan@google.com>2018-04-09 12:16:57 -0400
commitd7e2e99f1bd368e1cad2d596bfe5b09273a19873 (patch)
tree372c207345192ab8eab3dfb6e0446b18062f0bee /Firebase
parentb8fdf488334da608d701117330692e60376e6fbd (diff)
Move to NSProcessInfo for systemVersion. (#614)
When supporting iOS 8 and above, we can now safely use NSProcessInfo on iOS as well as the Mac. This removes a dependency on UIKit for Core.
Diffstat (limited to 'Firebase')
-rw-r--r--Firebase/Core/third_party/FIRAppEnvironmentUtil.m7
1 files changed, 0 insertions, 7 deletions
diff --git a/Firebase/Core/third_party/FIRAppEnvironmentUtil.m b/Firebase/Core/third_party/FIRAppEnvironmentUtil.m
index 90e66f0..faee38b 100644
--- a/Firebase/Core/third_party/FIRAppEnvironmentUtil.m
+++ b/Firebase/Core/third_party/FIRAppEnvironmentUtil.m
@@ -13,9 +13,6 @@
// limitations under the License.
#import <Foundation/Foundation.h>
-#if TARGET_OS_IOS || TARGET_OS_TV
-#import <UIKit/UIKit.h>
-#endif
#import "FIRAppEnvironmentUtil.h"
@@ -207,11 +204,7 @@ static BOOL isAppEncrypted() {
}
+ (NSString *)systemVersion {
- #if TARGET_OS_IOS || TARGET_OS_TV
- return [UIDevice currentDevice].systemVersion;
- #elif TARGET_OS_OSX
return [NSProcessInfo processInfo].operatingSystemVersionString;
- #endif
}
+ (BOOL)isAppExtension {