mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-11-05 15:03:40 +01:00
Ghostgram for iOS, rebuilt from scratch on Telegram iOS 13.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
33 lines
1.2 KiB
Swift
33 lines
1.2 KiB
Swift
import Foundation
|
|
|
|
/// Light aggregator linked into the app and into the extensions (notification service, share).
|
|
/// Each zone owns its `Sources/<Zone>/<Zone>Shared.swift`; nobody edits this file after wave 1.
|
|
public enum GGFeaturesShared {
|
|
/// App process: called by `GGFeatures.registerAll()` before the feature modules register.
|
|
public static func registerForApp() {
|
|
GGFeaturesShared.registerZones()
|
|
}
|
|
|
|
/// Extension processes: called instead of `GGFeatures.registerAll()`, after `GGCore.bootstrap`
|
|
/// and before `GGHookRegistry.freeze()`.
|
|
public static func registerForExtension() {
|
|
GGFeaturesShared.registerZones()
|
|
}
|
|
|
|
private static func registerZones() {
|
|
GGGhostModeShared.register()
|
|
GGAntiDeleteShared.register()
|
|
GGMessagesShared.register()
|
|
GGAppearanceShared.register()
|
|
GGInterfaceShared.register()
|
|
GGVoiceShared.register()
|
|
GGCameraMasksShared.register()
|
|
GGCallsMediaShared.register()
|
|
GGSecurityShared.register()
|
|
GGNetworkSpoofShared.register()
|
|
GGProfileExportShared.register()
|
|
// W5-SG: Swiftgram-parity features (settings, NSE flag, TelegramCore points).
|
|
GGExtrasShared.register()
|
|
}
|
|
}
|