Skip to content

Commit

Permalink
1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
s8ngyu committed Sep 18, 2022
1 parent b6ea310 commit 664de07
Show file tree
Hide file tree
Showing 18 changed files with 780 additions and 16 deletions.
42 changes: 42 additions & 0 deletions build.command
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash

set -e

cd "$(dirname "$0")"

WORKING_LOCATION="$(pwd)"
APPLICATION_NAME=mugunghwa
rm -rf build
mkdir build

cd build

xcodebuild -project "$WORKING_LOCATION/$APPLICATION_NAME.xcodeproj" \
-scheme "$APPLICATION_NAME" \
-configuration Release \
-derivedDataPath "$WORKING_LOCATION/build/DerivedDataApp" \
-destination 'generic/platform=iOS' \
clean build \
ONLY_ACTIVE_ARCH="NO" \
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGN_ENTITLEMENTS="" CODE_SIGNING_ALLOWED="NO" \

DD_APP_PATH="$WORKING_LOCATION/build/DerivedDataApp/Build/Products/Release-iphoneos/$APPLICATION_NAME.app"
TARGET_APP="$WORKING_LOCATION/build/$APPLICATION_NAME.app"
cp -r "$DD_APP_PATH" "$TARGET_APP"

codesign --remove "$TARGET_APP"
if [ -e "$TARGET_APP/_CodeSignature" ]; then
rm -rf "$TARGET_APP/_CodeSignature"
fi
if [ -e "$TARGET_APP/embedded.mobileprovision" ]; then
rm -rf "$TARGET_APP/embedded.mobileprovision"
fi

