From 21ae46783dbeef1471696d40dad66ee827d69cca Mon Sep 17 00:00:00 2001 From: Evan Bacon Date: Wed, 27 May 2020 16:19:16 -0700 Subject: [PATCH 1/2] Fix swift AppDelegate bug --- packages/@unimodules/core/ios/UMCore/UMAppDelegateWrapper.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/@unimodules/core/ios/UMCore/UMAppDelegateWrapper.h b/packages/@unimodules/core/ios/UMCore/UMAppDelegateWrapper.h index c19a43a3bfd9f..ee6b1179805b7 100644 --- a/packages/@unimodules/core/ios/UMCore/UMAppDelegateWrapper.h +++ b/packages/@unimodules/core/ios/UMCore/UMAppDelegateWrapper.h @@ -5,6 +5,8 @@ NS_ASSUME_NONNULL_BEGIN @interface UMAppDelegateWrapper : UIResponder +@property (nullable, nonatomic, strong) UIWindow *window; + @end NS_ASSUME_NONNULL_END From 0cd80a1e0e04ac6838c1d699dc1f46e4a54fa614 Mon Sep 17 00:00:00 2001 From: Evan Bacon Date: Thu, 28 May 2020 09:50:20 -0700 Subject: [PATCH 2/2] synthesize window --- packages/@unimodules/core/ios/UMCore/UMAppDelegateWrapper.h | 2 -- packages/@unimodules/core/ios/UMCore/UMAppDelegateWrapper.m | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@unimodules/core/ios/UMCore/UMAppDelegateWrapper.h b/packages/@unimodules/core/ios/UMCore/UMAppDelegateWrapper.h index ee6b1179805b7..c19a43a3bfd9f 100644 --- a/packages/@unimodules/core/ios/UMCore/UMAppDelegateWrapper.h +++ b/packages/@unimodules/core/ios/UMCore/UMAppDelegateWrapper.h @@ -5,8 +5,6 @@ NS_ASSUME_NONNULL_BEGIN @interface UMAppDelegateWrapper : UIResponder -@property (nullable, nonatomic, strong) UIWindow *window; - @end NS_ASSUME_NONNULL_END diff --git a/packages/@unimodules/core/ios/UMCore/UMAppDelegateWrapper.m b/packages/@unimodules/core/ios/UMCore/UMAppDelegateWrapper.m index 48e8e8baff942..48d63b69495ee 100644 --- a/packages/@unimodules/core/ios/UMCore/UMAppDelegateWrapper.m +++ b/packages/@unimodules/core/ios/UMCore/UMAppDelegateWrapper.m @@ -10,6 +10,8 @@ @implementation UMAppDelegateWrapper +@synthesize window = _window; + - (void)forwardInvocation:(NSInvocation *)invocation { #if DEBUG SEL selector = [invocation selector];