Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 39 additions & 44 deletions FlowCrypt.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 51;
objectVersion = 54;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -50,6 +50,7 @@
32DCAF95A6A329C3136B1C8E /* Imap+msg.swift in Sources */ = {isa = PBXBuildFile; fileRef = 32DCA55C094E9745AA1FD210 /* Imap+msg.swift */; };
32DCAF9DA9EC47798DF8BB73 /* SignInViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 32DCA9701B2D5052225A0414 /* SignInViewController.swift */; };
50531BE42629B9A80039BAE9 /* AttachmentNode.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50531BE32629B9A80039BAE9 /* AttachmentNode.swift */; };
510A260126FDFEBE00163271 /* MailCore2 in Frameworks */ = {isa = PBXBuildFile; productRef = 510A260026FDFEBE00163271 /* MailCore2 */; };
5A39F42D239EC321001F4607 /* SettingsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5A39F42C239EC321001F4607 /* SettingsViewController.swift */; };
5A39F430239EC396001F4607 /* SettingsViewDecorator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5A39F42F239EC396001F4607 /* SettingsViewDecorator.swift */; };
5A39F437239ECC23001F4607 /* KeySettingsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5A39F436239ECC23001F4607 /* KeySettingsViewController.swift */; };
Expand Down Expand Up @@ -758,6 +759,7 @@
D2CDC3E224052D54002B045F /* FlowCryptCommon.framework in Frameworks */,
D2CDC3DD24052D50002B045F /* FlowCryptUI.framework in Frameworks */,
A40B9DB9E27967AC623BA60B /* Pods_FlowCrypt.framework in Frameworks */,
510A260126FDFEBE00163271 /* MailCore2 in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -1993,7 +1995,6 @@
9FDF363E235A1B0100614596 /* Frameworks */,
9FDF363F235A1B0100614596 /* Resources */,
0CF02BEF6BCBCD8B43A732A5 /* [CP] Embed Pods Frameworks */,
2EA601B887F9BA327C9A5438 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand All @@ -2016,7 +2017,6 @@
C132B9AD1EC2DBD800763715 /* Frameworks */,
C132B9AE1EC2DBD800763715 /* Resources */,
527B6FD5C3E83A37AEA8D0A3 /* [CP] Embed Pods Frameworks */,
F5FDFD02C616C6B2DEBEEFCA /* [CP] Copy Pods Resources */,
D2CDC3E124052D50002B045F /* Embed Frameworks */,
);
buildRules = (
Expand All @@ -2026,6 +2026,9 @@
D2CDC3E024052D50002B045F /* PBXTargetDependency */,
);
name = FlowCrypt;
packageProductDependencies = (
510A260026FDFEBE00163271 /* MailCore2 */,
);
productName = FlowCrypt;
productReference = C132B9B01EC2DBD800763715 /* FlowCrypt.app */;
productType = "com.apple.product-type.application";
Expand Down Expand Up @@ -2093,7 +2096,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1240;
LastUpgradeCheck = 1240;
LastUpgradeCheck = 1300;
ORGANIZATIONNAME = "FlowCrypt Limited";
TargetAttributes = {
9F2AC5C5267BE99E00F6149B = {
Expand Down Expand Up @@ -2122,7 +2125,7 @@
};
};
buildConfigurationList = C132B9AB1EC2DBD800763715 /* Build configuration list for PBXProject "FlowCrypt" */;
compatibilityVersion = "Xcode 10.0";
compatibilityVersion = "Xcode 12.0";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
Expand All @@ -2131,6 +2134,9 @@
ru,
);
mainGroup = C132B9A71EC2DBD800763715;
packageReferences = (
510A25FF26FDFEBE00163271 /* XCRemoteSwiftPackageReference "mailcore2" */,
);
productRefGroup = C132B9B11EC2DBD800763715 /* Products */;
projectDirPath = "";
projectRoot = "";
Expand Down Expand Up @@ -2267,23 +2273,6 @@
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-FlowCryptAppTests/Pods-FlowCryptAppTests-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
2EA601B887F9BA327C9A5438 /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-FlowCryptUITests/Pods-FlowCryptUITests-resources-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Copy Pods Resources";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-FlowCryptUITests/Pods-FlowCryptUITests-resources-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-FlowCryptUITests/Pods-FlowCryptUITests-resources.sh\"\n";
showEnvVarsInLog = 0;
};
527B6FD5C3E83A37AEA8D0A3 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -2442,23 +2431,6 @@
shellPath = /bin/sh;
shellScript = "make format\n";
};
F5FDFD02C616C6B2DEBEEFCA /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-FlowCrypt/Pods-FlowCrypt-resources-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Copy Pods Resources";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-FlowCrypt/Pods-FlowCrypt-resources-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-FlowCrypt/Pods-FlowCrypt-resources.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand Down Expand Up @@ -2490,7 +2462,6 @@
9FC413442683C912004C0A69 /* GmailServiceTest.swift in Sources */,
9F976556267E186D0058419D /* ClientConfigurationTests.swift in Sources */,
9F7E8EC6269877E70021C07F /* KeyInfoTests.swift in Sources */,
9F976556267E186D0058419D /* ClientConfigurationTests.swift in Sources */,
9FC41171268118A7004C0A69 /* PassPhraseStorageTests.swift in Sources */,
9F6F3C7626ADFC37005BD9C6 /* KeyStorageMock.swift in Sources */,
);
Expand Down Expand Up @@ -2898,7 +2869,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.2;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -3118,6 +3089,7 @@
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = W57XRJ27NX;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
GCC_C_LANGUAGE_STANDARD = gnu11;
INFOPLIST_FILE = FlowCryptAppTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.4;
Expand Down Expand Up @@ -3202,6 +3174,7 @@
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = W57XRJ27NX;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
GCC_C_LANGUAGE_STANDARD = gnu11;
INFOPLIST_FILE = FlowCryptUITests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
Expand Down Expand Up @@ -3306,7 +3279,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.2;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
Expand Down Expand Up @@ -3412,7 +3385,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.2;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -3468,7 +3441,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.2;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
Expand All @@ -3491,6 +3464,7 @@
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = W57XRJ27NX;
ENABLE_BITCODE = NO;
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
HEADER_SEARCH_PATHS = (
Expand Down Expand Up @@ -3584,6 +3558,7 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
GCC_C_LANGUAGE_STANDARD = gnu11;
INFOPLIST_FILE = FlowCryptUI/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
Expand Down Expand Up @@ -3692,6 +3667,7 @@
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64;
GCC_C_LANGUAGE_STANDARD = gnu11;
INFOPLIST_FILE = FlowCryptCommon/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
Expand Down Expand Up @@ -3939,6 +3915,25 @@
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
510A25FF26FDFEBE00163271 /* XCRemoteSwiftPackageReference "mailcore2" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/MailCore/mailcore2";
requirement = {
branch = master;
kind = branch;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
510A260026FDFEBE00163271 /* MailCore2 */ = {
isa = XCSwiftPackageProductDependency;
package = 510A25FF26FDFEBE00163271 /* XCRemoteSwiftPackageReference "mailcore2" */;
productName = MailCore2;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = C132B9A81EC2DBD800763715 /* Project object */;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1240"
LastUpgradeVersion = "1300"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1240"
LastUpgradeVersion = "1300"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1240"
LastUpgradeVersion = "1300"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1240"
LastUpgradeVersion = "1300"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1240"
LastUpgradeVersion = "1300"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1240"
LastUpgradeVersion = "1300"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1240"
LastUpgradeVersion = "1300"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1240"
LastUpgradeVersion = "1300"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
16 changes: 16 additions & 0 deletions FlowCrypt.xcworkspace/xcshareddata/swiftpm/Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ struct SessionCredentialsService: SessionCredentialsProvider {
let manager = MCOMailProvidersManager.shared()

func getImapCredentials(for email: String) -> MailSettingsCredentials? {
let providers = manager?.provider(forEmail: email)
let providers = manager.provider(forEmail: email)

guard let services = providers?.imapServices() as? [MCONetService] else { return nil }
guard let services = providers?.imapServices() else { return nil }

// TODO: - check all possible services to establish the connection
guard let service = services.first else { return nil }
Expand All @@ -35,9 +35,9 @@ struct SessionCredentialsService: SessionCredentialsProvider {
}

func getSmtpCredentials(for email: String) -> MailSettingsCredentials? {
let providers = manager?.provider(forEmail: email)
let providers = manager.provider(forEmail: email)

guard let services = providers?.smtpServices() as? [MCONetService] else { return nil }
guard let services = providers?.smtpServices() else { return nil }

// TODO: - check all possible services to establish the connection
guard let service = services.first else { return nil }
Expand All @@ -57,7 +57,7 @@ struct SessionCredentialsService: SessionCredentialsProvider {

guard
let email = email,
let services = manager?.provider(forEmail: email)?.imapServices() as? [MCONetService],
let services = manager.provider(forEmail: email)?.imapServices(),
let credentials = services.first(where: { $0.connectionType == MCOConnectionType(connection) })
else {
return error(for: connection)
Expand All @@ -78,7 +78,7 @@ struct SessionCredentialsService: SessionCredentialsProvider {

guard
let email = email,
let services = manager?.provider(forEmail: email)?.smtpServices() as? [MCONetService],
let services = manager.provider(forEmail: email)?.smtpServices(),
let credentials = services.first(where: { $0.connectionType == MCOConnectionType(connection) })
else {
return error(for: connection)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ source 'https://rubygems.org'
ruby "2.5.1"
gem "fastlane", ">= 2.134.0"
gem "xcode-install", ">= 2.6.1"
gem "cocoapods", ">= 1.9.3"
gem "cocoapods", "1.10.2"
gem "rest-client"

plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
Expand Down
Loading