Skip to content

Commit ae5819e

Browse files
committed
Add widget
1 parent 03eefb7 commit ae5819e

File tree

9 files changed

+483
-1
lines changed

9 files changed

+483
-1
lines changed

PizzaShop.xcodeproj/project.pbxproj

+185-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
F00C46E128A8E67000070617 /* WidgetKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F00C46E028A8E67000070617 /* WidgetKit.framework */; };
11+
F00C46E328A8E67000070617 /* SwiftUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F00C46E228A8E67000070617 /* SwiftUI.framework */; };
12+
F00C46E628A8E67000070617 /* PizzaShopWidget.swift in Sources */ = {isa = PBXBuildFile; fileRef = F00C46E528A8E67000070617 /* PizzaShopWidget.swift */; };
13+
F00C46E928A8E67100070617 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F00C46E828A8E67100070617 /* Assets.xcassets */; };
14+
F00C46EB28A8E67100070617 /* PizzaShopWidget.intentdefinition in Sources */ = {isa = PBXBuildFile; fileRef = F00C46E728A8E67100070617 /* PizzaShopWidget.intentdefinition */; };
15+
F00C46EC28A8E67100070617 /* PizzaShopWidget.intentdefinition in Sources */ = {isa = PBXBuildFile; fileRef = F00C46E728A8E67100070617 /* PizzaShopWidget.intentdefinition */; };
16+
F00C46EF28A8E67100070617 /* PizzaShopWidgetExtension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = F00C46DE28A8E67000070617 /* PizzaShopWidgetExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
1017
F0125A0F26D81CA300C5AA8C /* RegisterViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0125A0E26D81CA300C5AA8C /* RegisterViewController.swift */; };
1118
F0125A1426D81CB900C5AA8C /* MenuViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0125A1326D81CB900C5AA8C /* MenuViewController.swift */; };
1219
F0125A1A26D81CCF00C5AA8C /* CartViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0125A1926D81CCF00C5AA8C /* CartViewController.swift */; };
@@ -40,6 +47,8 @@
4047
F0125C0F2722C65400C5AA8C /* WebServiceStub.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0125C0E2722C65400C5AA8C /* WebServiceStub.swift */; };
4148
F0125C172722D53800C5AA8C /* MainViewControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0125C162722D53700C5AA8C /* MainViewControllerTests.swift */; };
4249
F0125C1C2722D9FC00C5AA8C /* ProfileViewControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0125C1B2722D9FC00C5AA8C /* ProfileViewControllerTests.swift */; };
50+
F016193428A8EAE400621D30 /* pizzahut-font.ttf in Resources */ = {isa = PBXBuildFile; fileRef = F0D10EB828A238D700246564 /* pizzahut-font.ttf */; };
51+
F016193528A8EB3E00621D30 /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0125A2A26D81F8D00C5AA8C /* Constants.swift */; };
4352
F01A697A2899AB3400B7AC60 /* ARPizzaViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F01A69792899AB3400B7AC60 /* ARPizzaViewController.swift */; };
4453
F01A697D2899B22700B7AC60 /* art.scnassets in Resources */ = {isa = PBXBuildFile; fileRef = F01A697C2899B22700B7AC60 /* art.scnassets */; };
4554
F02B9D642896947C001552EF /* SFSymbols.swift in Sources */ = {isa = PBXBuildFile; fileRef = F02B9D632896947C001552EF /* SFSymbols.swift */; };
@@ -65,6 +74,13 @@
6574
/* End PBXBuildFile section */
6675

6776
/* Begin PBXContainerItemProxy section */
77+
F00C46ED28A8E67100070617 /* PBXContainerItemProxy */ = {
78+
isa = PBXContainerItemProxy;
79+
containerPortal = F0349D6726D78E4400C6B154 /* Project object */;
80+
proxyType = 1;
81+
remoteGlobalIDString = F00C46DD28A8E67000070617;
82+
remoteInfo = PizzaShopWidgetExtension;
83+
};
6884
F0349D8626D78E4500C6B154 /* PBXContainerItemProxy */ = {
6985
isa = PBXContainerItemProxy;
7086
containerPortal = F0349D6726D78E4400C6B154 /* Project object */;
@@ -81,7 +97,28 @@
8197
};
8298
/* End PBXContainerItemProxy section */
8399

