commit d1e9c6b3449d0a91dc90f703ff2eae992d9618a6 Author: Xavi Gil Date: Mon Feb 26 11:49:55 2024 +0100 initial commit diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000..4073942a3c --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +. !text !filter !merge !diff +* !text !filter !merge !diff diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..af4a863db0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,67 @@ +Created by https://www.gitignore.io/api/xcode,osx + +### OSX ### +*.DS_Store +.AppleDouble +.LSOverride + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### Xcode ### +# Xcode +# +# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore + +## Build generated +build/ +DerivedData/ + +## Various settings +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata/ + +## Other +*.moved-aside +*.xccheckout +*.xcscmblueprint +Carthage/ + +### Xcode Patch ### +*.xcodeproj/* +!*.xcodeproj/project.pbxproj +!*.xcodeproj/xcshareddata/ +!*.xcworkspace/contents.xcworkspacedata +/*.gcno +# End of https://www.gitignore.io/api/xcode,osx + +# Fastlane +**/fastlane/report.xml +**/fastlane/Preview.html +**/fastlane/screenshots +**/fastlane/test_output + +tmp/ diff --git a/ProtonMail.xcodeproj/project.pbxproj b/ProtonMail.xcodeproj/project.pbxproj new file mode 100644 index 0000000000..bde322d992 --- /dev/null +++ b/ProtonMail.xcodeproj/project.pbxproj @@ -0,0 +1,595 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + 477F664E2B8CA3E300119523 /* ProtonMailApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 477F664D2B8CA3E300119523 /* ProtonMailApp.swift */; }; + 477F66502B8CA3E300119523 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 477F664F2B8CA3E300119523 /* ContentView.swift */; }; + 477F66522B8CA3E400119523 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 477F66512B8CA3E400119523 /* Assets.xcassets */; }; + 477F66552B8CA3E400119523 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 477F66542B8CA3E400119523 /* Preview Assets.xcassets */; }; + 477F665F2B8CA3E400119523 /* iosTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 477F665E2B8CA3E400119523 /* iosTests.swift */; }; + 477F66692B8CA3E400119523 /* iosUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 477F66682B8CA3E400119523 /* iosUITests.swift */; }; + 477F666B2B8CA3E400119523 /* iosUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 477F666A2B8CA3E400119523 /* iosUITestsLaunchTests.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 477F665B2B8CA3E400119523 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 477F66422B8CA3E300119523 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 477F66492B8CA3E300119523; + remoteInfo = ios; + }; + 477F66652B8CA3E400119523 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 477F66422B8CA3E300119523 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 477F66492B8CA3E300119523; + remoteInfo = ios; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 477F664A2B8CA3E300119523 /* ios.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ios.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 477F664D2B8CA3E300119523 /* ProtonMailApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProtonMailApp.swift; sourceTree = ""; }; + 477F664F2B8CA3E300119523 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + 477F66512B8CA3E400119523 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 477F66542B8CA3E400119523 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 477F665A2B8CA3E400119523 /* iosTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iosTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 477F665E2B8CA3E400119523 /* iosTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iosTests.swift; sourceTree = ""; }; + 477F66642B8CA3E400119523 /* iosUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iosUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 477F66682B8CA3E400119523 /* iosUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iosUITests.swift; sourceTree = ""; }; + 477F666A2B8CA3E400119523 /* iosUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iosUITestsLaunchTests.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 477F66472B8CA3E300119523 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 477F66572B8CA3E400119523 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 477F66612B8CA3E400119523 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 477F66412B8CA3E300119523 = { + isa = PBXGroup; + children = ( + 477F664C2B8CA3E300119523 /* ios */, + 477F665D2B8CA3E400119523 /* iosTests */, + 477F66672B8CA3E400119523 /* iosUITests */, + 477F664B2B8CA3E300119523 /* Products */, + ); + sourceTree = ""; + }; + 477F664B2B8CA3E300119523 /* Products */ = { + isa = PBXGroup; + children = ( + 477F664A2B8CA3E300119523 /* ios.app */, + 477F665A2B8CA3E400119523 /* iosTests.xctest */, + 477F66642B8CA3E400119523 /* iosUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 477F664C2B8CA3E300119523 /* ios */ = { + isa = PBXGroup; + children = ( + 477F664D2B8CA3E300119523 /* ProtonMailApp.swift */, + 477F664F2B8CA3E300119523 /* ContentView.swift */, + 477F66512B8CA3E400119523 /* Assets.xcassets */, + 477F66532B8CA3E400119523 /* Preview Content */, + ); + path = ios; + sourceTree = ""; + }; + 477F66532B8CA3E400119523 /* Preview Content */ = { + isa = PBXGroup; + children = ( + 477F66542B8CA3E400119523 /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + 477F665D2B8CA3E400119523 /* iosTests */ = { + isa = PBXGroup; + children = ( + 477F665E2B8CA3E400119523 /* iosTests.swift */, + ); + path = iosTests; + sourceTree = ""; + }; + 477F66672B8CA3E400119523 /* iosUITests */ = { + isa = PBXGroup; + children = ( + 477F66682B8CA3E400119523 /* iosUITests.swift */, + 477F666A2B8CA3E400119523 /* iosUITestsLaunchTests.swift */, + ); + path = iosUITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 477F66492B8CA3E300119523 /* ios */ = { + isa = PBXNativeTarget; + buildConfigurationList = 477F666E2B8CA3E400119523 /* Build configuration list for PBXNativeTarget "ios" */; + buildPhases = ( + 477F66462B8CA3E300119523 /* Sources */, + 477F66472B8CA3E300119523 /* Frameworks */, + 477F66482B8CA3E300119523 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = ios; + productName = ios; + productReference = 477F664A2B8CA3E300119523 /* ios.app */; + productType = "com.apple.product-type.application"; + }; + 477F66592B8CA3E400119523 /* iosTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 477F66712B8CA3E400119523 /* Build configuration list for PBXNativeTarget "iosTests" */; + buildPhases = ( + 477F66562B8CA3E400119523 /* Sources */, + 477F66572B8CA3E400119523 /* Frameworks */, + 477F66582B8CA3E400119523 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 477F665C2B8CA3E400119523 /* PBXTargetDependency */, + ); + name = iosTests; + productName = iosTests; + productReference = 477F665A2B8CA3E400119523 /* iosTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 477F66632B8CA3E400119523 /* iosUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 477F66742B8CA3E400119523 /* Build configuration list for PBXNativeTarget "iosUITests" */; + buildPhases = ( + 477F66602B8CA3E400119523 /* Sources */, + 477F66612B8CA3E400119523 /* Frameworks */, + 477F66622B8CA3E400119523 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 477F66662B8CA3E400119523 /* PBXTargetDependency */, + ); + name = iosUITests; + productName = iosUITests; + productReference = 477F66642B8CA3E400119523 /* iosUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 477F66422B8CA3E300119523 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1520; + LastUpgradeCheck = 1520; + TargetAttributes = { + 477F66492B8CA3E300119523 = { + CreatedOnToolsVersion = 15.2; + }; + 477F66592B8CA3E400119523 = { + CreatedOnToolsVersion = 15.2; + TestTargetID = 477F66492B8CA3E300119523; + }; + 477F66632B8CA3E400119523 = { + CreatedOnToolsVersion = 15.2; + TestTargetID = 477F66492B8CA3E300119523; + }; + }; + }; + buildConfigurationList = 477F66452B8CA3E300119523 /* Build configuration list for PBXProject "ProtonMail" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 477F66412B8CA3E300119523; + productRefGroup = 477F664B2B8CA3E300119523 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 477F66492B8CA3E300119523 /* ios */, + 477F66592B8CA3E400119523 /* iosTests */, + 477F66632B8CA3E400119523 /* iosUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 477F66482B8CA3E300119523 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 477F66552B8CA3E400119523 /* Preview Assets.xcassets in Resources */, + 477F66522B8CA3E400119523 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 477F66582B8CA3E400119523 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 477F66622B8CA3E400119523 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 477F66462B8CA3E300119523 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 477F66502B8CA3E300119523 /* ContentView.swift in Sources */, + 477F664E2B8CA3E300119523 /* ProtonMailApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 477F66562B8CA3E400119523 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 477F665F2B8CA3E400119523 /* iosTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 477F66602B8CA3E400119523 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 477F666B2B8CA3E400119523 /* iosUITestsLaunchTests.swift in Sources */, + 477F66692B8CA3E400119523 /* iosUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 477F665C2B8CA3E400119523 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 477F66492B8CA3E300119523 /* ios */; + targetProxy = 477F665B2B8CA3E400119523 /* PBXContainerItemProxy */; + }; + 477F66662B8CA3E400119523 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 477F66492B8CA3E300119523 /* ios */; + targetProxy = 477F66652B8CA3E400119523 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 477F666C2B8CA3E400119523 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + 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; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + 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 = 17.2; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_STRICT_CONCURRENCY = complete; + }; + name = Debug; + }; + 477F666D2B8CA3E400119523 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + 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; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_NO_COMMON_BLOCKS = YES; + 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 = 17.2; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_STRICT_CONCURRENCY = complete; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 477F666F2B8CA3E400119523 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"ios/Preview Content\""; + DEVELOPMENT_TEAM = 2SB5Z68H26; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = me.proton.mail.ios; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 477F66702B8CA3E400119523 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"ios/Preview Content\""; + DEVELOPMENT_TEAM = 2SB5Z68H26; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = me.proton.mail.ios; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 477F66722B8CA3E400119523 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 2SB5Z68H26; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = me.proton.mail.iosTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ios.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/ios"; + }; + name = Debug; + }; + 477F66732B8CA3E400119523 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 2SB5Z68H26; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = me.proton.mail.iosTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ios.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/ios"; + }; + name = Release; + }; + 477F66752B8CA3E400119523 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 2SB5Z68H26; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = me.proton.mail.iosUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = ios; + }; + name = Debug; + }; + 477F66762B8CA3E400119523 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 2SB5Z68H26; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = me.proton.mail.iosUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = ios; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 477F66452B8CA3E300119523 /* Build configuration list for PBXProject "ProtonMail" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 477F666C2B8CA3E400119523 /* Debug */, + 477F666D2B8CA3E400119523 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 477F666E2B8CA3E400119523 /* Build configuration list for PBXNativeTarget "ios" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 477F666F2B8CA3E400119523 /* Debug */, + 477F66702B8CA3E400119523 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 477F66712B8CA3E400119523 /* Build configuration list for PBXNativeTarget "iosTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 477F66722B8CA3E400119523 /* Debug */, + 477F66732B8CA3E400119523 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 477F66742B8CA3E400119523 /* Build configuration list for PBXNativeTarget "iosUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 477F66752B8CA3E400119523 /* Debug */, + 477F66762B8CA3E400119523 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 477F66422B8CA3E300119523 /* Project object */; +} diff --git a/ProtonMail.xcodeproj/xcshareddata/IDETemplateMacros.plist b/ProtonMail.xcodeproj/xcshareddata/IDETemplateMacros.plist new file mode 100644 index 0000000000..f06db29728 --- /dev/null +++ b/ProtonMail.xcodeproj/xcshareddata/IDETemplateMacros.plist @@ -0,0 +1,23 @@ + + + + + FILEHEADER + Copyright (c) ___YEAR___ Proton Technologies AG +// +// This file is part of Proton Mail. +// +// Proton Mail is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Proton Mail is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Proton Mail. If not, see https://www.gnu.org/licenses/. + + diff --git a/ios/Assets.xcassets/AccentColor.colorset/Contents.json b/ios/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000000..eb87897008 --- /dev/null +++ b/ios/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ios/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000000..13613e3ee1 --- /dev/null +++ b/ios/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,13 @@ +{ + "images" : [ + { + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ios/Assets.xcassets/Contents.json b/ios/Assets.xcassets/Contents.json new file mode 100644 index 0000000000..73c00596a7 --- /dev/null +++ b/ios/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ios/ContentView.swift b/ios/ContentView.swift new file mode 100644 index 0000000000..49323f7412 --- /dev/null +++ b/ios/ContentView.swift @@ -0,0 +1,24 @@ +// +// ContentView.swift +// ios +// +// Created by xavi on 26/2/24. +// + +import SwiftUI + +struct ContentView: View { + var body: some View { + VStack { + Image(systemName: "globe") + .imageScale(.large) + .foregroundStyle(.tint) + Text("Hello, world!") + } + .padding() + } +} + +#Preview { + ContentView() +} diff --git a/ios/Preview Content/Preview Assets.xcassets/Contents.json b/ios/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 0000000000..73c00596a7 --- /dev/null +++ b/ios/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ios/ProtonMailApp.swift b/ios/ProtonMailApp.swift new file mode 100644 index 0000000000..df95c9dfdf --- /dev/null +++ b/ios/ProtonMailApp.swift @@ -0,0 +1,17 @@ +// +// iosApp.swift +// ios +// +// Created by xavi on 26/2/24. +// + +import SwiftUI + +@main +struct ProtonMail: App { + var body: some Scene { + WindowGroup { + ContentView() + } + } +} diff --git a/iosTests/iosTests.swift b/iosTests/iosTests.swift new file mode 100644 index 0000000000..56592d502a --- /dev/null +++ b/iosTests/iosTests.swift @@ -0,0 +1,36 @@ +// +// iosTests.swift +// iosTests +// +// Created by xavi on 26/2/24. +// + +import XCTest +@testable import ios + +final class iosTests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + // Any test you write for XCTest can be annotated as throws and async. + // Mark your test throws to produce an unexpected failure when your test encounters an uncaught error. + // Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards. + } + + func testPerformanceExample() throws { + // This is an example of a performance test case. + self.measure { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/iosUITests/iosUITests.swift b/iosUITests/iosUITests.swift new file mode 100644 index 0000000000..7ee54c18ce --- /dev/null +++ b/iosUITests/iosUITests.swift @@ -0,0 +1,41 @@ +// +// iosUITests.swift +// iosUITests +// +// Created by xavi on 26/2/24. +// + +import XCTest + +final class iosUITests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + + // In UI tests it is usually best to stop immediately when a failure occurs. + continueAfterFailure = false + + // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // UI tests must launch the application that they test. + let app = XCUIApplication() + app.launch() + + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testLaunchPerformance() throws { + if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) { + // This measures how long it takes to launch your application. + measure(metrics: [XCTApplicationLaunchMetric()]) { + XCUIApplication().launch() + } + } + } +} diff --git a/iosUITests/iosUITestsLaunchTests.swift b/iosUITests/iosUITestsLaunchTests.swift new file mode 100644 index 0000000000..7f2477fa4d --- /dev/null +++ b/iosUITests/iosUITestsLaunchTests.swift @@ -0,0 +1,32 @@ +// +// iosUITestsLaunchTests.swift +// iosUITests +// +// Created by xavi on 26/2/24. +// + +import XCTest + +final class iosUITestsLaunchTests: XCTestCase { + + override class var runsForEachTargetApplicationUIConfiguration: Bool { + true + } + + override func setUpWithError() throws { + continueAfterFailure = false + } + + func testLaunch() throws { + let app = XCUIApplication() + app.launch() + + // Insert steps here to perform after app launch but before taking a screenshot, + // such as logging into a test account or navigating somewhere in the app + + let attachment = XCTAttachment(screenshot: app.screenshot()) + attachment.name = "Launch Screen" + attachment.lifetime = .keepAlways + add(attachment) + } +}