commit fea6d7c43a4c828c5e287974165f8e59768e7909 Author: Ivan Bushchik Date: Tue Jan 18 16:39:08 2022 +0300 Initial Commit diff --git a/GradeMapper.xcodeproj/project.pbxproj b/GradeMapper.xcodeproj/project.pbxproj new file mode 100644 index 0000000..f6fe4d3 --- /dev/null +++ b/GradeMapper.xcodeproj/project.pbxproj @@ -0,0 +1,463 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 55; + objects = { + +/* Begin PBXBuildFile section */ + 4F7E91CD279615A200CB18B7 /* SubjectView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F7E91CC279615A200CB18B7 /* SubjectView.swift */; }; + 4F7E91CE279615A200CB18B7 /* SubjectView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F7E91CC279615A200CB18B7 /* SubjectView.swift */; }; + 4FEB3F0F2795DFE90005C604 /* GradeMapperApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4FEB3EFF2795DFE80005C604 /* GradeMapperApp.swift */; }; + 4FEB3F102795DFE90005C604 /* GradeMapperApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4FEB3EFF2795DFE80005C604 /* GradeMapperApp.swift */; }; + 4FEB3F112795DFE90005C604 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4FEB3F002795DFE80005C604 /* ContentView.swift */; }; + 4FEB3F122795DFE90005C604 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4FEB3F002795DFE80005C604 /* ContentView.swift */; }; + 4FEB3F132795DFE90005C604 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4FEB3F012795DFE90005C604 /* Assets.xcassets */; }; + 4FEB3F142795DFE90005C604 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4FEB3F012795DFE90005C604 /* Assets.xcassets */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 4F7E91CC279615A200CB18B7 /* SubjectView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SubjectView.swift; sourceTree = ""; }; + 4FEB3EFF2795DFE80005C604 /* GradeMapperApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GradeMapperApp.swift; sourceTree = ""; }; + 4FEB3F002795DFE80005C604 /* ContentView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + 4FEB3F012795DFE90005C604 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 4FEB3F062795DFE90005C604 /* GradeMapper.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GradeMapper.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 4FEB3F0C2795DFE90005C604 /* GradeMapper.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GradeMapper.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 4FEB3F0E2795DFE90005C604 /* macOS.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = macOS.entitlements; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 4FEB3F032795DFE90005C604 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 4FEB3F092795DFE90005C604 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 4FEB3EF92795DFE80005C604 = { + isa = PBXGroup; + children = ( + 4FEB3EFE2795DFE80005C604 /* Shared */, + 4FEB3F0D2795DFE90005C604 /* macOS */, + 4FEB3F072795DFE90005C604 /* Products */, + ); + sourceTree = ""; + }; + 4FEB3EFE2795DFE80005C604 /* Shared */ = { + isa = PBXGroup; + children = ( + 4FEB3EFF2795DFE80005C604 /* GradeMapperApp.swift */, + 4FEB3F002795DFE80005C604 /* ContentView.swift */, + 4FEB3F012795DFE90005C604 /* Assets.xcassets */, + 4F7E91CC279615A200CB18B7 /* SubjectView.swift */, + ); + path = Shared; + sourceTree = ""; + }; + 4FEB3F072795DFE90005C604 /* Products */ = { + isa = PBXGroup; + children = ( + 4FEB3F062795DFE90005C604 /* GradeMapper.app */, + 4FEB3F0C2795DFE90005C604 /* GradeMapper.app */, + ); + name = Products; + sourceTree = ""; + }; + 4FEB3F0D2795DFE90005C604 /* macOS */ = { + isa = PBXGroup; + children = ( + 4FEB3F0E2795DFE90005C604 /* macOS.entitlements */, + ); + path = macOS; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 4FEB3F052795DFE90005C604 /* GradeMapper (iOS) */ = { + isa = PBXNativeTarget; + buildConfigurationList = 4FEB3F172795DFE90005C604 /* Build configuration list for PBXNativeTarget "GradeMapper (iOS)" */; + buildPhases = ( + 4FEB3F022795DFE90005C604 /* Sources */, + 4FEB3F032795DFE90005C604 /* Frameworks */, + 4FEB3F042795DFE90005C604 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "GradeMapper (iOS)"; + productName = "GradeMapper (iOS)"; + productReference = 4FEB3F062795DFE90005C604 /* GradeMapper.app */; + productType = "com.apple.product-type.application"; + }; + 4FEB3F0B2795DFE90005C604 /* GradeMapper (macOS) */ = { + isa = PBXNativeTarget; + buildConfigurationList = 4FEB3F1A2795DFE90005C604 /* Build configuration list for PBXNativeTarget "GradeMapper (macOS)" */; + buildPhases = ( + 4FEB3F082795DFE90005C604 /* Sources */, + 4FEB3F092795DFE90005C604 /* Frameworks */, + 4FEB3F0A2795DFE90005C604 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "GradeMapper (macOS)"; + productName = "GradeMapper (macOS)"; + productReference = 4FEB3F0C2795DFE90005C604 /* GradeMapper.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 4FEB3EFA2795DFE80005C604 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1320; + LastUpgradeCheck = 1320; + TargetAttributes = { + 4FEB3F052795DFE90005C604 = { + CreatedOnToolsVersion = 13.2.1; + }; + 4FEB3F0B2795DFE90005C604 = { + CreatedOnToolsVersion = 13.2.1; + }; + }; + }; + buildConfigurationList = 4FEB3EFD2795DFE80005C604 /* Build configuration list for PBXProject "GradeMapper" */; + compatibilityVersion = "Xcode 13.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 4FEB3EF92795DFE80005C604; + productRefGroup = 4FEB3F072795DFE90005C604 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 4FEB3F052795DFE90005C604 /* GradeMapper (iOS) */, + 4FEB3F0B2795DFE90005C604 /* GradeMapper (macOS) */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 4FEB3F042795DFE90005C604 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4FEB3F132795DFE90005C604 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 4FEB3F0A2795DFE90005C604 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4FEB3F142795DFE90005C604 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 4FEB3F022795DFE90005C604 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4FEB3F112795DFE90005C604 /* ContentView.swift in Sources */, + 4F7E91CD279615A200CB18B7 /* SubjectView.swift in Sources */, + 4FEB3F0F2795DFE90005C604 /* GradeMapperApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 4FEB3F082795DFE90005C604 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4FEB3F122795DFE90005C604 /* ContentView.swift in Sources */, + 4F7E91CE279615A200CB18B7 /* SubjectView.swift in Sources */, + 4FEB3F102795DFE90005C604 /* GradeMapperApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 4FEB3F152795DFE90005C604 /* 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++17"; + 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_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; + 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; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 4FEB3F162795DFE90005C604 /* 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++17"; + 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_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; + 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; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Release; + }; + 4FEB3F182795DFE90005C604 /* 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_TEAM = F5PQ7AR4DP; + 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"; + IPHONEOS_DEPLOYMENT_TARGET = 15.2; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.ivabus.GradeMapper; + PRODUCT_NAME = GradeMapper; + SDKROOT = iphoneos; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 4FEB3F192795DFE90005C604 /* 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_TEAM = F5PQ7AR4DP; + 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"; + IPHONEOS_DEPLOYMENT_TARGET = 15.2; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.ivabus.GradeMapper; + PRODUCT_NAME = GradeMapper; + SDKROOT = iphoneos; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 4FEB3F1B2795DFE90005C604 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = macOS/macOS.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = F5PQ7AR4DP; + ENABLE_HARDENED_RUNTIME = YES; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MACOSX_DEPLOYMENT_TARGET = 12.1; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.ivabus.GradeMapper; + PRODUCT_NAME = GradeMapper; + SDKROOT = macosx; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 4FEB3F1C2795DFE90005C604 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = macOS/macOS.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = F5PQ7AR4DP; + ENABLE_HARDENED_RUNTIME = YES; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MACOSX_DEPLOYMENT_TARGET = 12.1; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.ivabus.GradeMapper; + PRODUCT_NAME = GradeMapper; + SDKROOT = macosx; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 4FEB3EFD2795DFE80005C604 /* Build configuration list for PBXProject "GradeMapper" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4FEB3F152795DFE90005C604 /* Debug */, + 4FEB3F162795DFE90005C604 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 4FEB3F172795DFE90005C604 /* Build configuration list for PBXNativeTarget "GradeMapper (iOS)" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4FEB3F182795DFE90005C604 /* Debug */, + 4FEB3F192795DFE90005C604 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 4FEB3F1A2795DFE90005C604 /* Build configuration list for PBXNativeTarget "GradeMapper (macOS)" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4FEB3F1B2795DFE90005C604 /* Debug */, + 4FEB3F1C2795DFE90005C604 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 4FEB3EFA2795DFE80005C604 /* Project object */; +} diff --git a/GradeMapper.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/GradeMapper.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/GradeMapper.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/GradeMapper.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/GradeMapper.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/GradeMapper.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/GradeMapper.xcodeproj/xcuserdata/ivabus.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/GradeMapper.xcodeproj/xcuserdata/ivabus.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 0000000..05fa294 --- /dev/null +++ b/GradeMapper.xcodeproj/xcuserdata/ivabus.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,24 @@ + + + + + + + + + diff --git a/GradeMapper.xcodeproj/xcuserdata/ivabus.xcuserdatad/xcschemes/xcschememanagement.plist b/GradeMapper.xcodeproj/xcuserdata/ivabus.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..85589ef --- /dev/null +++ b/GradeMapper.xcodeproj/xcuserdata/ivabus.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,19 @@ + + + + + SchemeUserState + + GradeMapper (iOS).xcscheme_^#shared#^_ + + orderHint + 1 + + GradeMapper (macOS).xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/Shared/Assets.xcassets/AccentColor.colorset/Contents.json b/Shared/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/Shared/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/Contents.json b/Shared/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..c136eaf --- /dev/null +++ b/Shared/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,148 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "60x60" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "60x60" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "83.5x83.5" + }, + { + "idiom" : "ios-marketing", + "scale" : "1x", + "size" : "1024x1024" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "16x16" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "16x16" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "32x32" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "32x32" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "128x128" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "128x128" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "256x256" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "256x256" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "512x512" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "512x512" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Shared/Assets.xcassets/Contents.json b/Shared/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/Shared/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Shared/ContentView.swift b/Shared/ContentView.swift new file mode 100644 index 0000000..1333bc3 --- /dev/null +++ b/Shared/ContentView.swift @@ -0,0 +1,36 @@ +// +// ContentView.swift +// Shared +// +// Created by Иван Бущик on 17.01.2022. +// + +import SwiftUI + +struct ContentView: View{ + var body: some View { + VStack(alignment: .center) { + Text("GradeMapper") + .font(.largeTitle) + .fontWeight(.heavy) + .multilineTextAlignment(.center) + NavigationView { + List{ + ForEach(subjectsNames, id: \.self) { + subjectName in NavigationLink("\(subjectName)", destination: SubjectView(name: subjectName)) + } + } + } + }.padding([.leading, .top], 5.0) + } +} + +struct ContentView_Previews: PreviewProvider { + static var previews: some View { + ContentView() + } +} + + + + diff --git a/Shared/GradeMapperApp.swift b/Shared/GradeMapperApp.swift new file mode 100644 index 0000000..6747ef6 --- /dev/null +++ b/Shared/GradeMapperApp.swift @@ -0,0 +1,117 @@ +// +// GradeMapperApp.swift +// Shared +// +// Created by Иван Бущик on 17.01.2022. +// + +import SwiftUI + +class helpMe{ + var multiplier: Double + var subjectName: String + var subjectSubName: String + var grade: Int + var sum: Double + var sr: Double + var gradesWeighted: Double = 0 + var weightsSum: Double = 0 + var history: [Int] + init(){ + self.multiplier = 1.5 + self.subjectName = "Русский язык" + self.subjectSubName = "Контрольная работа" + self.gradesWeighted = 0 + self.weightsSum = 0 + self.sr = 0 + self.sum = 0 + self.grade = 0 + self.history = [] + } + func set(n1: String, n2: String) -> Void{ + self.multiplier = subjects[n1]![n2]! + self.subjectName = n1 + self.subjectSubName = n2 + } + func setGrade(grade: Int){ + self.grade = grade + } + +} + + +@main +struct GradeMapperApp: App { + var body: some Scene { + WindowGroup { + ContentView() + } + } +} + +var subjects: [String : [String : Double]] = [ + "Русский язык": [ + "Контрольная работа": 1.5, + "Контрольный диктант": 1.5, + "Административная контрольная работа": 1.5, + "Словарный диктант": 1.4, + "Домашнее сочинение": 1.4, + "Изложение": 1.4, + "Проверочная работа": 1.3, + "Самостоятельная работа": 1.2, + "Работа на уроке": 1.0, + "Тест": 1.0, + "Сочинение": 1.0, + "Домашняя работа": 1.0 + ], "Литература": [ + "Контрольная работа": 1.5, + "Классное сочинение": 1.5, + "Домашнее сочинение": 1.4, + "Проверочная работа": 1.3, + "Самостоятельная работа": 1.2, + "Работа на уроке": 1.0, + "Тест": 1.0, + "Сочинение": 1.0, + "Домашняя работа": 1.0 + ], "Алгебрa": [ + "Контрольная работа": 1.5, + "Административная контрольная работа": 1.5, + "Контрольная практическая работа": 1.5, + "Зачёт": 1.5, + "Проверочная работа": 1.3, + "Самостоятельная работа": 1.2, + "Работа на уроке": 1.0, + "Домашняя работа": 1.0 + ], "Геометрия": [ + "Контрольная работа": 1.5, + "Административная контрольная работа": 1.5, + "Контрольная практическая работа": 1.5, + "Зачёт": 1.5, + "Проверочная работа": 1.3, + "Практическая работа": 1.3, + "Самостоятельная работа": 1.2, + "Работа на уроке": 1.0, + "Домашняя работа": 1.0 + ], "Физика": [ + "Контрольная работа": 1.5, + "Зачёт": 1.5, + "Проверочная работа": 1.3, + "Практическая работа": 1.3, + "Срезовая работа": 1.3, + "Лабораторная работа": 1.3, + "Самостоятельная работа": 1.2, + "Работа на уроке": 1.0, + "Тест": 1.0, + "Домашняя работа": 1.0 + ], "Информатика": [ + "Контрольная работа": 1.5, + "Зачёт": 1.5, + "Проверочная работа": 1.3, + "Практическая работа": 1.3, + "Самостоятельная работа": 1.2, + "Работа на уроке": 1.0, + "Домашняя работа": 1.0 + ] +] + +var subjectsNames: [String] = [String](subjects.keys) diff --git a/Shared/SubjectView.swift b/Shared/SubjectView.swift new file mode 100644 index 0000000..28df52f --- /dev/null +++ b/Shared/SubjectView.swift @@ -0,0 +1,67 @@ +// +// SubjectView.swift +// GradeMapper +// +// Created by Иван Бущик on 18.01.2022. +// + +import SwiftUI +enum Grade: Int, Identifiable, CaseIterable{ + case One = 1 + case Two = 2 + case Three = 3 + case Four = 4 + case Five = 5 + + var id: Int { self.rawValue } +} + + +struct SubjectView: View { + var ow = helpMe() + @State var srr: Double = 0 + var name: String + @State private var selectedGrade = Grade.One + @State var selectedTypeOfGrade = "Контрольная работа" + + var body: some View { + var current = subjects[name]! + VStack(alignment: .center, spacing: 75){ + Text("\(name)") + .font(.title) + .fontWeight(.black) + .multilineTextAlignment(.center) + VStack(alignment: .leading, spacing: 30){ + Picker("Тип оценки", selection: $selectedTypeOfGrade){ + ForEach([String](subjects[name]!.keys), id: \.self) { + subjectSN in Text("\(subjectSN)") + } + }.pickerStyle(.wheel) + VStack{ + Picker("Оценка", selection: $selectedGrade){ + ForEach(Grade.allCases, id: \.self) { + currGrade in Text("\(currGrade.rawValue)") + } + } + }.pickerStyle(.segmented) + } + Button ("Добавить оценку"){ + ow.multiplier = current[selectedTypeOfGrade]! + ow.gradesWeighted += Double(selectedGrade.rawValue) * ow.multiplier + ow.weightsSum += ow.multiplier + ow.sr = (ow.gradesWeighted / ow.weightsSum) + print(ow.sr) + print(ow.multiplier) + self.srr = ow.sr + }.buttonStyle(.borderedProminent) + Text(String(self.srr)) + .fontWeight(.bold) + } + .padding(.top, -155.0) + } +} +struct SubjectView_Previews: PreviewProvider { + static var previews: some View { + SubjectView(name: "Русский язык") + } +} diff --git a/macOS/macOS.entitlements b/macOS/macOS.entitlements new file mode 100644 index 0000000..f2ef3ae --- /dev/null +++ b/macOS/macOS.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.files.user-selected.read-only + + +