diff --git a/NotificationContent/Info.plist b/NotificationContent/Info.plist index 04c3b10904..540ef74cfa 100644 --- a/NotificationContent/Info.plist +++ b/NotificationContent/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType XPC! CFBundleShortVersionString - 5.1.1 + 5.2 CFBundleVersion ${BUILD_NUMBER} NSExtension diff --git a/Share/Info.plist b/Share/Info.plist index d6bceae984..fa3457e3dd 100644 --- a/Share/Info.plist +++ b/Share/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType XPC! CFBundleShortVersionString - 5.1.1 + 5.2 CFBundleVersion ${BUILD_NUMBER} NSExtension diff --git a/SiriIntents/Info.plist b/SiriIntents/Info.plist index 9ab4c5b45c..40358bebac 100644 --- a/SiriIntents/Info.plist +++ b/SiriIntents/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType XPC! CFBundleShortVersionString - 5.1.1 + 5.2 CFBundleVersion ${BUILD_NUMBER} NSExtension diff --git a/Telegram-iOS.xcodeproj/project.pbxproj b/Telegram-iOS.xcodeproj/project.pbxproj index f122a6c249..da8c66d127 100644 --- a/Telegram-iOS.xcodeproj/project.pbxproj +++ b/Telegram-iOS.xcodeproj/project.pbxproj @@ -2711,8 +2711,7 @@ }; D0ECCB7B1FE9C38500609802 = { CreatedOnToolsVersion = 9.2; - DevelopmentTeam = X834Q8SBVP; - ProvisioningStyle = Automatic; + ProvisioningStyle = Manual; TestTargetID = D008599B1B28189D00EAF753; }; }; @@ -5054,10 +5053,10 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_IDENTITY = "iPhone Developer"; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_STYLE = Manual; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = dwarf; - DEVELOPMENT_TEAM = X834Q8SBVP; + DEVELOPMENT_TEAM = ""; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu11; @@ -5082,6 +5081,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "org.Telegram.Telegram-iOS-UITests"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = "df24dc18-3fdc-447c-b347-5a110cecd77d"; + PROVISIONING_PROFILE_SPECIFIER = ""; SDKROOT = iphoneos; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -6548,10 +6548,10 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_IDENTITY = "iPhone Developer"; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_STYLE = Manual; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = dwarf; - DEVELOPMENT_TEAM = X834Q8SBVP; + DEVELOPMENT_TEAM = ""; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu11; @@ -6576,6 +6576,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "org.Telegram.Telegram-iOS-UITests"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = "df24dc18-3fdc-447c-b347-5a110cecd77d"; + PROVISIONING_PROFILE_SPECIFIER = ""; SDKROOT = iphoneos; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -7199,10 +7200,10 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_IDENTITY = "iPhone Developer"; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_STYLE = Manual; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - DEVELOPMENT_TEAM = X834Q8SBVP; + DEVELOPMENT_TEAM = ""; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu11; @@ -7220,6 +7221,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "org.Telegram.Telegram-iOS-UITests"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = "df24dc18-3fdc-447c-b347-5a110cecd77d"; + PROVISIONING_PROFILE_SPECIFIER = ""; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; SWIFT_VERSION = 4.0; @@ -7519,10 +7521,10 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_IDENTITY = "iPhone Developer"; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_STYLE = Manual; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = dwarf; - DEVELOPMENT_TEAM = X834Q8SBVP; + DEVELOPMENT_TEAM = ""; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu11; @@ -7547,6 +7549,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "org.Telegram.Telegram-iOS-UITests"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = "df24dc18-3fdc-447c-b347-5a110cecd77d"; + PROVISIONING_PROFILE_SPECIFIER = ""; SDKROOT = iphoneos; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -7587,10 +7590,10 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_IDENTITY = "iPhone Developer"; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_STYLE = Manual; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = dwarf; - DEVELOPMENT_TEAM = X834Q8SBVP; + DEVELOPMENT_TEAM = ""; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu11; @@ -7615,6 +7618,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "org.Telegram.Telegram-iOS-UITests"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = "df24dc18-3fdc-447c-b347-5a110cecd77d"; + PROVISIONING_PROFILE_SPECIFIER = ""; SDKROOT = iphoneos; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -7655,10 +7659,10 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_IDENTITY = "iPhone Developer"; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_STYLE = Manual; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - DEVELOPMENT_TEAM = X834Q8SBVP; + DEVELOPMENT_TEAM = ""; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu11; @@ -7676,6 +7680,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "org.Telegram.Telegram-iOS-UITests"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = "df24dc18-3fdc-447c-b347-5a110cecd77d"; + PROVISIONING_PROFILE_SPECIFIER = ""; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; SWIFT_VERSION = 4.0; @@ -7716,10 +7721,10 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_IDENTITY = "iPhone Developer"; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_STYLE = Manual; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - DEVELOPMENT_TEAM = X834Q8SBVP; + DEVELOPMENT_TEAM = ""; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu11; @@ -7737,6 +7742,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "org.Telegram.Telegram-iOS-UITests"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = "df24dc18-3fdc-447c-b347-5a110cecd77d"; + PROVISIONING_PROFILE_SPECIFIER = ""; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; SWIFT_VERSION = 4.0; @@ -7777,10 +7783,10 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_IDENTITY = "iPhone Developer"; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_STYLE = Manual; COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - DEVELOPMENT_TEAM = X834Q8SBVP; + DEVELOPMENT_TEAM = ""; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu11; @@ -7798,6 +7804,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "org.Telegram.Telegram-iOS-UITests"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = "df24dc18-3fdc-447c-b347-5a110cecd77d"; + PROVISIONING_PROFILE_SPECIFIER = ""; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; SWIFT_VERSION = 4.0; diff --git a/Telegram-iOS/AppDelegate.swift b/Telegram-iOS/AppDelegate.swift index f939498d27..a61b50c801 100644 --- a/Telegram-iOS/AppDelegate.swift +++ b/Telegram-iOS/AppDelegate.swift @@ -375,6 +375,25 @@ private enum QueuedWakeup: Int32 { let _ = try? FileManager.default.createDirectory(atPath: logsPath, withIntermediateDirectories: true, attributes: nil) Logger.setSharedLogger(Logger(basePath: logsPath)) + if let contents = try? FileManager.default.contentsOfDirectory(at: URL(fileURLWithPath: rootPath + "/accounts-metadata"), includingPropertiesForKeys: nil, options: [.skipsSubdirectoryDescendants]) { + for url in contents { + Logger.shared.log("App \(self.episodeId)", "metadata: \(url.path)") + } + } + + if let contents = try? FileManager.default.contentsOfDirectory(at: URL(fileURLWithPath: rootPath), includingPropertiesForKeys: nil, options: [.skipsSubdirectoryDescendants]) { + for url in contents { + Logger.shared.log("App \(self.episodeId)", "root: \(url.path)") + if url.lastPathComponent.hasPrefix("account-") { + if let subcontents = try? FileManager.default.contentsOfDirectory(at: url, includingPropertiesForKeys: nil, options: [.skipsSubdirectoryDescendants]) { + for suburl in subcontents { + Logger.shared.log("App \(self.episodeId)", "account \(url.lastPathComponent): \(suburl.path)") + } + } + } + } + } + ASDisableLogging() initializeLegacyComponents(application: application, currentSizeClassGetter: { @@ -400,6 +419,8 @@ private enum QueuedWakeup: Int32 { #else if BuildConfig.shared().isInternalBuild { LoggingSettings.defaultSettings = LoggingSettings(logToFile: true, logToConsole: false, redactSensitiveData: true) + } else { + LoggingSettings.defaultSettings = LoggingSettings(logToFile: true, logToConsole: false, redactSensitiveData: true) } #endif diff --git a/Telegram-iOS/Info.plist b/Telegram-iOS/Info.plist index 8297abfc9a..5082769bee 100644 --- a/Telegram-iOS/Info.plist +++ b/Telegram-iOS/Info.plist @@ -19,7 +19,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 5.1.1 + 5.2 CFBundleSignature ???? CFBundleURLTypes diff --git a/Telegram-iOS/en.lproj/Localizable.strings b/Telegram-iOS/en.lproj/Localizable.strings index 10df6c2600..bdd410aa2f 100644 --- a/Telegram-iOS/en.lproj/Localizable.strings +++ b/Telegram-iOS/en.lproj/Localizable.strings @@ -2621,15 +2621,19 @@ Unused sets are archived when you add more."; "Conversation.RestrictedTextTimed" = "The admins of this group have restricted you from writing here until %@."; "Conversation.RestrictedText" = "The admins of this group have restricted you from writing here."; +"Conversation.DefaultRestrictedText" = "Writing is restricted in this group."; "Conversation.RestrictedInlineTimed" = "The admins of this group have restricted you from posting inline content here until %@."; "Conversation.RestrictedInline" = "The admins of this group have restricted you from posting inline content here."; +"Conversation.DefaultRestrictedInline" = "Inline content is disabled in this group."; "Conversation.RestrictedMediaTimed" = "The admins of this group have restricted you from posting media content here until %@."; "Conversation.RestrictedMedia" = "The admins of this group have restricted you from posting media content here."; +"Conversation.DefaultRestrictedMedia" = "Posting media content is disabled in this group."; "Conversation.RestrictedStickersTimed" = "The admins of this group have restricted you from posting stickers here until %@."; "Conversation.RestrictedStickers" = "The admins of this group have restricted you from posting stickers here."; +"Conversation.DefaultRestrictedStickers" = "Posting stickers is disabled in this group."; "ChatSettings.ConnectionType.Title" = "CONNECTION TYPE"; "ChatSettings.ConnectionType.UseProxy" = "Use Proxy"; @@ -3836,3 +3840,8 @@ Unused sets are archived when you add more."; "EmptyGroupInfo.Line2" = "Persistent chat history"; "EmptyGroupInfo.Line3" = "Public links such as t.me/title"; "EmptyGroupInfo.Line4" = "Admins with different rights"; + +"BackgroundPreview.Title" = "Background Preview"; + +"Group.AdvanceUpgradeText" = "To use advanced group management options this group will be upgraded to a supergroup."; +"Group.AdvanceUpgradeApply" = "Upgrade"; diff --git a/Watch/App/Info.plist b/Watch/App/Info.plist index 32f5069708..7b24e407cf 100644 --- a/Watch/App/Info.plist +++ b/Watch/App/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 5.1.1 + 5.2 CFBundleVersion ${BUILD_NUMBER} UISupportedInterfaceOrientations diff --git a/Watch/Extension/Info.plist b/Watch/Extension/Info.plist index f103ec4414..f187ca639e 100644 --- a/Watch/Extension/Info.plist +++ b/Watch/Extension/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType XPC! CFBundleShortVersionString - 5.1.1 + 5.2 CFBundleVersion ${BUILD_NUMBER} NSExtension diff --git a/Widget/Info.plist b/Widget/Info.plist index 512f87e95c..8d87b04066 100644 --- a/Widget/Info.plist +++ b/Widget/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType XPC! CFBundleShortVersionString - 5.1.1 + 5.2 CFBundleVersion ${BUILD_NUMBER} NSExtension diff --git a/submodules/TelegramUI b/submodules/TelegramUI index 9f8b79af24..cc184a7ff4 160000 --- a/submodules/TelegramUI +++ b/submodules/TelegramUI @@ -1 +1 @@ -Subproject commit 9f8b79af24f89d44cd27977bf6ce2930804c4251 +Subproject commit cc184a7ff4aabbcdbe44f03e4909a97c4bbf9d2c diff --git a/submodules/libtgvoip b/submodules/libtgvoip index fed3bb73ee..12e76ed3db 160000 --- a/submodules/libtgvoip +++ b/submodules/libtgvoip @@ -1 +1 @@ -Subproject commit fed3bb73ee58beb8713ae92d3d9d0e496d88f96c +Subproject commit 12e76ed3db5307de45e2186c66d3ea9fbf235930