Skip to content

Commit fa6c411

Browse files
committed
feat(app): widgets init
1 parent 8195d15 commit fa6c411

File tree

8 files changed

+375
-0
lines changed

8 files changed

+375
-0
lines changed

apps/mobile/metro-now/metro-now.xcodeproj/project.pbxproj

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
2D001BB92CC8099C00C6B4F8 /* metro-now Watch App.app in Embed Watch Content */ = {isa = PBXBuildFile; fileRef = 2D001BB82CC8099C00C6B4F8 /* metro-now Watch App.app */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
1111
2D87C85F2CE8BACA00209DE6 /* Alamofire in Frameworks */ = {isa = PBXBuildFile; productRef = 2D87C85E2CE8BACA00209DE6 /* Alamofire */; };
1212
2D8EBE2E2CE93DC9004D5F5B /* Alamofire in Frameworks */ = {isa = PBXBuildFile; productRef = 2D8EBE2D2CE93DC9004D5F5B /* Alamofire */; };
13+
2DD9D1792CF3B8A70037CB95 /* WidgetKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2DD9D1782CF3B8A70037CB95 /* WidgetKit.framework */; };
14+
2DD9D17B2CF3B8A70037CB95 /* SwiftUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2DD9D17A2CF3B8A70037CB95 /* SwiftUI.framework */; };
15+
2DD9D1862CF3B8A90037CB95 /* widgetsExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 2DD9D1762CF3B8A70037CB95 /* widgetsExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
1316
/* End PBXBuildFile section */
1417

1518
/* Begin PBXContainerItemProxy section */
@@ -27,6 +30,13 @@
2730
remoteGlobalIDString = 2D001BA72CC8099B00C6B4F8;
2831
remoteInfo = "metro-now";
2932
};
33+
2DD9D1842CF3B8A90037CB95 /* PBXContainerItemProxy */ = {
34+
isa = PBXContainerItemProxy;
35+
containerPortal = 2D001BA02CC8099B00C6B4F8 /* Project object */;
36+
proxyType = 1;
37+
remoteGlobalIDString = 2DD9D1752CF3B8A70037CB95;
38+
remoteInfo = widgetsExtension;
39+
};
3040
/* End PBXContainerItemProxy section */
3141

3242
/* Begin PBXCopyFilesBuildPhase section */
@@ -41,12 +51,26 @@
4151
name = "Embed Watch Content";
4252
runOnlyForDeploymentPostprocessing = 0;
4353
};
54+
2DD9D1872CF3B8A90037CB95 /* Embed Foundation Extensions */ = {
55+
isa = PBXCopyFilesBuildPhase;
56+
buildActionMask = 2147483647;
57+
dstPath = "";
58+
dstSubfolderSpec = 13;
59+
files = (
60+
2DD9D1862CF3B8A90037CB95 /* widgetsExtension.appex in Embed Foundation Extensions */,
61+
);
62+
name = "Embed Foundation Extensions";
63+
runOnlyForDeploymentPostprocessing = 0;
64+
};
4465
/* End PBXCopyFilesBuildPhase section */
4566

4667
/* Begin PBXFileReference section */
4768
2D001BA82CC8099B00C6B4F8 /* metro-now.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "metro-now.app"; sourceTree = BUILT_PRODUCTS_DIR; };
4869
2D001BB82CC8099C00C6B4F8 /* metro-now Watch App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "metro-now Watch App.app"; sourceTree = BUILT_PRODUCTS_DIR; };
4970
2D7FEC772CE96F300073FF5B /* metro-nowTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "metro-nowTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
71+
2DD9D1762CF3B8A70037CB95 /* widgetsExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = widgetsExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; };
72+
2DD9D1782CF3B8A70037CB95 /* WidgetKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WidgetKit.framework; path = System/Library/Frameworks/WidgetKit.framework; sourceTree = SDKROOT; };
73+
2DD9D17A2CF3B8A70037CB95 /* SwiftUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SwiftUI.framework; path = System/Library/Frameworks/SwiftUI.framework; sourceTree = SDKROOT; };
5074
/* End PBXFileReference section */
5175

