Merge branches 'master' and 'master' of gitlab.com:peter-iakovlev/telegram-ios

This commit is contained in:
Ilya Laktyushin 2019-06-19 19:05:28 +02:00
commit a9481e1ab9
212 changed files with 1708 additions and 204 deletions

View File

@ -3088,6 +3088,253 @@
}; };
name = DebugFork; name = DebugFork;
}; };
D0364D4722B3E35B002A6EF0 /* HockeyappMacAlpha */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_MODULES_AUTOLINK = NO;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 7.1;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_MODULE_NAME = "$(PRODUCT_NAME:c99extidentifier)";
SDKROOT = iphoneos;
};
name = HockeyappMacAlpha;
};
D0364D4822B3E35B002A6EF0 /* HockeyappMacAlpha */ = {
isa = XCBuildConfiguration;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = YES;
CLANG_ENABLE_MODULES = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_BITCODE = YES;
ENABLE_STRICT_OBJC_MSGSEND = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(USER_LIBRARY_DIR)/Developer/Xcode/DerivedData/Telegraph-dzhgyeoibunjpxfckifwvbawfdmi/Build/Products/Debug-iphoneos",
);
GCC_NO_COMMON_BLOCKS = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "MtProtoKitiOS/MtProtoKit-Prefix.pch";
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
"$(PROJECT_DIR)/openssl",
);
INFOPLIST_FILE = MtProtoKit/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/openssl/iOS",
);
MACH_O_TYPE = staticlib;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = NO;
OTHER_CFLAGS = "";
OTHER_LDFLAGS = "-lz";
PRODUCT_BUNDLE_IDENTIFIER = "org.telegram.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_MODULE_NAME = MtProtoKit;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = X834Q8SBVP/;
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = HockeyappMacAlpha;
};
D0364D4922B3E35B002A6EF0 /* HockeyappMacAlpha */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_STRICT_OBJC_MSGSEND = YES;
FRAMEWORK_VERSION = A;
GCC_NO_COMMON_BLOCKS = YES;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
"BETA=1",
);
HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/openssl";
INFOPLIST_FILE = MtProtoKitMac/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/openssl/OSX",
);
MACH_O_TYPE = mh_dylib;
MACOSX_DEPLOYMENT_TARGET = 10.10;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "-DMtProtoKitMacFramework=1";
PRODUCT_BUNDLE_IDENTIFIER = "org.telegram.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = HockeyappMacAlpha;
};
D0364D4A22B3E35B002A6EF0 /* HockeyappMacAlpha */ = {
isa = XCBuildConfiguration;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = YES;
CLANG_ENABLE_MODULES = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
CODE_SIGN_STYLE = Manual;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEFINES_MODULE = YES;
DEPLOYMENT_POSTPROCESSING = NO;
DEVELOPMENT_TEAM = "";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_STRICT_OBJC_MSGSEND = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/thirdparty",
);
GCC_NO_COMMON_BLOCKS = YES;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/openssl";
INFOPLIST_FILE = MtProtoKitDynamic/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/openssl/iOS",
);
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "-DMtProtoKitDynamicFramework=1";
PRODUCT_BUNDLE_IDENTIFIER = "org.telegram.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_MODULE_NAME = "$(PRODUCT_NAME:c99extidentifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SEPARATE_STRIP = NO;
SKIP_INSTALL = YES;
STRIPFLAGS = "";
STRIP_STYLE = debugging;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = HockeyappMacAlpha;
};
D0364D4B22B3E35B002A6EF0 /* HockeyappMacAlpha */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_WARN_UNREACHABLE_CODE = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_STRICT_OBJC_MSGSEND = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
);
GCC_NO_COMMON_BLOCKS = YES;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
INFOPLIST_FILE = MtProtoKitDynamicTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.4;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "org.telegram.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = HockeyappMacAlpha;
};
D0364D4C22B3E35B002A6EF0 /* HockeyappMacAlpha */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_WARN_UNREACHABLE_CODE = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_NO_COMMON_BLOCKS = YES;
INFOPLIST_FILE = MtProtoKitStabilityTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
PRODUCT_BUNDLE_IDENTIFIER = org.telegram.MtProtoKitStabilityTests;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = HockeyappMacAlpha;
};
D05A833A18AFB3F9007F1076 /* Debug */ = { D05A833A18AFB3F9007F1076 /* Debug */ = {
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
buildSettings = { buildSettings = {
@ -5354,6 +5601,7 @@
buildConfigurations = ( buildConfigurations = (
D003546D1C173BF0006610DA /* Debug */, D003546D1C173BF0006610DA /* Debug */,
D079FD151F06BE440038FADE /* DebugHockeyapp */, D079FD151F06BE440038FADE /* DebugHockeyapp */,
D0364D4C22B3E35B002A6EF0 /* HockeyappMacAlpha */,
D021D501219CB1CD0064BEBA /* DebugFork */, D021D501219CB1CD0064BEBA /* DebugFork */,
D0DB57B51E5C4B470071854C /* DebugAppStore */, D0DB57B51E5C4B470071854C /* DebugAppStore */,
D0ADF92D212B3ACC00310BBC /* DebugAppStoreLLC */, D0ADF92D212B3ACC00310BBC /* DebugAppStoreLLC */,
@ -5374,6 +5622,7 @@
buildConfigurations = ( buildConfigurations = (
D05A833A18AFB3F9007F1076 /* Debug */, D05A833A18AFB3F9007F1076 /* Debug */,
D079FD101F06BE440038FADE /* DebugHockeyapp */, D079FD101F06BE440038FADE /* DebugHockeyapp */,
D0364D4722B3E35B002A6EF0 /* HockeyappMacAlpha */,
D021D4FC219CB1CD0064BEBA /* DebugFork */, D021D4FC219CB1CD0064BEBA /* DebugFork */,
D0DB57B01E5C4B470071854C /* DebugAppStore */, D0DB57B01E5C4B470071854C /* DebugAppStore */,
D0ADF928212B3ACC00310BBC /* DebugAppStoreLLC */, D0ADF928212B3ACC00310BBC /* DebugAppStoreLLC */,
@ -5394,6 +5643,7 @@
buildConfigurations = ( buildConfigurations = (
D079ABAA1AF39B8000076F59 /* Debug */, D079ABAA1AF39B8000076F59 /* Debug */,
D079FD121F06BE440038FADE /* DebugHockeyapp */, D079FD121F06BE440038FADE /* DebugHockeyapp */,
D0364D4922B3E35B002A6EF0 /* HockeyappMacAlpha */,
D021D4FE219CB1CD0064BEBA /* DebugFork */, D021D4FE219CB1CD0064BEBA /* DebugFork */,
D0DB57B21E5C4B470071854C /* DebugAppStore */, D0DB57B21E5C4B470071854C /* DebugAppStore */,
D0ADF92A212B3ACC00310BBC /* DebugAppStoreLLC */, D0ADF92A212B3ACC00310BBC /* DebugAppStoreLLC */,
@ -5414,6 +5664,7 @@
buildConfigurations = ( buildConfigurations = (
D0CB060A1ADC4483005E298F /* Debug */, D0CB060A1ADC4483005E298F /* Debug */,
D079FD111F06BE440038FADE /* DebugHockeyapp */, D079FD111F06BE440038FADE /* DebugHockeyapp */,
D0364D4822B3E35B002A6EF0 /* HockeyappMacAlpha */,
D021D4FD219CB1CD0064BEBA /* DebugFork */, D021D4FD219CB1CD0064BEBA /* DebugFork */,
D0DB57B11E5C4B470071854C /* DebugAppStore */, D0DB57B11E5C4B470071854C /* DebugAppStore */,
D0ADF929212B3ACC00310BBC /* DebugAppStoreLLC */, D0ADF929212B3ACC00310BBC /* DebugAppStoreLLC */,
@ -5434,6 +5685,7 @@
buildConfigurations = ( buildConfigurations = (
D0D2251E1B4D817B0085E26D /* Debug */, D0D2251E1B4D817B0085E26D /* Debug */,
D079FD131F06BE440038FADE /* DebugHockeyapp */, D079FD131F06BE440038FADE /* DebugHockeyapp */,
D0364D4A22B3E35B002A6EF0 /* HockeyappMacAlpha */,
D021D4FF219CB1CD0064BEBA /* DebugFork */, D021D4FF219CB1CD0064BEBA /* DebugFork */,
D0DB57B31E5C4B470071854C /* DebugAppStore */, D0DB57B31E5C4B470071854C /* DebugAppStore */,
D0ADF92B212B3ACC00310BBC /* DebugAppStoreLLC */, D0ADF92B212B3ACC00310BBC /* DebugAppStoreLLC */,
@ -5454,6 +5706,7 @@
buildConfigurations = ( buildConfigurations = (
D0D225201B4D817B0085E26D /* Debug */, D0D225201B4D817B0085E26D /* Debug */,
D079FD141F06BE440038FADE /* DebugHockeyapp */, D079FD141F06BE440038FADE /* DebugHockeyapp */,
D0364D4B22B3E35B002A6EF0 /* HockeyappMacAlpha */,
D021D500219CB1CD0064BEBA /* DebugFork */, D021D500219CB1CD0064BEBA /* DebugFork */,
D0DB57B41E5C4B470071854C /* DebugAppStore */, D0DB57B41E5C4B470071854C /* DebugAppStore */,
D0ADF92C212B3ACC00310BBC /* DebugAppStoreLLC */, D0ADF92C212B3ACC00310BBC /* DebugAppStoreLLC */,

View File

@ -1886,6 +1886,161 @@
}; };
name = DebugFork; name = DebugFork;
}; };
D0364D5122B3E385002A6EF0 /* HockeyappMacAlpha */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = D07516491B2D9E2500AE42E0 /* Postbox.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MACOSX_DEPLOYMENT_TARGET = 10.10;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = HockeyappMacAlpha;
};
D0364D5222B3E385002A6EF0 /* HockeyappMacAlpha */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = D07516491B2D9E2500AE42E0 /* Postbox.xcconfig */;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = YES;
CLANG_ENABLE_MODULES = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
CODE_SIGN_STYLE = Manual;
DEAD_CODE_STRIPPING = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_BITCODE = YES;
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
INFOPLIST_FILE = Postbox/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MACH_O_TYPE = mh_dylib;
OTHER_CFLAGS = (
"-DSQLITE_HAS_CODEC=1",
"-DSQLCIPHER_CRYPTO_CC=1",
"-DSQLITE_ENABLE_FTS5",
"-DSQLITE_DEFAULT_MEMSTATUS=0",
"-DNDEBUG",
);
OTHER_SWIFT_FLAGS = "-DDEBUG";
PRESERVE_DEAD_CODE_INITS_AND_TERMS = NO;
PRODUCT_BUNDLE_IDENTIFIER = "org.telegram.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SKIP_INSTALL = YES;
STRIP_SWIFT_SYMBOLS = YES;
SWIFT_COMPILATION_MODE = singlefile;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_REFLECTION_METADATA_LEVEL = all;
SWIFT_VERSION = 4.2;
};
name = HockeyappMacAlpha;
};
D0364D5322B3E385002A6EF0 /* HockeyappMacAlpha */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = D07516491B2D9E2500AE42E0 /* Postbox.xcconfig */;
buildSettings = {
DEVELOPMENT_TEAM = "";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
"/Users/peter/Documents/PostBoxTest/submodules/SSignalKit/build/Debug-iphoneos",
);
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
INFOPLIST_FILE = PostboxTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "org.telegram.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 3.0;
};
name = HockeyappMacAlpha;
};
D0364D5422B3E385002A6EF0 /* HockeyappMacAlpha */ = {
isa = XCBuildConfiguration;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_SUSPICIOUS_MOVES = YES;
CODE_SIGN_IDENTITY = "Mac Developer";
COMBINE_HIDPI_IMAGES = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = "";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
FRAMEWORK_VERSION = A;
GCC_OPTIMIZATION_LEVEL = s;
INFOPLIST_FILE = PostboxMac/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.11;
MODULEMAP_PRIVATE_FILE = "$(SRCROOT)/Postbox/module.private-mac.modulemap";
OTHER_CFLAGS = (
"-DSQLITE_HAS_CODEC=1",
"-DSQLCIPHER_CRYPTO_CC=1",
"-DSQLITE_ENABLE_FTS5",
"-DSQLITE_DEFAULT_MEMSTATUS=0",
"-DNDEBUG",
);
OTHER_SWIFT_FLAGS = "-DDEBUG";
PRODUCT_BUNDLE_IDENTIFIER = org.telegram.Telegram.PostboxMac;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SKIP_INSTALL = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_VERSION = 4.2;
};
name = HockeyappMacAlpha;
};
D079FD0C1F06BE070038FADE /* DebugAppStore */ = { D079FD0C1F06BE070038FADE /* DebugAppStore */ = {
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
baseConfigurationReference = D07516491B2D9E2500AE42E0 /* Postbox.xcconfig */; baseConfigurationReference = D07516491B2D9E2500AE42E0 /* Postbox.xcconfig */;
@ -2769,6 +2924,7 @@
isa = XCConfigurationList; isa = XCConfigurationList;
buildConfigurations = ( buildConfigurations = (
D0B418181D7DFAF3004562A4 /* DebugHockeyapp */, D0B418181D7DFAF3004562A4 /* DebugHockeyapp */,
D0364D5422B3E385002A6EF0 /* HockeyappMacAlpha */,
D021D4FB219CB1B90064BEBA /* DebugFork */, D021D4FB219CB1B90064BEBA /* DebugFork */,
D079FD0F1F06BE070038FADE /* DebugAppStore */, D079FD0F1F06BE070038FADE /* DebugAppStore */,
D0ADF927212B3AC400310BBC /* DebugAppStoreLLC */, D0ADF927212B3AC400310BBC /* DebugAppStoreLLC */,
@ -2784,6 +2940,7 @@
isa = XCConfigurationList; isa = XCConfigurationList;
buildConfigurations = ( buildConfigurations = (
D0E3A75E1B28A7E300A402D9 /* DebugHockeyapp */, D0E3A75E1B28A7E300A402D9 /* DebugHockeyapp */,
D0364D5122B3E385002A6EF0 /* HockeyappMacAlpha */,
D021D4F8219CB1B90064BEBA /* DebugFork */, D021D4F8219CB1B90064BEBA /* DebugFork */,
D079FD0C1F06BE070038FADE /* DebugAppStore */, D079FD0C1F06BE070038FADE /* DebugAppStore */,
D0ADF924212B3AC400310BBC /* DebugAppStoreLLC */, D0ADF924212B3AC400310BBC /* DebugAppStoreLLC */,
@ -2799,6 +2956,7 @@
isa = XCConfigurationList; isa = XCConfigurationList;
buildConfigurations = ( buildConfigurations = (
D0E3A7611B28A7E300A402D9 /* DebugHockeyapp */, D0E3A7611B28A7E300A402D9 /* DebugHockeyapp */,
D0364D5222B3E385002A6EF0 /* HockeyappMacAlpha */,
D021D4F9219CB1B90064BEBA /* DebugFork */, D021D4F9219CB1B90064BEBA /* DebugFork */,
D079FD0D1F06BE070038FADE /* DebugAppStore */, D079FD0D1F06BE070038FADE /* DebugAppStore */,
D0ADF925212B3AC400310BBC /* DebugAppStoreLLC */, D0ADF925212B3AC400310BBC /* DebugAppStoreLLC */,
@ -2814,6 +2972,7 @@
isa = XCConfigurationList; isa = XCConfigurationList;
buildConfigurations = ( buildConfigurations = (
D0E3A7641B28A7E300A402D9 /* DebugHockeyapp */, D0E3A7641B28A7E300A402D9 /* DebugHockeyapp */,
D0364D5322B3E385002A6EF0 /* HockeyappMacAlpha */,
D021D4FA219CB1B90064BEBA /* DebugFork */, D021D4FA219CB1B90064BEBA /* DebugFork */,
D079FD0E1F06BE070038FADE /* DebugAppStore */, D079FD0E1F06BE070038FADE /* DebugAppStore */,
D0ADF926212B3AC400310BBC /* DebugAppStoreLLC */, D0ADF926212B3AC400310BBC /* DebugAppStoreLLC */,

View File

@ -1145,6 +1145,189 @@
}; };
name = DebugFork; name = DebugFork;
}; };
D0364D5522B3E38E002A6EF0 /* HockeyappMacAlpha */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
ENABLE_BITCODE = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = HockeyappMacAlpha;
};
D0364D5622B3E38E002A6EF0 /* HockeyappMacAlpha */ = {
isa = XCBuildConfiguration;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
CODE_SIGN_STYLE = Manual;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_BITCODE = YES;
INFOPLIST_FILE = SSignalKit/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MACH_O_TYPE = staticlib;
ONLY_ACTIVE_ARCH = NO;
PRODUCT_BUNDLE_IDENTIFIER = "org.telegram.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = X834Q8SBVP/;
SKIP_INSTALL = YES;
};
name = HockeyappMacAlpha;
};
D0364D5722B3E38E002A6EF0 /* HockeyappMacAlpha */ = {
isa = XCBuildConfiguration;
buildSettings = {
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
);
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
INFOPLIST_FILE = SSignalKitTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
OTHER_LDFLAGS = (
"$(inherited)",
"-framework",
XCTest,
"-ObjC",
);
PRODUCT_BUNDLE_IDENTIFIER = "org.telegram.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = HockeyappMacAlpha;
};
D0364D5822B3E38E002A6EF0 /* HockeyappMacAlpha */ = {
isa = XCBuildConfiguration;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = YES;
ARCHS = "$(ARCHS_STANDARD)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
CODE_SIGN_STYLE = Manual;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
ENABLE_BITCODE = YES;
GCC_NO_COMMON_BLOCKS = YES;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
INFOPLIST_FILE = SwiftSignalKit/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
OTHER_SWIFT_FLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = "org.telegram.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_REFLECTION_METADATA_LEVEL = none;
SWIFT_VERSION = 4.0;
};
name = HockeyappMacAlpha;
};
D0364D5922B3E38E002A6EF0 /* HockeyappMacAlpha */ = {
isa = XCBuildConfiguration;
buildSettings = {
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
);
GCC_NO_COMMON_BLOCKS = YES;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
INFOPLIST_FILE = SwiftSignalKitTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "org.telegram.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
};
name = HockeyappMacAlpha;
};
D0364D5A22B3E38E002A6EF0 /* HockeyappMacAlpha */ = {
isa = XCBuildConfiguration;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = YES;
CLANG_ANALYZER_NONNULL = YES;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_SUSPICIOUS_MOVES = YES;
CODE_SIGN_IDENTITY = "-";
COMBINE_HIDPI_IMAGES = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = "";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
FRAMEWORK_VERSION = A;
INFOPLIST_FILE = SwiftSignalKitMac/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.10;
PRODUCT_BUNDLE_IDENTIFIER = org.telegram.Telegram.SwiftSignalKitMac;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SKIP_INSTALL = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 4.0;
};
name = HockeyappMacAlpha;
};
D0445DEC1A7C2CA500267924 /* DebugHockeyapp */ = { D0445DEC1A7C2CA500267924 /* DebugHockeyapp */ = {
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
buildSettings = { buildSettings = {
@ -2256,6 +2439,7 @@
isa = XCConfigurationList; isa = XCConfigurationList;
buildConfigurations = ( buildConfigurations = (
D0085B361B282B9800EAF753 /* DebugHockeyapp */, D0085B361B282B9800EAF753 /* DebugHockeyapp */,
D0364D5822B3E38E002A6EF0 /* HockeyappMacAlpha */,
D021D505219CB1D90064BEBA /* DebugFork */, D021D505219CB1D90064BEBA /* DebugFork */,
D0DB57B91E5C4B7A0071854C /* DebugAppStore */, D0DB57B91E5C4B7A0071854C /* DebugAppStore */,
D0ADF931212B3AD400310BBC /* DebugAppStoreLLC */, D0ADF931212B3AD400310BBC /* DebugAppStoreLLC */,
@ -2271,6 +2455,7 @@
isa = XCConfigurationList; isa = XCConfigurationList;
buildConfigurations = ( buildConfigurations = (
D0085B391B282B9800EAF753 /* DebugHockeyapp */, D0085B391B282B9800EAF753 /* DebugHockeyapp */,
D0364D5922B3E38E002A6EF0 /* HockeyappMacAlpha */,
D021D506219CB1D90064BEBA /* DebugFork */, D021D506219CB1D90064BEBA /* DebugFork */,
D0DB57BA1E5C4B7A0071854C /* DebugAppStore */, D0DB57BA1E5C4B7A0071854C /* DebugAppStore */,
D0ADF932212B3AD400310BBC /* DebugAppStoreLLC */, D0ADF932212B3AD400310BBC /* DebugAppStoreLLC */,
@ -2286,6 +2471,7 @@
isa = XCConfigurationList; isa = XCConfigurationList;
buildConfigurations = ( buildConfigurations = (
D0445DEC1A7C2CA500267924 /* DebugHockeyapp */, D0445DEC1A7C2CA500267924 /* DebugHockeyapp */,
D0364D5522B3E38E002A6EF0 /* HockeyappMacAlpha */,
D021D502219CB1D90064BEBA /* DebugFork */, D021D502219CB1D90064BEBA /* DebugFork */,
D0DB57B61E5C4B7A0071854C /* DebugAppStore */, D0DB57B61E5C4B7A0071854C /* DebugAppStore */,
D0ADF92E212B3AD400310BBC /* DebugAppStoreLLC */, D0ADF92E212B3AD400310BBC /* DebugAppStoreLLC */,
@ -2301,6 +2487,7 @@
isa = XCConfigurationList; isa = XCConfigurationList;
buildConfigurations = ( buildConfigurations = (
D0445DEF1A7C2CA500267924 /* DebugHockeyapp */, D0445DEF1A7C2CA500267924 /* DebugHockeyapp */,
D0364D5622B3E38E002A6EF0 /* HockeyappMacAlpha */,
D021D503219CB1D90064BEBA /* DebugFork */, D021D503219CB1D90064BEBA /* DebugFork */,
D0DB57B71E5C4B7A0071854C /* DebugAppStore */, D0DB57B71E5C4B7A0071854C /* DebugAppStore */,
D0ADF92F212B3AD400310BBC /* DebugAppStoreLLC */, D0ADF92F212B3AD400310BBC /* DebugAppStoreLLC */,
@ -2316,6 +2503,7 @@
isa = XCConfigurationList; isa = XCConfigurationList;
buildConfigurations = ( buildConfigurations = (
D0445DF21A7C2CA500267924 /* DebugHockeyapp */, D0445DF21A7C2CA500267924 /* DebugHockeyapp */,
D0364D5722B3E38E002A6EF0 /* HockeyappMacAlpha */,
D021D504219CB1D90064BEBA /* DebugFork */, D021D504219CB1D90064BEBA /* DebugFork */,
D0DB57B81E5C4B7A0071854C /* DebugAppStore */, D0DB57B81E5C4B7A0071854C /* DebugAppStore */,
D0ADF930212B3AD400310BBC /* DebugAppStoreLLC */, D0ADF930212B3AD400310BBC /* DebugAppStoreLLC */,
@ -2331,6 +2519,7 @@
isa = XCConfigurationList; isa = XCConfigurationList;
buildConfigurations = ( buildConfigurations = (
D0B417F31D7DFA63004562A4 /* DebugHockeyapp */, D0B417F31D7DFA63004562A4 /* DebugHockeyapp */,
D0364D5A22B3E38E002A6EF0 /* HockeyappMacAlpha */,
D021D507219CB1D90064BEBA /* DebugFork */, D021D507219CB1D90064BEBA /* DebugFork */,
D0DB57BB1E5C4B7A0071854C /* DebugAppStore */, D0DB57BB1E5C4B7A0071854C /* DebugAppStore */,
D0ADF933212B3AD400310BBC /* DebugAppStoreLLC */, D0ADF933212B3AD400310BBC /* DebugAppStoreLLC */,

View File

@ -34,10 +34,10 @@ public final class Timer {
if self.`repeat` { if self.`repeat` {
let time: DispatchTime = DispatchTime.now() + self.timeout let time: DispatchTime = DispatchTime.now() + self.timeout
timer.scheduleRepeating(deadline: time, interval: self.timeout) timer.schedule(deadline: time, repeating: self.timeout)
} else { } else {
let time: DispatchTime = DispatchTime.now() + self.timeout let time: DispatchTime = DispatchTime.now() + self.timeout
timer.scheduleOneshot(deadline: time) timer.schedule(deadline: time)
} }
timer.resume() timer.resume()

View File

@ -0,0 +1,22 @@
<?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>

View File

@ -0,0 +1,22 @@
<?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>

View File

@ -18,6 +18,17 @@
D035734722B5C9BF00F0920D /* SecretApiLayer46.swift in Sources */ = {isa = PBXBuildFile; fileRef = D035734422B5C9BF00F0920D /* SecretApiLayer46.swift */; }; D035734722B5C9BF00F0920D /* SecretApiLayer46.swift in Sources */ = {isa = PBXBuildFile; fileRef = D035734422B5C9BF00F0920D /* SecretApiLayer46.swift */; };
D035734822B5C9BF00F0920D /* SecretApiLayer8.swift in Sources */ = {isa = PBXBuildFile; fileRef = D035734522B5C9BF00F0920D /* SecretApiLayer8.swift */; }; D035734822B5C9BF00F0920D /* SecretApiLayer8.swift in Sources */ = {isa = PBXBuildFile; fileRef = D035734522B5C9BF00F0920D /* SecretApiLayer8.swift */; };
D035734922B5C9BF00F0920D /* SecretApiLayer73.swift in Sources */ = {isa = PBXBuildFile; fileRef = D035734622B5C9BF00F0920D /* SecretApiLayer73.swift */; }; D035734922B5C9BF00F0920D /* SecretApiLayer73.swift in Sources */ = {isa = PBXBuildFile; fileRef = D035734622B5C9BF00F0920D /* SecretApiLayer73.swift */; };
D0CC4AC422BA46F30088F36D /* TelegramApi.h in Headers */ = {isa = PBXBuildFile; fileRef = D035732222B5C1FC00F0920D /* TelegramApi.h */; settings = {ATTRIBUTES = (Public, ); }; };
D0CC4AC622BA46F30088F36D /* SecretApiLayer46.swift in Sources */ = {isa = PBXBuildFile; fileRef = D035734422B5C9BF00F0920D /* SecretApiLayer46.swift */; };
D0CC4AC722BA46F30088F36D /* Api1.swift in Sources */ = {isa = PBXBuildFile; fileRef = D035733222B5C29900F0920D /* Api1.swift */; };
D0CC4AC822BA46F30088F36D /* Api0.swift in Sources */ = {isa = PBXBuildFile; fileRef = D035733022B5C29900F0920D /* Api0.swift */; };
D0CC4AC922BA46F30088F36D /* Api3.swift in Sources */ = {isa = PBXBuildFile; fileRef = D035733322B5C29900F0920D /* Api3.swift */; };
D0CC4ACA22BA46F30088F36D /* SecretApiLayer73.swift in Sources */ = {isa = PBXBuildFile; fileRef = D035734622B5C9BF00F0920D /* SecretApiLayer73.swift */; };
D0CC4ACB22BA46F30088F36D /* TelegramApiLogger.swift in Sources */ = {isa = PBXBuildFile; fileRef = D035733A22B5C31400F0920D /* TelegramApiLogger.swift */; };
D0CC4ACC22BA46F30088F36D /* Buffer.swift in Sources */ = {isa = PBXBuildFile; fileRef = D035733822B5C2E200F0920D /* Buffer.swift */; };
D0CC4ACD22BA46F30088F36D /* DeserializeFunctionResponse.swift in Sources */ = {isa = PBXBuildFile; fileRef = D035733C22B5C39100F0920D /* DeserializeFunctionResponse.swift */; };
D0CC4ACE22BA46F30088F36D /* SecretApiLayer8.swift in Sources */ = {isa = PBXBuildFile; fileRef = D035734522B5C9BF00F0920D /* SecretApiLayer8.swift */; };
D0CC4ACF22BA46F30088F36D /* Api2.swift in Sources */ = {isa = PBXBuildFile; fileRef = D035733122B5C29900F0920D /* Api2.swift */; };
/* End PBXBuildFile section */ /* End PBXBuildFile section */
/* Begin PBXFileReference section */ /* Begin PBXFileReference section */
@ -34,6 +45,9 @@
D035734422B5C9BF00F0920D /* SecretApiLayer46.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SecretApiLayer46.swift; sourceTree = "<group>"; }; D035734422B5C9BF00F0920D /* SecretApiLayer46.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SecretApiLayer46.swift; sourceTree = "<group>"; };
D035734522B5C9BF00F0920D /* SecretApiLayer8.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SecretApiLayer8.swift; sourceTree = "<group>"; }; D035734522B5C9BF00F0920D /* SecretApiLayer8.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SecretApiLayer8.swift; sourceTree = "<group>"; };
D035734622B5C9BF00F0920D /* SecretApiLayer73.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SecretApiLayer73.swift; sourceTree = "<group>"; }; D035734622B5C9BF00F0920D /* SecretApiLayer73.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SecretApiLayer73.swift; sourceTree = "<group>"; };
D0CC4AC122BA468D0088F36D /* TelegramApi copy-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "TelegramApi copy-Info.plist"; path = "/Users/keepcoder/Dropbox/Telegram-multi-acc/submodules/telegram-ios/submodules/TelegramApi/TelegramApi copy-Info.plist"; sourceTree = "<absolute>"; };
D0CC4AD922BA46F30088F36D /* TelegramApiMac.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = TelegramApiMac.framework; sourceTree = BUILT_PRODUCTS_DIR; };
D0CC4ADA22BA46F40088F36D /* TelegramApi copy2-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "TelegramApi copy2-Info.plist"; path = "/Users/keepcoder/Dropbox/Telegram-multi-acc/submodules/telegram-ios/submodules/TelegramApi/TelegramApi copy2-Info.plist"; sourceTree = "<absolute>"; };
/* End PBXFileReference section */ /* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */ /* Begin PBXFrameworksBuildPhase section */
@ -44,6 +58,13 @@
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
D0CC4AD022BA46F30088F36D /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */ /* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */ /* Begin PBXGroup section */
@ -53,6 +74,8 @@
D035732322B5C1FC00F0920D /* Info.plist */, D035732322B5C1FC00F0920D /* Info.plist */,
D035732122B5C1FC00F0920D /* Sources */, D035732122B5C1FC00F0920D /* Sources */,
D035732022B5C1FC00F0920D /* Products */, D035732022B5C1FC00F0920D /* Products */,
D0CC4AC122BA468D0088F36D /* TelegramApi copy-Info.plist */,
D0CC4ADA22BA46F40088F36D /* TelegramApi copy2-Info.plist */,
); );
sourceTree = "<group>"; sourceTree = "<group>";
}; };
@ -60,6 +83,7 @@
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
D035731F22B5C1FC00F0920D /* TelegramApi.framework */, D035731F22B5C1FC00F0920D /* TelegramApi.framework */,
D0CC4AD922BA46F30088F36D /* TelegramApiMac.framework */,
); );
name = Products; name = Products;
sourceTree = "<group>"; sourceTree = "<group>";
@ -93,6 +117,14 @@
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
D0CC4AC322BA46F30088F36D /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
D0CC4AC422BA46F30088F36D /* TelegramApi.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */ /* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */ /* Begin PBXNativeTarget section */
@ -114,6 +146,24 @@
productReference = D035731F22B5C1FC00F0920D /* TelegramApi.framework */; productReference = D035731F22B5C1FC00F0920D /* TelegramApi.framework */;
productType = "com.apple.product-type.framework"; productType = "com.apple.product-type.framework";
}; };
D0CC4AC222BA46F30088F36D /* TelegramApiMac */ = {
isa = PBXNativeTarget;
buildConfigurationList = D0CC4AD222BA46F30088F36D /* Build configuration list for PBXNativeTarget "TelegramApiMac" */;
buildPhases = (
D0CC4AC322BA46F30088F36D /* Headers */,
D0CC4AC522BA46F30088F36D /* Sources */,
D0CC4AD022BA46F30088F36D /* Frameworks */,
D0CC4AD122BA46F30088F36D /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = TelegramApiMac;
productName = TelegramApi;
productReference = D0CC4AD922BA46F30088F36D /* TelegramApiMac.framework */;
productType = "com.apple.product-type.framework";
};
/* End PBXNativeTarget section */ /* End PBXNativeTarget section */
/* Begin PBXProject section */ /* Begin PBXProject section */
@ -143,6 +193,7 @@
projectRoot = ""; projectRoot = "";
targets = ( targets = (
D035731E22B5C1FC00F0920D /* TelegramApi */, D035731E22B5C1FC00F0920D /* TelegramApi */,
D0CC4AC222BA46F30088F36D /* TelegramApiMac */,
); );
}; };
/* End PBXProject section */ /* End PBXProject section */
@ -155,6 +206,13 @@
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
D0CC4AD122BA46F30088F36D /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */ /* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */
@ -175,6 +233,23 @@
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
D0CC4AC522BA46F30088F36D /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
D0CC4AC622BA46F30088F36D /* SecretApiLayer46.swift in Sources */,
D0CC4AC722BA46F30088F36D /* Api1.swift in Sources */,
D0CC4AC822BA46F30088F36D /* Api0.swift in Sources */,
D0CC4AC922BA46F30088F36D /* Api3.swift in Sources */,
D0CC4ACA22BA46F30088F36D /* SecretApiLayer73.swift in Sources */,
D0CC4ACB22BA46F30088F36D /* TelegramApiLogger.swift in Sources */,
D0CC4ACC22BA46F30088F36D /* Buffer.swift in Sources */,
D0CC4ACD22BA46F30088F36D /* DeserializeFunctionResponse.swift in Sources */,
D0CC4ACE22BA46F30088F36D /* SecretApiLayer8.swift in Sources */,
D0CC4ACF22BA46F30088F36D /* Api2.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */ /* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */ /* Begin XCBuildConfiguration section */
@ -235,6 +310,7 @@
MTL_FAST_MATH = YES; MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES; ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos; SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_OPTIMIZATION_LEVEL = "-Onone";
VERSIONING_SYSTEM = "apple-generic"; VERSIONING_SYSTEM = "apple-generic";
@ -292,6 +368,7 @@
MTL_ENABLE_DEBUG_INFO = NO; MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES; MTL_FAST_MATH = YES;
SDKROOT = iphoneos; SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
SWIFT_COMPILATION_MODE = wholemodule; SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O"; SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES; VALIDATE_PRODUCT = YES;
@ -414,6 +491,7 @@
MTL_FAST_MATH = YES; MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES; ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos; SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_OPTIMIZATION_LEVEL = "-Onone";
VERSIONING_SYSTEM = "apple-generic"; VERSIONING_SYSTEM = "apple-generic";
@ -500,6 +578,7 @@
MTL_ENABLE_DEBUG_INFO = NO; MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES; MTL_FAST_MATH = YES;
SDKROOT = iphoneos; SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
SWIFT_COMPILATION_MODE = wholemodule; SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O"; SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES; VALIDATE_PRODUCT = YES;
@ -536,6 +615,384 @@
}; };
name = ReleaseAppStoreLLC; name = ReleaseAppStoreLLC;
}; };
D0CC4AA522BA44AD0088F36D /* DebugAppStore */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = DebugAppStore;
};
D0CC4AA622BA44AD0088F36D /* DebugAppStore */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "";
CODE_SIGN_STYLE = Manual;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = "";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MACH_O_TYPE = staticlib;
PRODUCT_BUNDLE_IDENTIFIER = org.telegram.TelegramApi;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = DebugAppStore;
};
D0CC4AA722BA44B70088F36D /* HockeyappMacAlpha */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = HockeyappMacAlpha;
};
D0CC4AA822BA44B70088F36D /* HockeyappMacAlpha */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "";
CODE_SIGN_STYLE = Manual;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = "";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MACH_O_TYPE = staticlib;
PRODUCT_BUNDLE_IDENTIFIER = org.telegram.TelegramApi;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = HockeyappMacAlpha;
};
D0CC4AD322BA46F30088F36D /* DebugHockeyapp */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "";
CODE_SIGN_STYLE = Manual;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = "";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "TelegramApi copy2-Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MACH_O_TYPE = staticlib;
MACOSX_DEPLOYMENT_TARGET = 10.11;
PRODUCT_BUNDLE_IDENTIFIER = org.telegram.TelegramApi;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = macosx;
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = macosx;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = DebugHockeyapp;
};
D0CC4AD422BA46F30088F36D /* HockeyappMacAlpha */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "";
CODE_SIGN_STYLE = Manual;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = "";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "TelegramApi copy2-Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MACH_O_TYPE = staticlib;
MACOSX_DEPLOYMENT_TARGET = 10.11;
PRODUCT_BUNDLE_IDENTIFIER = org.telegram.TelegramApi;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = macosx;
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = macosx;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = HockeyappMacAlpha;
};
D0CC4AD522BA46F30088F36D /* DebugAppStore */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "";
CODE_SIGN_STYLE = Manual;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = "";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "TelegramApi copy2-Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MACH_O_TYPE = staticlib;
MACOSX_DEPLOYMENT_TARGET = 10.11;
PRODUCT_BUNDLE_IDENTIFIER = org.telegram.TelegramApi;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = macosx;
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = macosx;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = DebugAppStore;
};
D0CC4AD622BA46F30088F36D /* DebugAppStoreLLC */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "";
CODE_SIGN_STYLE = Manual;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = "";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "TelegramApi copy2-Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MACH_O_TYPE = staticlib;
MACOSX_DEPLOYMENT_TARGET = 10.11;
PRODUCT_BUNDLE_IDENTIFIER = org.telegram.TelegramApi;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = macosx;
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = macosx;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = DebugAppStoreLLC;
};
D0CC4AD722BA46F30088F36D /* ReleaseHockeyappInternal */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "";
CODE_SIGN_STYLE = Manual;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = "";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "TelegramApi copy2-Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MACH_O_TYPE = staticlib;
MACOSX_DEPLOYMENT_TARGET = 10.11;
PRODUCT_BUNDLE_IDENTIFIER = org.telegram.TelegramApi;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = macosx;
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = macosx;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = ReleaseHockeyappInternal;
};
D0CC4AD822BA46F30088F36D /* ReleaseAppStoreLLC */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "";
CODE_SIGN_STYLE = Manual;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = "";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "TelegramApi copy2-Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MACH_O_TYPE = staticlib;
MACOSX_DEPLOYMENT_TARGET = 10.11;
PRODUCT_BUNDLE_IDENTIFIER = org.telegram.TelegramApi;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = macosx;
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = macosx;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = ReleaseAppStoreLLC;
};
/* End XCBuildConfiguration section */ /* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */ /* Begin XCConfigurationList section */
@ -543,6 +1000,8 @@
isa = XCConfigurationList; isa = XCConfigurationList;
buildConfigurations = ( buildConfigurations = (
D035732522B5C1FC00F0920D /* DebugHockeyapp */, D035732522B5C1FC00F0920D /* DebugHockeyapp */,
D0CC4AA722BA44B70088F36D /* HockeyappMacAlpha */,
D0CC4AA522BA44AD0088F36D /* DebugAppStore */,
D035732A22B5C23200F0920D /* DebugAppStoreLLC */, D035732A22B5C23200F0920D /* DebugAppStoreLLC */,
D035732622B5C1FC00F0920D /* ReleaseHockeyappInternal */, D035732622B5C1FC00F0920D /* ReleaseHockeyappInternal */,
D035732C22B5C24100F0920D /* ReleaseAppStoreLLC */, D035732C22B5C24100F0920D /* ReleaseAppStoreLLC */,
@ -554,6 +1013,8 @@
isa = XCConfigurationList; isa = XCConfigurationList;
buildConfigurations = ( buildConfigurations = (
D035732822B5C1FC00F0920D /* DebugHockeyapp */, D035732822B5C1FC00F0920D /* DebugHockeyapp */,
D0CC4AA822BA44B70088F36D /* HockeyappMacAlpha */,
D0CC4AA622BA44AD0088F36D /* DebugAppStore */,
D035732B22B5C23200F0920D /* DebugAppStoreLLC */, D035732B22B5C23200F0920D /* DebugAppStoreLLC */,
D035732922B5C1FC00F0920D /* ReleaseHockeyappInternal */, D035732922B5C1FC00F0920D /* ReleaseHockeyappInternal */,
D035732D22B5C24100F0920D /* ReleaseAppStoreLLC */, D035732D22B5C24100F0920D /* ReleaseAppStoreLLC */,
@ -561,6 +1022,19 @@
defaultConfigurationIsVisible = 0; defaultConfigurationIsVisible = 0;
defaultConfigurationName = ReleaseHockeyappInternal; defaultConfigurationName = ReleaseHockeyappInternal;
}; };
D0CC4AD222BA46F30088F36D /* Build configuration list for PBXNativeTarget "TelegramApiMac" */ = {
isa = XCConfigurationList;
buildConfigurations = (
D0CC4AD322BA46F30088F36D /* DebugHockeyapp */,
D0CC4AD422BA46F30088F36D /* HockeyappMacAlpha */,
D0CC4AD522BA46F30088F36D /* DebugAppStore */,
D0CC4AD622BA46F30088F36D /* DebugAppStoreLLC */,
D0CC4AD722BA46F30088F36D /* ReleaseHockeyappInternal */,
D0CC4AD822BA46F30088F36D /* ReleaseAppStoreLLC */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = ReleaseHockeyappInternal;
};
/* End XCConfigurationList section */ /* End XCConfigurationList section */
}; };
rootObject = D035731622B5C1FC00F0920D /* Project object */; rootObject = D035731622B5C1FC00F0920D /* Project object */;

View File

@ -3,9 +3,11 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
@ -14,7 +16,7 @@ import Foundation
import UIKit import UIKit
#endif #endif
import TelegramCorePrivateModule import TelegramCorePrivateModule
import TelegramApi
public protocol AccountState: PostboxCoding { public protocol AccountState: PostboxCoding {
func equalsTo(_ other: AccountState) -> Bool func equalsTo(_ other: AccountState) -> Bool

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
struct PeerChatInfo { struct PeerChatInfo {
var notificationSettings: PeerNotificationSettings var notificationSettings: PeerNotificationSettings

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
private enum AccountKind { private enum AccountKind {
case authorized case authorized

View File

@ -1,10 +1,11 @@
import Foundation import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
#endif #endif
import TelegramApi
private enum SentAuthorizationCodeTypeValue: Int32 { private enum SentAuthorizationCodeTypeValue: Int32 {
case otherSession = 0 case otherSession = 0

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
private func peerIdsFromUpdateGroups(_ groups: [UpdateGroup]) -> Set<PeerId> { private func peerIdsFromUpdateGroups(_ groups: [UpdateGroup]) -> Set<PeerId> {
var peerIds = Set<PeerId>() var peerIds = Set<PeerId>()

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
private enum AccountStateManagerOperationContent { private enum AccountStateManagerOperationContent {
case pollDifference(AccountFinalStateEvents) case pollDifference(AccountFinalStateEvents)

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
private struct LocalChatListEntryRange { private struct LocalChatListEntryRange {
var entries: [ChatListNamespaceEntry] var entries: [ChatListNamespaceEntry]

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public enum CallListViewType { public enum CallListViewType {
case all case all

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public enum AddGroupMemberError { public enum AddGroupMemberError {
case generic case generic

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public enum AddressNameFormatError { public enum AddressNameFormatError {
case startsWithUnderscore case startsWithUnderscore

View File

@ -1,11 +1,12 @@
import Foundation import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import UIKit import UIKit
import TelegramApi
#endif #endif
import TelegramApi
func imageRepresentationsForApiChatPhoto(_ photo: Api.ChatPhoto) -> [TelegramMediaImageRepresentation] { func imageRepresentationsForApiChatPhoto(_ photo: Api.ChatPhoto) -> [TelegramMediaImageRepresentation] {
var representations: [TelegramMediaImageRepresentation] = [] var representations: [TelegramMediaImageRepresentation] = []

View File

@ -1,10 +1,11 @@
import Foundation import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
#endif #endif
import TelegramApi
public enum PeerReference: PostboxCoding, Hashable, Equatable { public enum PeerReference: PostboxCoding, Hashable, Equatable {
case user(id: Int32, accessHash: Int64) case user(id: Int32, accessHash: Int64)

View File

@ -3,8 +3,10 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
import SwiftSignalKit import SwiftSignalKit
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
@ -12,7 +14,6 @@ import SwiftSignalKit
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
func managedAppChangelog(postbox: Postbox, network: Network, stateManager: AccountStateManager, appVersion: String) -> Signal<Void, NoError> { func managedAppChangelog(postbox: Postbox, network: Network, stateManager: AccountStateManager, appVersion: String) -> Signal<Void, NoError> {
return stateManager.pollStateUpdateCompletion() return stateManager.pollStateUpdateCompletion()

View File

@ -2,11 +2,12 @@ import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
import SwiftSignalKit import SwiftSignalKit
#endif #endif
import TelegramApi
public func applyMaxReadIndexInteractively(postbox: Postbox, stateManager: AccountStateManager, index: MessageIndex) -> Signal<Void, NoError> { public func applyMaxReadIndexInteractively(postbox: Postbox, stateManager: AccountStateManager, index: MessageIndex) -> Signal<Void, NoError> {
return postbox.transaction { transaction -> Void in return postbox.transaction { transaction -> Void in

View File

@ -2,12 +2,13 @@ import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import TelegramApi
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import UIKit import UIKit
#endif #endif
import TelegramApi
func applyMediaResourceChanges(from: Media, to: Media, postbox: Postbox) { func applyMediaResourceChanges(from: Media, to: Media, postbox: Postbox) {
if let fromImage = from as? TelegramMediaImage, let toImage = to as? TelegramMediaImage { if let fromImage = from as? TelegramMediaImage, let toImage = to as? TelegramMediaImage {

View File

@ -2,11 +2,12 @@ import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
import SwiftSignalKit import SwiftSignalKit
#endif #endif
import TelegramApi
public enum ArchivedStickerPacksNamespace: Int32 { public enum ArchivedStickerPacksNamespace: Int32 {
case stickers = 0 case stickers = 0

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public enum AuthorizationCodeRequestError { public enum AuthorizationCodeRequestError {
case invalidPhoneNumber case invalidPhoneNumber

View File

@ -2,11 +2,13 @@ import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
import SwiftSignalKit import SwiftSignalKit
#endif #endif
import TelegramApi
public enum AutodownloadPreset { public enum AutodownloadPreset {
case low case low

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public func requestBlockedPeers(account: Account) -> Signal<[Peer], NoError> { public func requestBlockedPeers(account: Account) -> Signal<[Peer], NoError> {
return account.network.request(Api.functions.contacts.getBlocked(offset: 0, limit: 100)) return account.network.request(Api.functions.contacts.getBlocked(offset: 0, limit: 100))

View File

@ -3,7 +3,9 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import TelegramApi
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
#if BUCK #if BUCK
@ -12,7 +14,6 @@ import SwiftSignalKit
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public struct BlockedPeersContextState: Equatable { public struct BlockedPeersContextState: Equatable {
public var isLoadingMore: Bool public var isLoadingMore: Bool

View File

@ -1,10 +1,11 @@
import Foundation import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
#endif #endif
import TelegramApi
public struct BotCommand: PostboxCoding, Equatable { public struct BotCommand: PostboxCoding, Equatable {
public let text: String public let text: String

View File

@ -3,8 +3,10 @@ import Foundation
import PostboxMac import PostboxMac
import MtProtoKitMac import MtProtoKitMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
@ -12,7 +14,6 @@ import Foundation
#endif #endif
import SwiftSignalKit import SwiftSignalKit
#endif #endif
import TelegramApi
public struct BotPaymentInvoiceFields: OptionSet { public struct BotPaymentInvoiceFields: OptionSet {
public var rawValue: Int32 public var rawValue: Int32

View File

@ -1,10 +1,11 @@
import Foundation import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
#endif #endif
import TelegramApi
public struct CachedChannelFlags: OptionSet { public struct CachedChannelFlags: OptionSet {
public var rawValue: Int32 public var rawValue: Int32

View File

@ -1,10 +1,11 @@
import Foundation import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
#endif #endif
import TelegramApi
private enum ChannelParticipantValue: Int32 { private enum ChannelParticipantValue: Int32 {
case member = 0 case member = 0

View File

@ -1,10 +1,11 @@
import Foundation import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
#endif #endif
import TelegramApi
public enum GroupParticipant: PostboxCoding, Equatable { public enum GroupParticipant: PostboxCoding, Equatable {
case member(id: PeerId, invitedBy: PeerId, invitedAt: Int32) case member(id: PeerId, invitedBy: PeerId, invitedAt: Int32)

View File

@ -3,8 +3,10 @@ import Foundation
import PostboxMac import PostboxMac
import MtProtoKitMac import MtProtoKitMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
@ -12,7 +14,7 @@ import Postbox
#endif #endif
import SwiftSignalKit import SwiftSignalKit
#endif #endif
import TelegramApi
private let minLayer: Int32 = 65 private let minLayer: Int32 = 65

View File

@ -3,7 +3,9 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import TelegramApi
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
#if BUCK #if BUCK
@ -12,7 +14,6 @@ import SwiftSignalKit
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public struct CancelAccountResetData: Equatable { public struct CancelAccountResetData: Equatable {
public let type: SentAuthorizationCodeType public let type: SentAuthorizationCodeType

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public struct ChangeAccountPhoneNumberData: Equatable { public struct ChangeAccountPhoneNumberData: Equatable {
public let type: SentAuthorizationCodeType public let type: SentAuthorizationCodeType

View File

@ -2,16 +2,17 @@
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public typealias AdminLogEventId = Int64 public typealias AdminLogEventId = Int64

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public func channelAdmins(account: Account, peerId: PeerId) -> Signal<[RenderedChannelParticipant], NoError> { public func channelAdmins(account: Account, peerId: PeerId) -> Signal<[RenderedChannelParticipant], NoError> {
return account.postbox.transaction { transaction -> Signal<[RenderedChannelParticipant], NoError> in return account.postbox.transaction { transaction -> Signal<[RenderedChannelParticipant], NoError> in

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
private enum ChannelBlacklistFilter { private enum ChannelBlacklistFilter {
case restricted case restricted

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public enum CreateChannelError { public enum CreateChannelError {
case generic case generic

View File

@ -1,11 +1,12 @@
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
import SwiftSignalKit import SwiftSignalKit
#endif #endif
import TelegramApi
public enum ChannelHistoryAvailabilityError { public enum ChannelHistoryAvailabilityError {
case generic case generic

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public enum ChannelMembersCategoryFilter { public enum ChannelMembersCategoryFilter {
case all case all

View File

@ -2,11 +2,13 @@ import Foundation
#if os(macOS) #if os(macOS)
import SwiftSignalKitMac import SwiftSignalKitMac
import PostboxMac import PostboxMac
import TelegramApiMac
#else #else
import SwiftSignalKit import SwiftSignalKit
import Postbox import Postbox
#endif
import TelegramApi import TelegramApi
#endif
public enum ChannelOwnershipTransferError { public enum ChannelOwnershipTransferError {
case generic case generic

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public struct RenderedChannelParticipant: Equatable { public struct RenderedChannelParticipant: Equatable {
public let participant: ChannelParticipant public let participant: ChannelParticipant

View File

@ -1,10 +1,11 @@
import Foundation import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
#endif #endif
import TelegramApi
final class ChannelState: PeerChatState, Equatable, CustomStringConvertible { final class ChannelState: PeerChatState, Equatable, CustomStringConvertible {
let pts: Int32 let pts: Int32

View File

@ -2,11 +2,12 @@ import Foundation
#if os(macOS) #if os(macOS)
import SwiftSignalKitMac import SwiftSignalKitMac
import PostboxMac import PostboxMac
import TelegramApiMac
#else #else
import SwiftSignalKit import SwiftSignalKit
import Postbox import Postbox
#endif
import TelegramApi import TelegramApi
#endif
public enum ChannelStatsUrlError { public enum ChannelStatsUrlError {
case generic case generic

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public enum ChatContextResultMessage: PostboxCoding, Equatable { public enum ChatContextResultMessage: PostboxCoding, Equatable {
case auto(caption: String, entities: TextEntitiesMessageAttribute?, replyMarkup: ReplyMarkupMessageAttribute?) case auto(caption: String, entities: TextEntitiesMessageAttribute?, replyMarkup: ReplyMarkupMessageAttribute?)

View File

@ -2,11 +2,12 @@ import Foundation
#if os(macOS) #if os(macOS)
import SwiftSignalKitMac import SwiftSignalKitMac
import PostboxMac import PostboxMac
import TelegramApiMac
#else #else
import SwiftSignalKit import SwiftSignalKit
import Postbox import Postbox
#endif
import TelegramApi import TelegramApi
#endif
public func chatOnlineMembers(postbox: Postbox, network: Network, peerId: PeerId) -> Signal<Int32, NoError> { public func chatOnlineMembers(postbox: Postbox, network: Network, peerId: PeerId) -> Signal<Int32, NoError> {
return postbox.transaction { transaction -> Api.InputPeer? in return postbox.transaction { transaction -> Api.InputPeer? in

View File

@ -2,11 +2,12 @@ import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
#endif
import TelegramApi import TelegramApi
#endif
public func clearCloudDraftsInteractively(postbox: Postbox, network: Network, accountPeerId: PeerId) -> Signal<Void, NoError> { public func clearCloudDraftsInteractively(postbox: Postbox, network: Network, accountPeerId: PeerId) -> Signal<Void, NoError> {
return network.request(Api.functions.messages.getAllDrafts()) return network.request(Api.functions.messages.getAllDrafts())

View File

@ -1,10 +1,11 @@
import Foundation import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
#endif #endif
import TelegramApi
protocol TelegramCloudMediaResource: TelegramMediaResource { protocol TelegramCloudMediaResource: TelegramMediaResource {
func apiInputLocation(fileReference: Data?) -> Api.InputFileLocation? func apiInputLocation(fileReference: Data?) -> Api.InputFileLocation?

View File

@ -2,15 +2,17 @@ import Foundation
#if os(macOS) #if os(macOS)
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public enum ConfirmTwoStepRecoveryEmailError { public enum ConfirmTwoStepRecoveryEmailError {
case invalidEmail case invalidEmail

View File

@ -2,12 +2,13 @@ import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import TelegramApi
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
#endif #endif
import TelegramCorePrivateModule import TelegramCorePrivateModule
import TelegramApi
private func md5(_ data: Data) -> Data { private func md5(_ data: Data) -> Data {
return data.withUnsafeBytes { bytes -> Data in return data.withUnsafeBytes { bytes -> Data in

View File

@ -2,11 +2,12 @@ import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
#endif
import TelegramApi import TelegramApi
#endif
private final class ContactSyncOperation { private final class ContactSyncOperation {
let id: Int32 let id: Int32

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public enum ConvertGroupToSupergroupError { public enum ConvertGroupToSupergroupError {
case generic case generic

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public enum CreateGroupError { public enum CreateGroupError {
case generic case generic

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public enum CreateSecretChatError { public enum CreateSecretChatError {
case generic case generic

View File

@ -1,10 +1,11 @@
import Foundation import Foundation
#if os(macOS) #if os(macOS)
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import SwiftSignalKit import SwiftSignalKit
#endif
import TelegramApi import TelegramApi
#endif
public struct DeepLinkInfo { public struct DeepLinkInfo {
public let message: String public let message: String

View File

@ -2,11 +2,12 @@ import Foundation
#if os(macOS) #if os(macOS)
import SwiftSignalKitMac import SwiftSignalKitMac
import PostboxMac import PostboxMac
import TelegramApiMac
#else #else
import SwiftSignalKit import SwiftSignalKit
import Postbox import Postbox
#endif
import TelegramApi import TelegramApi
#endif
public enum DeleteAccountError { public enum DeleteAccountError {
case generic case generic

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public enum InteractiveMessagesDeletionType: Int32 { public enum InteractiveMessagesDeletionType: Int32 {
case forLocalPeer = 0 case forLocalPeer = 0

View File

@ -3,8 +3,10 @@ import Foundation
import PostboxMac import PostboxMac
import MtProtoKitMac import MtProtoKitMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
@ -12,7 +14,6 @@ import Foundation
#endif #endif
import SwiftSignalKit import SwiftSignalKit
#endif #endif
import TelegramApi
private func roundUp(_ value: Int, to multiple: Int) -> Int { private func roundUp(_ value: Int, to multiple: Int) -> Int {
if multiple == 0 { if multiple == 0 {

View File

@ -2,11 +2,12 @@ import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
import SwiftSignalKit import SwiftSignalKit
#endif #endif
import TelegramApi
public enum EnqueueMessageGrouping { public enum EnqueueMessageGrouping {
case none case none

View File

@ -2,11 +2,12 @@
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
import SwiftSignalKit import SwiftSignalKit
#endif #endif
import TelegramApi
public func exportMessageLink(account: Account, peerId: PeerId, messageId: MessageId) -> Signal<String?, NoError> { public func exportMessageLink(account: Account, peerId: PeerId, messageId: MessageId) -> Signal<String?, NoError> {
return account.postbox.transaction { transaction -> Peer? in return account.postbox.transaction { transaction -> Peer? in

View File

@ -1,10 +1,11 @@
import Foundation import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
#endif #endif
import TelegramApi
public struct ExportedInvitation: PostboxCoding, Equatable { public struct ExportedInvitation: PostboxCoding, Equatable {
public let link: String public let link: String

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
enum FetchChatListLocation { enum FetchChatListLocation {
case general case general

View File

@ -2,11 +2,12 @@ import Foundation
#if os(macOS) #if os(macOS)
import SwiftSignalKitMac import SwiftSignalKitMac
import PostboxMac import PostboxMac
import TelegramApiMac
#else #else
import SwiftSignalKit import SwiftSignalKit
import Postbox import Postbox
#endif
import TelegramApi import TelegramApi
#endif
public func findChannelById(postbox: Postbox, network: Network, channelId: Int32) -> Signal<Peer?, NoError> { public func findChannelById(postbox: Postbox, network: Network, channelId: Int32) -> Signal<Peer?, NoError> {
return network.request(Api.functions.channels.getChannels(id: [.inputChannel(channelId: channelId, accessHash: 0)])) return network.request(Api.functions.channels.getChannels(id: [.inputChannel(channelId: channelId, accessHash: 0)]))

View File

@ -2,11 +2,12 @@ import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
import SwiftSignalKit import SwiftSignalKit
#endif #endif
import TelegramApi
public func forwardGameWithScore(account: Account, messageId: MessageId, to peerId: PeerId) -> Signal<Void, NoError> { public func forwardGameWithScore(account: Account, messageId: MessageId, to peerId: PeerId) -> Signal<Void, NoError> {
return account.postbox.transaction { transaction -> Signal<Void, NoError> in return account.postbox.transaction { transaction -> Signal<Void, NoError> in

View File

@ -1,10 +1,11 @@
import Foundation import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
#endif #endif
import TelegramApi
public struct MessageNotificationSettings: PostboxCoding, Equatable { public struct MessageNotificationSettings: PostboxCoding, Equatable {
public var enabled: Bool public var enabled: Bool

View File

@ -3,8 +3,10 @@ import Foundation
import PostboxMac import PostboxMac
import MtProtoKitMac import MtProtoKitMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
@ -12,7 +14,6 @@ import Foundation
#endif #endif
import SwiftSignalKit import SwiftSignalKit
#endif #endif
import TelegramApi
func apiSecureValueType(value: SecureIdValue) -> Api.SecureValueType { func apiSecureValueType(value: SecureIdValue) -> Api.SecureValueType {
let type: Api.SecureValueType let type: Api.SecureValueType

View File

@ -3,16 +3,17 @@
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public func returnGroup(account: Account, peerId: PeerId) -> Signal<Void, NoError> { public func returnGroup(account: Account, peerId: PeerId) -> Signal<Void, NoError> {
return account.postbox.loadedPeerWithId(account.peerId) return account.postbox.loadedPeerWithId(account.peerId)

View File

@ -2,11 +2,12 @@ import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
import SwiftSignalKit import SwiftSignalKit
#endif #endif
import TelegramApi
public func groupsInCommon(account:Account, peerId:PeerId) -> Signal<[PeerId], NoError> { public func groupsInCommon(account:Account, peerId:PeerId) -> Signal<[PeerId], NoError> {
return account.postbox.transaction { transaction -> Signal<[PeerId], NoError> in return account.postbox.transaction { transaction -> Signal<[PeerId], NoError> in

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
private final class HistoryStateValidationBatch { private final class HistoryStateValidationBatch {
private let disposable: Disposable private let disposable: Disposable

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
private func messageFilterForTagMask(_ tagMask: MessageTags) -> Api.MessagesFilter? { private func messageFilterForTagMask(_ tagMask: MessageTags) -> Api.MessagesFilter? {
if tagMask == .photoOrVideo { if tagMask == .photoOrVideo {

View File

@ -1,10 +1,11 @@
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import UIKit import UIKit
import TelegramApi
#endif #endif
import TelegramApi
public func smallestImageRepresentation(_ representations: [TelegramMediaImageRepresentation]) -> TelegramMediaImageRepresentation? { public func smallestImageRepresentation(_ representations: [TelegramMediaImageRepresentation]) -> TelegramMediaImageRepresentation? {
if representations.count == 0 { if representations.count == 0 {

View File

@ -1,11 +1,12 @@
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
import SwiftSignalKit import SwiftSignalKit
#endif #endif
import TelegramApi
public func importContact(account: Account, firstName: String, lastName: String, phoneNumber: String) -> Signal<PeerId?, NoError> { public func importContact(account: Account, firstName: String, lastName: String, phoneNumber: String) -> Signal<PeerId?, NoError> {

View File

@ -2,11 +2,12 @@ import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
import SwiftSignalKit import SwiftSignalKit
#endif #endif
import TelegramApi
public func installInteractiveReadMessagesAction(postbox: Postbox, stateManager: AccountStateManager, peerId: PeerId) -> Disposable { public func installInteractiveReadMessagesAction(postbox: Postbox, stateManager: AccountStateManager, peerId: PeerId) -> Disposable {
return postbox.installStoreMessageAction(peerId: peerId, { messages, transaction in return postbox.installStoreMessageAction(peerId: peerId, { messages, transaction in

View File

@ -1,11 +1,12 @@
import Foundation import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import UIKit import UIKit
import TelegramApi
#endif #endif
import TelegramApi
private enum InstantPageBlockType: Int32 { private enum InstantPageBlockType: Int32 {
case unsupported = 0 case unsupported = 0

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public func ensuredExistingPeerExportedInvitation(account: Account, peerId: PeerId, revokeExisted: Bool = false) -> Signal<Void, NoError> { public func ensuredExistingPeerExportedInvitation(account: Account, peerId: PeerId, revokeExisted: Bool = false) -> Signal<Void, NoError> {
return account.postbox.transaction { transaction -> Signal<Void, NoError> in return account.postbox.transaction { transaction -> Signal<Void, NoError> in

View File

@ -1,10 +1,11 @@
import Foundation import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import TelegramApiMac
#else #else
import Postbox import Postbox
#endif
import TelegramApi import TelegramApi
#endif
public indirect enum JSON: PostboxCoding, Equatable { public indirect enum JSON: PostboxCoding, Equatable {
case null case null

View File

@ -2,11 +2,12 @@ import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
import SwiftSignalKit import SwiftSignalKit
#endif #endif
import TelegramApi
public enum JoinChannelError { public enum JoinChannelError {
case generic case generic

View File

@ -2,16 +2,17 @@
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
func apiUpdatesGroups(_ updates: Api.Updates) -> [Api.Chat] { func apiUpdatesGroups(_ updates: Api.Updates) -> [Api.Chat] {
switch updates { switch updates {

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public enum GetMessagesStrategy { public enum GetMessagesStrategy {
case local case local

View File

@ -1,11 +1,12 @@
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
import SwiftSignalKit import SwiftSignalKit
#endif #endif
import TelegramApi
public func actualizedPeer(postbox: Postbox, network: Network, peer: Peer) -> Signal<Peer, NoError> { public func actualizedPeer(postbox: Postbox, network: Network, peer: Peer) -> Signal<Peer, NoError> {
return postbox.transaction { transaction -> Signal<Peer, NoError> in return postbox.transaction { transaction -> Signal<Peer, NoError> in

View File

@ -2,11 +2,12 @@ import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
import SwiftSignalKit import SwiftSignalKit
#endif #endif
import TelegramApi
public func loadedPeerFromMessage(account: Account, peerId: PeerId, messageId: MessageId) -> Signal<Peer?, NoError> { public func loadedPeerFromMessage(account: Account, peerId: PeerId, messageId: MessageId) -> Signal<Peer?, NoError> {
return account.postbox.transaction { transaction -> Signal<Peer?, NoError> in return account.postbox.transaction { transaction -> Signal<Peer?, NoError> in

View File

@ -2,11 +2,12 @@ import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
import SwiftSignalKit import SwiftSignalKit
#endif #endif
import TelegramApi
extension StickerPackReference { extension StickerPackReference {
init(_ stickerPackInfo: StickerPackCollectionInfo) { init(_ stickerPackInfo: StickerPackCollectionInfo) {

View File

@ -1,10 +1,11 @@
import Foundation import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
#endif #endif
import TelegramApi
public struct LocalizationInfo: PostboxCoding, Equatable { public struct LocalizationInfo: PostboxCoding, Equatable {
public let languageCode: String public let languageCode: String

View File

@ -2,11 +2,12 @@ import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
#endif
import TelegramApi import TelegramApi
#endif
public struct LocalizationListState: PreferencesEntry, Equatable { public struct LocalizationListState: PreferencesEntry, Equatable {
public var availableOfficialLocalizations: [LocalizationInfo] public var availableOfficialLocalizations: [LocalizationInfo]

View File

@ -2,7 +2,9 @@
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import TelegramApi
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
#if BUCK #if BUCK
@ -11,7 +13,7 @@ import SwiftSignalKit
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public enum RequestLocalizationPreviewError { public enum RequestLocalizationPreviewError {
case generic case generic

View File

@ -2,11 +2,12 @@ import Foundation
#if os(macOS) #if os(macOS)
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import TelegramApi
import SwiftSignalKit import SwiftSignalKit
#endif #endif
import TelegramApi
public func currentlySuggestedLocalization(network: Network, extractKeys: [String]) -> Signal<SuggestedLocalizationInfo?, NoError> { public func currentlySuggestedLocalization(network: Network, extractKeys: [String]) -> Signal<SuggestedLocalizationInfo?, NoError> {
return network.request(Api.functions.help.getConfig()) return network.request(Api.functions.help.getConfig())

View File

@ -2,11 +2,13 @@ import Foundation
#if os(macOS) #if os(macOS)
import SwiftSignalKitMac import SwiftSignalKitMac
import PostboxMac import PostboxMac
import TelegramApiMac
#else #else
import SwiftSignalKit import SwiftSignalKit
import Postbox import Postbox
#endif
import TelegramApi import TelegramApi
#endif
public enum AvailableChannelDiscussionGroupError { public enum AvailableChannelDiscussionGroupError {
case generic case generic

View File

@ -3,7 +3,9 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import TelegramApi
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
#if BUCK #if BUCK
@ -12,7 +14,6 @@ import SwiftSignalKit
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
#if os(macOS) #if os(macOS)
private typealias SignalKitTimer = SwiftSignalKitMac.Timer private typealias SignalKitTimer = SwiftSignalKitMac.Timer

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
func managedAppConfigurationUpdates(postbox: Postbox, network: Network) -> Signal<Void, NoError> { func managedAppConfigurationUpdates(postbox: Postbox, network: Network) -> Signal<Void, NoError> {
let poll = Signal<Void, NoError> { subscriber in let poll = Signal<Void, NoError> { subscriber in

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
func managedAutodownloadSettingsUpdates(accountManager: AccountManager, network: Network) -> Signal<Void, NoError> { func managedAutodownloadSettingsUpdates(accountManager: AccountManager, network: Network) -> Signal<Void, NoError> {
let poll = Signal<Void, NoError> { subscriber in let poll = Signal<Void, NoError> { subscriber in

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
#if os(macOS) #if os(macOS)
private typealias SignalKitTimer = SwiftSignalKitMac.Timer private typealias SignalKitTimer = SwiftSignalKitMac.Timer

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
private final class ManagedCloudChatRemoveMessagesOperationsHelper { private final class ManagedCloudChatRemoveMessagesOperationsHelper {
var operationDisposables: [Int32: Disposable] = [:] var operationDisposables: [Int32: Disposable] = [:]

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
func managedConfigurationUpdates(accountManager: AccountManager, postbox: Postbox, network: Network) -> Signal<Void, NoError> { func managedConfigurationUpdates(accountManager: AccountManager, postbox: Postbox, network: Network) -> Signal<Void, NoError> {
let poll = Signal<Void, NoError> { subscriber in let poll = Signal<Void, NoError> { subscriber in

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
private final class ManagedConsumePersonalMessagesActionsHelper { private final class ManagedConsumePersonalMessagesActionsHelper {
var operationDisposables: [MessageId: Disposable] = [:] var operationDisposables: [MessageId: Disposable] = [:]

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
public func updateGlobalNotificationSettingsInteractively(postbox: Postbox, _ f: @escaping (GlobalNotificationSettingsSet) -> GlobalNotificationSettingsSet) -> Signal<Void, NoError> { public func updateGlobalNotificationSettingsInteractively(postbox: Postbox, _ f: @escaping (GlobalNotificationSettingsSet) -> GlobalNotificationSettingsSet) -> Signal<Void, NoError> {
return postbox.transaction { transaction -> Void in return postbox.transaction { transaction -> Void in

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
struct PeerInputActivityRecord: Equatable { struct PeerInputActivityRecord: Equatable {
let activity: PeerInputActivity let activity: PeerInputActivity

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
private final class ManagedLocalizationUpdatesOperationsHelper { private final class ManagedLocalizationUpdatesOperationsHelper {
var operationDisposables: [Int32: Disposable] = [:] var operationDisposables: [Int32: Disposable] = [:]

View File

@ -3,16 +3,17 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
import TelegramApi
#if BUCK #if BUCK
import MtProtoKit import MtProtoKit
#else #else
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
private final class ManagedPendingPeerNotificationSettingsHelper { private final class ManagedPendingPeerNotificationSettingsHelper {
var operationDisposables: [PeerId: (PeerNotificationSettings, Disposable)] = [:] var operationDisposables: [PeerId: (PeerNotificationSettings, Disposable)] = [:]

View File

@ -3,7 +3,9 @@ import Foundation
import PostboxMac import PostboxMac
import SwiftSignalKitMac import SwiftSignalKitMac
import MtProtoKitMac import MtProtoKitMac
import TelegramApiMac
#else #else
import TelegramApi
import Postbox import Postbox
import SwiftSignalKit import SwiftSignalKit
#if BUCK #if BUCK
@ -12,7 +14,6 @@ import SwiftSignalKit
import MtProtoKitDynamic import MtProtoKitDynamic
#endif #endif
#endif #endif
import TelegramApi
func managedProxyInfoUpdates(postbox: Postbox, network: Network, viewTracker: AccountViewTracker) -> Signal<Void, NoError> { func managedProxyInfoUpdates(postbox: Postbox, network: Network, viewTracker: AccountViewTracker) -> Signal<Void, NoError> {
return Signal { subscriber in return Signal { subscriber in

Some files were not shown because too many files have changed in this diff Show More