This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let appVersion = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String &?? "-" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| struct PumpChangeCardView: View { | |
| @StateObject var model: PumpChangeCardViewModel | |
| init(_ record: PumpChangeRecord) { | |
| self._model = StateObject(wrappedValue: PumpChangeCardViewModel(record)) | |
| } | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| struct ShopContainerView: View { | |
| @StateObject private var store = Store() | |
| @State private var path: [Product] = [] | |
| var body: some View { | |
| NavigationStack(path: $path) { | |
| List(store.products) { product in | |
| NavigationLink(product.title, value: product) | |
| } | |
| .task { await store.fetch() } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Type a script or drag a script file from your workspace to insert its path. | |
| # Name of the resource we're selectively copying | |
| GOOGLESERVICE_INFO_PLIST=GoogleService-Info.plist | |
| # Get references to dev and prod versions of the GoogleService-Info.plist | |
| # NOTE: These should only live on the file system and should NOT be part of the target (since we'll be adding them to the target manually) | |
| GOOGLESERVICE_INFO_DEV=${PROJECT_DIR}/${TARGET_NAME}/GoogleService/Dev/${GOOGLESERVICE_INFO_PLIST} | |
| GOOGLESERVICE_INFO_PROD=${PROJECT_DIR}/${TARGET_NAME}/GoogleService/Prod/${GOOGLESERVICE_INFO_PLIST} | |
| # Make sure the dev version of GoogleService-Info.plist exists |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let appBuildNumber = Bundle.main.object(forInfoDictionaryKey: "App_build_number") as? String | |
| let appVersionNumber = Bundle.main.object(forInfoDictionaryKey: "App_version_number") as? String |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Configuration.swift | |
| // Configurations and Flags | |
| // | |
| // Created by Stewart Lynch on 2021-09-27. | |
| // | |
| import Foundation | |
| enum Configuration { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Build tasks - documentation can be found at: https://code.visualstudio.com/docs/editor/tasks | |
| { | |
| "version": "2.0.0", | |
| "tasks": [ | |
| { | |
| // Use "pdc" command to build Playdate project into .pdx | |
| "label": "Playdate: Build", | |
| "type": "pdc", | |
| // Look for build problems that match a specific format and output it to the "problems" window | |
| "problemMatcher": ["$pdc-lua", "$pdc-external"], |
OlderNewer