Add project config and docs

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
alvocool
2026-10-11 10:15:26 +03:00
commit 7e246255c2
10 changed files with 1448 additions and 0 deletions

121
.gitignore vendored Normal file
View File

@@ -0,0 +1,121 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.build/
.buildlog/
.history
.svn/
.swiftpm/
migrate_working_dir/
# IntelliJ / Android Studio
*.iml
*.ipr
*.iws
.idea/
# VS Code (uncomment .vscode/ to ignore local launch/tasks configs)
#.vscode/
.vscode/*
!.vscode/settings.json
!.vscode/launch.json
!.vscode/extensions.json
# Flutter / Dart / Pub
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/
/coverage/
pubspec.lock.bak
.metadata
# Symbolication / obfuscation
app.*.symbols
app.*.map.json
# ------------------------------------------------------------------
# Android
# ------------------------------------------------------------------
/android/app/debug/
/android/app/profile/
/android/app/release/
**/android/**/gradle-wrapper.jar
**/android/.gradle/
**/android/captures/
**/android/gradlew
**/android/gradlew.bat
**/android/local.properties
**/android/**/GeneratedPluginRegistrant.java
**/android/key.properties
*.jks
*.keystore
# ------------------------------------------------------------------
# iOS / macOS (Xcode + CocoaPods)
# ------------------------------------------------------------------
**/ios/**/*.mode1v3
**/ios/**/*.mode2v3
**/ios/**/*.moved-aside
**/ios/**/*.pbxuser
**/ios/**/*.perspectivev3
**/ios/**/*sync/
**/ios/**/.sconsign.dblite
**/ios/**/.tags*
**/ios/**/.vagrant/
**/ios/**/DerivedData/
**/ios/**/Icon?
**/ios/**/Pods/
**/ios/**/.symlinks/
**/ios/**/profile
**/ios/**/xcuserdata
**/ios/.generated/
**/ios/Flutter/App.framework
**/ios/Flutter/Flutter.framework
**/ios/Flutter/Flutter.podspec
**/ios/Flutter/Generated.xcconfig
**/ios/Flutter/ephemeral/
**/ios/Flutter/app.flx
**/ios/Flutter/app.zip
**/ios/Flutter/flutter_assets/
**/ios/Flutter/flutter_export_environment.sh
**/ios/ServiceDefinitions.json
**/ios/Runner/GeneratedPluginRegistrant.*
**/macos/Flutter/GeneratedPluginRegistrant.swift
**/macos/Flutter/ephemeral/
**/Pods/
**/*.xcworkspace/xcuserdata/
**/*.xcodeproj/xcuserdata/
# ------------------------------------------------------------------
# Linux / Windows desktop (generated bundles)
# ------------------------------------------------------------------
**/linux/flutter/ephemeral/
**/windows/flutter/ephemeral/
**/generated_plugin_registrant.*
# ------------------------------------------------------------------
# Secrets / local env — never commit
# ------------------------------------------------------------------
*.env
.env
.env.*
secrets.json
*.pem
*.p12
*.mobileprovision
android/app/upload-keystore.jks
# Mason: the local brick cache and each hook's compiled output.
.mason/
bricks/*/hooks/build/
bricks/*/hooks/pubspec.lock

190
ARCHITECTURE.md Normal file
View File