ldid -S"$WORKING_LOCATION/entitlements.plist" "$TARGET_APP/$APPLICATION_NAME"
mkdir Payload
cp -r Mugunghwa.app Payload/Mugunghwa.app
zip -vr Mugunghwa.ipa Payload
rm -rf Mugunghwa.app
rm -rf DerivedDataApp
rm -rf Payload
zip -vr share.zip Mugunghwa.ipa
38 changes: 38 additions & 0 deletions entitlements.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?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>platform-application</key>
<true/>
<key>com.apple.security.exception.files.absolute-path.read-write</key>
<array>
<string>/</string>
</array>
<key>com.apple.private.security.no-container</key>
<true/>
<key>com.apple.private.security.no-sandbox</key>
<true/>
<key>com.apple.private.persona-mgmt</key>
<true/>
<key>com.apple.private.security.system-application</key>
<true/>
<key>com.apple.private.security.container-manager</key>
<true/>
<key>com.apple.private.coreservices.canmaplsdatabase</key>
<true/>
<key>com.apple.lsapplicationworkspace.rebuildappdatabases</key>
<true/>
<key>com.apple.private.MobileContainerManager.allowed</key>
<true/>
<key>com.apple.private.MobileInstallationHelperService.InstallDaemonOpsEnabled</key>
<true/>
<key>com.apple.private.MobileInstallationHelperService.allowed</key>
<true/>
<key>com.apple.private.uninstall.deletion</key>
<true/>
<key>com.apple.private.security.storage.MobileDocuments</key>
<true/>
<key>com.apple.managedconfiguration.profiled-access</key>
<true/>
</dict>
</plist>
87 changes: 77 additions & 10 deletions mugunghwa.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,38 @@
objects = {

/* Begin PBXBuildFile section */
8B0B9DC028D606A900FFAB36 /* ObjcHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B0B9DBF28D606A900FFAB36 /* ObjcHelper.m */; };
8B0B9DC528D6AF0E00FFAB36 /* MGPreferences.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B0B9DC428D6AF0E00FFAB36 /* MGPreferences.m */; };
8B10987F28D7192200732734 /* Alamofire in Frameworks */ = {isa = PBXBuildFile; productRef = 8B10987E28D7192200732734 /* Alamofire */; };
8BC10E1828D4FE36005265FE /* mugunghwaApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8BC10E1728D4FE36005265FE /* mugunghwaApp.swift */; };
8BC10E1A28D4FE36005265FE /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8BC10E1928D4FE36005265FE /* ContentView.swift */; };
8BC10E1C28D4FE37005265FE /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8BC10E1B28D4FE37005265FE /* Assets.xcassets */; };
8BC10E1F28D4FE37005265FE /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8BC10E1E28D4FE37005265FE /* Preview Assets.xcassets */; };
8BC10E2628D509E4005265FE /* HomeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8BC10E2528D509E4005265FE /* HomeView.swift */; };
8BC10E2828D5148B005265FE /* UtilityView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8BC10E2728D5148B005265FE /* UtilityView.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
8B0B9DBD28D606A800FFAB36 /* mugunghwa-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "mugunghwa-Bridging-Header.h"; sourceTree = "<group>"; };
8B0B9DBE28D606A900FFAB36 /* ObjcHelper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ObjcHelper.h; sourceTree = "<group>"; };
8B0B9DBF28D606A900FFAB36 /* ObjcHelper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ObjcHelper.m; sourceTree = "<group>"; };
8B0B9DC328D6AF0E00FFAB36 /* MGPreferences.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MGPreferences.h; sourceTree = "<group>"; };
8B0B9DC428D6AF0E00FFAB36 /* MGPreferences.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MGPreferences.m; sourceTree = "<group>"; };
8BC10E1428D4FE36005265FE /* mugunghwa.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = mugunghwa.app; sourceTree = BUILT_PRODUCTS_DIR; };
8BC10E1728D4FE36005265FE /* mugunghwaApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = mugunghwaApp.swift; sourceTree = "<group>"; };
8BC10E1928D4FE36005265FE /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
8BC10E1B28D4FE37005265FE /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
8BC10E1E28D4FE37005265FE /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
8BC10E2528D509E4005265FE /* HomeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeView.swift; sourceTree = "<group>"; };
8BC10E2728D5148B005265FE /* UtilityView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UtilityView.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
8BC10E1128D4FE36005265FE /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
8B10987F28D7192200732734 /* Alamofire in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -53,8 +66,15 @@
children = (
8BC10E1728D4FE36005265FE /* mugunghwaApp.swift */,
8BC10E1928D4FE36005265FE /* ContentView.swift */,
8BC10E2528D509E4005265FE /* HomeView.swift */,
8BC10E2728D5148B005265FE /* UtilityView.swift */,
8BC10E1B28D4FE37005265FE /* Assets.xcassets */,
8BC10E1D28D4FE37005265FE /* Preview Content */,
8B0B9DBE28D606A900FFAB36 /* ObjcHelper.h */,
8B0B9DBF28D606A900FFAB36 /* ObjcHelper.m */,
8B0B9DC328D6AF0E00FFAB36 /* MGPreferences.h */,
8B0B9DC428D6AF0E00FFAB36 /* MGPreferences.m */,
8B0B9DBD28D606A800FFAB36 /* mugunghwa-Bridging-Header.h */,
);
path = mugunghwa;
sourceTree = "<group>";
Expand Down Expand Up @@ -83,6 +103,9 @@
dependencies = (
);
name = mugunghwa;
packageProductDependencies = (
8B10987E28D7192200732734 /* Alamofire */,
);
productName = mugunghwa;
productReference = 8BC10E1428D4FE36005265FE /* mugunghwa.app */;
productType = "com.apple.product-type.application";
Expand All @@ -99,6 +122,7 @@
TargetAttributes = {
8BC10E1328D4FE36005265FE = {
CreatedOnToolsVersion = 14.0;
LastSwiftMigration = 1400;
};
};
};
Expand All @@ -111,6 +135,9 @@
Base,
);
mainGroup = 8BC10E0B28D4FE36005265FE;
packageReferences = (
8B10987D28D7192200732734 /* XCRemoteSwiftPackageReference "Alamofire" */,
);
productRefGroup = 8BC10E1528D4FE36005265FE /* Products */;
projectDirPath = "";
projectRoot = "";
Expand All @@ -137,8 +164,12 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
8B0B9DC528D6AF0E00FFAB36 /* MGPreferences.m in Sources */,
8BC10E2628D509E4005265FE /* HomeView.swift in Sources */,
8BC10E1A28D4FE36005265FE /* ContentView.swift in Sources */,
8B0B9DC028D606A900FFAB36 /* ObjcHelper.m in Sources */,
8BC10E1828D4FE36005265FE /* mugunghwaApp.swift in Sources */,
8BC10E2828D5148B005265FE /* UtilityView.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -195,7 +226,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -249,7 +280,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
Expand All @@ -264,26 +295,35 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"mugunghwa/Preview Content\"";
DEVELOPMENT_TEAM = GK39GPB6KU;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = Mugunghwa;
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
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 = 14.0;
INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = me.soongyu.mugunghwa;
PRODUCT_BUNDLE_IDENTIFIER = me.soongyu.mugunghwautil;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OBJC_BRIDGING_HEADER = "mugunghwa/mugunghwa-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand All @@ -294,26 +334,34 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"mugunghwa/Preview Content\"";
DEVELOPMENT_TEAM = GK39GPB6KU;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_KEY_CFBundleDisplayName = Mugunghwa;
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
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 = 14.0;
INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = me.soongyu.mugunghwa;
PRODUCT_BUNDLE_IDENTIFIER = me.soongyu.mugunghwautil;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OBJC_BRIDGING_HEADER = "mugunghwa/mugunghwa-Bridging-Header.h";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand Down Expand Up @@ -341,6 +389,25 @@
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
8B10987D28D7192200732734 /* XCRemoteSwiftPackageReference "Alamofire" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/Alamofire/Alamofire.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 5.0.0;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
8B10987E28D7192200732734 /* Alamofire */ = {
isa = XCSwiftPackageProductDependency;
package = 8B10987D28D7192200732734 /* XCRemoteSwiftPackageReference "Alamofire" */;
productName = Alamofire;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 8BC10E0C28D4FE36005265FE /* Project object */;
}
9 changes: 9 additions & 0 deletions mugunghwa/Assets.xcassets/AccentColor.colorset/Contents.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{
"colors" : [
{
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0x89",
"green" : "0x2F",
"red" : "0xDA"
}
},
"idiom" : "universal"
}
],
Expand Down
1 change: 1 addition & 0 deletions mugunghwa/Assets.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"images" : [
{
"filename" : "rsz_512-512.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions mugunghwa/Assets.xcassets/Icon.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "rsz_512-512 2.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "rsz_512-512.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "rsz_512-512 1.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 11 additions & 6 deletions mugunghwa/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,18 @@ import SwiftUI

struct ContentView: View {
var body: some View {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundColor(.accentColor)
Text("Hello, world!")
TabView {
HomeView()
.tabItem {
Image(systemName: "house.fill")
Text("Home")
}
UtilityView()
.tabItem {
Image(systemName: "wrench.and.screwdriver.fill")
Text("Utilities")
}
}
.padding()
}
}

Expand Down
Loading

0 comments on commit 664de07

Please sign in to comment.