This commit is contained in:
Ivan Bushchik 2022-01-18 17:17:21 +03:00
parent fea6d7c43a
commit 5b6331b695
6 changed files with 43 additions and 136 deletions

View file

@ -0,0 +1,10 @@
<?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>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
</dict>
</plist>

View file

@ -8,22 +8,18 @@
/* Begin PBXBuildFile section */ /* Begin PBXBuildFile section */
4F7E91CD279615A200CB18B7 /* SubjectView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F7E91CC279615A200CB18B7 /* SubjectView.swift */; }; 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 */; }; 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 */; }; 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 */; }; 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 */ /* End PBXBuildFile section */
/* Begin PBXFileReference section */ /* Begin PBXFileReference section */
4F7E91CC279615A200CB18B7 /* SubjectView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SubjectView.swift; sourceTree = "<group>"; }; 4F7E91CC279615A200CB18B7 /* SubjectView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SubjectView.swift; sourceTree = "<group>"; };
4FD40DBC279702A900A5A6D2 /* GradeMapper (iOS).entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "GradeMapper (iOS).entitlements"; sourceTree = "<group>"; };
4FEB3EFF2795DFE80005C604 /* GradeMapperApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GradeMapperApp.swift; sourceTree = "<group>"; }; 4FEB3EFF2795DFE80005C604 /* GradeMapperApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GradeMapperApp.swift; sourceTree = "<group>"; };
4FEB3F002795DFE80005C604 /* ContentView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; }; 4FEB3F002795DFE80005C604 /* ContentView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
4FEB3F012795DFE90005C604 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; }; 4FEB3F012795DFE90005C604 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
4FEB3F062795DFE90005C604 /* GradeMapper.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GradeMapper.app; sourceTree = BUILT_PRODUCTS_DIR; }; 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 = "<group>"; }; 4FEB3F0E2795DFE90005C604 /* macOS.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = macOS.entitlements; sourceTree = "<group>"; };
/* End PBXFileReference section */ /* End PBXFileReference section */
@ -35,19 +31,13 @@
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
4FEB3F092795DFE90005C604 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */ /* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */ /* Begin PBXGroup section */
4FEB3EF92795DFE80005C604 = { 4FEB3EF92795DFE80005C604 = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
4FD40DBC279702A900A5A6D2 /* GradeMapper (iOS).entitlements */,
4FEB3EFE2795DFE80005C604 /* Shared */, 4FEB3EFE2795DFE80005C604 /* Shared */,
4FEB3F0D2795DFE90005C604 /* macOS */, 4FEB3F0D2795DFE90005C604 /* macOS */,
4FEB3F072795DFE90005C604 /* Products */, 4FEB3F072795DFE90005C604 /* Products */,
@ -69,7 +59,6 @@
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
4FEB3F062795DFE90005C604 /* GradeMapper.app */, 4FEB3F062795DFE90005C604 /* GradeMapper.app */,
4FEB3F0C2795DFE90005C604 /* GradeMapper.app */,
); );
name = Products; name = Products;
sourceTree = "<group>"; sourceTree = "<group>";
@ -102,23 +91,6 @@
productReference = 4FEB3F062795DFE90005C604 /* GradeMapper.app */; productReference = 4FEB3F062795DFE90005C604 /* GradeMapper.app */;
productType = "com.apple.product-type.application"; 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 */ /* End PBXNativeTarget section */
/* Begin PBXProject section */ /* Begin PBXProject section */
@ -132,9 +104,6 @@
4FEB3F052795DFE90005C604 = { 4FEB3F052795DFE90005C604 = {
CreatedOnToolsVersion = 13.2.1; CreatedOnToolsVersion = 13.2.1;
}; };
4FEB3F0B2795DFE90005C604 = {
CreatedOnToolsVersion = 13.2.1;
};
}; };
}; };
buildConfigurationList = 4FEB3EFD2795DFE80005C604 /* Build configuration list for PBXProject "GradeMapper" */; buildConfigurationList = 4FEB3EFD2795DFE80005C604 /* Build configuration list for PBXProject "GradeMapper" */;
@ -151,7 +120,6 @@
projectRoot = ""; projectRoot = "";
targets = ( targets = (
4FEB3F052795DFE90005C604 /* GradeMapper (iOS) */, 4FEB3F052795DFE90005C604 /* GradeMapper (iOS) */,
4FEB3F0B2795DFE90005C604 /* GradeMapper (macOS) */,
); );
}; };
/* End PBXProject section */ /* End PBXProject section */
@ -165,14 +133,6 @@
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
4FEB3F0A2795DFE90005C604 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
4FEB3F142795DFE90005C604 /* Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */ /* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */
@ -186,16 +146,6 @@
); );
runOnlyForDeploymentPostprocessing = 0; 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 */ /* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */ /* Begin XCBuildConfiguration section */
@ -315,6 +265,7 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = "GradeMapper (iOS).entitlements";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1; CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = F5PQ7AR4DP; DEVELOPMENT_TEAM = F5PQ7AR4DP;
@ -334,6 +285,8 @@
PRODUCT_BUNDLE_IDENTIFIER = com.ivabus.GradeMapper; PRODUCT_BUNDLE_IDENTIFIER = com.ivabus.GradeMapper;
PRODUCT_NAME = GradeMapper; PRODUCT_NAME = GradeMapper;
SDKROOT = iphoneos; SDKROOT = iphoneos;
SUPPORTS_MACCATALYST = YES;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2"; TARGETED_DEVICE_FAMILY = "1,2";
@ -345,6 +298,7 @@
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = "GradeMapper (iOS).entitlements";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1; CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = F5PQ7AR4DP; DEVELOPMENT_TEAM = F5PQ7AR4DP;
@ -364,6 +318,8 @@
PRODUCT_BUNDLE_IDENTIFIER = com.ivabus.GradeMapper; PRODUCT_BUNDLE_IDENTIFIER = com.ivabus.GradeMapper;
PRODUCT_NAME = GradeMapper; PRODUCT_NAME = GradeMapper;
SDKROOT = iphoneos; SDKROOT = iphoneos;
SUPPORTS_MACCATALYST = YES;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2"; TARGETED_DEVICE_FAMILY = "1,2";
@ -371,62 +327,6 @@
}; };
name = Release; 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 */ /* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */ /* Begin XCConfigurationList section */
@ -448,15 +348,6 @@
defaultConfigurationIsVisible = 0; defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release; defaultConfigurationName = Release;
}; };
4FEB3F1A2795DFE90005C604 /* Build configuration list for PBXNativeTarget "GradeMapper (macOS)" */ = {
isa = XCConfigurationList;
buildConfigurations = (
4FEB3F1B2795DFE90005C604 /* Debug */,
4FEB3F1C2795DFE90005C604 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */ /* End XCConfigurationList section */
}; };
rootObject = 4FEB3EFA2795DFE80005C604 /* Project object */; rootObject = 4FEB3EFA2795DFE80005C604 /* Project object */;

View file

@ -3,22 +3,4 @@
uuid = "1FA12096-94D4-4153-9D70-423E3C4922F7" uuid = "1FA12096-94D4-4153-9D70-423E3C4922F7"
type = "1" type = "1"
version = "2.0"> version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "A355FD59-8B4D-4388-96AB-61D1BDC2B27F"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Shared/SubjectView.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "60"
endingLineNumber = "60"
landmarkName = "body"
landmarkType = "24">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket> </Bucket>

21
LICENSE Normal file
View file

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2022 dilatedeyes
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

3
README.md Normal file
View file

@ -0,0 +1,3 @@
# GradeMapper
Программа для подсчёта среднего взвешенного оценок. Используются веса из Электронного журнала.
И да, даже не спрашивайте, как мы их получили.

View file

@ -54,7 +54,7 @@ struct SubjectView: View {
print(ow.multiplier) print(ow.multiplier)
self.srr = ow.sr self.srr = ow.sr
}.buttonStyle(.borderedProminent) }.buttonStyle(.borderedProminent)
Text(String(self.srr)) Text(String("Средний балл: \(self.srr)"))
.fontWeight(.bold) .fontWeight(.bold)
} }
.padding(.top, -155.0) .padding(.top, -155.0)