diff options
Diffstat (limited to 'Firebase/Core/Private')
-rw-r--r-- | Firebase/Core/Private/FIRMutableDictionary.h | 46 | ||||
-rw-r--r-- | Firebase/Core/Private/FIRNetwork.h | 87 | ||||
-rw-r--r-- | Firebase/Core/Private/FIRNetworkConstants.h | 75 | ||||
-rw-r--r-- | Firebase/Core/Private/FIRNetworkLoggerProtocol.h | 50 | ||||
-rw-r--r-- | Firebase/Core/Private/FIRNetworkMessageCode.h | 52 | ||||
-rw-r--r-- | Firebase/Core/Private/FIRNetworkURLSession.h | 60 | ||||
-rw-r--r-- | Firebase/Core/Private/FIRReachabilityChecker+Internal.h | 47 | ||||
-rw-r--r-- | Firebase/Core/Private/FIRReachabilityChecker.h | 83 | ||||
-rw-r--r-- | Firebase/Core/Private/FIRVersion.h | 4 |
9 files changed, 2 insertions, 502 deletions
diff --git a/Firebase/Core/Private/FIRMutableDictionary.h b/Firebase/Core/Private/FIRMutableDictionary.h deleted file mode 100644 index 6829dbc..0000000 --- a/Firebase/Core/Private/FIRMutableDictionary.h +++ /dev/null @@ -1,46 +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> - -/// A mutable dictionary that provides atomic accessor and mutators. -@interface FIRMutableDictionary : NSObject - -/// Returns an object given a key in the dictionary or nil if not found. -- (id)objectForKey:(id)key; - -/// Updates the object given its key or adds it to the dictionary if it is not in the dictionary. -- (void)setObject:(id)object forKey:(id<NSCopying>)key; - -/// Removes the object given its session ID from the dictionary. -- (void)removeObjectForKey:(id)key; - -/// Removes all objects. -- (void)removeAllObjects; - -/// Returns the number of current objects in the dictionary. -- (NSUInteger)count; - -/// Returns an object given a key in the dictionary or nil if not found. -- (id)objectForKeyedSubscript:(id<NSCopying>)key; - -/// Updates the object given its key or adds it to the dictionary if it is not in the dictionary. -- (void)setObject:(id)obj forKeyedSubscript:(id<NSCopying>)key; - -/// Returns the immutable dictionary. -- (NSDictionary *)dictionary; - -@end diff --git a/Firebase/Core/Private/FIRNetwork.h b/Firebase/Core/Private/FIRNetwork.h deleted file mode 100644 index 32be35a..0000000 --- a/Firebase/Core/Private/FIRNetwork.h +++ /dev/null @@ -1,87 +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> - -#import "FIRNetworkConstants.h" -#import "FIRNetworkLoggerProtocol.h" -#import "FIRNetworkURLSession.h" - -/// Delegate protocol for FIRNetwork events. -@protocol FIRNetworkReachabilityDelegate - -/// Tells the delegate to handle events when the network reachability changes to connected or not -/// connected. -- (void)reachabilityDidChange; - -@end - -/// The Network component that provides network status and handles network requests and responses. -/// This is not thread safe. -/// -/// NOTE: -/// User must add FIRAnalytics handleEventsForBackgroundURLSessionID:completionHandler to the -/// AppDelegate application:handleEventsForBackgroundURLSession:completionHandler: -@interface FIRNetwork : NSObject - -/// Indicates if network connectivity is available. -@property(nonatomic, readonly, getter=isNetworkConnected) BOOL networkConnected; - -/// Indicates if there are any uploads in progress. -@property(nonatomic, readonly, getter=hasUploadInProgress) BOOL uploadInProgress; - -/// An optional delegate that can be used in the event when network reachability changes. -@property(nonatomic, weak) id<FIRNetworkReachabilityDelegate> reachabilityDelegate; - -/// An optional delegate that can be used to log messages, warnings or errors that occur in the -/// network operations. -@property(nonatomic, weak) id<FIRNetworkLoggerDelegate> loggerDelegate; - -/// Indicates whether the logger should display debug messages. -@property(nonatomic, assign) BOOL isDebugModeEnabled; - -/// The time interval in seconds for the network request to timeout. -@property(nonatomic, assign) NSTimeInterval timeoutInterval; - -/// Initializes with the default reachability host. -- (instancetype)init; - -/// Initializes with a custom reachability host. -- (instancetype)initWithReachabilityHost:(NSString *)reachabilityHost; - -/// Handles events when background session with the given ID has finished. -+ (void)handleEventsForBackgroundURLSessionID:(NSString *)sessionID - completionHandler:(FIRNetworkSystemCompletionHandler)completionHandler; - -/// Compresses and sends a POST request with the provided data to the URL. The session will be -/// background session if usingBackgroundSession is YES. Otherwise, the POST session is default -/// session. Returns a session ID or nil if an error occurs. -- (NSString *)postURL:(NSURL *)url - payload:(NSData *)payload - queue:(dispatch_queue_t)queue - usingBackgroundSession:(BOOL)usingBackgroundSession - completionHandler:(FIRNetworkCompletionHandler)handler; - -/// Sends a GET request with the provided data to the URL. The session will be background session -/// if usingBackgroundSession is YES. Otherwise, the GET session is default session. Returns a -/// session ID or nil if an error occurs. -- (NSString *)getURL:(NSURL *)url - headers:(NSDictionary *)headers - queue:(dispatch_queue_t)queue - usingBackgroundSession:(BOOL)usingBackgroundSession - completionHandler:(FIRNetworkCompletionHandler)handler; - -@end diff --git a/Firebase/Core/Private/FIRNetworkConstants.h b/Firebase/Core/Private/FIRNetworkConstants.h deleted file mode 100644 index d318581..0000000 --- a/Firebase/Core/Private/FIRNetworkConstants.h +++ /dev/null @@ -1,75 +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> - -/// Error codes in Firebase Network error domain. -/// Note: these error codes should never change. It would make it harder to decode the errors if -/// we inadvertently altered any of these codes in a future SDK version. -typedef NS_ENUM(NSInteger, FIRNetworkErrorCode) { - /// Unknown error. - FIRNetworkErrorCodeUnknown = 0, - /// Error occurs when the request URL is invalid. - FIRErrorCodeNetworkInvalidURL = 1, - /// Error occurs when request cannot be constructed. - FIRErrorCodeNetworkRequestCreation = 2, - /// Error occurs when payload cannot be compressed. - FIRErrorCodeNetworkPayloadCompression = 3, - /// Error occurs when session task cannot be created. - FIRErrorCodeNetworkSessionTaskCreation = 4, - /// Error occurs when there is no response. - FIRErrorCodeNetworkInvalidResponse = 5 -}; - -#pragma mark - Network constants - -/// The prefix of the ID of the background session. -extern NSString *const kFIRNetworkBackgroundSessionConfigIDPrefix; - -/// The sub directory to store the files of data that is being uploaded in the background. -extern NSString *const kFIRNetworkApplicationSupportSubdirectory; - -/// Name of the temporary directory that stores files for background uploading. -extern NSString *const kFIRNetworkTempDirectoryName; - -/// The period when the temporary uploading file can stay. -extern const NSTimeInterval kFIRNetworkTempFolderExpireTime; - -/// The default network request timeout interval. -extern const NSTimeInterval kFIRNetworkTimeOutInterval; - -/// The host to check the reachability of the network. -extern NSString *const kFIRNetworkReachabilityHost; - -/// The key to get the error context of the UserInfo. -extern NSString *const kFIRNetworkErrorContext; - -#pragma mark - Network Status Code - -extern const int kFIRNetworkHTTPStatusOK; -extern const int kFIRNetworkHTTPStatusNoContent; -extern const int kFIRNetworkHTTPStatusCodeMultipleChoices; -extern const int kFIRNetworkHTTPStatusCodeMovedPermanently; -extern const int kFIRNetworkHTTPStatusCodeFound; -extern const int kFIRNetworkHTTPStatusCodeNotModified; -extern const int kFIRNetworkHTTPStatusCodeMovedTemporarily; -extern const int kFIRNetworkHTTPStatusCodeNotFound; -extern const int kFIRNetworkHTTPStatusCodeCannotAcceptTraffic; -extern const int kFIRNetworkHTTPStatusCodeUnavailable; - -#pragma mark - Error Domain - -extern NSString *const kFIRNetworkErrorDomain; diff --git a/Firebase/Core/Private/FIRNetworkLoggerProtocol.h b/Firebase/Core/Private/FIRNetworkLoggerProtocol.h deleted file mode 100644 index add70fc..0000000 --- a/Firebase/Core/Private/FIRNetworkLoggerProtocol.h +++ /dev/null @@ -1,50 +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> - -#import "FIRLoggerLevel.h" -#import "FIRNetworkMessageCode.h" - -/// The log levels used by FIRNetworkLogger. -typedef NS_ENUM(NSInteger, FIRNetworkLogLevel) { - kFIRNetworkLogLevelError = FIRLoggerLevelError, - kFIRNetworkLogLevelWarning = FIRLoggerLevelWarning, - kFIRNetworkLogLevelInfo = FIRLoggerLevelInfo, - kFIRNetworkLogLevelDebug = FIRLoggerLevelDebug, -}; - -@protocol FIRNetworkLoggerDelegate <NSObject> - -@required -/// Tells the delegate to log a message with an array of contexts and the log level. -- (void)firNetwork_logWithLevel:(FIRNetworkLogLevel)logLevel - messageCode:(FIRNetworkMessageCode)messageCode - message:(NSString *)message - contexts:(NSArray *)contexts; - -/// Tells the delegate to log a message with a context and the log level. -- (void)firNetwork_logWithLevel:(FIRNetworkLogLevel)logLevel - messageCode:(FIRNetworkMessageCode)messageCode - message:(NSString *)message - context:(id)context; - -/// Tells the delegate to log a message with the log level. -- (void)firNetwork_logWithLevel:(FIRNetworkLogLevel)logLevel - messageCode:(FIRNetworkMessageCode)messageCode - message:(NSString *)message; - -@end diff --git a/Firebase/Core/Private/FIRNetworkMessageCode.h b/Firebase/Core/Private/FIRNetworkMessageCode.h deleted file mode 100644 index 30f562f..0000000 --- a/Firebase/Core/Private/FIRNetworkMessageCode.h +++ /dev/null @@ -1,52 +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. - */ - -// Make sure these codes do not overlap with any contained in the FIRAMessageCode enum. -typedef NS_ENUM(NSInteger, FIRNetworkMessageCode) { - // FIRNetwork.m - kFIRNetworkMessageCodeNetwork000 = 900000, // I-NET900000 - kFIRNetworkMessageCodeNetwork001 = 900001, // I-NET900001 - kFIRNetworkMessageCodeNetwork002 = 900002, // I-NET900002 - kFIRNetworkMessageCodeNetwork003 = 900003, // I-NET900003 - // FIRNetworkURLSession.m - kFIRNetworkMessageCodeURLSession000 = 901000, // I-NET901000 - kFIRNetworkMessageCodeURLSession001 = 901001, // I-NET901001 - kFIRNetworkMessageCodeURLSession002 = 901002, // I-NET901002 - kFIRNetworkMessageCodeURLSession003 = 901003, // I-NET901003 - kFIRNetworkMessageCodeURLSession004 = 901004, // I-NET901004 - kFIRNetworkMessageCodeURLSession005 = 901005, // I-NET901005 - kFIRNetworkMessageCodeURLSession006 = 901006, // I-NET901006 - kFIRNetworkMessageCodeURLSession007 = 901007, // I-NET901007 - kFIRNetworkMessageCodeURLSession008 = 901008, // I-NET901008 - kFIRNetworkMessageCodeURLSession009 = 901009, // I-NET901009 - kFIRNetworkMessageCodeURLSession010 = 901010, // I-NET901010 - kFIRNetworkMessageCodeURLSession011 = 901011, // I-NET901011 - kFIRNetworkMessageCodeURLSession012 = 901012, // I-NET901012 - kFIRNetworkMessageCodeURLSession013 = 901013, // I-NET901013 - kFIRNetworkMessageCodeURLSession014 = 901014, // I-NET901014 - kFIRNetworkMessageCodeURLSession015 = 901015, // I-NET901015 - kFIRNetworkMessageCodeURLSession016 = 901016, // I-NET901016 - kFIRNetworkMessageCodeURLSession017 = 901017, // I-NET901017 - kFIRNetworkMessageCodeURLSession018 = 901018, // I-NET901018 - // FIRReachabilityChecker.m - kFIRNetworkMessageCodeReachabilityChecker000 = 902000, // I-NET902000 - kFIRNetworkMessageCodeReachabilityChecker001 = 902001, // I-NET902001 - kFIRNetworkMessageCodeReachabilityChecker002 = 902002, // I-NET902002 - kFIRNetworkMessageCodeReachabilityChecker003 = 902003, // I-NET902003 - kFIRNetworkMessageCodeReachabilityChecker004 = 902004, // I-NET902004 - kFIRNetworkMessageCodeReachabilityChecker005 = 902005, // I-NET902005 - kFIRNetworkMessageCodeReachabilityChecker006 = 902006, // I-NET902006 -}; diff --git a/Firebase/Core/Private/FIRNetworkURLSession.h b/Firebase/Core/Private/FIRNetworkURLSession.h deleted file mode 100644 index a51b8a9..0000000 --- a/Firebase/Core/Private/FIRNetworkURLSession.h +++ /dev/null @@ -1,60 +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> - -#import "FIRNetworkLoggerProtocol.h" - -typedef void (^FIRNetworkCompletionHandler)(NSHTTPURLResponse *response, - NSData *data, - NSError *error); -typedef void (^FIRNetworkURLSessionCompletionHandler)(NSHTTPURLResponse *response, - NSData *data, - NSString *sessionID, - NSError *error); -typedef void (^FIRNetworkSystemCompletionHandler)(void); - -/// The protocol that uses NSURLSession for iOS >= 7.0 to handle requests and responses. -@interface FIRNetworkURLSession - : NSObject <NSURLSessionDelegate, NSURLSessionTaskDelegate, NSURLSessionDownloadDelegate> - -/// Indicates whether the background network is enabled. Default value is NO. -@property(nonatomic, getter=isBackgroundNetworkEnabled) BOOL backgroundNetworkEnabled; - -/// The logger delegate to log message, errors or warnings that occur during the network operations. -@property(nonatomic, weak) id<FIRNetworkLoggerDelegate> loggerDelegate; - -/// Calls the system provided completion handler after the background session is finished. -+ (void)handleEventsForBackgroundURLSessionID:(NSString *)sessionID - completionHandler:(FIRNetworkSystemCompletionHandler)completionHandler; - -/// Initializes with logger delegate. -- (instancetype)initWithNetworkLoggerDelegate:(id<FIRNetworkLoggerDelegate>)networkLoggerDelegate - NS_DESIGNATED_INITIALIZER; - -- (instancetype)init NS_UNAVAILABLE; - -/// Sends an asynchronous POST request and calls the provided completion handler when the request -/// completes or when errors occur, and returns an ID of the session/connection. -- (NSString *)sessionIDFromAsyncPOSTRequest:(NSURLRequest *)request - completionHandler:(FIRNetworkURLSessionCompletionHandler)handler; - -/// Sends an asynchronous GET request and calls the provided completion handler when the request -/// completes or when errors occur, and returns an ID of the session. -- (NSString *)sessionIDFromAsyncGETRequest:(NSURLRequest *)request - completionHandler:(FIRNetworkURLSessionCompletionHandler)handler; - -@end diff --git a/Firebase/Core/Private/FIRReachabilityChecker+Internal.h b/Firebase/Core/Private/FIRReachabilityChecker+Internal.h deleted file mode 100644 index f82d103..0000000 --- a/Firebase/Core/Private/FIRReachabilityChecker+Internal.h +++ /dev/null @@ -1,47 +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 "FIRReachabilityChecker.h" - -typedef SCNetworkReachabilityRef (*FIRReachabilityCreateWithNameFn)(CFAllocatorRef allocator, - const char *host); - -typedef Boolean (*FIRReachabilitySetCallbackFn)(SCNetworkReachabilityRef target, - SCNetworkReachabilityCallBack callback, - SCNetworkReachabilityContext *context); -typedef Boolean (*FIRReachabilityScheduleWithRunLoopFn)(SCNetworkReachabilityRef target, - CFRunLoopRef runLoop, - CFStringRef runLoopMode); -typedef Boolean (*FIRReachabilityUnscheduleFromRunLoopFn)(SCNetworkReachabilityRef target, - CFRunLoopRef runLoop, - CFStringRef runLoopMode); - -typedef void (*FIRReachabilityReleaseFn)(CFTypeRef cf); - -struct FIRReachabilityApi { - FIRReachabilityCreateWithNameFn createWithNameFn; - FIRReachabilitySetCallbackFn setCallbackFn; - FIRReachabilityScheduleWithRunLoopFn scheduleWithRunLoopFn; - FIRReachabilityUnscheduleFromRunLoopFn unscheduleFromRunLoopFn; - FIRReachabilityReleaseFn releaseFn; -}; - -@interface FIRReachabilityChecker (Internal) - -- (const struct FIRReachabilityApi *)reachabilityApi; -- (void)setReachabilityApi:(const struct FIRReachabilityApi *)reachabilityApi; - -@end diff --git a/Firebase/Core/Private/FIRReachabilityChecker.h b/Firebase/Core/Private/FIRReachabilityChecker.h deleted file mode 100644 index 3a6a531..0000000 --- a/Firebase/Core/Private/FIRReachabilityChecker.h +++ /dev/null @@ -1,83 +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> -#import <SystemConfiguration/SystemConfiguration.h> - -/// Reachability Status -typedef enum { - kFIRReachabilityUnknown, ///< Have not yet checked or been notified whether host is reachable. - kFIRReachabilityNotReachable, ///< Host is not reachable. - kFIRReachabilityViaWifi, ///< Host is reachable via Wifi. - kFIRReachabilityViaCellular, ///< Host is reachable via cellular. -} FIRReachabilityStatus; - -const NSString *FIRReachabilityStatusString(FIRReachabilityStatus status); - -@class FIRReachabilityChecker; -@protocol FIRNetworkLoggerDelegate; - -/// Google Analytics iOS Reachability Checker. -@protocol FIRReachabilityDelegate -@required -/// Called when network status has changed. -- (void)reachability:(FIRReachabilityChecker *)reachability - statusChanged:(FIRReachabilityStatus)status; -@end - -/// Google Analytics iOS Network Status Checker. -@interface FIRReachabilityChecker : NSObject - -/// The last known reachability status, or FIRReachabilityStatusUnknown if the -/// checker is not active. -@property(nonatomic, readonly) FIRReachabilityStatus reachabilityStatus; -/// The host to which reachability status is to be checked. -@property(nonatomic, copy, readonly) NSString *host; -/// The delegate to be notified of reachability status changes. -@property(nonatomic, weak) id<FIRReachabilityDelegate> reachabilityDelegate; -/// The delegate to be notified to log messages. -@property(nonatomic, weak) id<FIRNetworkLoggerDelegate> loggerDelegate; -/// `YES` if the reachability checker is active, `NO` otherwise. -@property(nonatomic, readonly) BOOL isActive; - -/// Initialize the reachability checker. Note that you must call start to begin checking for and -/// receiving notifications about network status changes. -/// -/// @param reachabilityDelegate The delegate to be notified when reachability status to host -/// changes. -/// -/// @param loggerDelegate The delegate to send log messages to. -/// -/// @param host The name of the host. -/// -- (instancetype)initWithReachabilityDelegate:(id<FIRReachabilityDelegate>)reachabilityDelegate - loggerDelegate:(id<FIRNetworkLoggerDelegate>)loggerDelegate - withHost:(NSString *)host; - -- (instancetype)init NS_UNAVAILABLE; - -/// Start checking for reachability to the specified host. This has no effect if the status -/// checker is already checking for connectivity. -/// -/// @return `YES` if initiating status checking was successful or the status checking has already -/// been initiated, `NO` otherwise. -- (BOOL)start; - -/// Stop checking for reachability to the specified host. This has no effect if the status -/// checker is not checking for connectivity. -- (void)stop; - -@end diff --git a/Firebase/Core/Private/FIRVersion.h b/Firebase/Core/Private/FIRVersion.h index cec0994..226efb1 100644 --- a/Firebase/Core/Private/FIRVersion.h +++ b/Firebase/Core/Private/FIRVersion.h @@ -17,7 +17,7 @@ #import <Foundation/Foundation.h> /** The version of the Firebase SDK. */ -FOUNDATION_EXPORT const unsigned char *const FIRVersionString; +FOUNDATION_EXPORT const char *const FIRVersionString; /** The version of the FirebaseCore Component. */ -FOUNDATION_EXPORT const unsigned char *const FIRCoreVersionString; +FOUNDATION_EXPORT const char *const FIRCoreVersionString; |