@@ -0,0 +1,190 @@
# Peach — frontend architecture
Peach follows the Autoreceptive Flutter architecture (`Frontend/Receptive` as
the reference base). Everything below is enforced convention, not suggestion —
new code that ignores it will look wrong next to the rest.
## 1. Stack
- **Flutter**, state management **`stacked`** (MVVM) via `ViewModelBuilder.reactive`.
- **Transport:** SSH/SFTP (`dartssh2`) — Peach talks to servers, not an HTTP API.
- **Storage:** `shared_preferences` for config, `flutter_secure_storage` (OS
keystore) for passwords.
- **Codegen:** Mason brick for screens (§6).
- Core idea: **every screen is 4 files**; **one** `ParentViewModel` centralises
loading/error/reachability; **one** `AppDataManager` is the single data gateway.
## 2. Folder structure (`lib/Peach/`)
```
lib/Peach/
about/ # models (one class per file, named after the class)
external/data/ # what comes back FROM a server (Docker, Kafka, Redis, Health…)
external/initial/ # what we send TO a server (SystemdSpec)
internal/application/ # app-owned models + enums (ServerProfile, ServiceConfig,
# DeploymentRecord, StepTracker, NavigatorType, TextType…)
internal/file/ # local file work (BuildService, WebArchive, FileStorage)
comms/ # the wire
ConnectComms.dart # abstract contract: every remote call Peach can make
Comms.dart # SshService — the one implementation
informatics/ # data gateway
DataManager.dart # abstract: ConnectInternalMemory + ConnectComms + ConnectFileStorage
AppDataManager.dart # the single concrete DataManager (pure delegation)
memory/ # local persistence
ConnectInternalMemory.dart / InternalMemory.dart
ConfigStore · DeploymentStore · SecretStore
configs/ # Navigator.dart (PeachNavigation), ThemeController.dart
designs/ # the design system — reuse before building
Responsive · LogConsole · StepList · StatCard · TransferCard · OutputSheet …
text/Text.dart (the `text()` helper) input/InputFields.dart navigation/SideNav.dart
see/ # screens — one folder per feature
parent/ParentViewModel.dart
<feature>/{Foo.dart, FooState.dart, ViewFoo.dart, ConnectFoo.dart}
utils/ # Colors · CommonUtils · Validators
main.dart
```
## 3. The 4-file screen pattern (mandatory)
| File | Role |
|---|---|
| `Foo.dart` | `StatefulWidget` shell — only creates `FooState`. |
| `FooState.dart` | `State<Foo>` — all UI + local state; **implements `ConnectFoo`**. Built with `ViewModelBuilder.reactive`. |
| `ViewFoo.dart` | `ViewModel extends ParentViewModel` — all logic; calls the `DataManager`; pushes results back through `ConnectFoo`. Never touches widgets. |
| `ConnectFoo.dart` | The callback interface between the two. |
**Wiring:**
```dart
class FooState extends State<Foo> implements ConnectFoo {
ViewFoo? _model;
@override
Widget build(BuildContext context) {
return ViewModelBuilder<ViewFoo>.reactive(
viewModelBuilder: () => ViewFoo(context, this),
onViewModelReady: _onReady, // assign + one named init
builder: (context, viewModel, child) => Scaffold(…), // NO logic before return
);
}
void _onReady(ViewFoo model) { _model = model; _initiate(); }
Future<void> _initiate() async { _model?.loadThings(); }
@override
void onThingsLoaded(List<Thing> things) { setState(() => _things = things); }
}
```
## 4. `ParentViewModel` — what every ViewModel inherits
Constructed once per screen; builds the single
`AppDataManager(InternalMemory(), SshService(), FileStorage())`.
- `showLoading(text)` / `closeLoading()` — full-screen loading overlay.
- `canReach(server, retry)` — opens (or reuses) an SSH session; on failure raises
the *server-unreachable* overlay wired to `retry` and returns `false`.
**This is the SSH equivalent of the reference's connectivity `hasNetwork`** —
Peach targets LAN/VPN boxes where a device-level internet check proves nothing.
- `handleError(error, retry, close, buttonName)` — the standard `catch`. Closes
loading, then maps the failure onto a `PeachError`:
| Failure | Result |
|---|---|
| `SSHAuthFailError` / `SSHAuthAbortError` | "Authentication failed" (critical) |
| `SocketException` / `SSHStateError` | "Connection failed" — host/port/VPN hints |
| `TimeoutException` | "Timed out" |
| `SSHError` | "SSH error" with the raw detail as helper |
| `FileSystemException` | "File error" — local artifact unreadable |
| anything else | generic `PeachError` |
- `showApplicationNotification(type, title, description, drag, dismissible, close,
{action, positiveAction})` — modal bottom sheet used for **all** confirmations
(delete, install, clear). `positiveAction` must `Navigator.pop(context)` first.
## 5. Data layer
`DataManager` is the union of three contracts, so a screen never reaches for a
service directly:
- `ConnectComms` → `SshService` — deploy, systemd, docker, kafka, redis, files, logs.
- `ConnectInternalMemory` → `InternalMemory` — servers, deployment history, theme.
- `ConnectFileStorage` → `FileStorage` — local build, artifact read, web packaging.
Streams (`logs`, `stepStream`, `transferProgress`, `buildLogs`) are exposed as
getters on the ViewModel and subscribed to by the `State` — a stream of remote
output has no request/response shape to hand back one call at a time. Every
*command* still goes through the ViewModel.
## 6. Code generation
```
dart pub global activate mason_cli # once, if mason is missing
mason get # once per clone
```
### Adding a screen
```
mason make mvvc_template # project: Peach, screen: MyScreen
```
Generates the four files under `lib/Peach/see/myscreen/`, pre-wired with the
`Responsive` mobile/tablet/desktop split. Don't hand-scaffold them.
### Adding a persisted field
```
mason make internal_memory # field: pinnedServers, type: List<ServerProfile>
```
Injects the getter/setter pair into all three files that have to agree —
`ConnectInternalMemory` (contract), `InternalMemory` (implementation + its
storage key) and `AppDataManager` (delegation) — handling JSON for objects and
lists, and putting secrets in the OS keystore under a random-suffixed key when
you answer yes to "is this a secret".
> **Passing a generic type on the command line:** `<` and `>` are shell
> redirection, so `--request_object "List<Foo>"` gets eaten before mason sees
> it and fails with *"The system cannot find the file specified"*. Either answer
> the interactive prompt, or pass a config file:
>
> ```
> echo '{"function_name":"pinnedServers","request_object":"List<ServerProfile>","secure":false}' > vars.json
> mason make internal_memory -c vars.json
> ```
Run it from the project root — the hook edits paths relative to there. It's
idempotent: re-running for an existing field detects the duplicate and skips.
## 7. Hard conventions
1. **No logic in `builder:` before `return`.** Derived values are state fields
or getters, set in `_initiate()`.
2. **Named event handlers only** — `onPressed: _onSave`, never `onPressed: () => _save()`
(a closure is fine only when it carries an argument, e.g. `() => _onDeploy(svc)`).
3. **`onViewModelReady`** assigns `_model` and calls one named `_initiate()`.
4. **Never build raw `Text`/`TextStyle`** for display copy — use `text(…)` from
`designs/text/Text.dart` with a `TextType`.
`TextType` picks a **font family**, not a weight — `Bold`→Sora,
`Regular`→Urbanist, `Light`→PlusJakartaSans. Weight is an independent axis:
pass `weight:` for a heavy *body* string rather than reaching for
`TextType.Bold`, which would reface it in the display font.
Three things are deliberately *not* routed through `text()`:
Material slot children (`SnackBar(content:)`, `DropdownMenuItem(child:)`,
`Chip(label:)`, `ListTile(title:)`) which the theme already styles;
`fontFamily: 'monospace'` terminal content; and `SelectableText`.
5. **Never hardcode a hex colour.** Named colours live in `utils/Colors.dart`;
brightness-aware surfaces come from `context.jp` (`JpColors`). Terminal
surfaces use `ConsoleColors` — a fixed palette that stays dark in both
themes, because a console doesn't invert.
6. **Reuse `designs/` before building.** Screen-only widgets are private methods
at the bottom of that screen's `State`; anything reusable moves to `designs/`.
7. **Formatting helpers live in `utils/CommonUtils.dart`** (`formatBytes`,
`formatCount`, `timeAgo`, `baseName`, `joinRemote`…) — never inline them.
8. **Navigation goes through `PeachNavigation`** with a `NavigatorType`;
destinations are widget instances, not route strings. Use
`navigateToPageWithData` when the parent must refresh on return.

