mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-11 22:55:59 +05:45
* Private header exposed to internal Swift impl via private module
* Include all non-public headers in private module map
* Add TODO and #if out import
* Prefer <...> imports and fix API visibility. See more...
- The private module map enables us to selectively expose non-public
headers to Swift. Now, the internal APIs that were made public for the
sake of exposing to Swift can be made internal again. Swift files that
need access to non-public API should do the following:
@_implementationOnly import FirebaseAuth_Private
- Additionally, any public header imported into a non-public header
needs to use <...> syntax because the header is technically coming
from a different module (FirebaseAuth rather than FirebaseAuth_Private).
* Fix import typo
* Style
* More progress. Building for CocoaPods. Not for SPM
* Remove 'MyPrivateClass.h'
* Generate private module map
* Generate private module map followup
* Re-enable testing spec
* Style
* Remove unneeded module.modulemap
* Revert "Remove unneeded module.modulemap"
This reverts commit 3ac44c3570.
* Adjust header import since FIRAuthBackend was moved
* Get library building on iOS
* Builds on iOS
* Revert private module map and update gitignore
* Add TODO
* Wrap FirebaseAuth_Private import with #if COCOAPODS
* Modularize script with arg[0] for podspec name
* Generalize script more and remove private module map
* Revert unintentionally checked in changes
* re-style @objc(...) qualifier
* Fix check
* Fix SPM build
* Change API back to what it was originally
* Fix copyright
* Better error handling in script
77 lines
2.6 KiB
Objective-C
77 lines
2.6 KiB
Objective-C
/*
|
|
* 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 <TargetConditionals.h>
|
|
#if !TARGET_OS_OSX && !TARGET_OS_WATCH
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <UIKit/UIKit.h>
|
|
|
|
@class FIRAuthAppCredentialManager;
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
/** @typedef FIRAuthNotificationForwardingCallback
|
|
@brief The type of block to receive whether or not remote notifications are being forwarded.
|
|
@param isNotificationBeingForwarded Whether or not remote notifications are being forwarded.
|
|
*/
|
|
typedef void (^FIRAuthNotificationForwardingCallback)(BOOL isNotificationBeingForwarded);
|
|
|
|
/** @class FIRAuthNotificationManager
|
|
*/
|
|
@interface FIRAuthNotificationManager : NSObject
|
|
|
|
/** @property timeout
|
|
@brief The timeout for checking for notification forwarding.
|
|
@remarks Only tests should access this property.
|
|
*/
|
|
@property(nonatomic, assign) NSTimeInterval timeout;
|
|
|
|
/** @fn initWithApplication:appCredentialManager:
|
|
@brief Initializes the instance.
|
|
@param application The application.
|
|
@param appCredentialManager The object to handle app credentials delivered via notification.
|
|
@return The initialized instance.
|
|
*/
|
|
- (instancetype)initWithApplication:(UIApplication *)application
|
|
appCredentialManager:(FIRAuthAppCredentialManager *)appCredentialManager
|
|
NS_DESIGNATED_INITIALIZER;
|
|
|
|
/** @fn init
|
|
@brief please use initWithAppCredentialManager: instead.
|
|
*/
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
|
|
/** @fn checkNotificationForwardingWithCallback:
|
|
@brief Checks whether or not remote notifications are being forwarded to this class.
|
|
@param callback The block to be called either immediately or in future once a result
|
|
is available.
|
|
*/
|
|
- (void)checkNotificationForwardingWithCallback:(FIRAuthNotificationForwardingCallback)callback;
|
|
|
|
/** @fn canHandleNotification:
|
|
@brief Attempts to handle the remote notification.
|
|
@param notification The notification in question.
|
|
@return Whether or the notification has been handled.
|
|
*/
|
|
- (BOOL)canHandleNotification:(NSDictionary *)notification;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|
|
|
|
#endif
|