mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-07 09:20:08 +00:00
Update submodules and localization
This commit is contained in:
parent
735a999487
commit
b2c35bef1d
@ -1,22 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
|
||||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
|
||||||
<key>CFBundleExecutable</key>
|
|
||||||
<string>$(EXECUTABLE_NAME)</string>
|
|
||||||
<key>CFBundleIdentifier</key>
|
|
||||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
|
||||||
<string>6.0</string>
|
|
||||||
<key>CFBundleName</key>
|
|
||||||
<string>$(PRODUCT_NAME)</string>
|
|
||||||
<key>CFBundlePackageType</key>
|
|
||||||
<string>FMWK</string>
|
|
||||||
<key>CFBundleShortVersionString</key>
|
|
||||||
<string>1.0</string>
|
|
||||||
<key>CFBundleVersion</key>
|
|
||||||
<string>$(CURRENT_PROJECT_VERSION)</string>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
||||||
@ -1,22 +0,0 @@
|
|||||||
import Foundation
|
|
||||||
import SwiftSignalKit
|
|
||||||
|
|
||||||
private enum ProtoInstanceState {
|
|
||||||
case none
|
|
||||||
}
|
|
||||||
|
|
||||||
private final class ProtoInstanceImpl {
|
|
||||||
private let target: ProtoTarget
|
|
||||||
|
|
||||||
private var state: ProtoInstanceState
|
|
||||||
|
|
||||||
init(target: ProtoTarget) {
|
|
||||||
self.target = target
|
|
||||||
|
|
||||||
self.state = .none
|
|
||||||
}
|
|
||||||
|
|
||||||
func update(sessionState: ProtoSessionState) {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
import Foundation
|
|
||||||
|
|
||||||
struct ProtoSessionData {
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,41 +0,0 @@
|
|||||||
import Foundation
|
|
||||||
|
|
||||||
@available(iOSApplicationExtension 9.0, *)
|
|
||||||
private final class ProtoTcpConnectionDelegate: NSObject, URLSessionDelegate, URLSessionStreamDelegate {
|
|
||||||
override init() {
|
|
||||||
super.init()
|
|
||||||
}
|
|
||||||
|
|
||||||
func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
func urlSession(_ session: URLSession, readClosedFor streamTask: URLSessionStreamTask) {
|
|
||||||
}
|
|
||||||
|
|
||||||
func urlSession(_ session: URLSession, writeClosedFor streamTask: URLSessionStreamTask) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private func tcpReadTimeout(byteCount: Int) -> TimeInterval {
|
|
||||||
return 10.0
|
|
||||||
}
|
|
||||||
|
|
||||||
@available(iOSApplicationExtension 9.0, *)
|
|
||||||
final class ProtoTcpConnection {
|
|
||||||
let session: URLSession
|
|
||||||
let streamTask: URLSessionStreamTask
|
|
||||||
|
|
||||||
init(host: String, port: Int32) {
|
|
||||||
let configuration = URLSessionConfiguration.ephemeral.copy() as! URLSessionConfiguration
|
|
||||||
if #available(iOSApplicationExtension 11.0, *) {
|
|
||||||
configuration.waitsForConnectivity = true
|
|
||||||
}
|
|
||||||
|
|
||||||
self.session = URLSession(configuration: configuration, delegate: ProtoTcpConnectionDelegate(), delegateQueue: nil)
|
|
||||||
self.streamTask = self.session.streamTask(withHostName: host, port: Int(port))
|
|
||||||
self.streamTask.readData(ofMinLength: 1, maxLength: 1, timeout: tcpReadTimeout(byteCount: 1), completionHandler: { data, eof, error in
|
|
||||||
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
import Foundation
|
|
||||||
|
|
||||||
struct ProtoTransportState {
|
|
||||||
var connected: Bool
|
|
||||||
}
|
|
||||||
|
|
||||||
final class ProtoTransport {
|
|
||||||
func update(paths: [ProtoPath]) -> ProtoTransportState {
|
|
||||||
return ProtoTransportState(connected: false)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
//
|
|
||||||
// ModernProto.h
|
|
||||||
// ModernProto
|
|
||||||
//
|
|
||||||
// Created by Peter on 11/24/18.
|
|
||||||
// Copyright © 2018 Telegram LLP. All rights reserved.
|
|
||||||
//
|
|
||||||
|
|
||||||
#import <UIKit/UIKit.h>
|
|
||||||
|
|
||||||
//! Project version number for ModernProto.
|
|
||||||
FOUNDATION_EXPORT double ModernProtoVersionNumber;
|
|
||||||
|
|
||||||
//! Project version string for ModernProto.
|
|
||||||
FOUNDATION_EXPORT const unsigned char ModernProtoVersionString[];
|
|
||||||
|
|
||||||
// In this header, you should import all the public headers of your framework using statements like #import <ModernProto/PublicHeader.h>
|
|
||||||
|
|
||||||
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
import Foundation
|
|
||||||
|
|
||||||
struct ProtoAuthKey: Equatable {
|
|
||||||
let id: Int64
|
|
||||||
let value: Data
|
|
||||||
}
|
|
||||||
|
|
||||||
final class ProtoAuthData {
|
|
||||||
let key: ProtoAuthKey
|
|
||||||
|
|
||||||
init(key: ProtoAuthKey) {
|
|
||||||
self.key = key
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,22 +0,0 @@
|
|||||||
import Foundation
|
|
||||||
import SwiftSignalKit
|
|
||||||
|
|
||||||
private enum ProtoAuthInstanceState {
|
|
||||||
case none
|
|
||||||
}
|
|
||||||
|
|
||||||
final class ProtoAuthInstance {
|
|
||||||
private let target: ProtoTarget
|
|
||||||
|
|
||||||
private var state: ProtoAuthInstanceState
|
|
||||||
|
|
||||||
init(target: ProtoTarget) {
|
|
||||||
self.target = target
|
|
||||||
|
|
||||||
self.state = .none
|
|
||||||
}
|
|
||||||
|
|
||||||
func update(sessionState: ProtoSessionState) {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,2 +0,0 @@
|
|||||||
import Foundation
|
|
||||||
|
|
||||||
@ -1,15 +0,0 @@
|
|||||||
import Foundation
|
|
||||||
|
|
||||||
public struct ProtoTcpPath: Equatable, Hashable {
|
|
||||||
let host: String
|
|
||||||
let port: Int32
|
|
||||||
|
|
||||||
public init(host: String, port: Int32) {
|
|
||||||
self.host = host
|
|
||||||
self.port = port
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public enum ProtoPath: Equatable, Hashable {
|
|
||||||
case tcp(ProtoTcpPath)
|
|
||||||
}
|
|
||||||
@ -1,45 +0,0 @@
|
|||||||
import Foundation
|
|
||||||
import SwiftSignalKit
|
|
||||||
|
|
||||||
final class ProtoSessionState {
|
|
||||||
let authData: [ProtoTarget: ProtoAuthData] = [:]
|
|
||||||
let paths: [ProtoTarget: Set<ProtoPath>] = [:]
|
|
||||||
}
|
|
||||||
|
|
||||||
private final class ProtoSessionImpl {
|
|
||||||
private let queue: Queue
|
|
||||||
private let configuration: ProtoSessionConfiguration
|
|
||||||
|
|
||||||
init(queue: Queue, configuration: ProtoSessionConfiguration) {
|
|
||||||
self.queue = queue
|
|
||||||
self.configuration = configuration
|
|
||||||
}
|
|
||||||
|
|
||||||
deinit {
|
|
||||||
assert(self.queue.isCurrent())
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public struct ProtoSessionConfiguration {
|
|
||||||
public let seedPaths: [ProtoTarget: ProtoPath]
|
|
||||||
|
|
||||||
public init(seedPaths: [ProtoTarget: ProtoPath]) {
|
|
||||||
self.seedPaths = seedPaths
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public final class ProtoSession {
|
|
||||||
private let queue = Queue()
|
|
||||||
private let impl: QueueLocalObject<ProtoSessionImpl>
|
|
||||||
|
|
||||||
init(configuration: ProtoSessionConfiguration) {
|
|
||||||
let queue = self.queue
|
|
||||||
self.impl = QueueLocalObject(queue: queue, generate: {
|
|
||||||
return ProtoSessionImpl(queue: queue, configuration: configuration)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
import Foundation
|
|
||||||
|
|
||||||
public enum ProtoTarget: Equatable, Hashable {
|
|
||||||
case datacenter(Int)
|
|
||||||
}
|
|
||||||
@ -10,7 +10,7 @@ public class BoxedMessage: NSObject {
|
|||||||
|
|
||||||
public class Serialization: NSObject, MTSerialization {
|
public class Serialization: NSObject, MTSerialization {
|
||||||
public func currentLayer() -> UInt {
|
public func currentLayer() -> UInt {
|
||||||
return 99
|
return 100
|
||||||
}
|
}
|
||||||
|
|
||||||
public func parseMessage(_ data: Data!) -> Any! {
|
public func parseMessage(_ data: Data!) -> Any! {
|
||||||
|
|||||||
@ -4272,3 +4272,10 @@ Sorry for the inconvenience.";
|
|||||||
"UserInfo.ScamBotWarning" = "⚠️ Warning: Many users reported this user as a scam. Please be careful, especially if it asks you for money.";
|
"UserInfo.ScamBotWarning" = "⚠️ Warning: Many users reported this user as a scam. Please be careful, especially if it asks you for money.";
|
||||||
"ChannelInfo.ScamChannelWarning" = "⚠️ Warning: Many users reported this channel as a scam. Please be careful, especially if it asks you for money.";
|
"ChannelInfo.ScamChannelWarning" = "⚠️ Warning: Many users reported this channel as a scam. Please be careful, especially if it asks you for money.";
|
||||||
"GroupInfo.ScamGroupWarning" = "⚠️ Warning: Many users reported this group as a scam. Please be careful, especially if it asks you for money.";
|
"GroupInfo.ScamGroupWarning" = "⚠️ Warning: Many users reported this group as a scam. Please be careful, especially if it asks you for money.";
|
||||||
|
|
||||||
|
"Privacy.AddNewPeer" = "Add Users or Groups";
|
||||||
|
"PrivacyPhoneNumberSettings.WhoCanSeeMyPhoneNumber" = "WHO CAN SEE MY PHONE NUMBER";
|
||||||
|
"PrivacyLastSeenSettings.CustomHelp" = "Users who already have your number saved in the contacts will also see it on Telegram.";
|
||||||
|
"Privacy.PhoneNumber" = "Phone Number";
|
||||||
|
"PrivacySettings.PhoneNumber" = "Phone Number";
|
||||||
|
"Contacts.SearchUsersAndGroupsLabel" = "Search for users and groups";
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
Subproject commit a1aecb45d3320ecedf70d6a6f160a402fd4ee437
|
Subproject commit b75596aaf67347e97d0e3ae867c293558f1fc364
|
||||||
@ -1 +1 @@
|
|||||||
Subproject commit 926569ffc12e0d3984da76c8b9746e623ae82832
|
Subproject commit 0867f44e617f9e7ab79d7e1e3779459aec1e1545
|
||||||
@ -1 +1 @@
|
|||||||
Subproject commit a55a097d54af80ab5351baa10cc9d84530d29b38
|
Subproject commit e3bce5457196e0fb9d874f3fce505fccc34e7a8d
|
||||||
@ -1 +1 @@
|
|||||||
Subproject commit 87c91d57b22bc278dc839b695911c2aff3ce73b0
|
Subproject commit 775e2cb8524b364f1edcf04a6cbe38f65c7fa4d8
|
||||||
@ -1 +1 @@
|
|||||||
Subproject commit 78decc81bf25cf36ad1b4a9398aa11cb195db9c5
|
Subproject commit 35653dbdb22688c0f1f4a2ce913eec3dd3705082
|
||||||
Loading…
x
Reference in New Issue
Block a user