5276
/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
@@ -91,6 +115,23 @@
91115
);
92116
target = 2D001BB72CC8099C00C6B4F8 /* metro-now Watch App */;
93117
};
118+
2DD9D18B2CF3B8A90037CB95 /* Exceptions for "widgets" folder in "widgetsExtension" target */ = {
119+
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
120+
membershipExceptions = (
121+
Info.plist,
122+
);
123+
target = 2DD9D1752CF3B8A70037CB95 /* widgetsExtension */;
124+
};
125+
2DFF3B692CFD3D9600D8AB90 /* Exceptions for "common" folder in "widgetsExtension" target */ = {
126+
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
127+
membershipExceptions = (
128+
"components/route-label-view/get-color-by-route-name.utils.swift",
129+
"components/route-label-view/route-name.view.swift",
130+
"components/route-label-view/route-type.enum.swift",
131+
utils/color.utils.swift,
132+
);
133+
target = 2DD9D1752CF3B8A70037CB95 /* widgetsExtension */;
134+
};
94135
/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */
95136

96137
/* Begin PBXFileSystemSynchronizedRootGroup section */
@@ -114,10 +155,19 @@
114155
exceptions = (
115156
2D9601C92CC812EF000EF3D5 /* Exceptions for "common" folder in "metro-now Watch App" target */,
116157
2D7FEC812CE96F830073FF5B /* Exceptions for "common" folder in "metro-nowTests" target */,
158+
2DFF3B692CFD3D9600D8AB90 /* Exceptions for "common" folder in "widgetsExtension" target */,
117159
);
118160
path = common;
119161
sourceTree = "<group>";
120162
};
163+
2DD9D17C2CF3B8A70037CB95 /* widgets */ = {
164+
isa = PBXFileSystemSynchronizedRootGroup;
165+
exceptions = (
166+
2DD9D18B2CF3B8A90037CB95 /* Exceptions for "widgets" folder in "widgetsExtension" target */,
167+
);
168+
path = widgets;
169+
sourceTree = "<group>";
170+
};
121171
/* End PBXFileSystemSynchronizedRootGroup section */
122172

123173
/* Begin PBXFrameworksBuildPhase section */
@@ -144,6 +194,15 @@
144194
);
145195
runOnlyForDeploymentPostprocessing = 0;
146196
};
197+
2DD9D1732CF3B8A70037CB95 /* Frameworks */ = {
198+
isa = PBXFrameworksBuildPhase;
199+
buildActionMask = 2147483647;
200+
files = (
201+
2DD9D17B2CF3B8A70037CB95 /* SwiftUI.framework in Frameworks */,
202+
2DD9D1792CF3B8A70037CB95 /* WidgetKit.framework in Frameworks */,
203+
);
204+
runOnlyForDeploymentPostprocessing = 0;
205+
};
147206
/* End PBXFrameworksBuildPhase section */
148207

149208
/* Begin PBXGroup section */
@@ -154,6 +213,8 @@
154213
2D001BAA2CC8099B00C6B4F8 /* metro-now */,
155214
2D001BBC2CC8099C00C6B4F8 /* metro-now Watch App */,
156215
2D7FEC782CE96F300073FF5B /* metro-nowTests */,
216+
2DD9D17C2CF3B8A70037CB95 /* widgets */,
217+
2DD9D1772CF3B8A70037CB95 /* Frameworks */,
157218
2D001BA92CC8099B00C6B4F8 /* Products */,
158219
);
159220
sourceTree = "<group>";
@@ -164,10 +225,20 @@
164225
2D001BA82CC8099B00C6B4F8 /* metro-now.app */,
165226
2D001BB82CC8099C00C6B4F8 /* metro-now Watch App.app */,
166227
2D7FEC772CE96F300073FF5B /* metro-nowTests.xctest */,
228+
2DD9D1762CF3B8A70037CB95 /* widgetsExtension.appex */,
167229
);
168230
name = Products;
169231
sourceTree = "<group>";
170232
};
233+
2DD9D1772CF3B8A70037CB95 /* Frameworks */ = {
234+
isa = PBXGroup;
235+
children = (
236+
2DD9D1782CF3B8A70037CB95 /* WidgetKit.framework */,
237+
2DD9D17A2CF3B8A70037CB95 /* SwiftUI.framework */,
238+
);
239+
name = Frameworks;
240+
sourceTree = "<group>";
241+
};
171242
/* End PBXGroup section */
172243

