Skip to content

Commit

Permalink
Retain 'NSPrincipalClass' and 'WKExtensionDelegateClassName' in plists
Browse files Browse the repository at this point in the history
  • Loading branch information
ileitch committed Jan 4, 2024
1 parent 1b59d67 commit afabb9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
- Fix public accessibility analysis false-positive for enum case parameter types.
- Fix public accessibility analysis false-positive for properties initialized with generic specialized types.
- Types associated with assign-only properties are no longer identified as unused until the property is removed.
- Classes referenced in Info.plist as `NSPrincipalClass` and `WKExtensionDelegateClassName` are now retained.

## 2.17.1 (2023-12-04)

Expand Down
4 changes: 3 additions & 1 deletion Sources/PeripheryKit/Indexer/InfoPlistParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import AEXML
import Shared

final class InfoPlistParser {
private static let elements = ["UISceneClassName", "UISceneDelegateClassName", "NSExtensionPrincipalClass", "CLKComplicationPrincipalClass"]
private static let elements = [
"UISceneClassName", "UISceneDelegateClassName", "NSPrincipalClass",
"NSExtensionPrincipalClass", "CLKComplicationPrincipalClass", "WKExtensionDelegateClassName"]
private let path: FilePath

required init(path: FilePath) {
Expand Down

0 comments on commit afabb9b

Please sign in to comment.