1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 04:18:09 +03:00

contrib header changes

This commit is contained in:
Anton Afanasyeu
2026-05-20 15:17:13 +02:00
parent d420c3e94a
commit 5d8e82d2e6
249 changed files with 3597 additions and 22 deletions

View File

@@ -1,4 +1,15 @@
<?php
/* package examples/crash_reporter/backend/config/config.example.php */
/*********************************************************************
* config.example.php
* Created at: Wed 20 May 2026 14:31:55 +0200
* Updated at: Wed 20 May 2026 14:31:55 +0200 by Anton Afanasyeu <a.afanasieff@gmail.com>
* Contributors:
* - Anton Afanasyeu <a.afanasieff@gmail.com> (1 commits, 19 lines)
* - Cursor Agent (project assistant)
* Digest: SHA256 a68b41e3b977416def464ec6a1aaeba10e660254325672cac891ab6200ba1bea
**********************************************************************/
return [
'app_name' => 'Android Cast Crashes',
// Production: '/app/androidcast_project/crashes' — Local php -S: use '' (empty string)

View File

@@ -1,4 +1,15 @@
<?php
/* package examples/crash_reporter/backend/config/config.php */
/*********************************************************************
* config.php
* Created at: Wed 20 May 2026 14:31:55 +0200
* Updated at: Wed 20 May 2026 14:31:55 +0200 by Anton Afanasyeu <a.afanasieff@gmail.com>
* Contributors:
* - Anton Afanasyeu <a.afanasieff@gmail.com> (1 commits, 18 lines)
* - Cursor Agent (project assistant)
* Digest: SHA256 bcfa082fa936d758ce5ee539b5077c187dad629168b8784e2c65bb4cfe29a8a4
**********************************************************************/
return [
'app_name' => 'Android Cast Crashes',
'base_path' => '/app/androidcast_project/crashes',

View File

@@ -1,4 +1,15 @@
<?php
/* package examples/crash_reporter/backend/public/api/upload.php */
/*********************************************************************
* upload.php
* Created at: Wed 20 May 2026 14:31:55 +0200
* Updated at: Wed 20 May 2026 14:31:55 +0200 by Anton Afanasyeu <a.afanasieff@gmail.com>
* Contributors:
* - Anton Afanasyeu <a.afanasieff@gmail.com> (1 commits, 21 lines)
* - Cursor Agent (project assistant)
* Digest: SHA256 d32979211e6246f5520b0570e2d1d10f5e86eb35fd94ede60634535f2ca143de
**********************************************************************/
declare(strict_types=1);
require_once __DIR__ . '/../../src/bootstrap.php';

View File

@@ -1,4 +1,15 @@
<?php
/* package examples/crash_reporter/backend/public/index.php */
/*********************************************************************
* index.php
* Created at: Wed 20 May 2026 14:31:55 +0200
* Updated at: Wed 20 May 2026 14:31:55 +0200 by Anton Afanasyeu <a.afanasieff@gmail.com>
* Contributors:
* - Anton Afanasyeu <a.afanasieff@gmail.com> (1 commits, 59 lines)
* - Cursor Agent (project assistant)
* Digest: SHA256 1cc27633c3b71e75c1e2dbc9b23ff2bb241958a8d7b31b5ae1594706182d381e
**********************************************************************/
declare(strict_types=1);
require_once __DIR__ . '/../src/bootstrap.php';

View File

@@ -1,4 +1,15 @@
<?php
/* package examples/crash_reporter/backend/src/Auth.php */
/*********************************************************************
* Auth.php
* Created at: Wed 20 May 2026 14:31:55 +0200
* Updated at: Wed 20 May 2026 14:31:55 +0200 by Anton Afanasyeu <a.afanasieff@gmail.com>
* Contributors:
* - Anton Afanasyeu <a.afanasieff@gmail.com> (1 commits, 52 lines)
* - Cursor Agent (project assistant)
* Digest: SHA256 f1ce3231dfbf323fadc228d391266b298af4cb4eeefcd6cf78d7f4a899da74bf
**********************************************************************/
declare(strict_types=1);
final class Auth {

View File

@@ -1,4 +1,15 @@
<?php
/* package examples/crash_reporter/backend/src/Database.php */
/*********************************************************************
* Database.php
* Created at: Wed 20 May 2026 14:31:55 +0200
* Updated at: Wed 20 May 2026 14:31:55 +0200 by Anton Afanasyeu <a.afanasieff@gmail.com>
* Contributors:
* - Anton Afanasyeu <a.afanasieff@gmail.com> (1 commits, 39 lines)
* - Cursor Agent (project assistant)
* Digest: SHA256 da4b9e05725c9a560a82071c392bdc1f35e06f7315a8cf2122518e6093d08cc8
**********************************************************************/
declare(strict_types=1);
final class Database {

View File

@@ -1,4 +1,15 @@
<?php
/* package examples/crash_reporter/backend/src/ReportRepository.php */
/*********************************************************************
* ReportRepository.php
* Created at: Wed 20 May 2026 14:31:55 +0200
* Updated at: Wed 20 May 2026 14:31:55 +0200 by Anton Afanasyeu <a.afanasieff@gmail.com>
* Contributors:
* - Anton Afanasyeu <a.afanasieff@gmail.com> (1 commits, 57 lines)
* - Cursor Agent (project assistant)
* Digest: SHA256 17a4ce13743f8580baaeb5cf1d7c37715cdc17f1b17c9f598925dda3e1c12294
**********************************************************************/
declare(strict_types=1);
final class ReportRepository {

View File

@@ -1,4 +1,15 @@
<?php
/* package examples/crash_reporter/backend/src/bootstrap.php */
/*********************************************************************
* bootstrap.php
* Created at: Wed 20 May 2026 14:31:55 +0200
* Updated at: Wed 20 May 2026 14:31:55 +0200 by Anton Afanasyeu <a.afanasieff@gmail.com>
* Contributors:
* - Anton Afanasyeu <a.afanasieff@gmail.com> (1 commits, 41 lines)
* - Cursor Agent (project assistant)
* Digest: SHA256 8fdf942d57489d19dbe5358656cd1a0b1156eda966e3e5d7a180f603ace4243f
**********************************************************************/
declare(strict_types=1);
$configPath = __DIR__ . '/../config/config.php';

View File

@@ -1,3 +1,14 @@
/* package examples/crash_reporter/backend/views/layout.php */
/*********************************************************************
* layout.php
* Created at: Wed 20 May 2026 14:31:55 +0200
* Updated at: Wed 20 May 2026 14:31:55 +0200 by Anton Afanasyeu <a.afanasieff@gmail.com>
* Contributors:
* - Anton Afanasyeu <a.afanasieff@gmail.com> (1 commits, 82 lines)
* - Cursor Agent (project assistant)
* Digest: SHA256 1c049b65f48ad5b675ec6c774c1a5ddca713d37e638cf1b930c68e97531d4c4e
**********************************************************************/
<!DOCTYPE html>
<html lang="en">
<head>

View File

@@ -1,3 +1,14 @@
/* package examples/crash_reporter/backend/views/login.php */
/*********************************************************************
* login.php
* Created at: Wed 20 May 2026 14:31:55 +0200
* Updated at: Wed 20 May 2026 14:31:55 +0200 by Anton Afanasyeu <a.afanasieff@gmail.com>
* Contributors:
* - Anton Afanasyeu <a.afanasieff@gmail.com> (1 commits, 23 lines)
* - Cursor Agent (project assistant)
* Digest: SHA256 37ae18b8cc9050f282aa8bf9a040932e7405448f45d6a9c0ba043a262deab8b2
**********************************************************************/
<!DOCTYPE html>
<html lang="en">
<head>

View File

@@ -1,4 +1,15 @@
<?php
/* package examples/crash_reporter/backend/views/report_detail.php */
/*********************************************************************
* report_detail.php
* Created at: Wed 20 May 2026 14:31:55 +0200
* Updated at: Wed 20 May 2026 14:31:55 +0200 by Anton Afanasyeu <a.afanasieff@gmail.com>
* Contributors:
* - Anton Afanasyeu <a.afanasieff@gmail.com> (1 commits, 50 lines)
* - Cursor Agent (project assistant)
* Digest: SHA256 830d53711eef7690d747cb85455201ddbd613807203ff970614e992f1474de81
**********************************************************************/
$p = $report['payload'] ?? [];
$device = $p['device'] ?? [];
$app = $p['app'] ?? [];

View File

@@ -12,6 +12,9 @@ Publish retained payloads for these topics:
- `v0/ota/00/00.01/00.01.01/android_cast_00.01.01.01_sign.json`
- `v0/ota/00/00.01/00.01.01/android_cast_00.01.01.01.otapkg`
HTTP mirrors may also host `*.otabundle.zip` (manifest + sign + `package.apk` in one STORED zip).
The app uses **per-artifact MQTT topics only** — it does not download bundles over MQTT.
Example source URL in app settings:
- `mqtt://foxx.org:1883/v0/ota/channel/stable.json`

View File

@@ -7,6 +7,9 @@
"apkUrl": "https://foxx.org/v0/ota/00/00.01/00.01.00/android_cast_00.01.00.00.otapkg",
"signUrl": "https://foxx.org/v0/ota/00/00.01/00.01.00/android_cast_00.01.00.00_sign.json",
"sizeBytes": 10485760,
"bundleUrl": "https://foxx.org/v0/ota/00/00.01/00.01.00/android_cast_00.01.00.00.otabundle.zip",
"bundleSha256": "0000000000000000000000000000000000000000000000000000000000000000",
"bundleSizeBytes": 10500000,
"mandatory": false,
"releaseNotes": "Current production baseline."
}

View File

@@ -7,6 +7,9 @@
"apkUrl": "https://foxx.org/v0/ota/00/00.01/00.01.01/android_cast_00.01.01.01.otapkg",
"signUrl": "https://foxx.org/v0/ota/00/00.01/00.01.01/android_cast_00.01.01.01_sign.json",
"sizeBytes": 11534336,
"bundleUrl": "https://foxx.org/v0/ota/00/00.01/00.01.01/android_cast_00.01.01.01.otabundle.zip",
"bundleSha256": "0000000000000000000000000000000000000000000000000000000000000000",
"bundleSizeBytes": 11600000,
"mandatory": false,
"releaseNotes": "Next OTA candidate with service-based updater."
}