100+
/* Begin PBXCopyFilesBuildPhase section */
101+
F00C46F328A8E67100070617 /* Embed App Extensions */ = {
102+
isa = PBXCopyFilesBuildPhase;
103+
buildActionMask = 2147483647;
104+
dstPath = "";
105+
dstSubfolderSpec = 13;
106+
files = (
107+
F00C46EF28A8E67100070617 /* PizzaShopWidgetExtension.appex in Embed App Extensions */,
108+
);
109+
name = "Embed App Extensions";
110+
runOnlyForDeploymentPostprocessing = 0;
111+
};
112+
/* End PBXCopyFilesBuildPhase section */
113+
84114
/* Begin PBXFileReference section */
115+
F00C46DE28A8E67000070617 /* PizzaShopWidgetExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = PizzaShopWidgetExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; };
116+
F00C46E028A8E67000070617 /* WidgetKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WidgetKit.framework; path = System/Library/Frameworks/WidgetKit.framework; sourceTree = SDKROOT; };
117+
F00C46E228A8E67000070617 /* SwiftUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SwiftUI.framework; path = System/Library/Frameworks/SwiftUI.framework; sourceTree = SDKROOT; };
118+
F00C46E528A8E67000070617 /* PizzaShopWidget.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PizzaShopWidget.swift; sourceTree = "<group>"; };
119+
F00C46E728A8E67100070617 /* PizzaShopWidget.intentdefinition */ = {isa = PBXFileReference; lastKnownFileType = file.intentdefinition; path = PizzaShopWidget.intentdefinition; sourceTree = "<group>"; };
120+
F00C46E828A8E67100070617 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
121+
F00C46EA28A8E67100070617 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
85122
F0125A0E26D81CA300C5AA8C /* RegisterViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RegisterViewController.swift; sourceTree = "<group>"; };
86123
F0125A1326D81CB900C5AA8C /* MenuViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MenuViewController.swift; sourceTree = "<group>"; };
87124
F0125A1926D81CCF00C5AA8C /* CartViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CartViewController.swift; sourceTree = "<group>"; };
@@ -146,6 +183,15 @@
146183
/* End PBXFileReference section */
147184

