49
49
NSSearchPathForDirectoriesInDomains (NSCachesDirectory, NSUserDomainMask, YES )[0 ];
50
50
GDTPath =
51
51
[NSURL fileURLWithPath: [NSString stringWithFormat: @" %@ /google-sdks-events" , cachePath]];
52
- GDTCORLogDebug (" GDT's state will be saved to: %@" , GDTPath);
52
+ GDTCORLogDebug (@ " GDT's state will be saved to: %@ " , GDTPath);
53
53
if (![[NSFileManager defaultManager ] fileExistsAtPath: GDTPath.path]) {
54
54
NSError *error;
55
55
[[NSFileManager defaultManager ] createDirectoryAtPath: GDTPath.path
@@ -247,9 +247,9 @@ @implementation GDTCORApplication
247
247
248
248
+ (void )load {
249
249
GDTCORLogDebug (
250
- " %@" , @" GDT is initializing. Please note that if you quit the app via the "
251
- " debugger and not through a lifecycle event, event data will remain on disk but "
252
- " storage won't have a reference to them since the singleton wasn't saved to disk." );
250
+ @ "%@ " , @" GDT is initializing. Please note that if you quit the app via the "
251
+ " debugger and not through a lifecycle event, event data will remain on disk but "
252
+ " storage won't have a reference to them since the singleton wasn't saved to disk." );
253
253
#if TARGET_OS_IOS || TARGET_OS_TV
254
254
// If this asserts, please file a bug at https://github.com/firebase/firebase-ios-sdk/issues.
255
255
GDTCORFatalAssert (
@@ -322,15 +322,15 @@ - (GDTCORBackgroundIdentifier)beginBackgroundTaskWithName:(NSString *)name
322
322
expirationHandler: handler];
323
323
#if !NDEBUG
324
324
if (bgID != GDTCORBackgroundIdentifierInvalid) {
325
- GDTCORLogDebug (" Creating background task with name:%@ bgID:%ld " , name, (long )bgID);
325
+ GDTCORLogDebug (@ " Creating background task with name:%@ bgID:%ld " , name, (long )bgID);
326
326
}
327
327
#endif // !NDEBUG
328
328
return bgID;
329
329
}
330
330
331
331
- (void )endBackgroundTask : (GDTCORBackgroundIdentifier)bgID {
332
332
if (bgID != GDTCORBackgroundIdentifierInvalid) {
333
- GDTCORLogDebug (" Ending background task with ID:%ld was successful" , (long )bgID);
333
+ GDTCORLogDebug (@ " Ending background task with ID:%ld was successful" , (long )bgID);
334
334
[[self sharedApplicationForBackgroundTask ] endBackgroundTask: bgID];
335
335
return ;
336
336
}
@@ -375,21 +375,21 @@ - (void)iOSApplicationDidEnterBackground:(NSNotification *)notif {
375
375
_isRunningInBackground = YES ;
376
376
377
377
NSNotificationCenter *notifCenter = [NSNotificationCenter defaultCenter ];
378
- GDTCORLogDebug (" %@" , @" GDTCORPlatform is sending a notif that the app is backgrounding." );
378
+ GDTCORLogDebug (@ "%@ " , @" GDTCORPlatform is sending a notif that the app is backgrounding." );
379
379
[notifCenter postNotificationName: kGDTCORApplicationDidEnterBackgroundNotification object: nil ];
380
380
}
381
381
382
382
- (void )iOSApplicationWillEnterForeground:(NSNotification *)notif {
383
383
_isRunningInBackground = NO ;
384
384
385
385
NSNotificationCenter *notifCenter = [NSNotificationCenter defaultCenter ];
386
- GDTCORLogDebug (" %@" , @" GDTCORPlatform is sending a notif that the app is foregrounding." );
386
+ GDTCORLogDebug (@ "%@ " , @" GDTCORPlatform is sending a notif that the app is foregrounding." );
387
387
[notifCenter postNotificationName: kGDTCORApplicationWillEnterForegroundNotification object: nil ];
388
388
}
389
389
390
390
- (void )iOSApplicationWillTerminate:(NSNotification *)notif {
391
391
NSNotificationCenter *notifCenter = [NSNotificationCenter defaultCenter ];
392
- GDTCORLogDebug (" %@" , @" GDTCORPlatform is sending a notif that the app is terminating." );
392
+ GDTCORLogDebug (@ "%@ " , @" GDTCORPlatform is sending a notif that the app is terminating." );
393
393
[notifCenter postNotificationName: kGDTCORApplicationWillTerminateNotification object: nil ];
394
394
}
395
395
#endif // TARGET_OS_IOS || TARGET_OS_TV
@@ -399,7 +399,7 @@ - (void)iOSApplicationWillTerminate:(NSNotification *)notif {
399
399
#if TARGET_OS_OSX
400
400
- (void )macOSApplicationWillTerminate:(NSNotification *)notif {
401
401
NSNotificationCenter *notifCenter = [NSNotificationCenter defaultCenter ];
402
- GDTCORLogDebug (" %@" , @" GDTCORPlatform is sending a notif that the app is terminating." );
402
+ GDTCORLogDebug (@ "%@ " , @" GDTCORPlatform is sending a notif that the app is terminating." );
403
403
[notifCenter postNotificationName: kGDTCORApplicationWillTerminateNotification object: nil ];
404
404
}
405
405
#endif // TARGET_OS_OSX
0 commit comments