From 1c1de93b2e49b5effa3ce2242f036f2c8cf55341 Mon Sep 17 00:00:00 2001 From: Birkir Gudjonsson Date: Wed, 18 Feb 2026 13:42:42 +0000 Subject: [PATCH] remove public prefix Expo does not use the public class prefix now. It should work with new and old versions of Expo. --- packages/react-native-app-auth/plugin/src/ios/app-delegate.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native-app-auth/plugin/src/ios/app-delegate.ts b/packages/react-native-app-auth/plugin/src/ios/app-delegate.ts index eca6cddb..5b0d1d83 100644 --- a/packages/react-native-app-auth/plugin/src/ios/app-delegate.ts +++ b/packages/react-native-app-auth/plugin/src/ios/app-delegate.ts @@ -8,7 +8,7 @@ const withAppDelegateSwift: ConfigPlugin = rootConfig => { let { contents } = config.modResults; if (!contents.includes('RNAppAuthAuthorizationFlowManager')) { - const replaceText = 'public class AppDelegate: ExpoAppDelegate'; + const replaceText = 'class AppDelegate: ExpoAppDelegate'; contents = contents.replace(replaceText, `${replaceText}, RNAppAuthAuthorizationFlowManager`); const replaceText2 = @@ -58,4 +58,4 @@ export const withAppAuthAppDelegate: ConfigPlugin = rootConfig => { config.modResults.contents = contents; return config; }); -}; \ No newline at end of file +};