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 11# v6.2.0
22- Added an API for arbitrary data persistence on storage instances.
3+ - Added an API for fetching storage instances specific to a target.
34
45# v6.1.1
56- Fixes writing event counts in a directory that doesn't yet exist. (#5549 )
Original file line number Diff line number Diff line change 1919
2020#import " GDTCORLibrary/Public/GDTCORConsoleLogger.h"
2121
22+ id <GDTCORStorageProtocol> _Nullable GDTCORStorageInstanceForTarget (GDTCORTarget target) {
23+ return [GDTCORRegistrar sharedInstance ].targetToStorage [@(target)];
24+ }
25+
2226@implementation GDTCORRegistrar {
2327 /* * Backing ivar for targetToUploader property. */
2428 NSMutableDictionary <NSNumber *, id <GDTCORUploader>> *_targetToUploader;
Original file line number Diff line number Diff line change 1717#import < Foundation/Foundation.h>
1818
1919#import < GoogleDataTransport/GDTCORLifecycle.h>
20+ #import < GoogleDataTransport/GDTCORTargets.h>
2021
2122@class GDTCOREvent;
2223
@@ -66,4 +67,12 @@ NS_ASSUME_NONNULL_BEGIN
6667
6768@end
6869
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+
6978NS_ASSUME_NONNULL_END
You can’t perform that action at this time.
0 commit comments