File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 1
1
# v6.2.0
2
2
- Added an API for arbitrary data persistence on storage instances.
3
+ - Added an API for fetching storage instances specific to a target.
3
4
4
5
# v6.1.1
5
6
- Fixes writing event counts in a directory that doesn't yet exist. (#5549 )
Original file line number Diff line number Diff line change 19
19
20
20
#import " GDTCORLibrary/Public/GDTCORConsoleLogger.h"
21
21
22
+ id <GDTCORStorageProtocol> _Nullable GDTCORStorageInstanceForTarget (GDTCORTarget target) {
23
+ return [GDTCORRegistrar sharedInstance ].targetToStorage [@(target)];
24
+ }
25
+
22
26
@implementation GDTCORRegistrar {
23
27
/* * Backing ivar for targetToUploader property. */
24
28
NSMutableDictionary <NSNumber *, id <GDTCORUploader>> *_targetToUploader;
Original file line number Diff line number Diff line change 17
17
#import < Foundation/Foundation.h>
18
18
19
19
#import < GoogleDataTransport/GDTCORLifecycle.h>
20
+ #import < GoogleDataTransport/GDTCORTargets.h>
20
21
21
22
@class GDTCOREvent;
22
23
@@ -66,4 +67,12 @@ NS_ASSUME_NONNULL_BEGIN
66
67
67
68
@end
68
69
70
+ /* * Retrieves the storage instance for the given target.
71
+ *
72
+ * @param target The target.
73
+ * * @return The storage instance registered for the target, or nil if there is none.
74
+ */
75
+ FOUNDATION_EXPORT
76
+ id <GDTCORStorageProtocol> _Nullable GDTCORStorageInstanceForTarget (GDTCORTarget target);
77
+
69
78
NS_ASSUME_NONNULL_END
You can’t perform that action at this time.
0 commit comments