From acc7d110c0a3a2d98a13f534ecb3720178971de0 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Thu, 2 Feb 2017 18:38:48 -0800 Subject: [PATCH] Subclass FlutterAppDelegate in iOS examples (#7847) Subclassing FlutterAppDelegate is not required for real-world apps, but it's what 'flutter create' generates, and applies the default behaviours that most real-world apps will want. --- examples/flutter_gallery/ios/Runner/AppDelegate.h | 5 ++--- examples/hello_services/ios/Runner/AppDelegate.h | 5 ++--- examples/hello_world/ios/Runner/AppDelegate.h | 5 ++--- examples/stocks/ios/Runner/AppDelegate.h | 5 ++--- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/examples/flutter_gallery/ios/Runner/AppDelegate.h b/examples/flutter_gallery/ios/Runner/AppDelegate.h index a5a8b38522..cf210d213f 100644 --- a/examples/flutter_gallery/ios/Runner/AppDelegate.h +++ b/examples/flutter_gallery/ios/Runner/AppDelegate.h @@ -1,7 +1,6 @@ #import +#import -@interface AppDelegate : UIResponder - -@property (strong, nonatomic) UIWindow *window; +@interface AppDelegate : FlutterAppDelegate @end diff --git a/examples/hello_services/ios/Runner/AppDelegate.h b/examples/hello_services/ios/Runner/AppDelegate.h index 42062723fb..145ec31efd 100644 --- a/examples/hello_services/ios/Runner/AppDelegate.h +++ b/examples/hello_services/ios/Runner/AppDelegate.h @@ -3,9 +3,8 @@ // found in the LICENSE file. #import +#import -@interface AppDelegate : UIResponder - -@property(strong, nonatomic) UIWindow *window; +@interface AppDelegate : FlutterAppDelegate @end diff --git a/examples/hello_world/ios/Runner/AppDelegate.h b/examples/hello_world/ios/Runner/AppDelegate.h index a5a8b38522..cf210d213f 100644 --- a/examples/hello_world/ios/Runner/AppDelegate.h +++ b/examples/hello_world/ios/Runner/AppDelegate.h @@ -1,7 +1,6 @@ #import +#import -@interface AppDelegate : UIResponder - -@property (strong, nonatomic) UIWindow *window; +@interface AppDelegate : FlutterAppDelegate @end diff --git a/examples/stocks/ios/Runner/AppDelegate.h b/examples/stocks/ios/Runner/AppDelegate.h index a5a8b38522..cf210d213f 100644 --- a/examples/stocks/ios/Runner/AppDelegate.h +++ b/examples/stocks/ios/Runner/AppDelegate.h @@ -1,7 +1,6 @@ #import +#import -@interface AppDelegate : UIResponder - -@property (strong, nonatomic) UIWindow *window; +@interface AppDelegate : FlutterAppDelegate @end