104
README.md Normal file
View File

@@ -0,0 +1,104 @@
# PeachDeployments 🚀
A cross-platform **jar deployment cockpit**. Register a server, add the services
that run on it, drag in a `.jar`, and PeachDeployments safely uploads it, swaps it for
the running one, restarts the systemd service, and streams the logs back — with
one-click revert if the new build fails to start.
Runs on **Windows, macOS, Linux, Android and iOS** (Flutter). SSH/SFTP uses raw
sockets, so it does **not** run on Flutter Web.
## Model: Server → Services
- A **Server** is a unique machine: name, host, port, username, password, sudo.
- Each server holds **many Services**, of two kinds:
- **Jar service** — a systemd unit + jar (deploy to a directory, restart).
- **Web app** — an Angular / React / Flutter-web / static site published to
an **nginx** web root.
So one server profile can host `orders-api` (jar), `marketing-site` (React),
`admin` (Angular) … each deployed independently.
## What it does
- **Web apps → nginx** — build Angular/React/Flutter-web (or use a pre-built
folder), packaged into a single **gzip bundle** for a fast upload, extracted
into the nginx web root with a safe backup, then `nginx -t` + reload — with
revert on failure.
- **Two ways to ship, then confirm** — on a service you either drag the
artifact (jar / built folder) **or** point at the source; building runs
locally, copies the output, and then asks you to **proceed to deploy**.
- **Live step tracker & transfer stats** — every build/deploy shows an ordered
stepper with per-step state, and uploads show a **descriptive panel with
%, transferred, speed and ETA**.
- **Cancel** an in-flight build or deploy; **restart a service / reload nginx
without deploying**; and **view logs without deploying** (per service).
- **Distinct success state** — after a successful deploy the panel shows a
**DEPLOYED ✓** badge and only a subdued **Redeploy** (no accidental re-runs).
- **Home dashboard** — list/grid toggle, a **metrics panel** (success-rate
ring + totals) and a **Recently deployed** feed.
- **Build from source & deploy** — give a service the path to its local
Maven/Gradle project and hit **Build & deploy from source**. PeachDeployments
auto-detects the build tool (`pom.xml` → `mvn -DskipTests package`,
`build.gradle[.kts]` → `gradlew build -x test`, preferring the wrapper),
streams the build output into the console, locates the runnable jar
(ignoring `-sources` / `-javadoc` / `-plain` / `original-` artifacts), then
runs the full safe deploy below. Optional custom build command and jar
pattern per service. *(Local builds run on desktop only.)*
- **Encrypted credentials** — passwords are stored in the OS keystore via
`flutter_secure_storage` (Keychain / Android Keystore / Windows DPAPI /
libsecret), never in plain config.
- **Drag & drop (or browse)** a `.jar` on a service's deploy screen.
- **Safe deployment pipeline:**
1. Upload the new jar to a temp path (`/tmp`) — the running jar is untouched
until the transfer fully succeeds.
2. **Stop** the service.
3. **Back up** the current jar to `<name>.bak` (old backup removed first).
4. **Install** the new jar under the configured name / path.
5. **Start** the service and verify it is `active`.
6. On **success** → delete the `.bak`. On **failure** → keep the `.bak` and
new jar, and offer **Revert** (restore previous jar, delete the failed
one, restart) or **Keep new**.
- **Live logs** — recent `journalctl` after each deploy, plus a **Live tail**
toggle that follows the service journal in real time.
- **SFTP file browser** — per server: navigate directories, **upload** local
files (button or drag & drop), **download** remote files to disk, and delete.
- **Deployment tracking** — every attempt is recorded with success / failure /
reverted status, server, service, jar name, target path and timestamp. Home
shows totals; the history screen lists them all.
## Requirements on the server
- SSH access with the configured username / password.
- `systemd` for services (or leave the unit name blank to just swap the jar).
- If commands need root (`systemctl`, writing to `/opt`, …), keep **Use sudo**
on — the password is fed to `sudo -S`.
> Only the jar at each service's configured path is backed up/replaced. Other
> `.jar` files in the directory are left alone.
## Run it
```bash
flutter pub get
flutter run -d windows # or macos / linux / <android-device-id>
```
## Build
```bash
flutter build windows # macos | linux | apk | ios
```
### Android setup note
Building the Android APK needs the Android SDK **36** and accepted licenses:
```bash
flutter doctor --android-licenses
# install SDK 36 via Android Studio > SDK Manager, then:
flutter build apk
```
`minSdk` is 24 (required by secure storage). Linux desktop builds must be done
on a Linux host.

