Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CocoaPods
+ (NSURLSessionConfiguration *)defaultSessionConfiguration and + (NSURLSessionConfiguration *)ephemeralSessionConfiguration method of FIRCLSURLSessionConfiguration class required return type to be NSURLSessionConfiguration. https://github.com/firebase/firebase-ios-sdk/blob/master/Crashlytics/Crashlytics/FIRCLSURLSession/FIRCLSURLSessionConfiguration.m#L34 But in some cases it returns instance of FIRCLSURLSessionConfiguration (return [self new];). FIRCLSURLSessionConfiguration is not subclass of the NSURLSessionConfiguration https://github.com/firebase/firebase-ios-sdk/blob/master/Crashlytics/Crashlytics/FIRCLSURLSession/FIRCLSURLSessionConfiguration.h#L21. During the build, Xcode complained that types are mismatched. This can be suppressed by explicit cast to NSURLSessionConfiguration.
+ (NSURLSessionConfiguration *)defaultSessionConfiguration
+ (NSURLSessionConfiguration *)ephemeralSessionConfiguration
FIRCLSURLSessionConfiguration
NSURLSessionConfiguration
return [self new];
Build with Xcode and check warnings
The text was updated successfully, but these errors were encountered:
Based on this code that method should always return a valid NSURLSessionConfiguration object on iOS versions that have NSURLSession support (8+).
@samedson can we get rid of FIRCLSURLSessionConfiguration since our support floor is above iOS 8, or does it need to remain for legacy reasons?
I believe we can get rid of FIRCLSURLSessionConfiguration now - we are following Firebase's support floor.
[REQUIRED] Step 1: Describe your environment
CocoaPods
[REQUIRED] Step 2: Describe the problem
+ (NSURLSessionConfiguration *)defaultSessionConfiguration
and+ (NSURLSessionConfiguration *)ephemeralSessionConfiguration
method ofFIRCLSURLSessionConfiguration
class required return type to beNSURLSessionConfiguration
.https://github.com/firebase/firebase-ios-sdk/blob/master/Crashlytics/Crashlytics/FIRCLSURLSession/FIRCLSURLSessionConfiguration.m#L34
But in some cases it returns instance of FIRCLSURLSessionConfiguration (
return [self new];
).FIRCLSURLSessionConfiguration
is not subclass of the NSURLSessionConfiguration https://github.com/firebase/firebase-ios-sdk/blob/master/Crashlytics/Crashlytics/FIRCLSURLSession/FIRCLSURLSessionConfiguration.h#L21.During the build, Xcode complained that types are mismatched. This can be suppressed by explicit cast to
NSURLSessionConfiguration
.Steps to reproduce:
Build with Xcode and check warnings
The text was updated successfully, but these errors were encountered: