mirror of
https://github.com/kuhyx/wake-alarm.git
synced 2026-11-11 12:47:31 +01:00
Same pattern as todo, diet_guard_app, and workout_app: openFirebaseWithGoogle() (google_platform.dart abstracts the plugin's platform-channel dependence), isFirebaseConfigured() reading the stored session rather than the account marker alone, and the settings screen offering "Sign in with Google" ahead of the password form. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KdSp6Nbrs9xvsWkCMDN9a1
15 lines
710 B
Dart
15 lines
710 B
Dart
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:wake_alarm_sync/services/google_sign_in_backend.dart';
|
|
|
|
void main() {
|
|
test('reports whether the programmatic Google flow exists here', () {
|
|
// Android is the only platform shipping it. Asked as a platform question
|
|
// rather than of the plugin, because GoogleSignIn.supportsAuthenticate()
|
|
// itself throws UnimplementedError where no implementation is registered
|
|
// -- an Error, not an Exception, so it would escape an ordinary catch and
|
|
// take down the settings screen's build(). The test host is Linux, so
|
|
// this is false here and the password path stays visible.
|
|
expect(googleSignInSupported, isFalse);
|
|
});
|
|
}
|