Skip to content

Commit

Permalink
feat(app): widgets init
Browse files Browse the repository at this point in the history
  • Loading branch information
krystxf committed Dec 2, 2024
1 parent 8195d15 commit 112ae0a
Show file tree
Hide file tree
Showing 8 changed files with 381 additions and 0 deletions.
186 changes: 186 additions & 0 deletions apps/mobile/metro-now/metro-now.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
2D001BB92CC8099C00C6B4F8 /* metro-now Watch App.app in Embed Watch Content */ = {isa = PBXBuildFile; fileRef = 2D001BB82CC8099C00C6B4F8 /* metro-now Watch App.app */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
2D87C85F2CE8BACA00209DE6 /* Alamofire in Frameworks */ = {isa = PBXBuildFile; productRef = 2D87C85E2CE8BACA00209DE6 /* Alamofire */; };
2D8EBE2E2CE93DC9004D5F5B /* Alamofire in Frameworks */ = {isa = PBXBuildFile; productRef = 2D8EBE2D2CE93DC9004D5F5B /* Alamofire */; };
2DD9D1792CF3B8A70037CB95 /* WidgetKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2DD9D1782CF3B8A70037CB95 /* WidgetKit.framework */; };
2DD9D17B2CF3B8A70037CB95 /* SwiftUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2DD9D17A2CF3B8A70037CB95 /* SwiftUI.framework */; };
2DD9D1862CF3B8A90037CB95 /* widgetsExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 2DD9D1762CF3B8A70037CB95 /* widgetsExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand All @@ -27,6 +30,13 @@
remoteGlobalIDString = 2D001BA72CC8099B00C6B4F8;
remoteInfo = "metro-now";
};
2DD9D1842CF3B8A90037CB95 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 2D001BA02CC8099B00C6B4F8 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 2DD9D1752CF3B8A70037CB95;
remoteInfo = widgetsExtension;
};
/* End PBXContainerItemProxy section */

/* Begin PBXCopyFilesBuildPhase section */
Expand All @@ -41,12 +51,26 @@
name = "Embed Watch Content";
runOnlyForDeploymentPostprocessing = 0;
};
2DD9D1872CF3B8A90037CB95 /* Embed Foundation Extensions */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 13;
files = (
2DD9D1862CF3B8A90037CB95 /* widgetsExtension.appex in Embed Foundation Extensions */,
);
name = "Embed Foundation Extensions";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

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

/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
Expand Down Expand Up @@ -91,6 +115,23 @@
);
target = 2D001BB72CC8099C00C6B4F8 /* metro-now Watch App */;
};
2DD9D18B2CF3B8A90037CB95 /* Exceptions for "widgets" folder in "widgetsExtension" target */ = {
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
membershipExceptions = (
Info.plist,
);
target = 2DD9D1752CF3B8A70037CB95 /* widgetsExtension */;
};
2DFF3B692CFD3D9600D8AB90 /* Exceptions for "common" folder in "widgetsExtension" target */ = {
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
membershipExceptions = (
"components/route-label-view/get-color-by-route-name.utils.swift",
"components/route-label-view/route-name.view.swift",
"components/route-label-view/route-type.enum.swift",
utils/color.utils.swift,
);
target = 2DD9D1752CF3B8A70037CB95 /* widgetsExtension */;
};
/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */

