Skip to content

Commit 1f17e8b

Browse files
birkirbryceknz
andauthored
remove public prefix (#1109)
Co-authored-by: Bryce Kehoe <bryce@kehoe.co.nz>
1 parent 265154e commit 1f17e8b

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.changeset/calm-pumas-smile.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-native-app-auth': patch
3+
---
4+
5+
Support Expo 55 AppDelegate declarations without the public class modifier.

packages/react-native-app-auth/plugin/src/ios/app-delegate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const withAppDelegateSwift: ConfigPlugin = rootConfig => {
88
let { contents } = config.modResults;
99

1010
if (!contents.includes('RNAppAuthAuthorizationFlowManager')) {
11-
const replaceText = 'public class AppDelegate: ExpoAppDelegate';
11+
const replaceText = 'class AppDelegate: ExpoAppDelegate';
1212
contents = contents.replace(replaceText, `${replaceText}, RNAppAuthAuthorizationFlowManager`);
1313

1414
const replaceText2 =
@@ -58,4 +58,4 @@ export const withAppAuthAppDelegate: ConfigPlugin = rootConfig => {
5858
config.modResults.contents = contents;
5959
return config;
6060
});
61-
};
61+
};

0 commit comments

Comments
 (0)