From 3c497a831e7608aa76cac0f0868925e6560c4a5a Mon Sep 17 00:00:00 2001 From: gaaclarke <30870216+gaaclarke@users.noreply.github.com> Date: Tue, 29 Oct 2019 16:04:59 -0700 Subject: [PATCH] Added back in empty lifecycle events so we don't break people that used to call `super`. (flutter/engine#13421) --- .../framework/Source/FlutterAppDelegate.mm | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterAppDelegate.mm b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterAppDelegate.mm index 38a16143cf..b4c7501714 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterAppDelegate.mm +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterAppDelegate.mm @@ -57,6 +57,26 @@ static NSString* kBackgroundFetchCapatibility = @"fetch"; [[self class] handleStatusBarTouches:touches withEvent:event]; } +// Do not remove, some clients may be calling these via `super`. +- (void)applicationDidEnterBackground:(UIApplication*)application { +} + +// Do not remove, some clients may be calling these via `super`. +- (void)applicationWillEnterForeground:(UIApplication*)application { +} + +// Do not remove, some clients may be calling these via `super`. +- (void)applicationWillResignActive:(UIApplication*)application { +} + +// Do not remove, some clients may be calling these via `super`. +- (void)applicationDidBecomeActive:(UIApplication*)application { +} + +// Do not remove, some clients may be calling these via `super`. +- (void)applicationWillTerminate:(UIApplication*)application { +} + #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" - (void)application:(UIApplication*)application