Skip to content

Commit 7878ae1

Browse files
committed
feat(widgets): wip
1 parent 70b0a8a commit 7878ae1

File tree

5 files changed

+188
-174
lines changed

5 files changed

+188
-174
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
2DD9D1792CF3B8A70037CB95 /* WidgetKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2DD9D1782CF3B8A70037CB95 /* WidgetKit.framework */; };
1414
2DD9D17B2CF3B8A70037CB95 /* SwiftUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2DD9D17A2CF3B8A70037CB95 /* SwiftUI.framework */; };
1515
2DD9D1862CF3B8A90037CB95 /* widgetsExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 2DD9D1762CF3B8A70037CB95 /* widgetsExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
16+
2DEE771C2CFF5CD000F24AAD /* Alamofire in Frameworks */ = {isa = PBXBuildFile; productRef = 2DEE771B2CFF5CD000F24AAD /* Alamofire */; };
1617
/* End PBXBuildFile section */
1718

1819
/* Begin PBXContainerItemProxy section */
@@ -128,6 +129,8 @@
128129
"components/route-label-view/get-color-by-route-name.utils.swift",
129130
"components/route-label-view/route-name.view.swift",
130131
"components/route-label-view/route-type.enum.swift",
132+
const/api.const.swift,
133+
"types/api-types.swift",
131134
utils/color.utils.swift,
132135
);
133136
target = 2DD9D1752CF3B8A70037CB95 /* widgetsExtension */;
@@ -198,6 +201,7 @@
198201
isa = PBXFrameworksBuildPhase;
199202
buildActionMask = 2147483647;
200203
files = (
204+
2DEE771C2CFF5CD000F24AAD /* Alamofire in Frameworks */,
201205
2DD9D17B2CF3B8A70037CB95 /* SwiftUI.framework in Frameworks */,
202206
2DD9D1792CF3B8A70037CB95 /* WidgetKit.framework in Frameworks */,
203207
);
@@ -333,6 +337,7 @@
333337
);
334338
name = widgetsExtension;
335339
packageProductDependencies = (
340+
2DEE771B2CFF5CD000F24AAD /* Alamofire */,
336341
);
337342
productName = widgetsExtension;
338343
productReference = 2DD9D1762CF3B8A70037CB95 /* widgetsExtension.appex */;
@@ -893,6 +898,11 @@
893898
package = 2D87C85D2CE8BACA00209DE6 /* XCRemoteSwiftPackageReference "Alamofire" */;
894899
productName = Alamofire;
895900
};
901+
2DEE771B2CFF5CD000F24AAD /* Alamofire */ = {
902+
isa = XCSwiftPackageProductDependency;
903+
package = 2D87C85D2CE8BACA00209DE6 /* XCRemoteSwiftPackageReference "Alamofire" */;
904+
productName = Alamofire;
905+
};
896906
/* End XCSwiftPackageProductDependency section */
897907
};
898908
rootObject = 2D001BA02CC8099B00C6B4F8 /* Project object */;

apps/mobile/metro-now/metro-now/pages/settings/subpages/settings-about.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ struct SettingsAboutPageView: View {
2626
.frame(maxWidth: .infinity, alignment: .center)
2727
Text("""
2828
The app is still in development. Stay tuned to see what's next!
29-
""")
29+
""")
3030
.multilineTextAlignment(.center)
3131
}
32-
3332
}
3433

3534
if let appStoreUrl {

apps/mobile/metro-now/widgets/Info.plist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>NSWidgetWantsLocation</key>
6+
<true/>
7+
<key>NSLocationUsageDescription</key>
8+
<string>Show the closest metro stop</string>
59
<key>NSExtension</key>
610
<dict>
711
<key>NSExtensionPointIdentifier</key>

0 commit comments

Comments
 (0)