'init' is deprecated: Use initWithPresentingWindow for macOS 10.15 and above
punitganshani opened this issue · 5 comments
punitganshani commented
/Users/pg/.pub-cache/hosted/pub.dartlang.org/flutter_appauth-4.2.1/macos/Classes/AppAuthMacOSAuthorization.m:76:45: warning: 'init' is deprecated: Use initWithPresentingWindow for macOS 10.15 and above. [-Wdeprecated-declarations]
return [[OIDExternalUserAgentMac alloc] init];
^
In module 'AppAuth' imported from /Users/pg/.pub-cache/hosted/pub.dartlang.org/flutter_appauth-4.2.1/macos/Classes/AppAuthMacOSAuthorization.h:2:
- (instancetype)init __deprecated_msg("Use initWithPresentingWindow for macOS 10.15 and above.");
^
In module 'Foundation' imported from /Users/pg/.pub-cache/hosted/pub.dartlang.org/flutter_appauth-4.2.1/macos/Classes/FlutterAppAuth.h:8:
In module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:
#define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
punitganshani commented
@MaikuB any plan to update this?