AppLovin / AppLovin-MAX-SDK-iOS

86 stars 69 forks source link

Adapters need deprecated method updating since 11.4.0 #131

Open ddaddy opened 2 years ago

ddaddy commented 2 years ago

Since updating the SDK to 11.4.2 I get a lot of deprecation warnings from adapters.

'errorWithCode:errorString:thirdPartySdkErrorCode:thirdPartySdkErrorMessage:' is deprecated: This method has been deprecated in v11.4.0 and will be removed in a future SDK version. Please use -[MAAdapterError errorWithCode:errorString:mediatedNetworkErrorCode:mediatedNetworkErrorMessage:] instead.

Specifically i'm getting the warning from adapters:

thomasmso commented 2 years ago

Hey - thanks for reporting this, we'll update all our adapters in their next releases.

In the meantime, you can wrap the offending code in

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
....
#pragma clang diagnostic pop