forked from shoutem/school
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Still works after Firebase core framework
- Loading branch information
Showing
9 changed files
with
318 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
38 changes: 38 additions & 0 deletions
38
ChatApp/ios/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
/** | ||
* This class provides configuration fields for Firebase Analytics. | ||
*/ | ||
@interface FIRAnalyticsConfiguration : NSObject | ||
|
||
/** | ||
* Returns the shared instance of FIRAnalyticsConfiguration. | ||
*/ | ||
+ (FIRAnalyticsConfiguration *)sharedInstance; | ||
|
||
/** | ||
* Sets the minimum engagement time in seconds required to start a new session. The default value | ||
* is 10 seconds. | ||
*/ | ||
- (void)setMinimumSessionInterval:(NSTimeInterval)minimumSessionInterval; | ||
|
||
/** | ||
* Sets the interval of inactivity in seconds that terminates the current session. The default | ||
* value is 1800 seconds (30 minutes). | ||
*/ | ||
- (void)setSessionTimeoutInterval:(NSTimeInterval)sessionTimeoutInterval; | ||
|
||
/** | ||
* Sets whether analytics collection is enabled for this app on this device. This setting is | ||
* persisted across app sessions. By default it is enabled. | ||
*/ | ||
- (void)setAnalyticsCollectionEnabled:(BOOL)analyticsCollectionEnabled; | ||
|
||
/** | ||
* Deprecated. Sets whether measurement and reporting are enabled for this app on this device. By | ||
* default they are enabled. | ||
*/ | ||
- (void)setIsEnabled:(BOOL)isEnabled | ||
DEPRECATED_MSG_ATTRIBUTE("Use setAnalyticsCollectionEnabled: instead."); | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
#import <Foundation/Foundation.h> | ||
#import <UIKit/UIKit.h> | ||
|
||
@class FIROptions; | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
/** A block that takes a BOOL and has no return value. */ | ||
typedef void (^FIRAppVoidBoolCallback)(BOOL success); | ||
|
||
/** | ||
* The entry point of Firebase SDKs. | ||
* | ||
* Initialize and configure FIRApp using +[FIRApp configure] | ||
* or other customized ways as shown below. | ||
* | ||
* The logging system has two modes: default mode and debug mode. In default mode, only logs with | ||
* log level Notice, Warning and Error will be sent to device. In debug mode, all logs will be sent | ||
* to device. The log levels that Firebase uses are consistent with the ASL log levels. | ||
* | ||
* Enable debug mode by passing the -FIRDebugEnabled argument to the application. You can add this | ||
* argument in the application's Xcode scheme. When debug mode is enabled via -FIRDebugEnabled, | ||
* further executions of the application will also be in debug mode. In order to return to default | ||
* mode, you must explicitly disable the debug mode with the application argument -FIRDebugDisabled. | ||
* | ||
* It is also possible to change the default logging level in code by calling setLoggerLevel: on | ||
* the FIRConfiguration interface. | ||
*/ | ||
@interface FIRApp : NSObject | ||
|
||
/** | ||
* Configures a default Firebase app. Raises an exception if any configuration step fails. The | ||
* default app is named "__FIRAPP_DEFAULT". This method should be called after the app is launched | ||
* and before using Firebase services. This method is thread safe. | ||
*/ | ||
+ (void)configure; | ||
|
||
/** | ||
* Configures the default Firebase app with the provided options. The default app is named | ||
* "__FIRAPP_DEFAULT". Raises an exception if any configuration step fails. This method is thread | ||
* safe. | ||
* | ||
* @param options The Firebase application options used to configure the service. | ||
*/ | ||
+ (void)configureWithOptions:(FIROptions *)options; | ||
|
||
/** | ||
* Configures a Firebase app with the given name and options. Raises an exception if any | ||
* configuration step fails. This method is thread safe. | ||
* | ||
* @param name The application's name given by the developer. The name should should only contain | ||
Letters, Numbers and Underscore. | ||
* @param options The Firebase application options used to configure the services. | ||
*/ | ||
+ (void)configureWithName:(NSString *)name options:(FIROptions *)options; | ||
|
||
/** | ||
* Returns the default app, or nil if the default app does not exist. | ||
*/ | ||
+ (nullable FIRApp *)defaultApp NS_SWIFT_NAME(defaultApp()); | ||
|
||
/** | ||
* Returns a previously created FIRApp instance with the given name, or nil if no such app exists. | ||
* This method is thread safe. | ||
*/ | ||
+ (nullable FIRApp *)appNamed:(NSString *)name; | ||
|
||
/** | ||
* Returns the set of all extant FIRApp instances, or nil if there are no FIRApp instances. This | ||
* method is thread safe. | ||
*/ | ||
+ (nullable NSDictionary *)allApps; | ||
|
||
/** | ||
* Cleans up the current FIRApp, freeing associated data and returning its name to the pool for | ||
* future use. This method is thread safe. | ||
*/ | ||
- (void)deleteApp:(FIRAppVoidBoolCallback)completion; | ||
|
||
/** | ||
* FIRApp instances should not be initialized directly. Call +[FIRApp configure], | ||
* +[FIRApp configureWithOptions:], or +[FIRApp configureWithNames:options:] directly. | ||
*/ | ||
- (instancetype)init NS_UNAVAILABLE; | ||
|
||
/** | ||
* Gets the name of this app. | ||
*/ | ||
@property(nonatomic, copy, readonly) NSString *name; | ||
|
||
/** | ||
* Gets the options for this app. | ||
*/ | ||
@property(nonatomic, readonly) FIROptions *options; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
52 changes: 52 additions & 0 deletions
52
ChatApp/ios/FirebaseCore.framework/Headers/FIRConfiguration.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
#import "FIRAnalyticsConfiguration.h" | ||
#import "FIRLoggerLevel.h" | ||
|
||
/** | ||
* The log levels used by FIRConfiguration. | ||
*/ | ||
typedef NS_ENUM(NSInteger, FIRLogLevel) { | ||
/** Error */ | ||
kFIRLogLevelError __deprecated = 0, | ||
/** Warning */ | ||
kFIRLogLevelWarning __deprecated, | ||
/** Info */ | ||
kFIRLogLevelInfo __deprecated, | ||
/** Debug */ | ||
kFIRLogLevelDebug __deprecated, | ||
/** Assert */ | ||
kFIRLogLevelAssert __deprecated, | ||
/** Max */ | ||
kFIRLogLevelMax __deprecated = kFIRLogLevelAssert | ||
} DEPRECATED_MSG_ATTRIBUTE( | ||
"Use -FIRDebugEnabled and -FIRDebugDisabled or setLoggerLevel. See FIRApp.h for more details."); | ||
|
||
/** | ||
* This interface provides global level properties that the developer can tweak, and the singleton | ||
* of the Firebase Analytics configuration class. | ||
*/ | ||
@interface FIRConfiguration : NSObject | ||
|
||
/** Returns the shared configuration object. */ | ||
+ (FIRConfiguration *)sharedInstance; | ||
|
||
/** The configuration class for Firebase Analytics. */ | ||
@property(nonatomic, readwrite) FIRAnalyticsConfiguration *analyticsConfiguration; | ||
|
||
/** Global log level. Defaults to kFIRLogLevelError. */ | ||
@property(nonatomic, readwrite, assign) FIRLogLevel logLevel DEPRECATED_MSG_ATTRIBUTE( | ||
"Use -FIRDebugEnabled and -FIRDebugDisabled or setLoggerLevel. See FIRApp.h for more details."); | ||
|
||
/** | ||
* Sets the logging level for internal Firebase logging. Firebase will only log messages | ||
* that are logged at or below loggerLevel. The messages are logged both to the Xcode | ||
* console and to the device's log. Note that if an app is running from AppStore, it will | ||
* never log above FIRLoggerLevelNotice even if loggerLevel is set to a higher (more verbose) | ||
* setting. | ||
* | ||
* @param loggerLevel The maximum logging level. The default level is set to FIRLoggerLevelNotice. | ||
*/ | ||
- (void)setLoggerLevel:(FIRLoggerLevel)loggerLevel; | ||
|
||
@end |
12 changes: 12 additions & 0 deletions
12
ChatApp/ios/FirebaseCore.framework/Headers/FIRLoggerLevel.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* The log levels used by internal logging. | ||
*/ | ||
typedef NS_ENUM(NSInteger, FIRLoggerLevel) { | ||
FIRLoggerLevelError = 3 /*ASL_LEVEL_ERR*/, | ||
FIRLoggerLevelWarning = 4 /*ASL_LEVEL_WARNING*/, | ||
FIRLoggerLevelNotice = 5 /*ASL_LEVEL_NOTICE*/, | ||
FIRLoggerLevelInfo = 6 /*ASL_LEVEL_INFO*/, | ||
FIRLoggerLevelDebug = 7 /*ASL_LEVEL_DEBUG*/, | ||
FIRLoggerLevelMin = FIRLoggerLevelError, | ||
FIRLoggerLevelMax = FIRLoggerLevelDebug | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
#import <Foundation/Foundation.h> | ||
|
||
/** | ||
* This class provides constant fields of Google APIs. | ||
*/ | ||
@interface FIROptions : NSObject<NSCopying> | ||
|
||
/** | ||
* Returns the default options. | ||
*/ | ||
+ (FIROptions *)defaultOptions; | ||
|
||
/** | ||
* An iOS API key used for authenticating requests from your app, e.g. | ||
* @"AIzaSyDdVgKwhZl0sTTTLZ7iTmt1r3N2cJLnaDk", used to identify your app to Google servers. | ||
*/ | ||
@property(nonatomic, readonly, copy) NSString *APIKey; | ||
|
||
/** | ||
* The OAuth2 client ID for iOS application used to authenticate Google users, for example | ||
* @"12345.apps.googleusercontent.com", used for signing in with Google. | ||
*/ | ||
@property(nonatomic, readonly, copy) NSString *clientID; | ||
|
||
/** | ||
* The tracking ID for Google Analytics, e.g. @"UA-12345678-1", used to configure Google Analytics. | ||
*/ | ||
@property(nonatomic, readonly, copy) NSString *trackingID; | ||
|
||
/** | ||
* The Project Number from the Google Developer's console, for example @"012345678901", used to | ||
* configure Google Cloud Messaging. | ||
*/ | ||
@property(nonatomic, readonly, copy) NSString *GCMSenderID; | ||
|
||
/** | ||
* The Project ID from the Firebase console, for example @"abc-xyz-123". Currently only populated | ||
* when using [FIROptions defaultOptions]. | ||
*/ | ||
@property(nonatomic, readonly, copy) NSString *projectID; | ||
|
||
/** | ||
* The Android client ID used in Google AppInvite when an iOS app has its Android version, for | ||
* example @"12345.apps.googleusercontent.com". | ||
*/ | ||
@property(nonatomic, readonly, copy) NSString *androidClientID; | ||
|
||
/** | ||
* The Google App ID that is used to uniquely identify an instance of an app. | ||
*/ | ||
@property(nonatomic, readonly, copy) NSString *googleAppID; | ||
|
||
/** | ||
* The database root URL, e.g. @"http://abc-xyz-123.firebaseio.com". | ||
*/ | ||
@property(nonatomic, readonly, copy) NSString *databaseURL; | ||
|
||
/** | ||
* The URL scheme used to set up Durable Deep Link service. | ||
*/ | ||
@property(nonatomic, readwrite, copy) NSString *deepLinkURLScheme; | ||
|
||
/** | ||
* The Google Cloud Storage bucket name, e.g. @"abc-xyz-123.storage.firebase.com". | ||
*/ | ||
@property(nonatomic, readonly, copy) NSString *storageBucket; | ||
|
||
/** | ||
* Initializes a customized instance of FIROptions with keys. googleAppID, bundleID and GCMSenderID | ||
* are required. Other keys may required for configuring specific services. | ||
*/ | ||
- (instancetype)initWithGoogleAppID:(NSString *)googleAppID | ||
bundleID:(NSString *)bundleID | ||
GCMSenderID:(NSString *)GCMSenderID | ||
APIKey:(NSString *)APIKey | ||
clientID:(NSString *)clientID | ||
trackingID:(NSString *)trackingID | ||
androidClientID:(NSString *)androidClientID | ||
databaseURL:(NSString *)databaseURL | ||
storageBucket:(NSString *)storageBucket | ||
deepLinkURLScheme:(NSString *)deepLinkURLScheme; | ||
|
||
/** | ||
* Initializes a customized instance of FIROptions from the file at the given plist file path. | ||
* For example, | ||
* NSString *filePath = | ||
* [[NSBundle mainBundle] pathForResource:@"GoogleService-Info" ofType:@"plist"]; | ||
* FIROptions *options = [[FIROptions alloc] initWithContentsOfFile:filePath]; | ||
* Returns nil if the plist file does not exist or is invalid. | ||
*/ | ||
- (instancetype)initWithContentsOfFile:(NSString *)plistPath; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#import "FIRAnalyticsConfiguration.h" | ||
#import "FIRApp.h" | ||
#import "FIRConfiguration.h" | ||
#import "FIRLoggerLevel.h" | ||
#import "FIROptions.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
framework module FirebaseCore { | ||
umbrella header "FirebaseCore.h" | ||
export * | ||
module * { export *} | ||
link "z" | ||
link framework "Foundation" | ||
link framework "UIKit" | ||
} |