diff --git a/Crashlytics/Crashlytics/FIRCrashlytics.m b/Crashlytics/Crashlytics/FIRCrashlytics.m index 3d5163e5aa9..7d42e501f1e 100644 --- a/Crashlytics/Crashlytics/FIRCrashlytics.m +++ b/Crashlytics/Crashlytics/FIRCrashlytics.m @@ -223,6 +223,10 @@ + (void)load { id sessions = FIR_COMPONENT(FIRSessionsProvider, container); id remoteConfig = FIR_COMPONENT(FIRRemoteConfigInterop, container); + if (remoteConfig) { + [remoteConfig registerRolloutsStateSubscriber:@"fire-cls" subscriber:self]; + } + FIRInstallations *installations = [FIRInstallations installationsWithApp:container.app]; *isCacheable = YES; diff --git a/Crashlytics/Crashlytics/Public/FirebaseCrashlytics/FIRCrashlytics.h b/Crashlytics/Crashlytics/Public/FirebaseCrashlytics/FIRCrashlytics.h index 1ace1bed780..58603838cf4 100644 --- a/Crashlytics/Crashlytics/Public/FirebaseCrashlytics/FIRCrashlytics.h +++ b/Crashlytics/Crashlytics/Public/FirebaseCrashlytics/FIRCrashlytics.h @@ -16,7 +16,7 @@ #import "FIRCrashlyticsReport.h" #import "FIRExceptionModel.h" - +@protocol FIRRolloutsStateSubscriber; #if __has_include() #warning "FirebaseCrashlytics and Crashlytics are not compatible \ in the same app because including multiple crash reporters can \ @@ -35,7 +35,7 @@ NS_ASSUME_NONNULL_BEGIN * we suggest using a wrapper class or a protocol extension. */ NS_SWIFT_NAME(Crashlytics) -@interface FIRCrashlytics : NSObject +@interface FIRCrashlytics : NSObject /** :nodoc: */ - (instancetype)init NS_UNAVAILABLE;