/* Begin PBXFileSystemSynchronizedRootGroup section */
Expand All @@ -114,10 +155,19 @@
exceptions = (
2D9601C92CC812EF000EF3D5 /* Exceptions for "common" folder in "metro-now Watch App" target */,
2D7FEC812CE96F830073FF5B /* Exceptions for "common" folder in "metro-nowTests" target */,
2DFF3B692CFD3D9600D8AB90 /* Exceptions for "common" folder in "widgetsExtension" target */,
);
path = common;
sourceTree = "<group>";
};
2DD9D17C2CF3B8A70037CB95 /* widgets */ = {
isa = PBXFileSystemSynchronizedRootGroup;
exceptions = (
2DD9D18B2CF3B8A90037CB95 /* Exceptions for "widgets" folder in "widgetsExtension" target */,
);
path = widgets;
sourceTree = "<group>";
};
/* End PBXFileSystemSynchronizedRootGroup section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -144,6 +194,15 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
2DD9D1732CF3B8A70037CB95 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
2DD9D17B2CF3B8A70037CB95 /* SwiftUI.framework in Frameworks */,
2DD9D1792CF3B8A70037CB95 /* WidgetKit.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
Expand All @@ -154,6 +213,8 @@
2D001BAA2CC8099B00C6B4F8 /* metro-now */,
2D001BBC2CC8099C00C6B4F8 /* metro-now Watch App */,
2D7FEC782CE96F300073FF5B /* metro-nowTests */,
2DD9D17C2CF3B8A70037CB95 /* widgets */,
2DD9D1772CF3B8A70037CB95 /* Frameworks */,
2D001BA92CC8099B00C6B4F8 /* Products */,
);
sourceTree = "<group>";
Expand All @@ -164,10 +225,20 @@
2D001BA82CC8099B00C6B4F8 /* metro-now.app */,
2D001BB82CC8099C00C6B4F8 /* metro-now Watch App.app */,
2D7FEC772CE96F300073FF5B /* metro-nowTests.xctest */,
2DD9D1762CF3B8A70037CB95 /* widgetsExtension.appex */,
);
name = Products;
sourceTree = "<group>";
};
2DD9D1772CF3B8A70037CB95 /* Frameworks */ = {
isa = PBXGroup;
children = (
2DD9D1782CF3B8A70037CB95 /* WidgetKit.framework */,
2DD9D17A2CF3B8A70037CB95 /* SwiftUI.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand All @@ -179,11 +250,13 @@
2D001BA52CC8099B00C6B4F8 /* Frameworks */,
2D001BA62CC8099B00C6B4F8 /* Resources */,
2D001BCB2CC8099D00C6B4F8 /* Embed Watch Content */,
2DD9D1872CF3B8A90037CB95 /* Embed Foundation Extensions */,
);
buildRules = (
);
dependencies = (
2D001BBB2CC8099C00C6B4F8 /* PBXTargetDependency */,
2DD9D1852CF3B8A90037CB95 /* PBXTargetDependency */,
);
fileSystemSynchronizedGroups = (
2D001BAA2CC8099B00C6B4F8 /* metro-now */,
Expand Down Expand Up @@ -243,6 +316,28 @@
productReference = 2D7FEC772CE96F300073FF5B /* metro-nowTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
2DD9D1752CF3B8A70037CB95 /* widgetsExtension */ = {
isa = PBXNativeTarget;
buildConfigurationList = 2DD9D18A2CF3B8A90037CB95 /* Build configuration list for PBXNativeTarget "widgetsExtension" */;
buildPhases = (
2DD9D1722CF3B8A70037CB95 /* Sources */,
2DD9D1732CF3B8A70037CB95 /* Frameworks */,
2DD9D1742CF3B8A70037CB95 /* Resources */,
);
buildRules = (
);
dependencies = (
);
fileSystemSynchronizedGroups = (
2DD9D17C2CF3B8A70037CB95 /* widgets */,
);
name = widgetsExtension;
packageProductDependencies = (
);
productName = widgetsExtension;
productReference = 2DD9D1762CF3B8A70037CB95 /* widgetsExtension.appex */;
productType = "com.apple.product-type.app-extension";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
Expand All @@ -263,6 +358,9 @@
CreatedOnToolsVersion = 16.1;
TestTargetID = 2D001BA72CC8099B00C6B4F8;
};
2DD9D1752CF3B8A70037CB95 = {
CreatedOnToolsVersion = 16.1;
};
};
};
buildConfigurationList = 2D001BA32CC8099B00C6B4F8 /* Build configuration list for PBXProject "metro-now" */;
Expand All @@ -285,6 +383,7 @@
2D001BA72CC8099B00C6B4F8 /* metro-now */,
2D001BB72CC8099C00C6B4F8 /* metro-now Watch App */,
2D7FEC762CE96F300073FF5B /* metro-nowTests */,
2DD9D1752CF3B8A70037CB95 /* widgetsExtension */,
);
};
/* End PBXProject section */
Expand All @@ -311,6 +410,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
2DD9D1742CF3B8A70037CB95 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand All @@ -335,6 +441,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
2DD9D1722CF3B8A70037CB95 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
Expand All @@ -348,6 +461,11 @@
target = 2D001BA72CC8099B00C6B4F8 /* metro-now */;
targetProxy = 2D7FEC7B2CE96F300073FF5B /* PBXContainerItemProxy */;
};
2DD9D1852CF3B8A90037CB95 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 2DD9D1752CF3B8A70037CB95 /* widgetsExtension */;
targetProxy = 2DD9D1842CF3B8A90037CB95 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

/* Begin XCBuildConfiguration section */
Expand Down Expand Up @@ -642,6 +760,65 @@
};
name = Release;
};
2DD9D1882CF3B8A90037CB95 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 6;
DEVELOPMENT_TEAM = R6WU5ABNG2;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = widgets/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = widgets;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 0.3.4;
PRODUCT_BUNDLE_IDENTIFIER = "com.krystof.metro-now.widgets";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
2DD9D1892CF3B8A90037CB95 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 6;
DEVELOPMENT_TEAM = R6WU5ABNG2;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = widgets/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = widgets;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 0.3.4;
PRODUCT_BUNDLE_IDENTIFIER = "com.krystof.metro-now.widgets";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand Down Expand Up @@ -681,6 +858,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
2DD9D18A2CF3B8A90037CB95 /* Build configuration list for PBXNativeTarget "widgetsExtension" */ = {
isa = XCConfigurationList;
buildConfigurations = (
2DD9D1882CF3B8A90037CB95 /* Debug */,
2DD9D1892CF3B8A90037CB95 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"colors": [
{
"idiom": "universal"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"images": [
{
"idiom": "universal",
"platform": "ios",
"size": "1024x1024"
},
{
"appearances": [
{
"appearance": "luminosity",
"value": "dark"
}
],
"idiom": "universal",
"platform": "ios",
"size": "1024x1024"
},
{
"appearances": [
{
"appearance": "luminosity",
"value": "tinted"
}
],
"idiom": "universal",
"platform": "ios",
"size": "1024x1024"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
6 changes: 6 additions & 0 deletions apps/mobile/metro-now/widgets/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info": {
"author": "xcode",
"version": 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"colors": [
{
"idiom": "universal"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
Loading

0 comments on commit 112ae0a

Please sign in to comment.