File tree Expand file tree Collapse file tree 4 files changed +4
-22
lines changed
Expand file tree Collapse file tree 4 files changed +4
-22
lines changed Original file line number Diff line number Diff line change 4949static NSString *const kFIRMessagingMessageViaAPNSRootKey = @" aps" ;
5050static NSString *const kFIRMessagingReachabilityHostname = @" www.google.com" ;
5151
52- #if defined(__IPHONE_10_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
5352const NSNotificationName FIRMessagingRegistrationTokenRefreshedNotification =
5453 @" com.firebase.messaging.notif.fcm-token-refreshed" ;
55- #else
56- NSString *const FIRMessagingRegistrationTokenRefreshedNotification =
57- @" com.firebase.messaging.notif.fcm-token-refreshed" ;
58- #endif // defined(__IPHONE_10_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
5954
6055NSString *const kFIRMessagingUserDefaultsKeyAutoInitEnabled =
6156 @" com.firebase.messaging.auto-init.enabled" ; // Auto Init Enabled key stored in NSUserDefaults
Original file line number Diff line number Diff line change 1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16- #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 || \
17- __MAC_OS_X_VERSION_MAX_ALLOWED >= __MAC_10_14 || __TV_OS_VERSION_MAX_ALLOWED >= __TV_10_0 || \
18- __WATCH_OS_VERSION_MAX_ALLOWED >= __WATCHOS_3_0 || TARGET_OS_MACCATALYST
16+
1917#import < UserNotifications/UserNotifications.h>
20- #endif
2118
2219#import " FirebaseMessaging/Sources/FIRMessagingContextManagerService.h"
2320
Original file line number Diff line number Diff line change 1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16- #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 || \
17- __MAC_OS_X_VERSION_MAX_ALLOWED >= __MAC_10_14 || __TV_OS_VERSION_MAX_ALLOWED >= __TV_10_0 || \
18- __WATCH_OS_VERSION_MAX_ALLOWED >= __WATCHOS_3_0 || TARGET_OS_MACCATALYST
19- #import < UserNotifications/UserNotifications.h>
20- #endif
16+
2117#import < OCMock/OCMock.h>
18+ #import < UserNotifications/UserNotifications.h>
2219#import < XCTest/XCTest.h>
2320
2421#import " FirebaseMessaging/Sources/FIRMessagingContextManagerService.h"
Original file line number Diff line number Diff line change 1414 * limitations under the License.
1515 */
1616
17- #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 || \
18- __TV_OS_VERSION_MAX_ALLOWED >= __TV_10_0 || __MAC_OS_X_VERSION_MAX_ALLOWED >= __MAC_10_14
19- #import < UserNotifications/UserNotifications.h>
20- #endif
2117#import < OCMock/OCMock.h>
18+ #import < UserNotifications/UserNotifications.h>
2219#import < XCTest/XCTest.h>
2320
2421#import < GoogleUtilities/GULAppDelegateSwizzler.h>
@@ -95,8 +92,6 @@ - (void)application:(GULApplication *)application
9592
9693@end
9794
98- #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 || \
99- __TV_OS_VERSION_MAX_ALLOWED >= __TV_10_0 || __MAC_OS_X_VERSION_MAX_ALLOWED >= __MAC_10_14
10095#pragma mark - Incompete UNUserNotificationCenterDelegate
10196@interface IncompleteUserNotificationCenterDelegate : NSObject <UNUserNotificationCenterDelegate >
10297@end
@@ -127,8 +122,6 @@ - (void)userNotificationCenter:(UNUserNotificationCenter *)center
127122#endif
128123@end
129124
130- #endif
131-
132125@interface GULAppDelegateSwizzler (FIRMessagingRemoteNotificationsProxyTest)
133126+ (void )resetProxyOriginalDelegateOnceToken ;
134127@end
You can’t perform that action at this time.
0 commit comments