mirror of
https://github.com/kuhyx/wake-alarm.git
synced 2026-11-20 16:32:23 +01:00
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (mypy, mypy, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (pylint, pylint, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (rest, , mypy,pylint,free-days-interop) (push) Waiting to run
Tests / test (push) Waiting to run
Tests / free-days-interop (push) Waiting to run
release-apk / release (APK) (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Flutter 3.50 deprecates package:flutter/material.dart, so the app moves to material_ui 1.11.0 together with sync_settings_ui 0.8.0 and github_device_auth 0.5.0 (crdt_sync 0.13.1 rides along). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
988 B
Dart
23 lines
988 B
Dart
import 'package:material_ui/material_ui.dart';
|
|
|
|
import 'package:wake_alarm_sync/main.dart';
|
|
import 'package:wake_alarm_sync/services/alarm_scheduler.dart';
|
|
|
|
/// Debug entrypoint that starts the ring exactly as a real alarm would.
|
|
///
|
|
/// Calls `ringNow`, which starts AlarmService — the service then posts its
|
|
/// full-screen intent and the system launches AlarmActivity on top. This
|
|
/// process then finishes itself, so the picker never sits in front of the
|
|
/// ring screen: it used to, and AlarmActivity's pause tore NFC reader mode
|
|
/// down with it, which is precisely the bug this probe now has to avoid
|
|
/// reintroducing.
|
|
///
|
|
/// Not part of the shipped app: `flutter build apk` uses `lib/main.dart`.
|
|
Future<void> main() async {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
await AlarmScheduler().ringNow();
|
|
// Nothing to show: the ring screen is a separate activity launched by the
|
|
// service. Rendering the picker here would cover it.
|
|
runApp(const WakeAlarmSyncApp());
|
|
}
|