Skip to content

Commit c3a9e85

Browse files
committed
expo: fix ios pre-build on swift appdelegate
1 parent eef17e8 commit c3a9e85

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
10.1.2
2+
----
3+
4+
**Expo**
5+
- Fixed a build issue on iOS after pre-building with Expo SDK 53.
6+
17
10.1.1
28
----
39

plugin/src/ios/withReactNativeBatchAppDelegate.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,8 @@ export const modifyObjCDelegate = (contents: string): string => {
1313

1414
// MARK : - Swift
1515

16-
const DID_FINISH_LAUNCHING_WITH_OPTIONS_SWIFT_DECLARATION = `@UIApplicationMain
17-
public class AppDelegate: ExpoAppDelegate {
18-
public override func application(
19-
_ application: UIApplication,
20-
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
21-
) -> Bool {`;
16+
const DID_FINISH_LAUNCHING_WITH_OPTIONS_SWIFT_DECLARATION =
17+
'didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil\n ) -> Bool {';
2218
const IMPORT_SWIFT_BATCH = '\n\nimport RNBatchPush\n';
2319
const REGISTER_SWIFT_BATCH = '\n RNBatch.start()\n';
2420

0 commit comments

Comments
 (0)