Skip to content

Commit

Permalink
feat(widgets): wip
Browse files Browse the repository at this point in the history
  • Loading branch information
krystxf committed Dec 3, 2024
1 parent 70b0a8a commit 7878ae1
Show file tree
Hide file tree
Showing 5 changed files with 188 additions and 174 deletions.
10 changes: 10 additions & 0 deletions apps/mobile/metro-now/metro-now.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
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, ); }; };
2DEE771C2CFF5CD000F24AAD /* Alamofire in Frameworks */ = {isa = PBXBuildFile; productRef = 2DEE771B2CFF5CD000F24AAD /* Alamofire */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -128,6 +129,8 @@
"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",
const/api.const.swift,
"types/api-types.swift",
utils/color.utils.swift,
);
target = 2DD9D1752CF3B8A70037CB95 /* widgetsExtension */;
Expand Down Expand Up @@ -198,6 +201,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
2DEE771C2CFF5CD000F24AAD /* Alamofire in Frameworks */,
2DD9D17B2CF3B8A70037CB95 /* SwiftUI.framework in Frameworks */,
2DD9D1792CF3B8A70037CB95 /* WidgetKit.framework in Frameworks */,
);
Expand Down Expand Up @@ -333,6 +337,7 @@
);
name = widgetsExtension;
packageProductDependencies = (
2DEE771B2CFF5CD000F24AAD /* Alamofire */,
);
productName = widgetsExtension;
productReference = 2DD9D1762CF3B8A70037CB95 /* widgetsExtension.appex */;
Expand Down Expand Up @@ -893,6 +898,11 @@
package = 2D87C85D2CE8BACA00209DE6 /* XCRemoteSwiftPackageReference "Alamofire" */;
productName = Alamofire;
};
2DEE771B2CFF5CD000F24AAD /* Alamofire */ = {
isa = XCSwiftPackageProductDependency;
package = 2D87C85D2CE8BACA00209DE6 /* XCRemoteSwiftPackageReference "Alamofire" */;
productName = Alamofire;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 2D001BA02CC8099B00C6B4F8 /* Project object */;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ struct SettingsAboutPageView: View {
.frame(maxWidth: .infinity, alignment: .center)
Text("""
The app is still in development. Stay tuned to see what's next!
""")
""")
.multilineTextAlignment(.center)
}

}

if let appStoreUrl {
Expand Down
4 changes: 4 additions & 0 deletions apps/mobile/metro-now/widgets/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSWidgetWantsLocation</key>
<true/>
<key>NSLocationUsageDescription</key>
<string>Show the closest metro stop</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionPointIdentifier</key>
Expand Down
Loading

0 comments on commit 7878ae1

Please sign in to comment.