173244
/* Begin PBXNativeTarget section */
@@ -179,11 +250,13 @@
179250
2D001BA52CC8099B00C6B4F8 /* Frameworks */,
180251
2D001BA62CC8099B00C6B4F8 /* Resources */,
181252
2D001BCB2CC8099D00C6B4F8 /* Embed Watch Content */,
253+
2DD9D1872CF3B8A90037CB95 /* Embed Foundation Extensions */,
182254
);
183255
buildRules = (
184256
);
185257
dependencies = (
186258
2D001BBB2CC8099C00C6B4F8 /* PBXTargetDependency */,
259+
2DD9D1852CF3B8A90037CB95 /* PBXTargetDependency */,
187260
);
188261
fileSystemSynchronizedGroups = (
189262
2D001BAA2CC8099B00C6B4F8 /* metro-now */,
@@ -243,6 +316,28 @@
243316
productReference = 2D7FEC772CE96F300073FF5B /* metro-nowTests.xctest */;
244317
productType = "com.apple.product-type.bundle.unit-test";
245318
};
319+
2DD9D1752CF3B8A70037CB95 /* widgetsExtension */ = {
320+
isa = PBXNativeTarget;
321+
buildConfigurationList = 2DD9D18A2CF3B8A90037CB95 /* Build configuration list for PBXNativeTarget "widgetsExtension" */;
322+
buildPhases = (
323+
2DD9D1722CF3B8A70037CB95 /* Sources */,
324+
2DD9D1732CF3B8A70037CB95 /* Frameworks */,
325+
2DD9D1742CF3B8A70037CB95 /* Resources */,
326+
);
327+
buildRules = (
328+
);
329+
dependencies = (
330+
);
331+
fileSystemSynchronizedGroups = (
332+
2DD9D17C2CF3B8A70037CB95 /* widgets */,
333+
);
334+
name = widgetsExtension;
335+
packageProductDependencies = (
336+
);
337+
productName = widgetsExtension;
338+
productReference = 2DD9D1762CF3B8A70037CB95 /* widgetsExtension.appex */;
339+
productType = "com.apple.product-type.app-extension";
340+
};
246341
/* End PBXNativeTarget section */
247342

248343
/* Begin PBXProject section */
@@ -263,6 +358,9 @@
263358
CreatedOnToolsVersion = 16.1;
264359
TestTargetID = 2D001BA72CC8099B00C6B4F8;
265360
};
361+
2DD9D1752CF3B8A70037CB95 = {
362+
CreatedOnToolsVersion = 16.1;
363+
};
266364
};
267365
};
268366
buildConfigurationList = 2D001BA32CC8099B00C6B4F8 /* Build configuration list for PBXProject "metro-now" */;
@@ -285,6 +383,7 @@
285383
2D001BA72CC8099B00C6B4F8 /* metro-now */,
286384
2D001BB72CC8099C00C6B4F8 /* metro-now Watch App */,
287385
2D7FEC762CE96F300073FF5B /* metro-nowTests */,
386+
2DD9D1752CF3B8A70037CB95 /* widgetsExtension */,
288387
);
289388
};
290389
/* End PBXProject section */
@@ -311,6 +410,13 @@
311410
);
312411
runOnlyForDeploymentPostprocessing = 0;
313412
};
413+
2DD9D1742CF3B8A70037CB95 /* Resources */ = {
414+
isa = PBXResourcesBuildPhase;
415+
buildActionMask = 2147483647;
416+
files = (
417+
);
418+
runOnlyForDeploymentPostprocessing = 0;
419+
};
314420
/* End PBXResourcesBuildPhase section */
315421

316422
/* Begin PBXSourcesBuildPhase section */
@@ -335,6 +441,13 @@
335441
);
336442
runOnlyForDeploymentPostprocessing = 0;
337443
};
444+
2DD9D1722CF3B8A70037CB95 /* Sources */ = {
445+
isa = PBXSourcesBuildPhase;
446+
buildActionMask = 2147483647;
447+
files = (
448+
);
449+
runOnlyForDeploymentPostprocessing = 0;
450+
};
338451
/* End PBXSourcesBuildPhase section */
339452

340453
/* Begin PBXTargetDependency section */
@@ -348,6 +461,11 @@
348461
target = 2D001BA72CC8099B00C6B4F8 /* metro-now */;
349462
targetProxy = 2D7FEC7B2CE96F300073FF5B /* PBXContainerItemProxy */;
350463
};
464+
2DD9D1852CF3B8A90037CB95 /* PBXTargetDependency */ = {
465+
isa = PBXTargetDependency;
466+
target = 2DD9D1752CF3B8A70037CB95 /* widgetsExtension */;
467+
targetProxy = 2DD9D1842CF3B8A90037CB95 /* PBXContainerItemProxy */;
468+
};
351469
/* End PBXTargetDependency section */
352470

