Skip to content

flutter/engine contains some deprecated SharedApplication status bar related APIs #128730

@cyanglaz

Description

@cyanglaz

To reproduce the deprecation warning

  1. Go to local build root folder, typically located one level up of the engine directory. Then change the ios_deployment_target to 17.0: https://github.com/flutter/buildroot/blob/master/build/config/ios/ios_sdk.gni#L19
  2. Add -Wdeprecated-declarations and -Wdeprecated-implementations in flutter_clags_objc https://github.com/flutter/engine/blob/main/common/config.gni#L60
  3. Build the local engine like you normally would.

List of deprecated APIs

'statusBarHidden' is deprecated: first deprecated in iOS 13.0 - Use the statusBarManager property of the window scene instead. [-Werror,-Wdeprecated-declarations]

'setStatusBarStyle:' is deprecated: first deprecated in iOS 9.0 - Use -[UIViewController preferredStatusBarStyle] [-Werror,-Wdeprecated-declarations]
[[UIApplication sharedApplication] setStatusBarStyle:statusBarStyle];

'statusBarOrientation' is deprecated: first deprecated in iOS 13.0 - Use the interfaceOrientation property of the window scene instead. [-Werror,-Wdeprecated-declarations]

Flutter does not support iOS 9 anymore so we should be able to remove setStatusBarStyle completely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: tech-debtTechnical debt, code quality, testing, etc.engineflutter/engine related. See also e: labels.platform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions