diff options
17 files changed, 1072 insertions, 0 deletions
diff --git a/WeatherApp.xcodeproj/project.pbxproj b/WeatherApp.xcodeproj/project.pbxproj new file mode 100644 index 0000000..d1ae002 --- /dev/null +++ b/WeatherApp.xcodeproj/project.pbxproj @@ -0,0 +1,595 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 99670D5223BF74880011237A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99670D5123BF74880011237A /* AppDelegate.swift */; }; + 99670D5423BF74880011237A /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99670D5323BF74880011237A /* SceneDelegate.swift */; }; + 99670D5623BF74880011237A /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99670D5523BF74880011237A /* ViewController.swift */; }; + 99670D5923BF74880011237A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 99670D5723BF74880011237A /* Main.storyboard */; }; + 99670D5B23BF748B0011237A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 99670D5A23BF748B0011237A /* Assets.xcassets */; }; + 99670D5E23BF748B0011237A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 99670D5C23BF748B0011237A /* LaunchScreen.storyboard */; }; + 99670D6923BF748B0011237A /* WeatherAppTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99670D6823BF748B0011237A /* WeatherAppTests.swift */; }; + 99670D7423BF748B0011237A /* WeatherAppUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99670D7323BF748B0011237A /* WeatherAppUITests.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 99670D6523BF748B0011237A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 99670D4623BF74880011237A /* Project object */; + proxyType = 1; + remoteGlobalIDString = 99670D4D23BF74880011237A; + remoteInfo = WeatherApp; + }; + 99670D7023BF748B0011237A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 99670D4623BF74880011237A /* Project object */; + proxyType = 1; + remoteGlobalIDString = 99670D4D23BF74880011237A; + remoteInfo = WeatherApp; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 99670D4E23BF74880011237A /* WeatherApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = WeatherApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 99670D5123BF74880011237A /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; }; + 99670D5323BF74880011237A /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; }; + 99670D5523BF74880011237A /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; }; + 99670D5823BF74880011237A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; }; + 99670D5A23BF748B0011237A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; }; + 99670D5D23BF748B0011237A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; }; + 99670D5F23BF748B0011237A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; + 99670D6423BF748B0011237A /* WeatherAppTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = WeatherAppTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 99670D6823BF748B0011237A /* WeatherAppTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WeatherAppTests.swift; sourceTree = "<group>"; }; + 99670D6A23BF748B0011237A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; + 99670D6F23BF748B0011237A /* WeatherAppUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = WeatherAppUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 99670D7323BF748B0011237A /* WeatherAppUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WeatherAppUITests.swift; sourceTree = "<group>"; }; + 99670D7523BF748B0011237A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 99670D4B23BF74880011237A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 99670D6123BF748B0011237A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 99670D6C23BF748B0011237A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 99670D4523BF74880011237A = { + isa = PBXGroup; + children = ( + 99670D5023BF74880011237A /* WeatherApp */, + 99670D6723BF748B0011237A /* WeatherAppTests */, + 99670D7223BF748B0011237A /* WeatherAppUITests */, + 99670D4F23BF74880011237A /* Products */, + ); + sourceTree = "<group>"; + }; + 99670D4F23BF74880011237A /* Products */ = { + isa = PBXGroup; + children = ( + 99670D4E23BF74880011237A /* WeatherApp.app */, + 99670D6423BF748B0011237A /* WeatherAppTests.xctest */, + 99670D6F23BF748B0011237A /* WeatherAppUITests.xctest */, + ); + name = Products; + sourceTree = "<group>"; + }; + 99670D5023BF74880011237A /* WeatherApp */ = { + isa = PBXGroup; + children = ( + 99670D5123BF74880011237A /* AppDelegate.swift */, + 99670D5323BF74880011237A /* SceneDelegate.swift */, + 99670D5523BF74880011237A /* ViewController.swift */, + 99670D5723BF74880011237A /* Main.storyboard */, + 99670D5A23BF748B0011237A /* Assets.xcassets */, + 99670D5C23BF748B0011237A /* LaunchScreen.storyboard */, + 99670D5F23BF748B0011237A /* Info.plist */, + ); + path = WeatherApp; + sourceTree = "<group>"; + }; + 99670D6723BF748B0011237A /* WeatherAppTests */ = { + isa = PBXGroup; + children = ( + 99670D6823BF748B0011237A /* WeatherAppTests.swift */, + 99670D6A23BF748B0011237A /* Info.plist */, + ); + path = WeatherAppTests; + sourceTree = "<group>"; + }; + 99670D7223BF748B0011237A /* WeatherAppUITests */ = { + isa = PBXGroup; + children = ( + 99670D7323BF748B0011237A /* WeatherAppUITests.swift */, + 99670D7523BF748B0011237A /* Info.plist */, + ); + path = WeatherAppUITests; + sourceTree = "<group>"; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 99670D4D23BF74880011237A /* WeatherApp */ = { + isa = PBXNativeTarget; + buildConfigurationList = 99670D7823BF748B0011237A /* Build configuration list for PBXNativeTarget "WeatherApp" */; + buildPhases = ( + 99670D4A23BF74880011237A /* Sources */, + 99670D4B23BF74880011237A /* Frameworks */, + 99670D4C23BF74880011237A /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = WeatherApp; + productName = WeatherApp; + productReference = 99670D4E23BF74880011237A /* WeatherApp.app */; + productType = "com.apple.product-type.application"; + }; + 99670D6323BF748B0011237A /* WeatherAppTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 99670D7B23BF748B0011237A /* Build configuration list for PBXNativeTarget "WeatherAppTests" */; + buildPhases = ( + 99670D6023BF748B0011237A /* Sources */, + 99670D6123BF748B0011237A /* Frameworks */, + 99670D6223BF748B0011237A /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 99670D6623BF748B0011237A /* PBXTargetDependency */, + ); + name = WeatherAppTests; + productName = WeatherAppTests; + productReference = 99670D6423BF748B0011237A /* WeatherAppTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 99670D6E23BF748B0011237A /* WeatherAppUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 99670D7E23BF748B0011237A /* Build configuration list for PBXNativeTarget "WeatherAppUITests" */; + buildPhases = ( + 99670D6B23BF748B0011237A /* Sources */, + 99670D6C23BF748B0011237A /* Frameworks */, + 99670D6D23BF748B0011237A /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 99670D7123BF748B0011237A /* PBXTargetDependency */, + ); + name = WeatherAppUITests; + productName = WeatherAppUITests; + productReference = 99670D6F23BF748B0011237A /* WeatherAppUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 99670D4623BF74880011237A /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1130; + LastUpgradeCheck = 1130; + ORGANIZATIONNAME = "Kumar Priyansh"; + TargetAttributes = { + 99670D4D23BF74880011237A = { + CreatedOnToolsVersion = 11.3; + }; + 99670D6323BF748B0011237A = { + CreatedOnToolsVersion = 11.3; + TestTargetID = 99670D4D23BF74880011237A; + }; + 99670D6E23BF748B0011237A = { + CreatedOnToolsVersion = 11.3; + TestTargetID = 99670D4D23BF74880011237A; + }; + }; + }; + buildConfigurationList = 99670D4923BF74880011237A /* Build configuration list for PBXProject "WeatherApp" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 99670D4523BF74880011237A; + productRefGroup = 99670D4F23BF74880011237A /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 99670D4D23BF74880011237A /* WeatherApp */, + 99670D6323BF748B0011237A /* WeatherAppTests */, + 99670D6E23BF748B0011237A /* WeatherAppUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 99670D4C23BF74880011237A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 99670D5E23BF748B0011237A /* LaunchScreen.storyboard in Resources */, + 99670D5B23BF748B0011237A /* Assets.xcassets in Resources */, + 99670D5923BF74880011237A /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 99670D6223BF748B0011237A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 99670D6D23BF748B0011237A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 99670D4A23BF74880011237A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 99670D5623BF74880011237A /* ViewController.swift in Sources */, + 99670D5223BF74880011237A /* AppDelegate.swift in Sources */, + 99670D5423BF74880011237A /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 99670D6023BF748B0011237A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 99670D6923BF748B0011237A /* WeatherAppTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 99670D6B23BF748B0011237A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 99670D7423BF748B0011237A /* WeatherAppUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 99670D6623BF748B0011237A /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 99670D4D23BF74880011237A /* WeatherApp */; + targetProxy = 99670D6523BF748B0011237A /* PBXContainerItemProxy */; + }; + 99670D7123BF748B0011237A /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 99670D4D23BF74880011237A /* WeatherApp */; + targetProxy = 99670D7023BF748B0011237A /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 99670D5723BF74880011237A /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 99670D5823BF74880011237A /* Base */, + ); + name = Main.storyboard; + sourceTree = "<group>"; + }; + 99670D5C23BF748B0011237A /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 99670D5D23BF748B0011237A /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = "<group>"; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 99670D7623BF748B0011237A /* Debug */ = { + 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; + COPY_PHASE_STRIP = NO; + 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 = 13.2; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 99670D7723BF748B0011237A /* Release */ = { + 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; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + 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 = 13.2; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 99670D7923BF748B0011237A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = XQKQGMCA77; + INFOPLIST_FILE = WeatherApp/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.kumarpriyansh.WeatherApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 99670D7A23BF748B0011237A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = XQKQGMCA77; + INFOPLIST_FILE = WeatherApp/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.kumarpriyansh.WeatherApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 99670D7C23BF748B0011237A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = XQKQGMCA77; + INFOPLIST_FILE = WeatherAppTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.2; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.kumarpriyansh.WeatherAppTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/WeatherApp.app/WeatherApp"; + }; + name = Debug; + }; + 99670D7D23BF748B0011237A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = XQKQGMCA77; + INFOPLIST_FILE = WeatherAppTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.2; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.kumarpriyansh.WeatherAppTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/WeatherApp.app/WeatherApp"; + }; + name = Release; + }; + 99670D7F23BF748B0011237A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = XQKQGMCA77; + INFOPLIST_FILE = WeatherAppUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.kumarpriyansh.WeatherAppUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = WeatherApp; + }; + name = Debug; + }; + 99670D8023BF748B0011237A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = XQKQGMCA77; + INFOPLIST_FILE = WeatherAppUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.kumarpriyansh.WeatherAppUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = WeatherApp; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 99670D4923BF74880011237A /* Build configuration list for PBXProject "WeatherApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 99670D7623BF748B0011237A /* Debug */, + 99670D7723BF748B0011237A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 99670D7823BF748B0011237A /* Build configuration list for PBXNativeTarget "WeatherApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 99670D7923BF748B0011237A /* Debug */, + 99670D7A23BF748B0011237A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 99670D7B23BF748B0011237A /* Build configuration list for PBXNativeTarget "WeatherAppTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 99670D7C23BF748B0011237A /* Debug */, + 99670D7D23BF748B0011237A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 99670D7E23BF748B0011237A /* Build configuration list for PBXNativeTarget "WeatherAppUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 99670D7F23BF748B0011237A /* Debug */, + 99670D8023BF748B0011237A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 99670D4623BF74880011237A /* Project object */; +} diff --git a/WeatherApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/WeatherApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..43c2a0f --- /dev/null +++ b/WeatherApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Workspace + version = "1.0"> + <FileRef + location = "self:WeatherApp.xcodeproj"> + </FileRef> +</Workspace> diff --git a/WeatherApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/WeatherApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/WeatherApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ +<?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>IDEDidComputeMac32BitWarning</key> + <true/> +</dict> +</plist> diff --git a/WeatherApp.xcodeproj/project.xcworkspace/xcuserdata/lucifer.xcuserdatad/UserInterfaceState.xcuserstate b/WeatherApp.xcodeproj/project.xcworkspace/xcuserdata/lucifer.xcuserdatad/UserInterfaceState.xcuserstate Binary files differnew file mode 100644 index 0000000..3efd10b --- /dev/null +++ b/WeatherApp.xcodeproj/project.xcworkspace/xcuserdata/lucifer.xcuserdatad/UserInterfaceState.xcuserstate diff --git a/WeatherApp.xcodeproj/xcuserdata/lucifer.xcuserdatad/xcschemes/xcschememanagement.plist b/WeatherApp.xcodeproj/xcuserdata/lucifer.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..85d0a47 --- /dev/null +++ b/WeatherApp.xcodeproj/xcuserdata/lucifer.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ +<?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>SchemeUserState</key> + <dict> + <key>WeatherApp.xcscheme_^#shared#^_</key> + <dict> + <key>orderHint</key> + <integer>0</integer> + </dict> + </dict> +</dict> +</plist> diff --git a/WeatherApp/AppDelegate.swift b/WeatherApp/AppDelegate.swift new file mode 100644 index 0000000..9f9c912 --- /dev/null +++ b/WeatherApp/AppDelegate.swift @@ -0,0 +1,37 @@ +// +// AppDelegate.swift +// WeatherApp +// +// Created by Lucifer on 03/01/20. +// Copyright © 2020 Kumar Priyansh. All rights reserved. +// + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + // MARK: UISceneSession Lifecycle + + func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { + // Called when a new scene session is being created. + // Use this method to select a configuration to create the new scene with. + return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) + } + + func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { + // Called when the user discards a scene session. + // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. + // Use this method to release any resources that were specific to the discarded scenes, as they will not return. + } + + +} + diff --git a/WeatherApp/Assets.xcassets/AppIcon.appiconset/Contents.json b/WeatherApp/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d8db8d6 --- /dev/null +++ b/WeatherApp/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +}
\ No newline at end of file diff --git a/WeatherApp/Assets.xcassets/Contents.json b/WeatherApp/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/WeatherApp/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +}
\ No newline at end of file diff --git a/WeatherApp/Base.lproj/LaunchScreen.storyboard b/WeatherApp/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/WeatherApp/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM"> + <dependencies> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/> + <capability name="Safe area layout guides" minToolsVersion="9.0"/> + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> + </dependencies> + <scenes> + <!--View Controller--> + <scene sceneID="EHf-IW-A2E"> + <objects> + <viewController id="01J-lp-oVM" sceneMemberID="viewController"> + <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3"> + <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> + <color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> + <viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/> + </view> + </viewController> + <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/> + </objects> + <point key="canvasLocation" x="53" y="375"/> + </scene> + </scenes> +</document> diff --git a/WeatherApp/Base.lproj/Main.storyboard b/WeatherApp/Base.lproj/Main.storyboard new file mode 100644 index 0000000..25a7638 --- /dev/null +++ b/WeatherApp/Base.lproj/Main.storyboard @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r"> + <dependencies> + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/> + <capability name="Safe area layout guides" minToolsVersion="9.0"/> + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> + </dependencies> + <scenes> + <!--View Controller--> + <scene sceneID="tne-QT-ifu"> + <objects> + <viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController"> + <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC"> + <rect key="frame" x="0.0" y="0.0" width="375" height="667"/> + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> + <color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> + <viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/> + </view> + </viewController> + <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/> + </objects> + </scene> + </scenes> +</document> diff --git a/WeatherApp/Info.plist b/WeatherApp/Info.plist new file mode 100644 index 0000000..2a3483c --- /dev/null +++ b/WeatherApp/Info.plist @@ -0,0 +1,64 @@ +<?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>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> + <key>CFBundleShortVersionString</key> + <string>1.0</string> + <key>CFBundleVersion</key> + <string>1</string> + <key>LSRequiresIPhoneOS</key> + <true/> + <key>UIApplicationSceneManifest</key> + <dict> + <key>UIApplicationSupportsMultipleScenes</key> + <false/> + <key>UISceneConfigurations</key> + <dict> + <key>UIWindowSceneSessionRoleApplication</key> + <array> + <dict> + <key>UISceneConfigurationName</key> + <string>Default Configuration</string> + <key>UISceneDelegateClassName</key> + <string>$(PRODUCT_MODULE_NAME).SceneDelegate</string> + <key>UISceneStoryboardFile</key> + <string>Main</string> + </dict> + </array> + </dict> + </dict> + <key>UILaunchStoryboardName</key> + <string>LaunchScreen</string> + <key>UIMainStoryboardFile</key> + <string>Main</string> + <key>UIRequiredDeviceCapabilities</key> + <array> + <string>armv7</string> + </array> + <key>UISupportedInterfaceOrientations</key> + <array> + <string>UIInterfaceOrientationPortrait</string> + <string>UIInterfaceOrientationLandscapeLeft</string> + <string>UIInterfaceOrientationLandscapeRight</string> + </array> + <key>UISupportedInterfaceOrientations~ipad</key> + <array> + <string>UIInterfaceOrientationPortrait</string> + <string>UIInterfaceOrientationPortraitUpsideDown</string> + <string>UIInterfaceOrientationLandscapeLeft</string> + <string>UIInterfaceOrientationLandscapeRight</string> + </array> +</dict> +</plist> diff --git a/WeatherApp/SceneDelegate.swift b/WeatherApp/SceneDelegate.swift new file mode 100644 index 0000000..cea78a2 --- /dev/null +++ b/WeatherApp/SceneDelegate.swift @@ -0,0 +1,53 @@ +// +// SceneDelegate.swift +// WeatherApp +// +// Created by Lucifer on 03/01/20. +// Copyright © 2020 Kumar Priyansh. All rights reserved. +// + +import UIKit + +class SceneDelegate: UIResponder, UIWindowSceneDelegate { + + var window: UIWindow? + + + func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { + // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. + // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. + // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). + guard let _ = (scene as? UIWindowScene) else { return } + } + + func sceneDidDisconnect(_ scene: UIScene) { + // Called as the scene is being released by the system. + // This occurs shortly after the scene enters the background, or when its session is discarded. + // Release any resources associated with this scene that can be re-created the next time the scene connects. + // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead). + } + + func sceneDidBecomeActive(_ scene: UIScene) { + // Called when the scene has moved from an inactive state to an active state. + // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. + } + + func sceneWillResignActive(_ scene: UIScene) { + // Called when the scene will move from an active state to an inactive state. + // This may occur due to temporary interruptions (ex. an incoming phone call). + } + + func sceneWillEnterForeground(_ scene: UIScene) { + // Called as the scene transitions from the background to the foreground. + // Use this method to undo the changes made on entering the background. + } + + func sceneDidEnterBackground(_ scene: UIScene) { + // Called as the scene transitions from the foreground to the background. + // Use this method to save data, release shared resources, and store enough scene-specific state information + // to restore the scene back to its current state. + } + + +} + diff --git a/WeatherApp/ViewController.swift b/WeatherApp/ViewController.swift new file mode 100644 index 0000000..fbfc6d7 --- /dev/null +++ b/WeatherApp/ViewController.swift @@ -0,0 +1,20 @@ +// +// ViewController.swift +// WeatherApp +// +// Created by Lucifer on 03/01/20. +// Copyright © 2020 Kumar Priyansh. All rights reserved. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view. + } + + +} + diff --git a/WeatherAppTests/Info.plist b/WeatherAppTests/Info.plist new file mode 100644 index 0000000..64d65ca --- /dev/null +++ b/WeatherAppTests/Info.plist @@ -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>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> + <key>CFBundleShortVersionString</key> + <string>1.0</string> + <key>CFBundleVersion</key> + <string>1</string> +</dict> +</plist> diff --git a/WeatherAppTests/WeatherAppTests.swift b/WeatherAppTests/WeatherAppTests.swift new file mode 100644 index 0000000..7583c62 --- /dev/null +++ b/WeatherAppTests/WeatherAppTests.swift @@ -0,0 +1,34 @@ +// +// WeatherAppTests.swift +// WeatherAppTests +// +// Created by Lucifer on 03/01/20. +// Copyright © 2020 Kumar Priyansh. All rights reserved. +// + +import XCTest +@testable import WeatherApp + +class WeatherAppTests: XCTestCase { + + override func setUp() { + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDown() { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testPerformanceExample() { + // 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/WeatherAppUITests/Info.plist b/WeatherAppUITests/Info.plist new file mode 100644 index 0000000..64d65ca --- /dev/null +++ b/WeatherAppUITests/Info.plist @@ -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>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> + <key>CFBundleShortVersionString</key> + <string>1.0</string> + <key>CFBundleVersion</key> + <string>1</string> +</dict> +</plist> diff --git a/WeatherAppUITests/WeatherAppUITests.swift b/WeatherAppUITests/WeatherAppUITests.swift new file mode 100644 index 0000000..04817b1 --- /dev/null +++ b/WeatherAppUITests/WeatherAppUITests.swift @@ -0,0 +1,43 @@ +// +// WeatherAppUITests.swift +// WeatherAppUITests +// +// Created by Lucifer on 03/01/20. +// Copyright © 2020 Kumar Priyansh. All rights reserved. +// + +import XCTest + +class WeatherAppUITests: XCTestCase { + + override func setUp() { + // 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 tearDown() { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() { + // UI tests must launch the application that they test. + let app = XCUIApplication() + app.launch() + + // Use recording to get started writing UI tests. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testLaunchPerformance() { + if #available(macOS 10.15, iOS 13.0, tvOS 13.0, *) { + // This measures how long it takes to launch your application. + measure(metrics: [XCTOSSignpostMetric.applicationLaunch]) { + XCUIApplication().launch() + } + } + } +} |
