mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-11-10 17:19:50 +01:00
Ghostgram for iOS, rebuilt from scratch on Telegram iOS 13.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
994 B
Swift
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()
|
|
}
|
|
}
|
|
}
|