37
analysis_options.yaml Normal file
View File

@@ -0,0 +1,37 @@
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.
# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml
analyzer:
exclude:
# Mason templates: `{{screen}}` placeholders aren't valid Dart until the
# brick is rendered.
- bricks/**
linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at https://dart.dev/lints.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
# Files under lib/Peach are named after the single class they declare
# (PascalCase) — the project-wide convention, not an oversight.
file_names: false
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options

74
autoreceptive Normal file
View File

@@ -0,0 +1,74 @@
server {
server_name autoreceptive.com www.autoreceptive.com;
access_log /var/log/nginx/autoreceptive_website_access.log;
error_log /var/log/nginx/autoreceptive_website_error.log;
root /var/www/autoreceptive/browser;
index index.html index.htm;
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml;
location / {
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_pass http://localhost:8080/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/autoreceptive;
}
location /WebRequest {
proxy_pass http://localhost:20050;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded_Proto $scheme;
}
listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/autoreceptive.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/autoreceptive.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = www.autoreceptive.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
if ($host = autoreceptive.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80 default_server;
listen [::]:80 default_server;
server_name autoreceptive.com www.autoreceptive.com;
return 404; # managed by Certbot
}

View File

@@ -0,0 +1,17 @@
[Unit]
Description=Autoreceptive authorisation engine
Requires=postgresql.service
After=postgresql.service
StartLimitBurst=5
StartLimitIntervalSec=10
[Service]
Type=simple
User=root
WorkingDirectory=/Autoreceptive/Thinkers/authorization/
ExecStart=/usr/bin/java -jar /Autoreceptive/Thinkers/authorization/AUTORECEPTIVE-AUTHORIZATION.jar
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target

1
mason-lock.json Normal file
View File

@@ -0,0 +1 @@
{"bricks":{"internal_memory":{"path":"C:/Users/Alpha/Documents/jarpilot/bricks/internal_memory"},"mvvc_template":{"path":"C:/Users/Alpha/Documents/jarpilot/bricks/mvvc_template"}}}

11
mason.yaml Normal file
View File

@@ -0,0 +1,11 @@
# Screens are generated, never hand-scaffolded, so every one of them starts
# from the same four-file shape.
#
# dart pub global activate mason_cli (once, if mason is missing)
# mason get
# mason make mvvc_template
bricks:
mvvc_template:
path: bricks/mvvc_template
internal_memory:
path: bricks/internal_memory

762
pubspec.lock Normal file
View File

@@ -0,0 +1,762 @@
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
archive:
dependency: "direct main"
description:
name: archive
sha256: a96e8b390886ee8abb49b7bd3ac8df6f451c621619f52a26e815fdcf568959ff
url: "https://pub.dev"
source: hosted
version: "4.0.9"
args:
dependency: transitive
description:
name: args
sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04
url: "https://pub.dev"
source: hosted
version: "2.7.0"
asn1lib:
dependency: transitive
description:
name: asn1lib
sha256: "9a8f69025044eb466b9b60ef3bc3ac99b4dc6c158ae9c56d25eeccf5bc56d024"
url: "https://pub.dev"
source: hosted
version: "1.6.5"
async:
dependency: transitive
description:
name: async
sha256: e2eb0491ba5ddb6177742d2da23904574082139b07c1e33b8503b9f46f3e1a37
url: "https://pub.dev"
source: hosted
version: "2.13.1"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea"
url: "https://pub.dev"
source: hosted
version: "2.1.2"
characters:
dependency: transitive
description:
name: characters
sha256: faf38497bda5ead2a8c7615f4f7939df04333478bf32e4173fcb06d428b5716b
url: "https://pub.dev"
source: hosted
version: "1.4.1"
checked_yaml:
dependency: transitive
description:
name: checked_yaml
sha256: "959525d3162f249993882720d52b7e0c833978df229be20702b33d48d91de70f"
url: "https://pub.dev"
source: hosted
version: "2.0.4"
cli_util:
dependency: transitive
description:
name: cli_util
sha256: ff6785f7e9e3c38ac98b2fb035701789de90154024a75b6cb926445e83197d1c
url: "https://pub.dev"
source: hosted
version: "0.4.2"
clock:
dependency: transitive
description:
name: clock
sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b
url: "https://pub.dev"
source: hosted
version: "1.1.2"
code_assets:
dependency: transitive
description:
name: code_assets
sha256: bf394f466ba9205f1812a0433b392d6af280f155f56651eda7c18cc32ed493b8
url: "https://pub.dev"
source: hosted
version: "1.2.1"
collection:
dependency: transitive
description:
name: collection
sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"
url: "https://pub.dev"
source: hosted
version: "1.19.1"
convert:
dependency: transitive
description:
name: convert
sha256: b30acd5944035672bc15c6b7a8b47d773e41e2f17de064350988c5d02adb1c68
url: "https://pub.dev"
source: hosted
version: "3.1.2"
cross_file:
dependency: transitive
description:
name: cross_file
sha256: "92c9c43c383bfa1c32079d3bc492d55d6d4318044b7b47edaff8971cbb555c51"
url: "https://pub.dev"
source: hosted
version: "0.3.5+4"
crypto:
dependency: transitive
description:
name: crypto
sha256: c8ea0233063ba03258fbcf2ca4d6dadfefe14f02fab57702265467a19f27fadf
url: "https://pub.dev"
source: hosted
version: "3.0.7"
cupertino_icons:
dependency: "direct main"
description:
name: cupertino_icons
sha256: "41e005c33bd814be4d3096aff55b1908d419fde52ca656c8c47719ec745873cd"
url: "https://pub.dev"
source: hosted
version: "1.0.9"
dartssh2:
dependency: "direct main"
description:
name: dartssh2
sha256: "8af742da413dd1d6479f6f884d2db59385a6666326a3df7cb696436059319b15"
url: "https://pub.dev"
source: hosted
version: "2.22.0"
dbus:
dependency: transitive
description:
name: dbus
sha256: "0ce9b0a839e6dee59a37a623d2fc26a35bbbe6404213e419b0d6411023d62645"
url: "https://pub.dev"
source: hosted
version: "0.7.14"
desktop_drop:
dependency: "direct main"
description:
name: desktop_drop
sha256: aa1e797255bfbc76f9eb5aa4f61e5b68dbf69962ab1be6495816d2f251bc0d1f
url: "https://pub.dev"
source: hosted
version: "0.7.1"
fake_async:
dependency: transitive
description:
name: fake_async
sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44"
url: "https://pub.dev"
source: hosted
version: "1.3.3"
ffi:
dependency: transitive
description:
name: ffi
sha256: "6d7fd89431262d8f3125e81b50d3847a091d846eafcd4fdb88dd06f36d705a45"
url: "https://pub.dev"
source: hosted
version: "2.2.0"
file:
dependency: transitive
description:
name: file
sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4
url: "https://pub.dev"
source: hosted
version: "7.0.1"
file_picker:
dependency: "direct main"
description:
name: file_picker
sha256: f13a03000d942e476bc1ff0a736d2e9de711d2f89a95cd4c1d88f861c3348387
url: "https://pub.dev"
source: hosted
version: "11.0.2"
fixnum:
dependency: transitive
description:
name: fixnum
sha256: b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be
url: "https://pub.dev"
source: hosted
version: "1.1.1"
flutter:
dependency: "direct main"
description: flutter
source: sdk
version: "0.0.0"
flutter_launcher_icons:
dependency: "direct dev"
description:
name: flutter_launcher_icons
sha256: "10f13781741a2e3972126fae08393d3c4e01fa4cd7473326b94b72cf594195e7"
url: "https://pub.dev"
source: hosted
version: "0.14.4"
flutter_lints:
dependency: "direct dev"
description:
name: flutter_lints
sha256: "3105dc8492f6183fb076ccf1f351ac3d60564bff92e20bfc4af9cc1651f4e7e1"
url: "https://pub.dev"
source: hosted
version: "6.0.0"
flutter_plugin_android_lifecycle:
dependency: transitive
description:
name: flutter_plugin_android_lifecycle
sha256: "3854fe5e3bff0b113c658f260b90c95dea17c92db0f2addeac2e343dd9969785"
url: "https://pub.dev"
source: hosted
version: "2.0.35"
flutter_secure_storage:
dependency: "direct main"
description:
name: flutter_secure_storage
sha256: "7686b1d6a29985dcbb808c59518226e603e3bfa7c0ddfd1a0d00e4cda77c868e"
url: "https://pub.dev"
source: hosted
version: "10.3.1"
flutter_secure_storage_darwin:
dependency: transitive
description:
name: flutter_secure_storage_darwin
sha256: "82329fa5cdf343773b1b6897dea959105a29f092454259edff92f9f6637e8149"
url: "https://pub.dev"
source: hosted
version: "0.3.2"
flutter_secure_storage_linux:
dependency: transitive
description:
name: flutter_secure_storage_linux
sha256: a5f35ddab43cf5c8215d2feb4ce1957851f28c5c37e6f04335066a0602087bf5
url: "https://pub.dev"
source: hosted
version: "3.0.1"
flutter_secure_storage_platform_interface:
dependency: transitive
description:
name: flutter_secure_storage_platform_interface
sha256: "8ceea1223bee3c6ac1a22dabd8feefc550e4729b3675de4b5900f55afcb435d6"
url: "https://pub.dev"
source: hosted
version: "2.0.1"
flutter_secure_storage_web:
dependency: transitive
description:
name: flutter_secure_storage_web
sha256: "073a62b3aeb866ab4ce795f960413948e51e5a42a9b0c8333b6daf5bb3208a1c"
url: "https://pub.dev"
source: hosted
version: "2.1.1"
flutter_secure_storage_windows:
dependency: transitive
description:
name: flutter_secure_storage_windows
sha256: "3b7c8e068875dfd46719ff57c90d8c459c87f2302ed6b00ff006b3c9fcad1613"
url: "https://pub.dev"
source: hosted
version: "4.1.0"
flutter_test:
dependency: "direct dev"
description: flutter
source: sdk
version: "0.0.0"
flutter_web_plugins:
dependency: transitive
description: flutter
source: sdk
version: "0.0.0"
get_it:
dependency: transitive
description:
name: get_it
sha256: ae78de7c3f2304b8d81f2bb6e320833e5e81de942188542328f074978cc0efa9
url: "https://pub.dev"
source: hosted
version: "8.3.0"
hooks:
dependency: transitive
description:
name: hooks
sha256: "9a62a50b50b769a737bc0a8ff381f333529df3ab746b2f6b02e83760231455ba"
url: "https://pub.dev"
source: hosted
version: "2.0.2"
image:
dependency: transitive
description:
name: image
sha256: f9881ff4998044947ec38d098bc7c8316ae1186fa786eddffdb867b9bc94dfce
url: "https://pub.dev"
source: hosted
version: "4.8.0"
jni:
dependency: transitive
description:
name: jni
sha256: c2230682d5bc2362c1c9e8d3c7f406d9cbba23ab3f2e203a025dd47e0fb2e68f
url: "https://pub.dev"
source: hosted
version: "1.0.0"
jni_flutter:
dependency: transitive
description:
name: jni_flutter
sha256: "8b59e590786050b1cd866677dddaf76b1ade5e7bc751abe04b86e84d379d3ba6"
url: "https://pub.dev"
source: hosted
version: "1.0.1"
json_annotation:
dependency: transitive
description:
name: json_annotation
sha256: "2a743920d81b7910627f68ee2c9ac1fc0bfee32b9fc3403587d7c6791ca12f80"
url: "https://pub.dev"
source: hosted
version: "4.12.0"
leak_tracker:
dependency: transitive
description:
name: leak_tracker
sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de"
url: "https://pub.dev"
source: hosted
version: "11.0.2"
leak_tracker_flutter_testing:
dependency: transitive
description:
name: leak_tracker_flutter_testing
sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1"
url: "https://pub.dev"
source: hosted
version: "3.0.10"
leak_tracker_testing:
dependency: transitive
description:
name: leak_tracker_testing
sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1"
url: "https://pub.dev"
source: hosted
version: "3.0.2"
lints:
dependency: transitive
description:
name: lints
sha256: "12f842a479589fea194fe5c5a3095abc7be0c1f2ddfa9a0e76aed1dbd26a87df"
url: "https://pub.dev"
source: hosted
version: "6.1.0"
logging:
dependency: transitive
description:
name: logging
sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61
url: "https://pub.dev"
source: hosted
version: "1.3.0"
matcher:
dependency: transitive
description:
name: matcher
sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861
url: "https://pub.dev"
source: hosted
version: "0.12.19"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
sha256: "9c337007e82b1889149c82ed242ed1cb24a66044e30979c44912381e9be4c48b"
url: "https://pub.dev"
source: hosted
version: "0.13.0"
meta:
dependency: transitive
description:
name: meta
sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349"
url: "https://pub.dev"
source: hosted
version: "1.18.0"
nested:
dependency: transitive
description:
name: nested
sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20"
url: "https://pub.dev"
source: hosted
version: "1.0.0"
objective_c:
dependency: transitive
description:
name: objective_c
sha256: "6cb691c686fa2838c6deb34980d426145c2a5d537491cb83d463c33cdbc726ed"
url: "https://pub.dev"
source: hosted
version: "9.4.1"
package_config:
dependency: transitive
description:
name: package_config
sha256: f096c55ebb7deb7e384101542bfba8c52696c1b56fca2eb62827989ef2353bbc
url: "https://pub.dev"
source: hosted
version: "2.2.0"
page_transition:
dependency: "direct main"
description:
name: page_transition
sha256: "61dac670e80ebdd7da847c21841e1dfd8f9ab483b3a0c5fddc877ad8d23b69ee"
url: "https://pub.dev"
source: hosted
version: "2.2.2"
path:
dependency: transitive
description:
name: path
sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5"
url: "https://pub.dev"
source: hosted
version: "1.9.1"
path_provider:
dependency: transitive
description:
name: path_provider
sha256: a7f4874f987173da295a61c181b8ee71dab59b332a486b391babf26a1b884825
url: "https://pub.dev"
source: hosted
version: "2.1.6"
path_provider_android:
dependency: transitive
description:
name: path_provider_android
sha256: "69cbd515a62b94d32a7944f086b2f82b4ac40a1d45bebfc00813a430ab2dabcd"
url: "https://pub.dev"
source: hosted
version: "2.3.1"
path_provider_foundation:
dependency: transitive
description:
name: path_provider_foundation
sha256: "2a376b7d6392d80cd3705782d2caa734ca4727776db0b6ec36ef3f1855197699"
url: "https://pub.dev"
source: hosted
version: "2.6.0"
path_provider_linux:
dependency: transitive
description:
name: path_provider_linux
sha256: "58c2005f147315b11e9b4a7bc889cd5203e250cba8e3f012dae259b4972b5c16"
url: "https://pub.dev"
source: hosted
version: "2.2.2"
path_provider_platform_interface:
dependency: transitive
description:
name: path_provider_platform_interface
sha256: "484838772624c3a4b94f1e44a3e19897fee738f2d5c4ce448443b0417f7c9dda"
url: "https://pub.dev"
source: hosted
version: "2.1.3"
path_provider_windows:
dependency: transitive
description:
name: path_provider_windows
sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7
url: "https://pub.dev"
source: hosted
version: "2.3.0"
petitparser:
dependency: transitive
description:
name: petitparser
sha256: "91bd59303e9f769f108f8df05e371341b15d59e995e6806aefab827b58336675"
url: "https://pub.dev"
source: hosted
version: "7.0.2"
pinenacl:
dependency: transitive
description:
name: pinenacl
sha256: "57e907beaacbc3c024a098910b6240758e899674de07d6949a67b52fd984cbdf"
url: "https://pub.dev"
source: hosted
version: "0.6.0"
platform:
dependency: transitive
description:
name: platform
sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984"
url: "https://pub.dev"
source: hosted
version: "3.1.6"
plugin_platform_interface:
dependency: transitive
description:
name: plugin_platform_interface
sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02"
url: "https://pub.dev"
source: hosted
version: "2.1.8"
pointycastle:
dependency: transitive
description:
name: pointycastle
sha256: "92aa3841d083cc4b0f4709b5c74fd6409a3e6ba833ffc7dc6a8fee096366acf5"
url: "https://pub.dev"
source: hosted
version: "4.0.0"
posix:
dependency: transitive
description:
name: posix
sha256: "185ef7606574f789b40f289c233efa52e96dead518aed988e040a10737febb07"
url: "https://pub.dev"
source: hosted
version: "6.5.0"
provider:
dependency: transitive
description:
name: provider
sha256: "4e82183fa20e5ca25703ead7e05de9e4cceed1fbd1eadc1ac3cb6f565a09f272"
url: "https://pub.dev"
source: hosted
version: "6.1.5+1"
pub_semver:
dependency: transitive
description:
name: pub_semver
sha256: "5bfcf68ca79ef689f8990d1160781b4bad40a3bd5e5218ad4076ddb7f4081585"
url: "https://pub.dev"
source: hosted
version: "2.2.0"
record_use:
dependency: transitive
description:
name: record_use
sha256: "2551bd8eecfe95d14ae75f6021ad0248be5c27f138c2ec12fcb52b500b3ba1ed"
url: "https://pub.dev"
source: hosted
version: "0.6.0"
shared_preferences:
dependency: "direct main"
description:
name: shared_preferences
sha256: c3025c5534b01739267eb7d76959bbc25a6d10f6988e1c2a3036940133dd10bf
url: "https://pub.dev"
source: hosted
version: "2.5.5"
shared_preferences_android:
dependency: transitive
description:
name: shared_preferences_android
sha256: "93ae5884a9df5d3bb696825bceb3a17590754548b5d740eba51500afc8d088f5"
url: "https://pub.dev"
source: hosted
version: "2.4.26"
shared_preferences_foundation:
dependency: transitive
description:
name: shared_preferences_foundation
sha256: "4e7eaffc2b17ba398759f1151415869a34771ba11ebbccd1b0145472a619a64f"
url: "https://pub.dev"
source: hosted
version: "2.5.6"
shared_preferences_linux:
dependency: transitive
description:
name: shared_preferences_linux
sha256: "580abfd40f415611503cae30adf626e6656dfb2f0cee8f465ece7b6defb40f2f"
url: "https://pub.dev"
source: hosted
version: "2.4.1"
shared_preferences_platform_interface:
dependency: transitive
description:
name: shared_preferences_platform_interface
sha256: "649dc798a33931919ea356c4305c2d1f81619ea6e92244070b520187b5140ef9"
url: "https://pub.dev"
source: hosted
version: "2.4.2"
shared_preferences_web:
dependency: transitive
description:
name: shared_preferences_web
sha256: c49bd060261c9a3f0ff445892695d6212ff603ef3115edbb448509d407600019
url: "https://pub.dev"
source: hosted
version: "2.4.3"
shared_preferences_windows:
dependency: transitive
description:
name: shared_preferences_windows
sha256: "94ef0f72b2d71bc3e700e025db3710911bd51a71cefb65cc609dd0d9a982e3c1"
url: "https://pub.dev"
source: hosted
version: "2.4.1"
sky_engine:
dependency: transitive
description: flutter
source: sdk
version: "0.0.0"
source_span:
dependency: transitive
description:
name: source_span
sha256: "56a02f1f4cd1a2d96303c0144c93bd6d909eea6bee6bf5a0e0b685edbd4c47ab"
url: "https://pub.dev"
source: hosted
version: "1.10.2"
stack_trace:
dependency: transitive
description:
name: stack_trace
sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1"
url: "https://pub.dev"
source: hosted
version: "1.12.1"
stacked:
dependency: "direct main"
description:
name: stacked
sha256: "5f4a6ba6cfa43c5854690de0f946eef1694250cf46ecf7859519d90bf764b1e4"
url: "https://pub.dev"
source: hosted
version: "3.5.0"
stacked_shared:
dependency: transitive
description:
name: stacked_shared
sha256: "3d69b34d87422b78a7e5123681d3f4bcdd79757170454933f68795c54812d003"
url: "https://pub.dev"
source: hosted
version: "1.4.2"
stream_channel:
dependency: transitive
description:
name: stream_channel
sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d"
url: "https://pub.dev"
source: hosted
version: "2.1.4"
string_scanner:
dependency: transitive
description:
name: string_scanner
sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43"
url: "https://pub.dev"
source: hosted
version: "1.4.1"
term_glyph:
dependency: transitive
description:
name: term_glyph
sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e"
url: "https://pub.dev"
source: hosted
version: "1.2.2"
test_api:
dependency: transitive
description:
name: test_api
sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e"
url: "https://pub.dev"
source: hosted
version: "0.7.11"
typed_data:
dependency: transitive
description:
name: typed_data
sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006
url: "https://pub.dev"
source: hosted
version: "1.4.0"
universal_io:
dependency: transitive
description:
name: universal_io
sha256: f63cbc48103236abf48e345e07a03ce5757ea86285ed313a6a032596ed9301e2
url: "https://pub.dev"
source: hosted
version: "2.3.1"
universal_platform:
dependency: transitive
description:
name: universal_platform
sha256: "64e16458a0ea9b99260ceb5467a214c1f298d647c659af1bff6d3bf82536b1ec"
url: "https://pub.dev"
source: hosted
version: "1.1.0"
uuid:
dependency: "direct main"
description:
name: uuid
sha256: "1fef9e8e11e2991bb773070d4656b7bd5d850967a2456cfc83cf47925ba79489"
url: "https://pub.dev"
source: hosted
version: "4.5.3"
vector_math:
dependency: transitive
description:
name: vector_math
sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
url: "https://pub.dev"
source: hosted
version: "2.2.0"
vm_service:
dependency: transitive
description:
name: vm_service
sha256: "0016aef94fc66495ac78af5859181e3f3bf2026bd8eecc72b9565601e19ab360"
url: "https://pub.dev"
source: hosted
version: "15.2.0"
web:
dependency: transitive
description:
name: web
sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a"
url: "https://pub.dev"
source: hosted
version: "1.1.1"
win32:
dependency: transitive
description:
name: win32
sha256: d7cb55e04cd34096cd3a79b3330245f54cb96a370a1c27adb3c84b917de8b08e
url: "https://pub.dev"
source: hosted
version: "5.15.0"
xdg_directories:
dependency: transitive
description:
name: xdg_directories
sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15"
url: "https://pub.dev"
source: hosted
version: "1.1.0"
xml:
dependency: transitive
description:
name: xml
sha256: "971043b3a0d3da28727e40ed3e0b5d18b742fa5a68665cca88e74b7876d5e025"
url: "https://pub.dev"
source: hosted
version: "6.6.1"
yaml:
dependency: transitive
description:
name: yaml
sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce
url: "https://pub.dev"
source: hosted
version: "3.1.3"
sdks:
dart: ">=3.12.2 <4.0.0"
flutter: ">=3.44.0"

131
pubspec.yaml Normal file
View File

@@ -0,0 +1,131 @@
name: peach
description: "Peach — cross-platform jar & web-app deployment cockpit."
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.0.0+1
environment:
sdk: ^3.12.2
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.8
# MVVM: every screen's ViewModel is built through ViewModelBuilder.reactive.
stacked: ^3.5.0
# Centralised navigation transitions (configs/Navigator.dart).
page_transition: ^2.1.0
dartssh2: ^2.22.0
file_picker: ^11.0.2
desktop_drop: ^0.7.1
shared_preferences: ^2.5.5
uuid: ^4.5.3
flutter_secure_storage: ^10.3.1
archive: ^4.0.9
dev_dependencies:
flutter_test:
sdk: flutter
# The "flutter_lints" package below contains a set of recommended lints to
# encourage good coding practices. The lint set provided by the package is
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^6.0.0
flutter_launcher_icons: ^0.14.1
# Generates and applies the Peach app icon across every platform.
# Regenerate the source art with:
# flutter test test/tools/generate_icon_test.dart
# Then apply it with:
# dart run flutter_launcher_icons
flutter_launcher_icons:
image_path: "assets/icon/app_icon.png"
android: "ic_launcher"
adaptive_icon_background: "#E8451F"
adaptive_icon_foreground: "assets/icon/app_icon_fg.png"
ios: true
remove_alpha_ios: true
windows:
generate: true
image_path: "assets/icon/app_icon.png"
icon_size: 256
macos:
generate: true
image_path: "assets/icon/app_icon.png"
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter packages.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
fonts:
- family: Urbanist
fonts:
- asset: assets/fonts/Urbanist.ttf
- family: PlusJakartaSans
fonts:
- asset: assets/fonts/PlusJakartaSans.ttf
- family: Sora
fonts:
- asset: assets/fonts/Sora.ttf
# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/to/resolution-aware-images
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/to/asset-from-package
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/to/font-from-package