353471
/* Begin XCBuildConfiguration section */
@@ -642,6 +760,65 @@
642760
};
643761
name = Release;
644762
};
763+
2DD9D1882CF3B8A90037CB95 /* Debug */ = {
764+
isa = XCBuildConfiguration;
765+
buildSettings = {
766+
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
767+
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
768+
CODE_SIGN_STYLE = Automatic;
769+
CURRENT_PROJECT_VERSION = 6;
770+
DEVELOPMENT_TEAM = R6WU5ABNG2;
771+
GENERATE_INFOPLIST_FILE = YES;
772+
INFOPLIST_FILE = widgets/Info.plist;
773+
INFOPLIST_KEY_CFBundleDisplayName = widgets;
774+
INFOPLIST_KEY_NSHumanReadableCopyright = "";
775+
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
776+
LD_RUNPATH_SEARCH_PATHS = (
777+
"$(inherited)",
778+
"@executable_path/Frameworks",
779+
"@executable_path/../../Frameworks",
780+
);
781+
MARKETING_VERSION = 0.3.4;
782+
PRODUCT_BUNDLE_IDENTIFIER = "com.krystof.metro-now.widgets";
783+
PRODUCT_NAME = "$(TARGET_NAME)";
784+
SDKROOT = iphoneos;
785+
SKIP_INSTALL = YES;
786+
SWIFT_EMIT_LOC_STRINGS = YES;
787+
SWIFT_VERSION = 5.0;
788+
TARGETED_DEVICE_FAMILY = "1,2";
789+
};
790+
name = Debug;
791+
};
792+
2DD9D1892CF3B8A90037CB95 /* Release */ = {
793+
isa = XCBuildConfiguration;
794+
buildSettings = {
795+
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
796+
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
797+
CODE_SIGN_STYLE = Automatic;
798+
CURRENT_PROJECT_VERSION = 6;
799+
DEVELOPMENT_TEAM = R6WU5ABNG2;
800+
GENERATE_INFOPLIST_FILE = YES;
801+
INFOPLIST_FILE = widgets/Info.plist;
802+
INFOPLIST_KEY_CFBundleDisplayName = widgets;
803+
INFOPLIST_KEY_NSHumanReadableCopyright = "";
804+
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
805+
LD_RUNPATH_SEARCH_PATHS = (
806+
"$(inherited)",
807+
"@executable_path/Frameworks",
808+
"@executable_path/../../Frameworks",
809+
);
810+
MARKETING_VERSION = 0.3.4;
811+
PRODUCT_BUNDLE_IDENTIFIER = "com.krystof.metro-now.widgets";
812+
PRODUCT_NAME = "$(TARGET_NAME)";
813+
SDKROOT = iphoneos;
814+
SKIP_INSTALL = YES;
815+
SWIFT_EMIT_LOC_STRINGS = YES;
816+
SWIFT_VERSION = 5.0;
817+
TARGETED_DEVICE_FAMILY = "1,2";
818+
VALIDATE_PRODUCT = YES;
819+
};
820+
name = Release;
821+
};
645822
/* End XCBuildConfiguration section */
646823

647824
/* Begin XCConfigurationList section */
@@ -681,6 +858,15 @@
681858
defaultConfigurationIsVisible = 0;
682859
defaultConfigurationName = Release;
683860
};
861+
2DD9D18A2CF3B8A90037CB95 /* Build configuration list for PBXNativeTarget "widgetsExtension" */ = {
862+
isa = XCConfigurationList;
863+
buildConfigurations = (
864+
2DD9D1882CF3B8A90037CB95 /* Debug */,
865+
2DD9D1892CF3B8A90037CB95 /* Release */,
866+
);
867+
defaultConfigurationIsVisible = 0;
868+
defaultConfigurationName = Release;
869+
};
684870
/* End XCConfigurationList section */
685871

686872
/* Begin XCRemoteSwiftPackageReference section */
Lines changed: 11 additions & 0 deletions
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+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"images": [
3+
{
4+
"idiom": "universal",
5+
"platform": "ios",
6+
"size": "1024x1024"
7+
},
8+
{
9+
"appearances": [
10+
{
11+
"appearance": "luminosity",
12+
"value": "dark"
13+
}
14+
],
15+
"idiom": "universal",
16+
"platform": "ios",
17+
"size": "1024x1024"
18+
},
19+
{
20+
"appearances": [
21+
{
22+
"appearance": "luminosity",
23+
"value": "tinted"
24+
}
25+
],
26+
"idiom": "universal",
27+
"platform": "ios",
28+
"size": "1024x1024"
29+
}
30+
],
31+
"info": {
32+
"author": "xcode",
33+
"version": 1
34+
}
35+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info": {
3+
"author": "xcode",
4+
"version": 1
5+
}
6+
}
Lines changed: 11 additions & 0 deletions
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)