Skip to content

fix: added Swift AppDelegate support to SafeGuard config plugin#1

Merged
rajivnarayana merged 1 commit into
WebileApps:mainfrom
Mrunal-dethekar:fix/safeguard-swift-support
Oct 23, 2025
Merged

fix: added Swift AppDelegate support to SafeGuard config plugin#1
rajivnarayana merged 1 commit into
WebileApps:mainfrom
Mrunal-dethekar:fix/safeguard-swift-support

Conversation

@Mrunal-dethekar

Copy link
Copy Markdown

The SafeGuard Expo config plugin was only supporting Objective-C
AppDelegate files, causing prebuild failures with Swift-based projects.

Changes:

  • Added Swift language detection in withSafeguardIOS
  • Implemented Swift-specific code generation (imports, properties, closures)
  • Used Swift syntax for security levels (.disable, .warning, .error)
  • Updated regex anchors to match Swift file structure
  • Maintained backward compatibility with Objective-C AppDelegate

Fixes prebuild error: "Failed to match /#import "AppDelegate.h"/"

@rajivnarayana rajivnarayana merged commit 42e7aef into WebileApps:main Oct 23, 2025
0 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants