- Accept bids sent via WhatsApp and SMS; optionally via HTTP API.
- Support CRUD for auctions (create/update/delete), each with start_time and end_time.
- Handle high concurrency, especially in the last minutes/seconds of an auction.
- Keep authoritative record of who is winning in real time and a complete bid ledger.
- Determine the winner and send notifications via WhatsApp, SMS, and email.
- Multi-auction support; each auction is logically isolated but shares infrastructure.
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 SettingsView: View { | |
| @Environment(Coordinator.self) private var coordinator | |
| @Environment(AuthManager.self) private var authManager | |
| var body: some View { | |
| List { | |
| Section { | |
| HStack { | |
| Image(systemName: "person.crop.circle") | |
| .resizable() |
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
| import SwiftUI | |
| import PlaygroundSupport | |
| struct GraphView: View { | |
| @State private var adjacencyMatrix: [[Int]] = [ | |
| [0, 1, 0, 0], | |
| [1, 0, 1, 0], | |
| [0, 1, 0, 1], | |
| [0, 0, 1, 0] |
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
| //: A UIKit based Playground for presenting user interface | |
| import SwiftUI | |
| import PlaygroundSupport | |
| import SwiftUI | |
| struct GraphView: View { | |
| @State private var adjacencyMatrix: [[Int]] = [ | |
| [0, 1, 0, 0], | |
| [1, 0, 1, 0], |
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
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( |
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
| import SwiftUI | |
| import UIKit | |
| class CustomLargeTitleNavigationBar: UINavigationBar { | |
| private lazy var view: UIView = { | |
| let view = UIView() | |
| view.backgroundColor = .red | |
| view.translatesAutoresizingMaskIntoConstraints = false | |
| view.widthAnchor.constraint(equalToConstant: 200).isActive = true |
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
| dependencies { | |
| //... Other dependencies | |
| // Ktlint | |
| ktlintRuleset project(":custom-ktlint-rules") | |
| } |
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
| spotless { | |
| kotlin { | |
| ktlint("$ktlint_version") | |
| licenseHeader '/* Licensed under MIT */' | |
| } | |
| } |
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
| plugins { | |
| id "kotlin" | |
| id 'application' | |
| id "com.diffplug.gradle.spotless" version "$spotless_version" | |
| } |
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
| plugins { | |
| id "kotlin" | |
| id 'application' | |
| id "org.jlleitschuh.gradle.ktlint" version "$ktlint_plugin_version" | |
| } | |
| ktlint { | |
| version = "$ktlint_version" | |
| debug = false | |
| verbose = false |
NewerOlder