|
16 | 16 |
|
17 | 17 | #import "GDTCORLibrary/Public/GDTCORLifecycle.h"
|
18 | 18 |
|
| 19 | +#import <GoogleDataTransport/GDTCORConsoleLogger.h> |
19 | 20 | #import <GoogleDataTransport/GDTCOREvent.h>
|
20 | 21 |
|
21 | 22 | #import "GDTCORLibrary/Private/GDTCORRegistrar_Private.h"
|
@@ -71,47 +72,59 @@ - (void)dealloc {
|
71 | 72 | - (void)applicationDidEnterBackground:(NSNotification *)notification {
|
72 | 73 | GDTCORApplication *application = [GDTCORApplication sharedApplication];
|
73 | 74 | if ([[GDTCORTransformer sharedInstance] respondsToSelector:@selector(appWillBackground:)]) {
|
| 75 | + GDTCORLogDebug("%@", @"Signaling GDTCORTransformer that the app is backgrounding."); |
74 | 76 | [[GDTCORTransformer sharedInstance] appWillBackground:application];
|
75 | 77 | }
|
76 | 78 | if ([[GDTCORStorage sharedInstance] respondsToSelector:@selector(appWillBackground:)]) {
|
| 79 | + GDTCORLogDebug("%@", @"Signaling GDTCORStorage that the app is backgrounding."); |
77 | 80 | [[GDTCORStorage sharedInstance] appWillBackground:application];
|
78 | 81 | }
|
79 | 82 | if ([[GDTCORUploadCoordinator sharedInstance] respondsToSelector:@selector(appWillBackground:)]) {
|
| 83 | + GDTCORLogDebug("%@", @"Signaling GDTCORUploadCoordinator that the app is backgrounding."); |
80 | 84 | [[GDTCORUploadCoordinator sharedInstance] appWillBackground:application];
|
81 | 85 | }
|
82 | 86 | if ([[GDTCORRegistrar sharedInstance] respondsToSelector:@selector(appWillBackground:)]) {
|
| 87 | + GDTCORLogDebug("%@", @"Signaling GDTCORRegistrar that the app is backgrounding."); |
83 | 88 | [[GDTCORRegistrar sharedInstance] appWillBackground:application];
|
84 | 89 | }
|
85 | 90 | }
|
86 | 91 |
|
87 | 92 | - (void)applicationWillEnterForeground:(NSNotification *)notification {
|
88 | 93 | GDTCORApplication *application = [GDTCORApplication sharedApplication];
|
89 | 94 | if ([[GDTCORTransformer sharedInstance] respondsToSelector:@selector(appWillForeground:)]) {
|
| 95 | + GDTCORLogDebug("%@", @"Signaling GDTCORTransformer that the app is foregrounding."); |
90 | 96 | [[GDTCORTransformer sharedInstance] appWillForeground:application];
|
91 | 97 | }
|
92 | 98 | if ([[GDTCORStorage sharedInstance] respondsToSelector:@selector(appWillForeground:)]) {
|
| 99 | + GDTCORLogDebug("%@", @"Signaling GDTCORStorage that the app is foregrounding."); |
93 | 100 | [[GDTCORStorage sharedInstance] appWillForeground:application];
|
94 | 101 | }
|
95 | 102 | if ([[GDTCORUploadCoordinator sharedInstance] respondsToSelector:@selector(appWillForeground:)]) {
|
| 103 | + GDTCORLogDebug("%@", @"Signaling GDTCORUploadCoordinator that the app is foregrounding."); |
96 | 104 | [[GDTCORUploadCoordinator sharedInstance] appWillForeground:application];
|
97 | 105 | }
|
98 | 106 | if ([[GDTCORRegistrar sharedInstance] respondsToSelector:@selector(appWillForeground:)]) {
|
| 107 | + GDTCORLogDebug("%@", @"Signaling GDTCORRegistrar that the app is foregrounding."); |
99 | 108 | [[GDTCORRegistrar sharedInstance] appWillForeground:application];
|
100 | 109 | }
|
101 | 110 | }
|
102 | 111 |
|
103 | 112 | - (void)applicationWillTerminate:(NSNotification *)notification {
|
104 | 113 | GDTCORApplication *application = [GDTCORApplication sharedApplication];
|
105 | 114 | if ([[GDTCORTransformer sharedInstance] respondsToSelector:@selector(appWillTerminate:)]) {
|
| 115 | + GDTCORLogDebug("%@", @"Signaling GDTCORTransformer that the app is terminating."); |
106 | 116 | [[GDTCORTransformer sharedInstance] appWillTerminate:application];
|
107 | 117 | }
|
108 | 118 | if ([[GDTCORStorage sharedInstance] respondsToSelector:@selector(appWillTerminate:)]) {
|
| 119 | + GDTCORLogDebug("%@", @"Signaling GDTCORStorage that the app is terminating."); |
109 | 120 | [[GDTCORStorage sharedInstance] appWillTerminate:application];
|
110 | 121 | }
|
111 | 122 | if ([[GDTCORUploadCoordinator sharedInstance] respondsToSelector:@selector(appWillTerminate:)]) {
|
| 123 | + GDTCORLogDebug("%@", @"Signaling GDTCORUploadCoordinator that the app is terminating."); |
112 | 124 | [[GDTCORUploadCoordinator sharedInstance] appWillTerminate:application];
|
113 | 125 | }
|
114 | 126 | if ([[GDTCORRegistrar sharedInstance] respondsToSelector:@selector(appWillTerminate:)]) {
|
| 127 | + GDTCORLogDebug("%@", @"Signaling GDTCORRegistrar that the app is terminating."); |
115 | 128 | [[GDTCORRegistrar sharedInstance] appWillTerminate:application];
|
116 | 129 | }
|
117 | 130 | }
|
|
0 commit comments