Skip to content

Commit

Permalink
chore: 배포 전 코드 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
heonha committed Sep 14, 2023
1 parent fac4c8c commit 6a7bcc1
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 17 deletions.
11 changes: 1 addition & 10 deletions LockScreenWidget/Presentation/DeepLinkWidgetView.swift
Expand Up @@ -9,13 +9,6 @@ import WidgetKit
import SwiftUI
import Intents
import CoreData
import SFSafeSymbols

enum WidgetTypes {
case placeholder
case widget
case error
}

// MARK: - Widget View
struct DeepLinkWidgetView: View {
Expand All @@ -30,9 +23,7 @@ struct DeepLinkWidgetView: View {
var body: some View {
if #available(iOS 17.0, *) {
mainWidgetView
.containerBackground(for: .widget) {
Color.white
}
.containerBackground(Color.clear, for: .widget)
} else {
mainWidgetView
}
Expand Down
14 changes: 14 additions & 0 deletions LockScreenWidget/Presentation/WidgetTypes.swift
@@ -0,0 +1,14 @@
//
// WidgetTypes.swift
// koget
//
// Created by HeonJin Ha on 9/9/23.
//

import Foundation

enum WidgetTypes {
case placeholder
case widget
case error
}
22 changes: 15 additions & 7 deletions koget.xcodeproj/project.pbxproj
Expand Up @@ -125,6 +125,9 @@
39B0C3812AAC5F92004E0985 /* DeepLinkEntry.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39B0C3802AAC5F92004E0985 /* DeepLinkEntry.swift */; };
39B0C3822AAC5F93004E0985 /* DeepLinkEntry.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39B0C3802AAC5F92004E0985 /* DeepLinkEntry.swift */; };
39B0C3832AAC5F97004E0985 /* DeepLinkEntry.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39B0C3802AAC5F92004E0985 /* DeepLinkEntry.swift */; };
39B0C3902AAC6C87004E0985 /* WidgetTypes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39B0C38F2AAC6C87004E0985 /* WidgetTypes.swift */; };
39B0C3912AAC6C87004E0985 /* WidgetTypes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39B0C38F2AAC6C87004E0985 /* WidgetTypes.swift */; };
39B0C3922AAC6C87004E0985 /* WidgetTypes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39B0C38F2AAC6C87004E0985 /* WidgetTypes.swift */; };
39BA5F2C29D2B4730020138E /* WidgetsBundle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39BA5F2A29D2B1AF0020138E /* WidgetsBundle.swift */; };
39BBB53E29F96BBD0071EBB5 /* BaseViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39BBB53D29F96BBD0071EBB5 /* BaseViewModel.swift */; };
39BD3EE12A13766000E14DCA /* UIApplication+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39BD3EE02A13766000E14DCA /* UIApplication+Extension.swift */; };
Expand Down Expand Up @@ -332,6 +335,7 @@
39B0C3722AABD04B004E0985 /* TestDeepLink.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestDeepLink.swift; sourceTree = "<group>"; };
39B0C3762AABD5F5004E0985 /* UICollectionReusableView+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UICollectionReusableView+Extension.swift"; sourceTree = "<group>"; };
39B0C3802AAC5F92004E0985 /* DeepLinkEntry.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeepLinkEntry.swift; sourceTree = "<group>"; };
39B0C38F2AAC6C87004E0985 /* WidgetTypes.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WidgetTypes.swift; sourceTree = "<group>"; };
39B5BC6529C6EB5D007AB072 /* .gitignore */ = {isa = PBXFileReference; lastKnownFileType = text; path = .gitignore; sourceTree = "<group>"; };
39B7B69629AA032E0028AE10 /* DetailWidgetViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DetailWidgetViewModel.swift; sourceTree = "<group>"; };
39BA5F2A29D2B1AF0020138E /* WidgetsBundle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WidgetsBundle.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -656,6 +660,7 @@
children = (
3AF9F00828ED570D00F685E6 /* DeepLinkWidget.swift */,
39694FE729E6AEDC00F2C75C /* DeepLinkWidgetView.swift */,
39B0C38F2AAC6C87004E0985 /* WidgetTypes.swift */,
);
path = Presentation;
sourceTree = "<group>";
Expand Down Expand Up @@ -1046,8 +1051,8 @@
children = (
3A9BC0CE28E6C93A0041DA1B /* LockScreenWidgetExtension.entitlements */,
39BA5F2A29D2B1AF0020138E /* WidgetsBundle.swift */,
39B0C37C2AAC5F34004E0985 /* Provider */,
39B0C37D2AAC5F45004E0985 /* Presentation */,
39B0C37C2AAC5F34004E0985 /* Provider */,
39B0C37E2AAC5F5E004E0985 /* Utils */,
39B0C37F2AAC5F72004E0985 /* Resources */,
3AF9F00C28ED570E00F685E6 /* Info.plist */,
Expand Down Expand Up @@ -1287,6 +1292,7 @@
3915106B2A2EFC4A000BDC14 /* WidgetCoreData.swift in Sources */,
39B0C3832AAC5F97004E0985 /* DeepLinkEntry.swift in Sources */,
39694FE229E69B3D00F2C75C /* WidgetConstant.swift in Sources */,
39B0C3922AAC6C87004E0985 /* WidgetTypes.swift in Sources */,
39694FE929E6AEEB00F2C75C /* DeepLinkWidgetView.swift in Sources */,
395DC34B2A1CC61800EA310E /* EntityFetching.swift in Sources */,
394D69F32A34319400EC0A02 /* Image+Extestion.swift in Sources */,
Expand Down Expand Up @@ -1323,6 +1329,7 @@
39D441B02A5C279100C9D11D /* CreateWidgetViewModel.swift in Sources */,
3A1F890A297AB25700E1B4C4 /* MainView.swift in Sources */,
3A3C11A328EDC14700C9CCED /* BaseWidgetService.swift in Sources */,
39B0C3902AAC6C87004E0985 /* WidgetTypes.swift in Sources */,
3AD4691B297D19190090B2D3 /* ContactViewModel.swift in Sources */,
39EBEB5229BE0A7900B1FD54 /* PatchNoteManager.swift in Sources */,
3A00CA662931EFBE004FBF80 /* EditTextField.swift in Sources */,
Expand Down Expand Up @@ -1445,6 +1452,7 @@
3915106A2A2EFC49000BDC14 /* WidgetCoreData.swift in Sources */,
39B0C3822AAC5F93004E0985 /* DeepLinkEntry.swift in Sources */,
39694FE429E6AE8100F2C75C /* DeepLinkProvider.swift in Sources */,
39B0C3912AAC6C87004E0985 /* WidgetTypes.swift in Sources */,
3979FA6B29D1D2E800900FBA /* IntentHandler.swift in Sources */,
394D69F22A34319300EC0A02 /* Image+Extestion.swift in Sources */,
394D69EE2A342F5500EC0A02 /* CommonImages.swift in Sources */,
Expand Down Expand Up @@ -1506,7 +1514,7 @@
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = ZH5GA3W8UP;
GENERATE_INFOPLIST_FILE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = dev.heon.kogetTests;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -1528,7 +1536,7 @@
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = ZH5GA3W8UP;
GENERATE_INFOPLIST_FILE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = dev.heon.kogetTests;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -1741,7 +1749,7 @@
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UIStatusBarStyle = "";
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait";
INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait;
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -1758,7 +1766,7 @@
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TARGETED_DEVICE_FAMILY = 1;
};
name = Debug;
};
Expand All @@ -1782,7 +1790,7 @@
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UIStatusBarStyle = "";
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait";
INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait;
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -1799,7 +1807,7 @@
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Osize";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TARGETED_DEVICE_FAMILY = 1;
};
name = Release;
};
Expand Down

0 comments on commit 6a7bcc1

Please sign in to comment.