148185
/* Begin PBXFrameworksBuildPhase section */
186+
F00C46DB28A8E67000070617 /* Frameworks */ = {
187+
isa = PBXFrameworksBuildPhase;
188+
buildActionMask = 2147483647;
189+
files = (
190+
F00C46E328A8E67000070617 /* SwiftUI.framework in Frameworks */,
191+
F00C46E128A8E67000070617 /* WidgetKit.framework in Frameworks */,
192+
);
193+
runOnlyForDeploymentPostprocessing = 0;
194+
};
149195
F0349D6C26D78E4400C6B154 /* Frameworks */ = {
150196
isa = PBXFrameworksBuildPhase;
151197
buildActionMask = 2147483647;
@@ -170,6 +216,26 @@
170216
/* End PBXFrameworksBuildPhase section */
171217

172218
/* Begin PBXGroup section */
219+
F00C46DF28A8E67000070617 /* Frameworks */ = {
220+
isa = PBXGroup;
221+
children = (
222+
F00C46E028A8E67000070617 /* WidgetKit.framework */,
223+
F00C46E228A8E67000070617 /* SwiftUI.framework */,
224+
);
225+
name = Frameworks;
226+
sourceTree = "<group>";
227+
};
228+
F00C46E428A8E67000070617 /* PizzaShopWidget */ = {
229+
isa = PBXGroup;
230+
children = (
231+
F00C46E528A8E67000070617 /* PizzaShopWidget.swift */,
232+
F00C46E728A8E67100070617 /* PizzaShopWidget.intentdefinition */,
233+
F00C46E828A8E67100070617 /* Assets.xcassets */,
234+
F00C46EA28A8E67100070617 /* Info.plist */,
235+
);
236+
path = PizzaShopWidget;
237+
sourceTree = "<group>";
238+
};
173239
F0125A2926D81F6F00C5AA8C /* Utils */ = {
174240
isa = PBXGroup;
175241
children = (
@@ -250,6 +316,8 @@
250316
F0349D7126D78E4400C6B154 /* PizzaShop */,
251317
F0349D8826D78E4500C6B154 /* PizzaShopTests */,
252318
F0349D9326D78E4500C6B154 /* PizzaShopUITests */,
319+
F00C46E428A8E67000070617 /* PizzaShopWidget */,
320+
F00C46DF28A8E67000070617 /* Frameworks */,
253321
F0349D7026D78E4400C6B154 /* Products */,
254322
);
255323
sourceTree = "<group>";
@@ -260,6 +328,7 @@
260328
F0349D6F26D78E4400C6B154 /* PizzaShop.app */,
261329
F0349D8526D78E4500C6B154 /* PizzaShopTests.xctest */,
262330
F0349D9026D78E4500C6B154 /* PizzaShopUITests.xctest */,
331+
F00C46DE28A8E67000070617 /* PizzaShopWidgetExtension.appex */,
263332
);
264333
name = Products;
265334
sourceTree = "<group>";
@@ -376,17 +445,36 @@
376445
/* End PBXGroup section */
377446

378447
/* Begin PBXNativeTarget section */
448+
F00C46DD28A8E67000070617 /* PizzaShopWidgetExtension */ = {
449+
isa = PBXNativeTarget;
450+
buildConfigurationList = F00C46F028A8E67100070617 /* Build configuration list for PBXNativeTarget "PizzaShopWidgetExtension" */;
451+
buildPhases = (
452+
F00C46DA28A8E67000070617 /* Sources */,
453+
F00C46DB28A8E67000070617 /* Frameworks */,
454+
F00C46DC28A8E67000070617 /* Resources */,
455+
);
456+
buildRules = (
457+
);
458+
dependencies = (
459+
);
460+
name = PizzaShopWidgetExtension;
461+
productName = PizzaShopWidgetExtension;
462+
productReference = F00C46DE28A8E67000070617 /* PizzaShopWidgetExtension.appex */;
463+
productType = "com.apple.product-type.app-extension";
464+
};
379465
F0349D6E26D78E4400C6B154 /* PizzaShop */ = {
380466
isa = PBXNativeTarget;
381467
buildConfigurationList = F0349D9926D78E4500C6B154 /* Build configuration list for PBXNativeTarget "PizzaShop" */;
382468
buildPhases = (
383469
F0349D6B26D78E4400C6B154 /* Sources */,
384470
F0349D6C26D78E4400C6B154 /* Frameworks */,
385471
F0349D6D26D78E4400C6B154 /* Resources */,
472+
F00C46F328A8E67100070617 /* Embed App Extensions */,
386473
);
387474
buildRules = (
388475
);
389476
dependencies = (
477+
F00C46EE28A8E67100070617 /* PBXTargetDependency */,
390478
);
391479
name = PizzaShop;
392480
productName = PizzaShop;
@@ -435,9 +523,12 @@
435523
F0349D6726D78E4400C6B154 /* Project object */ = {
436524
isa = PBXProject;
437525
attributes = {
438-
LastSwiftUpdateCheck = 1240;
526+
LastSwiftUpdateCheck = 1330;
439527
LastUpgradeCheck = 1240;
440528
TargetAttributes = {
529+
F00C46DD28A8E67000070617 = {
530+
CreatedOnToolsVersion = 13.3;
531+
};
441532
F0349D6E26D78E4400C6B154 = {
442533
CreatedOnToolsVersion = 12.4;
443534
};
@@ -467,11 +558,21 @@
467558
F0349D6E26D78E4400C6B154 /* PizzaShop */,
468559
F0349D8426D78E4500C6B154 /* PizzaShopTests */,
469560
F0349D8F26D78E4500C6B154 /* PizzaShopUITests */,
561+
F00C46DD28A8E67000070617 /* PizzaShopWidgetExtension */,
470562
);
471563
};
472564
/* End PBXProject section */
473565

474566
/* Begin PBXResourcesBuildPhase section */
567+
F00C46DC28A8E67000070617 /* Resources */ = {
568+
isa = PBXResourcesBuildPhase;
569+
buildActionMask = 2147483647;
570+
files = (
571+
F016193428A8EAE400621D30 /* pizzahut-font.ttf in Resources */,
572+
F00C46E928A8E67100070617 /* Assets.xcassets in Resources */,
573+
);
574+
runOnlyForDeploymentPostprocessing = 0;
575+
};
475576
F0349D6D26D78E4400C6B154 /* Resources */ = {
476577
isa = PBXResourcesBuildPhase;
477578
buildActionMask = 2147483647;
@@ -504,6 +605,16 @@
504605
/* End PBXResourcesBuildPhase section */
505606

506607
/* Begin PBXSourcesBuildPhase section */
608+
F00C46DA28A8E67000070617 /* Sources */ = {
609+
isa = PBXSourcesBuildPhase;
610+
buildActionMask = 2147483647;
611+
files = (
612+
F00C46EB28A8E67100070617 /* PizzaShopWidget.intentdefinition in Sources */,
613+
F00C46E628A8E67000070617 /* PizzaShopWidget.swift in Sources */,
614+
F016193528A8EB3E00621D30 /* Constants.swift in Sources */,
615+
);
616+
runOnlyForDeploymentPostprocessing = 0;
617+
};
507618
F0349D6B26D78E4400C6B154 /* Sources */ = {
508619
isa = PBXSourcesBuildPhase;
509620
buildActionMask = 2147483647;
@@ -529,6 +640,7 @@
529640
F01A697A2899AB3400B7AC60 /* ARPizzaViewController.swift in Sources */,
530641
F0125A9D26DC1B6900C5AA8C /* UIAlertControllerExtension.swift in Sources */,
531642
F0FE14BE276B9B0D00BDE5C2 /* UseAutoLayout.swift in Sources */,
643+
F00C46EC28A8E67100070617 /* PizzaShopWidget.intentdefinition in Sources */,
532644
F06EE82928A4CA81006C5FF0 /* UITabBarControllerExtension.swift in Sources */,
533645
F0125A1A26D81CCF00C5AA8C /* CartViewController.swift in Sources */,
534646
F0125B1826E4E7D800C5AA8C /* ReservationViewController.swift in Sources */,
@@ -575,6 +687,11 @@
575687
/* End PBXSourcesBuildPhase section */
576688

577689
/* Begin PBXTargetDependency section */
690+
F00C46EE28A8E67100070617 /* PBXTargetDependency */ = {
691+
isa = PBXTargetDependency;
692+
target = F00C46DD28A8E67000070617 /* PizzaShopWidgetExtension */;
693+
targetProxy = F00C46ED28A8E67100070617 /* PBXContainerItemProxy */;
694+
};
578695
F0349D8726D78E4500C6B154 /* PBXTargetDependency */ = {
579696
isa = PBXTargetDependency;
580697
target = F0349D6E26D78E4400C6B154 /* PizzaShop */;
@@ -623,6 +740,62 @@
623740
/* End PBXVariantGroup section */
624741

625742
/* Begin XCBuildConfiguration section */
743+
F00C46F128A8E67100070617 /* Debug */ = {
744+
isa = XCBuildConfiguration;
745+
buildSettings = {
746+
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
747+
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
748+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
749+
CODE_SIGN_STYLE = Automatic;
750+
CURRENT_PROJECT_VERSION = 4;
751+
DEVELOPMENT_TEAM = QMW26WR72K;
752+
GENERATE_INFOPLIST_FILE = YES;
753+
INFOPLIST_FILE = PizzaShopWidget/Info.plist;
754+
INFOPLIST_KEY_CFBundleDisplayName = PizzaShopWidget;
755+
INFOPLIST_KEY_NSHumanReadableCopyright = "";
756+
LD_RUNPATH_SEARCH_PATHS = (
757+
"$(inherited)",
758+
"@executable_path/Frameworks",
759+
"@executable_path/../../Frameworks",
760+
);
761+
MARKETING_VERSION = 3.2.1;
762+
PRODUCT_BUNDLE_IDENTIFIER = co.armanabkar.PizzaShop.PizzaShopWidget;
763+
PRODUCT_NAME = "$(TARGET_NAME)";
764+
SKIP_INSTALL = YES;
765+
SWIFT_EMIT_LOC_STRINGS = YES;
766+
SWIFT_VERSION = 5.0;
767+
TARGETED_DEVICE_FAMILY = "1,2";
768+
};
769+
name = Debug;
770+
};
771+
F00C46F228A8E67100070617 /* Release */ = {
772+
isa = XCBuildConfiguration;
773+
buildSettings = {
774+
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
775+
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
776+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
777+
CODE_SIGN_STYLE = Automatic;
778+
CURRENT_PROJECT_VERSION = 4;
779+
DEVELOPMENT_TEAM = QMW26WR72K;
780+
GENERATE_INFOPLIST_FILE = YES;
781+
INFOPLIST_FILE = PizzaShopWidget/Info.plist;
782+
INFOPLIST_KEY_CFBundleDisplayName = PizzaShopWidget;
783+
INFOPLIST_KEY_NSHumanReadableCopyright = "";
784+
LD_RUNPATH_SEARCH_PATHS = (
785+
"$(inherited)",
786+
"@executable_path/Frameworks",
787+
"@executable_path/../../Frameworks",
788+
);
789+
MARKETING_VERSION = 3.2.1;
790+
PRODUCT_BUNDLE_IDENTIFIER = co.armanabkar.PizzaShop.PizzaShopWidget;
791+
PRODUCT_NAME = "$(TARGET_NAME)";
792+
SKIP_INSTALL = YES;
793+
SWIFT_EMIT_LOC_STRINGS = YES;
794+
SWIFT_VERSION = 5.0;
795+
TARGETED_DEVICE_FAMILY = "1,2";
796+
};
797+
name = Release;
798+
};
626799
F0349D9726D78E4500C6B154 /* Debug */ = {
627800
isa = XCBuildConfiguration;
628801
buildSettings = {
@@ -742,6 +915,7 @@
742915
F0349D9A26D78E4500C6B154 /* Debug */ = {
743916
isa = XCBuildConfiguration;
744917
buildSettings = {
918+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
745919
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
746920
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
747921
CODE_SIGN_STYLE = Automatic;
@@ -764,6 +938,7 @@
764938
F0349D9B26D78E4500C6B154 /* Release */ = {
765939
isa = XCBuildConfiguration;
766940
buildSettings = {
941+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
767942
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
768943
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
769944
CODE_SIGN_STYLE = Automatic;
@@ -870,6 +1045,15 @@
8701045
/* End XCBuildConfiguration section */
8711046

8721047
/* Begin XCConfigurationList section */
1048+
F00C46F028A8E67100070617 /* Build configuration list for PBXNativeTarget "PizzaShopWidgetExtension" */ = {
1049+
isa = XCConfigurationList;
1050+
buildConfigurations = (
1051+
F00C46F128A8E67100070617 /* Debug */,
1052+
F00C46F228A8E67100070617 /* Release */,
1053+
);
1054+
defaultConfigurationIsVisible = 0;
1055+
defaultConfigurationName = Release;
1056+
};
8731057
F0349D6A26D78E4400C6B154 /* Build configuration list for PBXProject "PizzaShop" */ = {
8741058
isa = XCConfigurationList;
8751059
buildConfigurations = (

PizzaShop.xcodeproj/xcuserdata/armanabkar.xcuserdatad/xcschemes/xcschememanagement.plist

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
<key>orderHint</key>
1010
<integer>0</integer>
1111
</dict>
12+
<key>PizzaShopWidgetExtension.xcscheme_^#shared#^_</key>
13+
<dict>
14+
<key>orderHint</key>
15+
<integer>1</integer>
16+
</dict>
1217
</dict>
1318
<key>SuppressBuildableAutocreation</key>
1419
<dict>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"colors" : [
3+
{
4+
"idiom" : "universal"
5+
}
6+
],
7+
"info" : {
8+
"author" : "xcode",
9+
"version" : 1
10+
}
11+
}

0 commit comments

Comments
 (0)