Files
ichmagmaus111andClaude Opus 5.5 0622057a4f Ghostgram: open-source release
Ghostgram for iOS, rebuilt from scratch on Telegram iOS 13.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 17:57:09 +01:00

23 lines
994 B
Swift

import Foundation
import GGCore
/// The part of GGSecurity that the extensions (notification service, share) also link: settings with
/// `.extensions`, NSE handlers, attribute declarations. Owner: W3-4.
public enum GGSecurityShared {
/// Called from `GGFeaturesShared.registerForApp()` and `.registerForExtension()`; check
/// `GGCore.environment?.process` for what only one of them needs.
public static func register() {
// Account limit (W3-4b): 100 with and without Premium, app process only.
GGAccountLimit.register()
// W3-4: every setting of the zone, then what the extensions need — which chats are protected
// (push text, Siri, banners, widget). Migrations only in the app, before the feature modules.
GGSecuritySharedSettings.declare()
GGSecuritySettings.declare()
GGChatProtection.register()
if GGCore.environment?.process.isApp ?? false {
GGSecurityMigrations.register()
}
}
}