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 49
49
static NSString *const kFIRMessagingMessageViaAPNSRootKey = @" aps" ;
50
50
static NSString *const kFIRMessagingReachabilityHostname = @" www.google.com" ;
51
51
52
- #if defined(__IPHONE_10_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
53
52
const NSNotificationName FIRMessagingRegistrationTokenRefreshedNotification =
54
53
@" 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
59
54
60
55
NSString *const kFIRMessagingUserDefaultsKeyAutoInitEnabled =
61
56
@" com.firebase.messaging.auto-init.enabled" ; // Auto Init Enabled key stored in NSUserDefaults
Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
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
+
19
17
#import < UserNotifications/UserNotifications.h>
20
- #endif
21
18
22
19
#import " FirebaseMessaging/Sources/FIRMessagingContextManagerService.h"
23
20
Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
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
+
21
17
#import < OCMock/OCMock.h>
18
+ #import < UserNotifications/UserNotifications.h>
22
19
#import < XCTest/XCTest.h>
23
20
24
21
#import " FirebaseMessaging/Sources/FIRMessagingContextManagerService.h"
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
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
21
17
#import < OCMock/OCMock.h>
18
+ #import < UserNotifications/UserNotifications.h>
22
19
#import < XCTest/XCTest.h>
23
20
24
21
#import < GoogleUtilities/GULAppDelegateSwizzler.h>
@@ -95,8 +92,6 @@ - (void)application:(GULApplication *)application
95
92
96
93
@end
97
94
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
100
95
#pragma mark - Incompete UNUserNotificationCenterDelegate
101
96
@interface IncompleteUserNotificationCenterDelegate : NSObject <UNUserNotificationCenterDelegate >
102
97
@end
@@ -127,8 +122,6 @@ - (void)userNotificationCenter:(UNUserNotificationCenter *)center
127
122
#endif
128
123
@end
129
124
130
- #endif
131
-
132
125
@interface GULAppDelegateSwizzler (FIRMessagingRemoteNotificationsProxyTest)
133
126
+ (void )resetProxyOriginalDelegateOnceToken ;
134
127
@end
You can’t perform that action at this time.
0 commit comments