Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Firebase/Core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Unreleased

# 2019-03-19 -- v5.4.0 -- M45
- [changed] Allow Bundle IDs that have a valid prefix to enable richer extension support. (#2515)
- [changed] Convert FIRLogger to use the recommended os_log for logging via GoogleUtilities.
See https://developer.apple.com/documentation/os/logging?language=objc.
- [changed] Deprecated `FIRAnalyticsConfiguration` API in favor of new methods on the Analytics SDK.
Please call the new APIs directly: Enable/disable Analytics with `Analytics.setAnalyticsEnabled(_)`
and modify the session timeout interval with `Analytics.setAnalyticsCollectionEnabled(_)`.


# 2019-01-22 -- v5.2.0 -- M41
- [changed] Added a registerInternalLibrary API. Now other Firebase libraries register with FirebaseCore
Expand Down
3 changes: 3 additions & 0 deletions Firebase/Core/FIRAnalyticsConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@

#import "Private/FIRAnalyticsConfiguration+Internal.h"

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-implementations"
@implementation FIRAnalyticsConfiguration
#pragma clang diagnostic pop

+ (FIRAnalyticsConfiguration *)sharedInstance {
static FIRAnalyticsConfiguration *sharedInstance = nil;
Expand Down
4 changes: 4 additions & 0 deletions Firebase/Core/FIRApp.m
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ - (BOOL)configureCore {
if ([firAnalyticsClass respondsToSelector:startWithConfigurationSelector]) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[firAnalyticsClass performSelector:startWithConfigurationSelector
withObject:[FIRConfiguration sharedInstance].analyticsConfiguration
withObject:_options];
Expand Down Expand Up @@ -360,9 +361,12 @@ - (void)setDataCollectionDefaultEnabled:(BOOL)dataCollectionDefaultEnabled {
}

// The Analytics flag has not been explicitly set, so update with the value being set.
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[[FIRAnalyticsConfiguration sharedInstance]
setAnalyticsCollectionEnabled:dataCollectionDefaultEnabled
persistSetting:NO];
#pragma clang diagnostic pop
}

- (BOOL)isDataCollectionDefaultEnabled {
Expand Down
3 changes: 3 additions & 0 deletions Firebase/Core/FIRConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ + (instancetype)sharedInstance {
- (instancetype)init {
self = [super init];
if (self) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
_analyticsConfiguration = [FIRAnalyticsConfiguration sharedInstance];
#pragma clang diagnostic pop
}
return self;
}
Expand Down
1 change: 1 addition & 0 deletions Firebase/Core/Public/FIRAnalyticsConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ NS_ASSUME_NONNULL_BEGIN
* This class provides configuration fields for Firebase Analytics.
*/
NS_SWIFT_NAME(AnalyticsConfiguration)
DEPRECATED_MSG_ATTRIBUTE("Use these methods directly on the `Analytics` class.")
@interface FIRAnalyticsConfiguration : NSObject

/**
Expand Down
4 changes: 3 additions & 1 deletion Firebase/Core/Public/FIRConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ NS_SWIFT_NAME(FirebaseConfiguration)
@property(class, nonatomic, readonly) FIRConfiguration *sharedInstance NS_SWIFT_NAME(shared);

/** The configuration class for Firebase Analytics. */
@property(nonatomic, readwrite) FIRAnalyticsConfiguration *analyticsConfiguration;
@property(nonatomic, readwrite)
FIRAnalyticsConfiguration *analyticsConfiguration DEPRECATED_MSG_ATTRIBUTE(
"Use the methods available here directly on the `Analytics` class.");

/**
* Sets the logging level for internal Firebase logging. Firebase will only log messages
Expand Down