File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed
FirebaseMessaging/Sources Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 40
40
#import " FirebaseMessaging/Sources/FIRMessagingUtilities.h"
41
41
#import " FirebaseMessaging/Sources/FIRMessaging_Private.h"
42
42
#import " FirebaseMessaging/Sources/NSError+FIRMessaging.h"
43
+ #if __has_include( \
44
+ " FirebaseMessaging/Sources/Public/FirebaseMessaging/FIRMessagingExtensionHelper.h" )
43
45
#import " FirebaseMessaging/Sources/Public/FirebaseMessaging/FIRMessagingExtensionHelper.h"
46
+ #endif // __has_include("FirebaseMessaging/Sources/Public/FirebaseMessaging/FIRMessagingExtensionHelper.h")
44
47
#import " FirebaseMessaging/Sources/Token/FIRMessagingAuthService.h"
45
48
#import " FirebaseMessaging/Sources/Token/FIRMessagingTokenInfo.h"
46
49
#import " FirebaseMessaging/Sources/Token/FIRMessagingTokenManager.h"
@@ -131,6 +134,8 @@ + (FIRMessaging *)messaging {
131
134
return (FIRMessaging *)instance;
132
135
}
133
136
137
+ #if __has_include( \
138
+ " FirebaseMessaging/Sources/Public/FirebaseMessaging/FIRMessagingExtensionHelper.h" )
134
139
+ (FIRMessagingExtensionHelper *)extensionHelper {
135
140
static dispatch_once_t once;
136
141
static FIRMessagingExtensionHelper *extensionHelper;
@@ -139,6 +144,8 @@ + (FIRMessagingExtensionHelper *)extensionHelper {
139
144
});
140
145
return extensionHelper;
141
146
}
147
+ #endif // __has_include("FirebaseMessaging/Sources/Public/FirebaseMessaging/FIRMessagingExtensionHelper.h")
148
+
142
149
- (instancetype )initWithAnalytics : (nullable id <FIRAnalyticsInterop>)analytics
143
150
userDefaults : (GULUserDefaults *)defaults
144
151
heartbeatLogger : (FIRHeartbeatLogger *)heartbeatLogger {
Original file line number Diff line number Diff line change @@ -136,7 +136,9 @@ NS_SWIFT_NAME(MessagingMessageInfo)
136
136
@end
137
137
138
138
@class FIRMessaging;
139
+ #if __has_include("FIRMessagingExtensionHelper.h")
139
140
@class FIRMessagingExtensionHelper;
141
+ #endif // __has_include("FIRMessagingExtensionHelper.h")
140
142
141
143
/* *
142
144
* A protocol to handle token update or data message delivery from FCM.
@@ -184,6 +186,7 @@ NS_SWIFT_NAME(Messaging)
184
186
*/
185
187
+ (instancetype )messaging NS_SWIFT_NAME (messaging());
186
188
189
+ #if __has_include("FIRMessagingExtensionHelper.h")
187
190
/* *
188
191
* Use the MessagingExtensionHelper to populate rich UI content for your notifications.
189
192
* For example, if an image URL is set in your notification payload or on the console,
@@ -194,6 +197,7 @@ NS_SWIFT_NAME(Messaging)
194
197
*/
195
198
+ (FIRMessagingExtensionHelper *)extensionHelper NS_SWIFT_NAME (serviceExtension())
196
199
NS_AVAILABLE(10.14 , 10.0 );
200
+ #endif // __has_include("FIRMessagingExtensionHelper.h")
197
201
198
202
/* *
199
203
* Unavailable. Use +messaging instead.
Original file line number Diff line number Diff line change 15
15
*/
16
16
17
17
#import " FIRMessaging.h"
18
+ #if __has_include("FIRMessagingExtensionHelper.h")
18
19
#import " FIRMessagingExtensionHelper.h"
20
+ #endif // __has_include("FIRMessagingExtensionHelper.h")
You can’t perform that action at this time.
0 commit comments