name | about | title | labels | assignees |
---|---|---|---|---|
Release |
Release a new version of the app |
Release version X.Y.Z |
release |
This file contains 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
# USAGE: | |
# notify pod install --repo-update | |
# Place this function at the end of your file | |
notify() { | |
body="" | |
for parameter in $@ | |
do | |
body+=" $parameter" | |
done |
This file contains 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
name: ios/deploy | |
# | |
# GOOD TO KNOW | |
# | |
# This workflow is supposed to: | |
# 1. Help ensure the quality of the code changes; and | |
# 2. Deploy a variant of this application depending on | |
# which branch was changed. | |
# |
This file contains 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
name: "Close issue" | |
on: | |
project_card: | |
types: [moved] | |
jobs: | |
close-issue: | |
name: "Close issue when card moves to Done column" | |
runs-on: ubuntu-latest |
This file contains 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
/* ... */ | |
VStack(alignment: .leading, spacing: 2) { | |
Text(entry.product.name) | |
.bold() | |
.font(Font.system(size: 14)) | |
Text("\(entry.product.formattedAmount(maskingData: entry.maskSensitiveData))") | |
.bold() | |
.lineLimit(1) | |
.font(Font.system(size: 22)) | |
Spacer() |
This file contains 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
public func timeline(for configuration: MainAccountIntent, with context: Context, completion: @escaping (Timeline<Entry>) -> ()) { | |
let currentDate = Date() | |
let futureDate = Calendar.current.date(byAdding: .minute, value: 10, to: currentDate)! | |
viewModel.fetchProducts() { products in | |
guard let mainProduct = products.first(where: { $0.type == .main }) else { return } | |
let entry = AccountEntry(date: currentDate, | |
product: mainProduct, | |
maskSensitiveData: configuration.maskSensitiveData as? Bool ?? true) |
This file contains 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 SimpleEntry: TimelineEntry { | |
public let date: Date | |
public let product: Product | |
public let maskSensitiveData: Bool | |
} |
This file contains 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 Provider: IntentTimelineProvider { | |
public typealias Intent = MainAccountIntent | |
/* ... */ | |
public func snapshot(for configuration: MainAccountIntent, with context: Context, completion: @escaping (AccountEntry) -> ()) { | |
/* Hidden implementation */ | |
} | |
public func timeline(for configuration: MainAccountIntent, with context: Context, completion: @escaping (Timeline<Entry>) -> ()) { | |
/* Hidden implementation */ |
This file contains 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 Provider: TimelineProvider { | |
public typealias Entry = AccountEntry | |
let viewModel = ViewModel() | |
public func snapshot(with context: Context, completion: @escaping (AccountEntry) -> ()) { | |
let entry = SimpleEntry(date: Date(), product: previewProduct, maskSensitiveData: false) | |
completion(entry) | |
} |
This file contains 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
@main | |
struct MainAccount: Widget { | |
private let kind: String = "MainAccount" | |
public var body: some WidgetConfiguration { | |
StaticConfiguration(kind: kind, provider: Provider(), placeholder: PlaceholderView()) { entry in | |
MainAccountEntryView(entry: entry) | |
} | |
.configurationDisplayName("Main Account") | |
.description("See information about your main account.") |
NewerOlder