From c498db53660d0ccfa0f4f61fc6f848cfdb1c241d Mon Sep 17 00:00:00 2001 From: cschlaefke Date: Mon, 2 Nov 2026 20:12:09 +0100 Subject: [PATCH 01/11] chore(supabase): add config.toml and ignore app env files Refs #31 Co-Authored-By: Claude Sonnet 5.5 --- .gitignore | 6 + supabase/.gitignore | 8 + supabase/config.toml | 422 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 436 insertions(+) create mode 100644 supabase/.gitignore create mode 100644 supabase/config.toml diff --git a/.gitignore b/.gitignore index 60ed9a6..09dff15 100644 --- a/.gitignore +++ b/.gitignore @@ -3,11 +3,17 @@ .env.* env/*.json !env/*.example.json +app/env/*.json +!app/env/*.example.json supabase/.env **/key.properties **/*.jks **/*.keystore +# Supabase CLI (lokaler Zustand) +supabase/.temp/ +supabase/.branches/ + # Claude Code – persönliche Einstellungen .claude/settings.local.json CLAUDE.local.md diff --git a/supabase/.gitignore b/supabase/.gitignore new file mode 100644 index 0000000..ad9264f --- /dev/null +++ b/supabase/.gitignore @@ -0,0 +1,8 @@ +# Supabase +.branches +.temp + +# dotenvx +.env.keys +.env.local +.env.*.local diff --git a/supabase/config.toml b/supabase/config.toml new file mode 100644 index 0000000..d6ec0ec --- /dev/null +++ b/supabase/config.toml @@ -0,0 +1,422 @@ +# For detailed configuration reference documentation, visit: +# https://supabase.com/docs/guides/local-development/cli/config +# A string used to distinguish different Supabase projects on the same host. Defaults to the +# working directory name when running `supabase init`. +project_id = "shuffle" + +[api] +enabled = true +# Port to use for the API URL. +port = 54321 +# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API +# endpoints. `public` and `graphql_public` schemas are included by default. +schemas = ["public", "graphql_public"] +# Extra schemas to add to the search_path of every request. +extra_search_path = ["public", "extensions"] +# The maximum number of rows returned from a view, table, or stored procedure. Limits payload size +# for accidental or malicious requests. +max_rows = 1000 +# Controls whether new tables, views, sequences and functions created in the `public` schema by +# `postgres` are reachable through the Data API roles (`anon`, `authenticated`, `service_role`) +# without explicit GRANTs, matching the cloud default. Set to `false` to require explicit GRANTs +# instead. Left unset, a fresh project falls back to `true`. +# auto_expose_new_tables = true + +[api.tls] +# Enable HTTPS endpoints locally using a self-signed certificate. +enabled = false +# Paths to self-signed certificate pair. +# cert_path = "../certs/my-cert.pem" +# key_path = "../certs/my-key.pem" + +[db] +# Port to use for the local database URL. +port = 54322 +# Port used by db diff command to initialize the shadow database. +shadow_port = 54320 +# Maximum amount of time to wait for health check when starting the local database. +health_timeout = "2m" +# The database major version to use. This has to be the same as your remote database's. Run `SHOW +# server_version;` on the remote database to check. +major_version = 16 +# OrioleDB version to use as the Postgres storage engine. Leave empty to use the default engine. +orioledb_version = "" + +[db.pooler] +enabled = false +# Port to use for the local connection pooler. +port = 54329 +# Specifies when a server connection can be reused by other clients. +# Configure one of the supported pooler modes: `transaction`, `session`. +pool_mode = "transaction" +# How many server connections to allow per user/database pair. +default_pool_size = 20 +# Maximum number of client connections allowed. +max_client_conn = 100 + +# [db.vault] +# secret_key = "env(SECRET_VALUE)" + +[db.migrations] +# If disabled, migrations will be skipped during a db push or reset. +enabled = true +# Specifies an ordered list of schema files, directories, or glob patterns that describe your database. +# Supports paths relative to supabase directory: "./schemas/*.sql", "./database". +schema_paths = [] + +[db.seed] +# If enabled, seeds the database after migrations during a db reset. +enabled = true +# Specifies an ordered list of seed files to load during db reset. +# Supports glob patterns relative to supabase directory: "./seeds/*.sql" +sql_paths = ["./seed.sql"] + +[db.network_restrictions] +# Enable management of network restrictions. +enabled = false +# List of IPv4 CIDR blocks allowed to connect to the database. +# Defaults to allow all IPv4 connections. Set empty array to block all IPs. +allowed_cidrs = ["0.0.0.0/0"] +# List of IPv6 CIDR blocks allowed to connect to the database. +# Defaults to allow all IPv6 connections. Set empty array to block all IPs. +allowed_cidrs_v6 = ["::/0"] + +# Uncomment to reject non-secure connections to the database. +# [db.ssl_enforcement] +# enabled = true + +[realtime] +enabled = true +# Bind realtime via either IPv4 or IPv6. (default: IPv4) +# ip_version = "IPv6" +# The maximum length in bytes of HTTP request headers. (default: 4096) +# max_header_length = 4096 + +[studio] +enabled = true +# Port to use for Supabase Studio. +port = 54323 +# External URL of the API server that frontend connects to. +api_url = "http://127.0.0.1" +# OpenAI API Key to use for Supabase AI in the Supabase Studio. +openai_api_key = "env(OPENAI_API_KEY)" + +# Email testing server. Emails sent with the local dev setup are not actually sent - rather, they +# are monitored, and you can view the emails that would have been sent from the web interface. +[local_smtp] +enabled = true +# Port to use for the email testing server web interface. +port = 54324 +# Uncomment to expose additional ports for testing user applications that send emails. +# smtp_port = 54325 +# pop3_port = 54326 +# admin_email = "admin@email.com" +# sender_name = "Admin" + +[storage] +enabled = true +# The maximum file size allowed (e.g. "5MB", "500KB"). +file_size_limit = "50MiB" + +# Uncomment to configure local storage buckets +# [storage.buckets.images] +# public = false +# file_size_limit = "50MiB" +# allowed_mime_types = ["image/png", "image/jpeg"] +# objects_path = "./images" + +# Allow connections via S3 compatible clients +[storage.s3_protocol] +enabled = true + +# Image transformation API is available to Supabase Pro plan. +# [storage.image_transformation] +# enabled = true + +# Store analytical data in S3 for running ETL jobs over Iceberg Catalog +# This feature is only available on the hosted platform. +[storage.analytics] +enabled = false +max_namespaces = 5 +max_tables = 10 +max_catalogs = 2 + +# Analytics Buckets is available to Supabase Pro plan. +# [storage.analytics.buckets.my-warehouse] + +# Store vector embeddings in S3 for large and durable datasets +[storage.vector] +enabled = true +max_buckets = 10 +max_indexes = 5 + +# Vector Buckets is available to Supabase Pro plan. +# [storage.vector.buckets.documents-openai] + +[auth] +enabled = true +# The base URL of your website. Used as an allow-list for redirects and for constructing URLs used +# in emails. +site_url = "http://localhost:3000" +# The public URL that Auth serves on. Defaults to the API external URL with `/auth/v1` appended. +# external_url = "" +# A list of *exact* URLs that auth providers are permitted to redirect to post authentication. +additional_redirect_urls = ["http://localhost:3000"] +# How long tokens are valid for, in seconds. Defaults to 3600 (1 hour), maximum 604,800 (1 week). +jwt_expiry = 3600 +# JWT issuer URL. If not set, defaults to auth.external_url. +# jwt_issuer = "" +# Path to JWT signing key. DO NOT commit your signing keys file to git. +# signing_keys_path = "./signing_keys.json" +# If disabled, the refresh token will never expire. +enable_refresh_token_rotation = true +# Allows refresh tokens to be reused after expiry, up to the specified interval in seconds. +# Requires enable_refresh_token_rotation = true. +refresh_token_reuse_interval = 10 +# Allow/disallow new user signups to your project. Existing users can still sign in. +enable_signup = true +# Allow/disallow anonymous sign-ins to your project. +enable_anonymous_sign_ins = false +# Allow/disallow testing manual linking of accounts +enable_manual_linking = false +# Passwords shorter than this value will be rejected as weak. Minimum 6, recommended 8 or more. +minimum_password_length = 6 +# Passwords that do not meet the following requirements will be rejected as weak. Supported values +# are: `letters_digits`, `lower_upper_letters_digits`, `lower_upper_letters_digits_symbols` +password_requirements = "" + +# Configure passkey sign-ins. +# [auth.passkey] +# enabled = false + +# Configure WebAuthn relying party settings (required when passkey is enabled). +# [auth.webauthn] +# rp_display_name = "Supabase" +# rp_id = "localhost" +# rp_origins = ["http://127.0.0.1:3000"] + +[auth.rate_limit] +# Number of emails that can be sent per hour. Requires auth.email.smtp to be enabled. +email_sent = 2 +# Number of SMS messages that can be sent per hour. Requires auth.sms to be enabled. +sms_sent = 30 +# Number of anonymous sign-ins that can be made per hour per IP address. Requires enable_anonymous_sign_ins = true. +anonymous_users = 30 +# Number of sessions that can be refreshed in a 5 minute interval per IP address. +token_refresh = 150 +# Number of sign up and sign-in requests that can be made in a 5 minute interval per IP address (excludes anonymous users). +sign_in_sign_ups = 30 +# Number of OTP / Magic link verifications that can be made in a 5 minute interval per IP address. +token_verifications = 30 +# Number of Web3 logins that can be made in a 5 minute interval per IP address. +web3 = 30 + +# Configure one of the supported captcha providers: `hcaptcha`, `turnstile`. +# [auth.captcha] +# enabled = true +# provider = "hcaptcha" +# secret = "" + +[auth.email] +# Allow/disallow the email provider. When false, users can't sign up or sign in with email. +# To block new signups only, set enable_signup = false under [auth] instead. +enabled = true +# If enabled, a user will be required to confirm any email change on both the old, and new email +# addresses. If disabled, only the new email is required to confirm. +double_confirm_changes = true +# If enabled, users need to confirm their email address before signing in. +enable_confirmations = false +# If enabled, users will need to reauthenticate or have logged in recently to change their password. +secure_password_change = false +# Controls the minimum amount of time that must pass before sending another signup confirmation or password reset email. +max_frequency = "1s" +# Number of characters used in the email OTP. +otp_length = 6 +# Number of seconds before the email OTP expires (defaults to 1 hour). +otp_expiry = 3600 + +# Use a production-ready SMTP server +# [auth.email.smtp] +# enabled = true +# host = "smtp.sendgrid.net" +# port = 587 +# user = "apikey" +# pass = "env(SENDGRID_API_KEY)" +# admin_email = "admin@email.com" +# sender_name = "Admin" + +# Uncomment to customize email template +# [auth.email.template.invite] +# subject = "You have been invited" +# content_path = "./supabase/templates/invite.html" + +# Uncomment to customize notification email template +# [auth.email.notification.password_changed] +# enabled = true +# subject = "Your password has been changed" +# content_path = "./supabase/templates/password_changed_notification.html" + +[auth.sms] +# Allow/disallow the phone provider. When false, users can't sign up or sign in with SMS. +# To block new signups only, set enable_signup = false under [auth] instead. +enabled = false +# If enabled, users need to confirm their phone number before signing in. +enable_confirmations = false +# Template for sending OTP to users +template = "Your code is {{ .Code }}" +# Controls the minimum amount of time that must pass before sending another sms otp. +max_frequency = "5s" + +# Use pre-defined map of phone number to OTP for testing. +# Keys are the phone number with country code and without the + prefix. +# [auth.sms.test_otp] +# 14152127777 = "123456" + +# Configure logged in session timeouts. +# [auth.sessions] +# Force log out after the specified duration. +# timebox = "24h" +# Force log out if the user has been inactive longer than the specified duration. +# inactivity_timeout = "8h" + +# This hook runs before a new user is created and allows developers to reject the request based on the incoming user object. +# [auth.hook.before_user_created] +# enabled = true +# uri = "pg-functions://postgres/auth/before-user-created-hook" + +# This hook runs before a token is issued and allows you to add additional claims based on the authentication method used. +# [auth.hook.custom_access_token] +# enabled = true +# uri = "pg-functions:////" + +# Configure one of the supported SMS providers: `twilio`, `twilio_verify`, `messagebird`, `textlocal`, `vonage`. +[auth.sms.twilio] +enabled = false +account_sid = "" +message_service_sid = "" +# DO NOT commit your Twilio auth token to git. Use environment variable substitution instead: +auth_token = "env(SUPABASE_AUTH_SMS_TWILIO_AUTH_TOKEN)" + +# Multi-factor-authentication is available to Supabase Pro plan. +[auth.mfa] +# Control how many MFA factors can be enrolled at once per user. +max_enrolled_factors = 10 + +# Control MFA via App Authenticator (TOTP) +[auth.mfa.totp] +enroll_enabled = false +verify_enabled = false + +# Configure MFA via Phone Messaging +[auth.mfa.phone] +enroll_enabled = false +verify_enabled = false +otp_length = 6 +template = "Your code is {{ .Code }}" +max_frequency = "5s" + +# Configure MFA via WebAuthn +# [auth.mfa.web_authn] +# enroll_enabled = true +# verify_enabled = true + +# Use an external OAuth provider. The full list of providers are: `apple`, `azure`, `bitbucket`, +# `discord`, `facebook`, `github`, `gitlab`, `google`, `keycloak`, `linkedin_oidc`, `notion`, `twitch`, +# `twitter`, `x`, `slack_oidc`, `spotify`, `workos`, `zoom`. +[auth.external.apple] +enabled = false +client_id = "" +# DO NOT commit your OAuth provider secret to git. Use environment variable substitution instead: +secret = "env(SUPABASE_AUTH_EXTERNAL_APPLE_SECRET)" +# Overrides the default auth callback URL derived from auth.external_url. +redirect_uri = "" +# Overrides the default auth provider URL. Used to support self-hosted gitlab, single-tenant Azure, +# or any other third-party OIDC providers. +url = "" +# If enabled, the nonce check will be skipped. Required for local sign in with Google auth. +skip_nonce_check = false +# If enabled, it will allow the user to successfully authenticate when the provider does not return an email address. +email_optional = false + +# Allow Solana wallet holders to sign in to your project via the Sign in with Solana (SIWS) standard. +# You can configure "web3" rate limit in the [auth.rate_limit] section and set up [auth.captcha] if self-hosting. +[auth.web3.solana] +enabled = false + +# Allow Ethereum wallet holders to sign in to your project via the Sign in with Ethereum (SIWE, EIP-4361) standard. +# [auth.web3.ethereum] +# enabled = true + +# Use Firebase Auth as a third-party provider alongside Supabase Auth. +[auth.third_party.firebase] +enabled = false +# project_id = "my-firebase-project" + +# Use Auth0 as a third-party provider alongside Supabase Auth. +[auth.third_party.auth0] +enabled = false +# tenant = "my-auth0-tenant" +# tenant_region = "us" + +# Use AWS Cognito (Amplify) as a third-party provider alongside Supabase Auth. +[auth.third_party.aws_cognito] +enabled = false +# user_pool_id = "my-user-pool-id" +# user_pool_region = "us-east-1" + +# Use Clerk as a third-party provider alongside Supabase Auth. +[auth.third_party.clerk] +enabled = false +# Obtain from https://clerk.com/setup/supabase +# domain = "example.clerk.accounts.dev" + +# OAuth server configuration +[auth.oauth_server] +# Enable OAuth server functionality +enabled = false +# Path for OAuth consent flow UI +authorization_url_path = "/oauth/consent" +# Allow dynamic client registration +allow_dynamic_registration = false + +[edge_runtime] +enabled = true +# Supported request policies: `oneshot`, `per_worker`. +# `per_worker` (default) — enables hot reload during local development. +# `oneshot` — fallback mode if hot reload causes issues (e.g. in large repos or with symlinks). +policy = "per_worker" +# Port to attach the Chrome inspector for debugging edge functions. +inspector_port = 8083 +# The Deno major version to use. +deno_version = 2 + +# [edge_runtime.secrets] +# secret_key = "env(SECRET_VALUE)" + +[analytics] +enabled = true +port = 54327 +# Configure one of the supported backends: `postgres`, `bigquery`. +backend = "postgres" + +# Experimental features may be deprecated any time +[experimental] +# Configures S3 bucket URL, eg. .s3-.amazonaws.com +s3_host = "env(S3_HOST)" +# Configures S3 bucket region, eg. us-east-1 +s3_region = "env(S3_REGION)" +# Configures AWS_ACCESS_KEY_ID for S3 bucket +s3_access_key = "env(S3_ACCESS_KEY)" +# Configures AWS_SECRET_ACCESS_KEY for S3 bucket +s3_secret_key = "env(S3_SECRET_KEY)" + +# pg-delta is the schema diff engine for db diff / db pull. +# Set enabled = false to fall back to the legacy migra engine. +[experimental.pgdelta] +enabled = true +# Directory under `supabase/` where declarative files are written. +# declarative_schema_path = "./schemas" +# JSON string passed through to pg-delta SQL formatting. When omitted, SQL is +# formatted with uppercase keywords, indent 2, max width 180, trailing commas, +# and column/key alignment. Set to "null" to emit raw, unformatted SQL. +# format_options = "{\"keywordCase\":\"upper\",\"indent\":2,\"maxWidth\":180,\"commaStyle\":\"trailing\"}" -- 2.45.2 From e5df79ee0a2a2fa9d3eed0c851fafd76dc41ba55 Mon Sep 17 00:00:00 2001 From: cschlaefke Date: Mon, 2 Nov 2026 20:17:24 +0100 Subject: [PATCH 02/11] feat(app): add Flutter scaffold with config, logging, routing and l10n Refs #31 Co-Authored-By: Claude Sonnet 5.5 --- app/.gitignore | 48 + app/.metadata | 36 + app/README.md | 42 + app/analysis_options.yaml | 37 + app/android/.gitignore | 14 + app/android/app/build.gradle.kts | 49 + app/android/app/src/debug/AndroidManifest.xml | 7 + app/android/app/src/main/AndroidManifest.xml | 45 + .../work/cshomelabs/shuffle/MainActivity.kt | 5 + .../res/drawable-v21/launch_background.xml | 12 + .../main/res/drawable/launch_background.xml | 12 + .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 544 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 442 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 721 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 1031 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 1443 bytes .../app/src/main/res/values-night/styles.xml | 18 + .../app/src/main/res/values/styles.xml | 18 + .../app/src/profile/AndroidManifest.xml | 7 + app/android/build.gradle.kts | 24 + app/android/gradle.properties | 6 + .../gradle/wrapper/gradle-wrapper.properties | 5 + app/android/settings.gradle.kts | 26 + app/env/ci.example.json | 9 + app/env/dev.example.json | 9 + app/ios/.gitignore | 34 + app/ios/Flutter/AppFrameworkInfo.plist | 24 + app/ios/Flutter/Debug.xcconfig | 1 + app/ios/Flutter/Release.xcconfig | 1 + app/ios/Runner.xcodeproj/project.pbxproj | 650 ++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../xcshareddata/WorkspaceSettings.xcsettings | 8 + .../xcshareddata/xcschemes/Runner.xcscheme | 119 +++ .../contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../xcshareddata/WorkspaceSettings.xcsettings | 8 + app/ios/Runner/AppDelegate.swift | 16 + .../AppIcon.appiconset/Contents.json | 122 +++ .../Icon-App-1024x1024@1x.png | Bin 0 -> 10932 bytes .../AppIcon.appiconset/Icon-App-20x20@1x.png | Bin 0 -> 295 bytes .../AppIcon.appiconset/Icon-App-20x20@2x.png | Bin 0 -> 406 bytes .../AppIcon.appiconset/Icon-App-20x20@3x.png | Bin 0 -> 450 bytes .../AppIcon.appiconset/Icon-App-29x29@1x.png | Bin 0 -> 282 bytes .../AppIcon.appiconset/Icon-App-29x29@2x.png | Bin 0 -> 462 bytes .../AppIcon.appiconset/Icon-App-29x29@3x.png | Bin 0 -> 704 bytes .../AppIcon.appiconset/Icon-App-40x40@1x.png | Bin 0 -> 406 bytes .../AppIcon.appiconset/Icon-App-40x40@2x.png | Bin 0 -> 586 bytes .../AppIcon.appiconset/Icon-App-40x40@3x.png | Bin 0 -> 862 bytes .../AppIcon.appiconset/Icon-App-60x60@2x.png | Bin 0 -> 862 bytes .../AppIcon.appiconset/Icon-App-60x60@3x.png | Bin 0 -> 1674 bytes .../AppIcon.appiconset/Icon-App-76x76@1x.png | Bin 0 -> 762 bytes .../AppIcon.appiconset/Icon-App-76x76@2x.png | Bin 0 -> 1226 bytes .../Icon-App-83.5x83.5@2x.png | Bin 0 -> 1418 bytes .../LaunchImage.imageset/Contents.json | 23 + .../LaunchImage.imageset/LaunchImage.png | Bin 0 -> 68 bytes .../LaunchImage.imageset/LaunchImage@2x.png | Bin 0 -> 68 bytes .../LaunchImage.imageset/LaunchImage@3x.png | Bin 0 -> 68 bytes .../LaunchImage.imageset/README.md | 5 + .../Runner/Base.lproj/LaunchScreen.storyboard | 37 + app/ios/Runner/Base.lproj/Main.storyboard | 26 + app/ios/Runner/Info.plist | 70 ++ app/ios/Runner/Runner-Bridging-Header.h | 1 + app/ios/Runner/SceneDelegate.swift | 6 + app/ios/RunnerTests/RunnerTests.swift | 12 + app/l10n.yaml | 5 + app/lib/app.dart | 29 + app/lib/core/config/app_config.dart | 103 ++ app/lib/core/config/app_config_provider.dart | 8 + .../core/config/app_config_provider.g.dart | 55 + app/lib/core/error/global_error_handler.dart | 24 + app/lib/core/l10n/app_locale.dart | 51 + app/lib/core/l10n/app_locale.g.dart | 74 ++ app/lib/core/l10n/l10n.dart | 8 + app/lib/core/logging/app_logger.dart | 41 + app/lib/core/result/result.dart | 40 + app/lib/core/routing/app_router.dart | 28 + app/lib/core/routing/app_router.g.dart | 51 + app/lib/core/routing/app_routes.dart | 4 + app/lib/core/routing/not_found_screen.dart | 35 + app/lib/core/routing/redirect_source.dart | 33 + app/lib/core/routing/redirect_source.g.dart | 51 + app/lib/core/routing/url_strategy.dart | 12 + .../supabase/supabase_client_provider.dart | 9 + .../supabase/supabase_client_provider.g.dart | 58 + app/lib/core/theme/app_theme.dart | 10 + .../home/presentation/home_screen.dart | 26 + app/lib/l10n/app_de.arb | 8 + app/lib/l10n/app_en.arb | 23 + app/lib/l10n/app_localizations.dart | 164 +++ app/lib/l10n/app_localizations_de.dart | 28 + app/lib/l10n/app_localizations_en.dart | 27 + app/lib/main.dart | 23 + app/pubspec.lock | 999 ++++++++++++++++++ app/pubspec.yaml | 39 + app/test/app_test.dart | 33 + app/test/core/config/app_config_test.dart | 65 ++ app/test/core/l10n/app_locale_test.dart | 42 + app/test/core/logging/app_logger_test.dart | 20 + app/test/core/result/result_test.dart | 22 + app/test/core/routing/app_router_test.dart | 61 ++ app/web/favicon.png | Bin 0 -> 917 bytes app/web/icons/Icon-192.png | Bin 0 -> 5292 bytes app/web/icons/Icon-512.png | Bin 0 -> 8252 bytes app/web/icons/Icon-maskable-192.png | Bin 0 -> 5594 bytes app/web/icons/Icon-maskable-512.png | Bin 0 -> 20998 bytes app/web/index.html | 46 + app/web/manifest.json | 35 + 108 files changed, 4012 insertions(+) create mode 100644 app/.gitignore create mode 100644 app/.metadata create mode 100644 app/README.md create mode 100644 app/analysis_options.yaml create mode 100644 app/android/.gitignore create mode 100644 app/android/app/build.gradle.kts create mode 100644 app/android/app/src/debug/AndroidManifest.xml create mode 100644 app/android/app/src/main/AndroidManifest.xml create mode 100644 app/android/app/src/main/kotlin/work/cshomelabs/shuffle/MainActivity.kt create mode 100644 app/android/app/src/main/res/drawable-v21/launch_background.xml create mode 100644 app/android/app/src/main/res/drawable/launch_background.xml create mode 100644 app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 app/android/app/src/main/res/values-night/styles.xml create mode 100644 app/android/app/src/main/res/values/styles.xml create mode 100644 app/android/app/src/profile/AndroidManifest.xml create mode 100644 app/android/build.gradle.kts create mode 100644 app/android/gradle.properties create mode 100644 app/android/gradle/wrapper/gradle-wrapper.properties create mode 100644 app/android/settings.gradle.kts create mode 100644 app/env/ci.example.json create mode 100644 app/env/dev.example.json create mode 100644 app/ios/.gitignore create mode 100644 app/ios/Flutter/AppFrameworkInfo.plist create mode 100644 app/ios/Flutter/Debug.xcconfig create mode 100644 app/ios/Flutter/Release.xcconfig create mode 100644 app/ios/Runner.xcodeproj/project.pbxproj create mode 100644 app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings create mode 100644 app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme create mode 100644 app/ios/Runner.xcworkspace/contents.xcworkspacedata create mode 100644 app/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 app/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings create mode 100644 app/ios/Runner/AppDelegate.swift create mode 100644 app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png create mode 100644 app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png create mode 100644 app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png create mode 100644 app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png create mode 100644 app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png create mode 100644 app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png create mode 100644 app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png create mode 100644 app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png create mode 100644 app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png create mode 100644 app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png create mode 100644 app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png create mode 100644 app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png create mode 100644 app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png create mode 100644 app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png create mode 100644 app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png create mode 100644 app/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json create mode 100644 app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png create mode 100644 app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png create mode 100644 app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png create mode 100644 app/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md create mode 100644 app/ios/Runner/Base.lproj/LaunchScreen.storyboard create mode 100644 app/ios/Runner/Base.lproj/Main.storyboard create mode 100644 app/ios/Runner/Info.plist create mode 100644 app/ios/Runner/Runner-Bridging-Header.h create mode 100644 app/ios/Runner/SceneDelegate.swift create mode 100644 app/ios/RunnerTests/RunnerTests.swift create mode 100644 app/l10n.yaml create mode 100644 app/lib/app.dart create mode 100644 app/lib/core/config/app_config.dart create mode 100644 app/lib/core/config/app_config_provider.dart create mode 100644 app/lib/core/config/app_config_provider.g.dart create mode 100644 app/lib/core/error/global_error_handler.dart create mode 100644 app/lib/core/l10n/app_locale.dart create mode 100644 app/lib/core/l10n/app_locale.g.dart create mode 100644 app/lib/core/l10n/l10n.dart create mode 100644 app/lib/core/logging/app_logger.dart create mode 100644 app/lib/core/result/result.dart create mode 100644 app/lib/core/routing/app_router.dart create mode 100644 app/lib/core/routing/app_router.g.dart create mode 100644 app/lib/core/routing/app_routes.dart create mode 100644 app/lib/core/routing/not_found_screen.dart create mode 100644 app/lib/core/routing/redirect_source.dart create mode 100644 app/lib/core/routing/redirect_source.g.dart create mode 100644 app/lib/core/routing/url_strategy.dart create mode 100644 app/lib/core/supabase/supabase_client_provider.dart create mode 100644 app/lib/core/supabase/supabase_client_provider.g.dart create mode 100644 app/lib/core/theme/app_theme.dart create mode 100644 app/lib/features/home/presentation/home_screen.dart create mode 100644 app/lib/l10n/app_de.arb create mode 100644 app/lib/l10n/app_en.arb create mode 100644 app/lib/l10n/app_localizations.dart create mode 100644 app/lib/l10n/app_localizations_de.dart create mode 100644 app/lib/l10n/app_localizations_en.dart create mode 100644 app/lib/main.dart create mode 100644 app/pubspec.lock create mode 100644 app/pubspec.yaml create mode 100644 app/test/app_test.dart create mode 100644 app/test/core/config/app_config_test.dart create mode 100644 app/test/core/l10n/app_locale_test.dart create mode 100644 app/test/core/logging/app_logger_test.dart create mode 100644 app/test/core/result/result_test.dart create mode 100644 app/test/core/routing/app_router_test.dart create mode 100644 app/web/favicon.png create mode 100644 app/web/icons/Icon-192.png create mode 100644 app/web/icons/Icon-512.png create mode 100644 app/web/icons/Icon-maskable-192.png create mode 100644 app/web/icons/Icon-maskable-512.png create mode 100644 app/web/index.html create mode 100644 app/web/manifest.json diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000..79f7eca --- /dev/null +++ b/app/.gitignore @@ -0,0 +1,48 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.build/ +.buildlog/ +.history +.svn/ +.swiftpm/ +migrate_working_dir/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +**/doc/api/ +**/ios/Flutter/.last_build_id +.dart_tool/ +.flutter-plugins-dependencies +.pub-cache/ +.pub/ +/build/ +/coverage/ + +# Symbolication related +app.*.symbols + +# Obfuscation related +app.*.map.json + +# Android Studio will place build artifacts here +/android/app/debug +/android/app/profile +/android/app/release + +# Widget Preview related +.widget_preview/ diff --git a/app/.metadata b/app/.metadata new file mode 100644 index 0000000..96c8bd6 --- /dev/null +++ b/app/.metadata @@ -0,0 +1,36 @@ +# This file tracks properties of this Flutter project. +# Used by Flutter tool to assess capabilities and perform upgrades etc. +# +# This file should be version controlled and should not be manually edited. + +version: + revision: "c197ca5199e9ee5661e865596c9c07294dfab51c" + channel: "stable" + +project_type: app + +# Tracks metadata for the flutter migrate command +migration: + platforms: + - platform: root + create_revision: c197ca5199e9ee5661e865596c9c07294dfab51c + base_revision: c197ca5199e9ee5661e865596c9c07294dfab51c + - platform: android + create_revision: c197ca5199e9ee5661e865596c9c07294dfab51c + base_revision: c197ca5199e9ee5661e865596c9c07294dfab51c + - platform: ios + create_revision: c197ca5199e9ee5661e865596c9c07294dfab51c + base_revision: c197ca5199e9ee5661e865596c9c07294dfab51c + - platform: web + create_revision: c197ca5199e9ee5661e865596c9c07294dfab51c + base_revision: c197ca5199e9ee5661e865596c9c07294dfab51c + + # User provided section + + # List of Local paths (relative to this file) that should be + # ignored by the migrate tool. + # + # Files that are not part of the templates will be ignored by default. + unmanaged_files: + - 'lib/main.dart' + - 'ios/Runner.xcodeproj/project.pbxproj' diff --git a/app/README.md b/app/README.md new file mode 100644 index 0000000..9ffb89e --- /dev/null +++ b/app/README.md @@ -0,0 +1,42 @@ +# Shuffle – Flutter-App + +Brettspiel-App für iOS, Android und Web (eine Codebasis). Architektur und Konventionen: `../CLAUDE.md`, `../docs/adr/`. + +## Struktur + +``` +lib/ + core/ config, logging, error, result, supabase, routing, l10n, theme + features/ /{data,domain,presentation} + l10n/ app_de.arb, app_en.arb (+ generierte AppLocalizations) +test/ Spiegel von lib/ +env/ *.example.json (echte Umgebungsdateien sind git-ignoriert) +``` + +## Starten + +```bash +cd app +flutter pub get +cp env/dev.example.json env/dev.json # Werte anpassen +dart run build_runner build --delete-conflicting-outputs +flutter run -d chrome --dart-define-from-file=env/dev.json +``` + +Pflichtwerte: `SUPABASE_URL`, `SUPABASE_ANON_KEY` (der Start bricht ohne sie ab). +Optional mit Platzhalter: `SITE_URL`, `LEGAL_PRIVACY_URL`, `LEGAL_TERMS_URL`, `TERMS_VERSION`, `APP_ENV`. + +## Platzhalter-Identität (vor dem Store-Release festlegen) + +| Was | Wo ändern | +|---|---| +| Bundle-/Application-ID `work.cshomelabs.shuffle` | `android/app/build.gradle.kts` (`namespace`, `applicationId`), Kotlin-Package unter `android/app/src/main/kotlin/`, `ios/Runner.xcodeproj/project.pbxproj` (`PRODUCT_BUNDLE_IDENTIFIER`) | +| App-Name „Shuffle“ | `android/app/src/main/AndroidManifest.xml`, `ios/Runner/Info.plist`, `web/index.html`, `web/manifest.json`, l10n-Schlüssel `appTitle` | +| Web-Domain, Rechtstexte, Version der Rechtstexte | `env/*.json` (`SITE_URL`, `LEGAL_*`, `TERMS_VERSION`) | + +Die Bundle-ID lässt sich nach der ersten Store-Veröffentlichung nicht mehr ändern. + +## Hinweise + +- Generierte Dateien (`*.g.dart`, `lib/l10n/app_localizations*.dart`) werden mit eingecheckt; nach Änderungen an `@riverpod`-Code oder ARB-Dateien neu erzeugen (`build_runner`, `flutter gen-l10n`). +- Web-URLs ohne `#` (`usePathUrlStrategy`): der Webserver braucht eine SPA-Rewrite-Regel (alle Pfade auf `index.html`). diff --git a/app/analysis_options.yaml b/app/analysis_options.yaml new file mode 100644 index 0000000..47f51d6 --- /dev/null +++ b/app/analysis_options.yaml @@ -0,0 +1,37 @@ +include: package:flutter_lints/flutter.yaml + +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - "**/*.g.dart" + - "**/*.freezed.dart" + - lib/l10n/app_localizations*.dart + language: + strict-casts: true + strict-inference: true + strict-raw-types: true + errors: + missing_required_param: error + missing_return: error + todo: ignore + +linter: + rules: + avoid_print: true + always_declare_return_types: true + prefer_single_quotes: true + prefer_const_constructors: true + prefer_const_declarations: true + prefer_final_locals: true + prefer_final_in_for_each: true + unawaited_futures: true + require_trailing_commas: true + sort_pub_dependencies: false + directives_ordering: true + avoid_dynamic_calls: true + use_super_parameters: true + cancel_subscriptions: true + close_sinks: true diff --git a/app/android/.gitignore b/app/android/.gitignore new file mode 100644 index 0000000..be3943c --- /dev/null +++ b/app/android/.gitignore @@ -0,0 +1,14 @@ +gradle-wrapper.jar +/.gradle +/captures/ +/gradlew +/gradlew.bat +/local.properties +GeneratedPluginRegistrant.java +.cxx/ + +# Remember to never publicly share your keystore. +# See https://flutter.dev/to/reference-keystore +key.properties +**/*.keystore +**/*.jks diff --git a/app/android/app/build.gradle.kts b/app/android/app/build.gradle.kts new file mode 100644 index 0000000..38afcf1 --- /dev/null +++ b/app/android/app/build.gradle.kts @@ -0,0 +1,49 @@ +plugins { + id("com.android.application") + // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. + id("dev.flutter.flutter-gradle-plugin") +} + +android { + namespace = "work.cshomelabs.shuffle" + compileSdk = flutter.compileSdkVersion + ndkVersion = flutter.ndkVersion + + compileOptions { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 + } + + defaultConfig { + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). + applicationId = "work.cshomelabs.shuffle" + // You can update the following values to match your application needs. + // For more information, see: https://flutter.dev/to/review-gradle-config. + minSdk = flutter.minSdkVersion + targetSdk = flutter.targetSdkVersion + // Uses the version code from pubspec.yaml. When using split APKs, 1000 * ABI_VERSION + // is added automatically by Flutter. (https://developer.android.com/studio/build/configure-apk-splits#configure-APK-versions) + // You can force using the value of versionCode by specifying the `-P force-version-code-ignoring-abi=true` + // flag during build. + versionCode = flutter.versionCode + versionName = flutter.versionName + } + + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig = signingConfigs.getByName("debug") + } + } +} + +kotlin { + compilerOptions { + jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17 + } +} + +flutter { + source = "../.." +} diff --git a/app/android/app/src/debug/AndroidManifest.xml b/app/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 0000000..399f698 --- /dev/null +++ b/app/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/app/android/app/src/main/AndroidManifest.xml b/app/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..7ab87d7 --- /dev/null +++ b/app/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/app/android/app/src/main/kotlin/work/cshomelabs/shuffle/MainActivity.kt b/app/android/app/src/main/kotlin/work/cshomelabs/shuffle/MainActivity.kt new file mode 100644 index 0000000..3ef325a --- /dev/null +++ b/app/android/app/src/main/kotlin/work/cshomelabs/shuffle/MainActivity.kt @@ -0,0 +1,5 @@ +package work.cshomelabs.shuffle + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity : FlutterActivity() diff --git a/app/android/app/src/main/res/drawable-v21/launch_background.xml b/app/android/app/src/main/res/drawable-v21/launch_background.xml new file mode 100644 index 0000000..f74085f --- /dev/null +++ b/app/android/app/src/main/res/drawable-v21/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/app/android/app/src/main/res/drawable/launch_background.xml b/app/android/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 0000000..304732f --- /dev/null +++ b/app/android/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..db77bb4b7b0906d62b1847e87f15cdcacf6a4f29 GIT binary patch literal 544 zcmeAS@N?(olHy`uVBq!ia0vp^9w5xY3?!3`olAj~WQl7;NpOBzNqJ&XDuZK6ep0G} zXKrG8YEWuoN@d~6R2!h8bpbvhu0Wd6uZuB!w&u2PAxD2eNXD>P5D~Wn-+_Wa#27Xc zC?Zj|6r#X(-D3u$NCt}(Ms06KgJ4FxJVv{GM)!I~&n8Bnc94O7-Hd)cjDZswgC;Qs zO=b+9!WcT8F?0rF7!Uys2bs@gozCP?z~o%U|N3vA*22NaGQG zlg@K`O_XuxvZ&Ks^m&R!`&1=spLvfx7oGDKDwpwW`#iqdw@AL`7MR}m`rwr|mZgU`8P7SBkL78fFf!WnuYWm$5Z0 zNXhDbCv&49sM544K|?c)WrFfiZvCi9h0O)B3Pgg&ebxsLQ05GG~ AQ2+n{ literal 0 HcmV?d00001 diff --git a/app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..17987b79bb8a35cc66c3c1fd44f5a5526c1b78be GIT binary patch literal 442 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA3?vioaBc-sk|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*D5Xx&nMcT!A!W`0S9QKQy;}1Cl^CgaH=;G9cpY;r$Q>i*pfB zP2drbID<_#qf;rPZx^FqH)F_D#*k@@q03KywUtLX8Ua?`H+NMzkczFPK3lFz@i_kW%1NOn0|D2I9n9wzH8m|-tHjsw|9>@K=iMBhxvkv6m8Y-l zytQ?X=U+MF$@3 zt`~i=@j|6y)RWMK--}M|=T`o&^Ni>IoWKHEbBXz7?A@mgWoL>!*SXo`SZH-*HSdS+ yn*9;$7;m`l>wYBC5bq;=U}IMqLzqbYCidGC!)_gkIk_C@Uy!y&wkt5C($~2D>~)O*cj@FGjOCM)M>_ixfudOh)?xMu#Fs z#}Y=@YDTwOM)x{K_j*Q;dPdJ?Mz0n|pLRx{4n|)f>SXlmV)XB04CrSJn#dS5nK2lM zrZ9#~WelCp7&e13Y$jvaEXHskn$2V!!DN-nWS__6T*l;H&Fopn?A6HZ-6WRLFP=R` zqG+CE#d4|IbyAI+rJJ`&x9*T`+a=p|0O(+s{UBcyZdkhj=yS1>AirP+0R;mf2uMgM zC}@~JfByORAh4SyRgi&!(cja>F(l*O+nd+@4m$|6K6KDn_&uvCpV23&>G9HJp{xgg zoq1^2_p9@|WEo z*X_Uko@K)qYYv~>43eQGMdbiGbo>E~Q& zrYBH{QP^@Sti!`2)uG{irBBq@y*$B zi#&(U-*=fp74j)RyIw49+0MRPMRU)+a2r*PJ$L5roHt2$UjExCTZSbq%V!HeS7J$N zdG@vOZB4v_lF7Plrx+hxo7(fCV&}fHq)$ literal 0 HcmV?d00001 diff --git a/app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..d5f1c8d34e7a88e3f88bea192c3a370d44689c3c GIT binary patch literal 1031 zcmeAS@N?(olHy`uVBq!ia0vp^6F``Q8Ax83A=Cw=BuiW)N`mv#O3D+9QW+dm@{>{( zJaZG%Q-e|yQz{EjrrIztFa`(sgt!6~Yi|1%a`XoT0ojZ}lNrNjb9xjc(B0U1_% zz5^97Xt*%oq$rQy4?0GKNfJ44uvxI)gC`h-NZ|&0-7(qS@?b!5r36oQ}zyZrNO3 zMO=Or+<~>+A&uN&E!^Sl+>xE!QC-|oJv`ApDhqC^EWD|@=#J`=d#Xzxs4ah}w&Jnc z$|q_opQ^2TrnVZ0o~wh<3t%W&flvYGe#$xqda2bR_R zvPYgMcHgjZ5nSA^lJr%;<&0do;O^tDDh~=pIxA#coaCY>&N%M2^tq^U%3DB@ynvKo}b?yu-bFc-u0JHzced$sg7S3zqI(2 z#Km{dPr7I=pQ5>FuK#)QwK?Y`E`B?nP+}U)I#c1+FM*1kNvWG|a(TpksZQ3B@sD~b zpQ2)*V*TdwjFOtHvV|;OsiDqHi=6%)o4b!)x$)%9pGTsE z-JL={-Ffv+T87W(Xpooq<`r*VzWQcgBN$$`u}f>-ZQI1BB8ykN*=e4rIsJx9>z}*o zo~|9I;xof literal 0 HcmV?d00001 diff --git a/app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..4d6372eebdb28e45604e46eeda8dd24651419bc0 GIT binary patch literal 1443 zcmb`G{WsKk6vsdJTdFg%tJav9_E4vzrOaqkWF|A724Nly!y+?N9`YV6wZ}5(X(D_N(?!*n3`|_r0Hc?=PQw&*vnU?QTFY zB_MsH|!j$PP;I}?dppoE_gA(4uc!jV&0!l7_;&p2^pxNo>PEcNJv za5_RT$o2Mf!<+r?&EbHH6nMoTsDOa;mN(wv8RNsHpG)`^ymG-S5By8=l9iVXzN_eG%Xg2@Xeq76tTZ*dGh~Lo9vl;Zfs+W#BydUw zCkZ$o1LqWQO$FC9aKlLl*7x9^0q%0}$OMlp@Kk_jHXOjofdePND+j!A{q!8~Jn+s3 z?~~w@4?egS02}8NuulUA=L~QQfm;Mz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y%LKEm%yvpyTP z(1P?z~7YxD~Rf<(a@_y` literal 0 HcmV?d00001 diff --git a/app/android/app/src/main/res/values-night/styles.xml b/app/android/app/src/main/res/values-night/styles.xml new file mode 100644 index 0000000..06952be --- /dev/null +++ b/app/android/app/src/main/res/values-night/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/app/android/app/src/main/res/values/styles.xml b/app/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..cb1ef88 --- /dev/null +++ b/app/android/app/src/main/res/values/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/app/android/app/src/profile/AndroidManifest.xml b/app/android/app/src/profile/AndroidManifest.xml new file mode 100644 index 0000000..399f698 --- /dev/null +++ b/app/android/app/src/profile/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/app/android/build.gradle.kts b/app/android/build.gradle.kts new file mode 100644 index 0000000..dbee657 --- /dev/null +++ b/app/android/build.gradle.kts @@ -0,0 +1,24 @@ +allprojects { + repositories { + google() + mavenCentral() + } +} + +val newBuildDir: Directory = + rootProject.layout.buildDirectory + .dir("../../build") + .get() +rootProject.layout.buildDirectory.value(newBuildDir) + +subprojects { + val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name) + project.layout.buildDirectory.value(newSubprojectBuildDir) +} +subprojects { + project.evaluationDependsOn(":app") +} + +tasks.register("clean") { + delete(rootProject.layout.buildDirectory) +} diff --git a/app/android/gradle.properties b/app/android/gradle.properties new file mode 100644 index 0000000..e96108c --- /dev/null +++ b/app/android/gradle.properties @@ -0,0 +1,6 @@ +org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError +android.useAndroidX=true +# This newDsl flag was added by the Flutter template +android.newDsl=false +# This builtInKotlin flag was added by the Flutter template +android.builtInKotlin=false diff --git a/app/android/gradle/wrapper/gradle-wrapper.properties b/app/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..a20f2c4 --- /dev/null +++ b/app/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-all.zip diff --git a/app/android/settings.gradle.kts b/app/android/settings.gradle.kts new file mode 100644 index 0000000..b28021a --- /dev/null +++ b/app/android/settings.gradle.kts @@ -0,0 +1,26 @@ +pluginManagement { + val flutterSdkPath = + run { + val properties = java.util.Properties() + file("local.properties").inputStream().use { properties.load(it) } + val flutterSdkPath = properties.getProperty("flutter.sdk") + require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" } + flutterSdkPath + } + + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") + + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} + +plugins { + id("dev.flutter.flutter-plugin-loader") version "1.0.0" + id("com.android.application") version "9.1.0" apply false + id("org.jetbrains.kotlin.android") version "2.4.0" apply false +} + +include(":app") diff --git a/app/env/ci.example.json b/app/env/ci.example.json new file mode 100644 index 0000000..e620c0a --- /dev/null +++ b/app/env/ci.example.json @@ -0,0 +1,9 @@ +{ + "APP_ENV": "ci", + "SUPABASE_URL": "http://localhost:54321", + "SUPABASE_ANON_KEY": "public-anon-key-placeholder", + "SITE_URL": "http://localhost:3000", + "LEGAL_PRIVACY_URL": "https://shuffle.cshomelabs.work/legal/privacy", + "LEGAL_TERMS_URL": "https://shuffle.cshomelabs.work/legal/terms", + "TERMS_VERSION": "2026-11-draft" +} diff --git a/app/env/dev.example.json b/app/env/dev.example.json new file mode 100644 index 0000000..d09a9a1 --- /dev/null +++ b/app/env/dev.example.json @@ -0,0 +1,9 @@ +{ + "APP_ENV": "dev", + "SUPABASE_URL": "http://localhost:54321", + "SUPABASE_ANON_KEY": "public-anon-key-placeholder", + "SITE_URL": "http://localhost:3000", + "LEGAL_PRIVACY_URL": "https://shuffle.cshomelabs.work/legal/privacy", + "LEGAL_TERMS_URL": "https://shuffle.cshomelabs.work/legal/terms", + "TERMS_VERSION": "2026-11-draft" +} diff --git a/app/ios/.gitignore b/app/ios/.gitignore new file mode 100644 index 0000000..7a7f987 --- /dev/null +++ b/app/ios/.gitignore @@ -0,0 +1,34 @@ +**/dgph +*.mode1v3 +*.mode2v3 +*.moved-aside +*.pbxuser +*.perspectivev3 +**/*sync/ +.sconsign.dblite +.tags* +**/.vagrant/ +**/DerivedData/ +Icon? +**/Pods/ +**/.symlinks/ +profile +xcuserdata +**/.generated/ +Flutter/App.framework +Flutter/Flutter.framework +Flutter/Flutter.podspec +Flutter/Generated.xcconfig +Flutter/ephemeral/ +Flutter/app.flx +Flutter/app.zip +Flutter/flutter_assets/ +Flutter/flutter_export_environment.sh +ServiceDefinitions.json +Runner/GeneratedPluginRegistrant.* + +# Exceptions to above rules. +!default.mode1v3 +!default.mode2v3 +!default.pbxuser +!default.perspectivev3 diff --git a/app/ios/Flutter/AppFrameworkInfo.plist b/app/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000..391a902 --- /dev/null +++ b/app/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + + diff --git a/app/ios/Flutter/Debug.xcconfig b/app/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000..592ceee --- /dev/null +++ b/app/ios/Flutter/Debug.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/app/ios/Flutter/Release.xcconfig b/app/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000..592ceee --- /dev/null +++ b/app/ios/Flutter/Release.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/app/ios/Runner.xcodeproj/project.pbxproj b/app/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000..450d69b --- /dev/null +++ b/app/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,650 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 7884E8682EC3CC0700C636F2 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7884E8672EC3CC0400C636F2 /* SceneDelegate.swift */; }; + 78A318202AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage in Frameworks */ = {isa = PBXBuildFile; productRef = 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 97C146E61CF9000F007C117D /* Project object */; + proxyType = 1; + remoteGlobalIDString = 97C146ED1CF9000F007C117D; + remoteInfo = Runner; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; + 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 7884E8672EC3CC0400C636F2 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + 78E0A7A72DC9AD7400C4905E /* FlutterGeneratedPluginSwiftPackage */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = FlutterGeneratedPluginSwiftPackage; path = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 78A318202AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 331C8082294A63A400263BE5 /* RunnerTests */ = { + isa = PBXGroup; + children = ( + 331C807B294A618700263BE5 /* RunnerTests.swift */, + ); + path = RunnerTests; + sourceTree = ""; + }; + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 78E0A7A72DC9AD7400C4905E /* FlutterGeneratedPluginSwiftPackage */, + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + 331C8082294A63A400263BE5 /* RunnerTests */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + 331C8081294A63A400263BE5 /* RunnerTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, + 7884E8672EC3CC0400C636F2 /* SceneDelegate.swift */, + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, + ); + path = Runner; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 331C8080294A63A400263BE5 /* RunnerTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; + buildPhases = ( + 331C807D294A63A400263BE5 /* Sources */, + 331C807F294A63A400263BE5 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 331C8086294A63A400263BE5 /* PBXTargetDependency */, + ); + name = RunnerTests; + productName = RunnerTests; + productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + packageProductDependencies = ( + 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */, + ); + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = YES; + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 331C8080294A63A400263BE5 = { + CreatedOnToolsVersion = 14.0; + TestTargetID = 97C146ED1CF9000F007C117D; + }; + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + LastSwiftMigration = 1100; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + packageReferences = ( + 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */, + ); + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + 331C8080294A63A400263BE5 /* RunnerTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 331C807F294A63A400263BE5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 331C807D294A63A400263BE5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + 7884E8682EC3CC0700C636F2 /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 331C8086294A63A400263BE5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 97C146ED1CF9000F007C117D /* Runner */; + targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 249021D3217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + STRING_CATALOG_GENERATE_SYMBOLS = YES; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 249021D4217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = KSX6GJY9C5; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = work.cshomelabs.shuffle; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Profile; + }; + 331C8088294A63A400263BE5 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = work.cshomelabs.shuffle.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = Debug; + }; + 331C8089294A63A400263BE5 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = work.cshomelabs.shuffle.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = Release; + }; + 331C808A294A63A400263BE5 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = work.cshomelabs.shuffle.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + STRING_CATALOG_GENERATE_SYMBOLS = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + STRING_CATALOG_GENERATE_SYMBOLS = YES; + SUPPORTED_PLATFORMS = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = KSX6GJY9C5; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = work.cshomelabs.shuffle; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = KSX6GJY9C5; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = work.cshomelabs.shuffle; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 331C8088294A63A400263BE5 /* Debug */, + 331C8089294A63A400263BE5 /* Release */, + 331C808A294A63A400263BE5 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 249021D3217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 249021D4217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCLocalSwiftPackageReference section */ + 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */ = { + isa = XCLocalSwiftPackageReference; + relativePath = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage; + }; +/* End XCLocalSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */ = { + isa = XCSwiftPackageProductDependency; + productName = FlutterGeneratedPluginSwiftPackage; + }; +/* End XCSwiftPackageProductDependency section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000..c3fedb2 --- /dev/null +++ b/app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,119 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/ios/Runner.xcworkspace/contents.xcworkspacedata b/app/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..1d526a1 --- /dev/null +++ b/app/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/app/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/app/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/app/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/app/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/app/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/app/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/app/ios/Runner/AppDelegate.swift b/app/ios/Runner/AppDelegate.swift new file mode 100644 index 0000000..c30b367 --- /dev/null +++ b/app/ios/Runner/AppDelegate.swift @@ -0,0 +1,16 @@ +import Flutter +import UIKit + +@main +@objc class AppDelegate: FlutterAppDelegate, FlutterImplicitEngineDelegate { + override func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? + ) -> Bool { + return super.application(application, didFinishLaunchingWithOptions: launchOptions) + } + + func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) { + GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry) + } +} diff --git a/app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d36b1fa --- /dev/null +++ b/app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,122 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "Icon-App-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "Icon-App-1024x1024@1x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..dc9ada4725e9b0ddb1deab583e5b5102493aa332 GIT binary patch literal 10932 zcmeHN2~<R zh`|8`A_PQ1nSu(UMFx?8j8PC!!VDphaL#`F42fd#7Vlc`zIE4n%Y~eiz4y1j|NDpi z?<@|pSJ-HM`qifhf@m%MamgwK83`XpBA<+azdF#2QsT{X@z0A9Bq>~TVErigKH1~P zRX-!h-f0NJ4Mh++{D}J+K>~~rq}d%o%+4dogzXp7RxX4C>Km5XEI|PAFDmo;DFm6G zzjVoB`@qW98Yl0Kvc-9w09^PrsobmG*Eju^=3f?0o-t$U)TL1B3;sZ^!++3&bGZ!o-*6w?;oOhf z=A+Qb$scV5!RbG+&2S}BQ6YH!FKb0``VVX~T$dzzeSZ$&9=X$3)_7Z{SspSYJ!lGE z7yig_41zpQ)%5dr4ff0rh$@ky3-JLRk&DK)NEIHecf9c*?Z1bUB4%pZjQ7hD!A0r-@NF(^WKdr(LXj|=UE7?gBYGgGQV zidf2`ZT@pzXf7}!NH4q(0IMcxsUGDih(0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!L?*4B~ql7uioSX$zWJ?;q-SWXRFhz2Jt4%fOHA=Bwf|RzhwqdXGr78y$J)LR7&3T zE1WWz*>GPWKZ0%|@%6=fyx)5rzUpI;bCj>3RKzNG_1w$fIFCZ&UR0(7S?g}`&Pg$M zf`SLsz8wK82Vyj7;RyKmY{a8G{2BHG%w!^T|Njr!h9TO2LaP^_f22Q1=l$QiU84ao zHe_#{S6;qrC6w~7{y(hs-?-j?lbOfgH^E=XcSgnwW*eEz{_Z<_xN#0001NP)t-s|Ns9~ z#rXRE|M&d=0au&!`~QyF`q}dRnBDt}*!qXo`c{v z{Djr|@Adh0(D_%#_&mM$D6{kE_x{oE{l@J5@%H*?%=t~i_`ufYOPkAEn!pfkr2$fs z652Tz0001XNklqeeKN4RM4i{jKqmiC$?+xN>3Apn^ z0QfuZLym_5b<*QdmkHjHlj811{If)dl(Z2K0A+ekGtrFJb?g|wt#k#pV-#A~bK=OT ts8>{%cPtyC${m|1#B1A6#u!Q;umknL1chzTM$P~L002ovPDHLkV1lTfnu!1a literal 0 HcmV?d00001 diff --git a/app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..797d452e458972bab9d994556c8305db4c827017 GIT binary patch literal 406 zcmV;H0crk;P))>cdjpWt&rLJgVp-t?DREyuq1A%0Z4)6_WsQ7{nzjN zo!X zGXV)2i3kcZIL~_j>uIKPK_zib+3T+Nt3Mb&Br)s)UIaA}@p{wDda>7=Q|mGRp7pqY zkJ!7E{MNz$9nOwoVqpFb)}$IP24Wn2JJ=Cw(!`OXJBr45rP>>AQr$6c7slJWvbpNW z@KTwna6d?PP>hvXCcp=4F;=GR@R4E7{4VU^0p4F>v^#A|>07*qoM6N<$f*5nx ACIA2c literal 0 HcmV?d00001 diff --git a/app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..6ed2d933e1120817fe9182483a228007b18ab6ae GIT binary patch literal 450 zcmV;z0X_bSP)iGWQ_5NJQ_~rNh*z)}eT%KUb z`7gNk0#AwF^#0T0?hIa^`~Ck;!}#m+_uT050aTR(J!bU#|IzRL%^UsMS#KsYnTF*!YeDOytlP4VhV?b} z%rz_<=#CPc)tU1MZTq~*2=8~iZ!lSa<{9b@2Jl;?IEV8)=fG217*|@)CCYgFze-x? zIFODUIA>nWKpE+bn~n7;-89sa>#DR>TSlqWk*!2hSN6D~Qb#VqbP~4Fk&m`@1$JGr zXPIdeRE&b2Thd#{MtDK$px*d3-Wx``>!oimf%|A-&-q*6KAH)e$3|6JV%HX{Hig)k suLT-RhftRq8b9;(V=235Wa|I=027H2wCDra;{X5v07*qoM6N<$f;9x^2LJ#7 literal 0 HcmV?d00001 diff --git a/app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..4cd7b0099ca80c806f8fe495613e8d6c69460d76 GIT binary patch literal 282 zcmV+#0p(^bcu7P-R4C8Q z&e;xxFbF_Vrezo%_kH*OKhshZ6BFpG-Y1e10`QXJKbND7AMQ&cMj60B5TNObaZxYybcN07*qoM6N<$g3m;S%K!iX literal 0 HcmV?d00001 diff --git a/app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..fe730945a01f64a61e2235dbe3f45b08f7729182 GIT binary patch literal 462 zcmV;<0WtoGP)-}iV`2<;=$?g5M=KQbZ{F&YRNy7Nn@%_*5{gvDM0aKI4?ESmw z{NnZg)A0R`+4?NF_RZexyVB&^^ZvN!{I28tr{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JWvbpNW z@KTwna6d?PP>hvXCcp=4F;=GR@R4E7{4VU^0p4F>v^#A|>07*qoM6N<$f*5nx ACIA2c literal 0 HcmV?d00001 diff --git a/app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..502f463a9bc882b461c96aadf492d1729e49e725 GIT binary patch literal 586 zcmV-Q0=4~#P)+}#`wDE{8-2Mebf5<{{PqV{TgVcv*r8?UZ3{-|G?_}T*&y;@cqf{ z{Q*~+qr%%p!1pS*_Uicl#q9lc(D`!D`LN62sNwq{oYw(Wmhk)k<@f$!$@ng~_5)Ru z0Z)trIA5^j{DIW^c+vT2%lW+2<(RtE2wR;4O@)Tm`Xr*?A(qYoM}7i5Yxw>D(&6ou zxz!_Xr~yNF+waPe00049Nkl*;a!v6h%{rlvIH#gW3s8p;bFr=l}mRqpW2h zw=OA%hdyL~z+UHOzl0eKhEr$YYOL-c-%Y<)=j?(bzDweB7{b+%_ypvm_cG{SvM=DK zhv{K@m>#Bw>2W$eUI#iU)Wdgs8Y3U+A$Gd&{+j)d)BmGKx+43U_!tik_YlN)>$7G! zhkE!s;%oku3;IwG3U^2kw?z+HM)jB{@zFhK8P#KMSytSthr+4!c(5c%+^UBn`0X*2 zy3(k600_CSZj?O$Qu%&$;|TGUJrptR(HzyIx>5E(2r{eA(<6t3e3I0B)7d6s7?Z5J zZ!rtKvA{MiEBm&KFtoifx>5P^Z=vl)95XJn()aS5%ad(s?4-=Tkis9IGu{`Fy8r+H07*qoM6N<$f20Z)wqMt%V?S?~D#06};F zA3KcL`Wb+>5ObvgQIG&ig8(;V04hz?@cqy3{mSh8o!|U|)cI!1_+!fWH@o*8vh^CU z^ws0;(c$gI+2~q^tO#GDHf@=;DncUw00J^eL_t(&-tE|HQ`%4vfZ;WsBqu-$0nu1R zq^Vj;p$clf^?twn|KHO+IGt^q#a3X?w9dXC@*yxhv&l}F322(8Y1&=P&I}~G@#h6; z1CV9ecD9ZEe87{{NtI*)_aJ<`kJa z?5=RBtFF50s;jQLFil-`)m2wrb=6h(&brpj%nG_U&ut~$?8Rokzxi8zJoWr#2dto5 zOX_URcc<1`Iky+jc;A%Vzx}1QU{2$|cKPom2Vf1{8m`vja4{F>HS?^Nc^rp}xo+Nh zxd}eOm`fm3@MQC1< zIk&aCjb~Yh%5+Yq0`)D;q{#-Uqlv*o+Oor zE!I71Z@ASH3grl8&P^L0WpavHoP|UX4e?!igT`4?AZk$hu*@%6WJ;zDOGlw7kj@ zY5!B-0ft0f?Lgb>C;$Ke07*qoM6N<$f~t1N9smFU literal 0 HcmV?d00001 diff --git a/app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..0ec303439225b78712f49115768196d8d76f6790 GIT binary patch literal 862 zcmV-k1EKthP)20Z)wqMt%V?S?~D#06};F zA3KcL`Wb+>5ObvgQIG&ig8(;V04hz?@cqy3{mSh8o!|U|)cI!1_+!fWH@o*8vh^CU z^ws0;(c$gI+2~q^tO#GDHf@=;DncUw00J^eL_t(&-tE|HQ`%4vfZ;WsBqu-$0nu1R zq^Vj;p$clf^?twn|KHO+IGt^q#a3X?w9dXC@*yxhv&l}F322(8Y1&=P&I}~G@#h6; z1CV9ecD9ZEe87{{NtI*)_aJ<`kJa z?5=RBtFF50s;jQLFil-`)m2wrb=6h(&brpj%nG_U&ut~$?8Rokzxi8zJoWr#2dto5 zOX_URcc<1`Iky+jc;A%Vzx}1QU{2$|cKPom2Vf1{8m`vja4{F>HS?^Nc^rp}xo+Nh zxd}eOm`fm3@MQC1< zIk&aCjb~Yh%5+Yq0`)D;q{#-Uqlv*o+Oor zE!I71Z@ASH3grl8&P^L0WpavHoP|UX4e?!igT`4?AZk$hu*@%6WJ;zDOGlw7kj@ zY5!B-0ft0f?Lgb>C;$Ke07*qoM6N<$f~t1N9smFU literal 0 HcmV?d00001 diff --git a/app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..e9f5fea27c705180eb716271f41b582e76dcbd90 GIT binary patch literal 1674 zcmV;526g#~P){YQnis^a@{&-nmRmq)<&%Mztj67_#M}W?l>kYSliK<%xAp;0j{!}J0!o7b zE>q9${Lb$D&h7k=+4=!ek^n+`0zq>LL1O?lVyea53S5x`Nqqo2YyeuIrQrJj9XjOp z{;T5qbj3}&1vg1VK~#9!?b~^C5-}JC@Pyrv-6dSEqJqT}#j9#dJ@GzT@B8}x zU&J@bBI>f6w6en+CeI)3^kC*U?}X%OD8$Fd$H&LV$H&LV$H&LV#|K5~mLYf|VqzOc zkc7qL~0sOYuM{tG`rYEDV{DWY`Z8&)kW*hc2VkBuY+^Yx&92j&StN}Wp=LD zxoGxXw6f&8sB^u})h@b@z0RBeD`K7RMR9deyL(ZJu#39Z>rT)^>v}Khq8U-IbIvT> z?4pV9qGj=2)TNH3d)=De<+^w;>S7m_eFKTvzeaBeir45xY!^m!FmxnljbSS_3o=g( z->^wC9%qkR{kbGnW8MfFew_o9h3(r55Is`L$8KI@d+*%{=Nx+FXJ98L0PjFIu;rGnnfY zn1R5Qnp<{Jq0M1vX=X&F8gtLmcWv$1*M@4ZfF^9``()#hGTeKeP`1!iED ztNE(TN}M5}3Bbc*d=FIv`DNv&@|C6yYj{sSqUj5oo$#*0$7pu|Dd2TLI>t5%I zIa4Dvr(iayb+5x=j*Vum9&irk)xV1`t509lnPO0%skL8_1c#Xbamh(2@f?4yUI zhhuT5<#8RJhGz4%b$`PJwKPAudsm|at?u;*hGgnA zU1;9gnxVBC)wA(BsB`AW54N{|qmikJR*%x0c`{LGsSfa|NK61pYH(r-UQ4_JXd!Rsz)=k zL{GMc5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*DVjk-9Cx+-z1KXab|Ka2oXhX5f% z`$|e!000AhNklrxs)5QTeTVRiEmz~MKK1WAjCw(c-JK6eox;2O)?`? zTG`AHia671e^vgmp!llKp|=5sVHk#C7=~epA~VAf-~%aPC=%Qw01h8mnSZ|p?hz91 z7p83F3%LVu9;S$tSI$C^%^yud1dfTM_6p2|+5Ejp$bd`GDvbR|xit>i!ZD&F>@CJrPmu*UjD&?DfZs=$@e3FQA(vNiU+$A*%a} z?`XcG2jDxJ_ZQ#Md`H{4Lpf6QBDp81_KWZ6Tk#yCy1)32zO#3<7>b`eT7UyYH1eGz z;O(rH$=QR*L%%ZcBpc=eGua?N55nD^K(8<#gl2+pN_j~b2MHs4#mcLmv%DkspS-3< zpI1F=^9siI0s-;IN_IrA;5xm~3?3!StX}pUv0vkxMaqm+zxrg7X7(I&*N~&dEd0kD z-FRV|g=|QuUsuh>-xCI}vD2imzYIOIdcCVV=$Bz@*u0+Bs<|L^)32nN*=wu3n%Ynw z@1|eLG>!8ruU1pFXUfb`j>(=Gy~?Rn4QJ-c3%3T|(Frd!bI`9u&zAnyFYTqlG#&J7 zAkD(jpw|oZLNiA>;>hgp1KX7-wxC~31II47gc zHcehD6Uxlf%+M^^uN5Wc*G%^;>D5qT{>=uxUhX%WJu^Z*(_Wq9y}npFO{Hhb>s6<9 zNi0pHXWFaVZnb)1+RS&F)xOv6&aeILcI)`k#0YE+?e)5&#r7J#c`3Z7x!LpTc01dx zrdC3{Z;joZ^KN&))zB_i)I9fWedoN>Zl-6_Iz+^G&*ak2jpF07*qoM6N<$f;w%0(f|Me literal 0 HcmV?d00001 diff --git a/app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..0467bf12aa4d28f374bb26596605a46dcbb3e7c8 GIT binary patch literal 1418 zcmV;51$Fv~P)q zKfU)WzW*n(@|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6J2ZC!+UppiK6&y3Kmbv&O!oYF z34$0Z;QO!JOY#!`qyGH<3Pd}Pt@q*A0V=3SVtWKRR8d8Z&@)3qLPA19LPA19LPEUC YUoZo%k(ykuW&i*H07*qoM6N<$f+CH{y8r+H literal 0 HcmV?d00001 diff --git a/app/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/app/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 0000000..0bedcf2 --- /dev/null +++ b/app/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "LaunchImage.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 GIT binary patch literal 68 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx0wlM}@Gt=>Zci7-kcv6Uzs@r-FtIZ-&5|)J Q1PU{Fy85}Sb4q9e0B4a5jsO4v literal 0 HcmV?d00001 diff --git a/app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 GIT binary patch literal 68 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx0wlM}@Gt=>Zci7-kcv6Uzs@r-FtIZ-&5|)J Q1PU{Fy85}Sb4q9e0B4a5jsO4v literal 0 HcmV?d00001 diff --git a/app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838 GIT binary patch literal 68 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx0wlM}@Gt=>Zci7-kcv6Uzs@r-FtIZ-&5|)J Q1PU{Fy85}Sb4q9e0B4a5jsO4v literal 0 HcmV?d00001 diff --git a/app/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/app/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 0000000..89c2725 --- /dev/null +++ b/app/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md @@ -0,0 +1,5 @@ +# Launch Screen Assets + +You can customize the launch screen with your own desired assets by replacing the image files in this directory. + +You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file diff --git a/app/ios/Runner/Base.lproj/LaunchScreen.storyboard b/app/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..f2e259c --- /dev/null +++ b/app/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/ios/Runner/Base.lproj/Main.storyboard b/app/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000..f3c2851 --- /dev/null +++ b/app/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/ios/Runner/Info.plist b/app/ios/Runner/Info.plist new file mode 100644 index 0000000..b386999 --- /dev/null +++ b/app/ios/Runner/Info.plist @@ -0,0 +1,70 @@ + + + + + CADisableMinimumFrameDurationOnPhone + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + Shuffle + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + Shuffle + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneClassName + UIWindowScene + UISceneConfigurationName + flutter + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + UISceneStoryboardFile + Main + + + + + UIApplicationSupportsIndirectInputEvents + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/app/ios/Runner/Runner-Bridging-Header.h b/app/ios/Runner/Runner-Bridging-Header.h new file mode 100644 index 0000000..308a2a5 --- /dev/null +++ b/app/ios/Runner/Runner-Bridging-Header.h @@ -0,0 +1 @@ +#import "GeneratedPluginRegistrant.h" diff --git a/app/ios/Runner/SceneDelegate.swift b/app/ios/Runner/SceneDelegate.swift new file mode 100644 index 0000000..b9ce8ea --- /dev/null +++ b/app/ios/Runner/SceneDelegate.swift @@ -0,0 +1,6 @@ +import Flutter +import UIKit + +class SceneDelegate: FlutterSceneDelegate { + +} diff --git a/app/ios/RunnerTests/RunnerTests.swift b/app/ios/RunnerTests/RunnerTests.swift new file mode 100644 index 0000000..86a7c3b --- /dev/null +++ b/app/ios/RunnerTests/RunnerTests.swift @@ -0,0 +1,12 @@ +import Flutter +import UIKit +import XCTest + +class RunnerTests: XCTestCase { + + func testExample() { + // If you add code to the Runner application, consider adding tests here. + // See https://developer.apple.com/documentation/xctest for more information about using XCTest. + } + +} diff --git a/app/l10n.yaml b/app/l10n.yaml new file mode 100644 index 0000000..a4d323c --- /dev/null +++ b/app/l10n.yaml @@ -0,0 +1,5 @@ +arb-dir: lib/l10n +template-arb-file: app_en.arb +output-localization-file: app_localizations.dart +output-class: AppLocalizations +nullable-getter: false diff --git a/app/lib/app.dart b/app/lib/app.dart new file mode 100644 index 0000000..cddfa61 --- /dev/null +++ b/app/lib/app.dart @@ -0,0 +1,29 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_localizations/flutter_localizations.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:shuffle/core/l10n/app_locale.dart'; +import 'package:shuffle/core/routing/app_router.dart'; +import 'package:shuffle/core/theme/app_theme.dart'; +import 'package:shuffle/l10n/app_localizations.dart'; + +class ShuffleApp extends ConsumerWidget { + const ShuffleApp({super.key}); + + @override + Widget build(BuildContext context, WidgetRef ref) { + return MaterialApp.router( + onGenerateTitle: (context) => AppLocalizations.of(context).appTitle, + theme: AppTheme.light(), + routerConfig: ref.watch(appRouterProvider), + locale: ref.watch(appLocaleProvider), + supportedLocales: AppLocalizations.supportedLocales, + localizationsDelegates: const [ + AppLocalizations.delegate, + GlobalMaterialLocalizations.delegate, + GlobalWidgetsLocalizations.delegate, + GlobalCupertinoLocalizations.delegate, + ], + localeResolutionCallback: (locale, supported) => resolveAppLocale(locale), + ); + } +} diff --git a/app/lib/core/config/app_config.dart b/app/lib/core/config/app_config.dart new file mode 100644 index 0000000..da64f52 --- /dev/null +++ b/app/lib/core/config/app_config.dart @@ -0,0 +1,103 @@ +/// Laufzeitkonfiguration der App. +/// +/// Die Werte kommen zur Build-Zeit aus `--dart-define-from-file=env/.json` +/// (siehe `app/env/*.example.json`). Secrets gehören nicht ins Repo. +class AppConfig { + const AppConfig({ + required this.environment, + required this.supabaseUrl, + required this.supabaseAnonKey, + required this.siteUrl, + required this.legalPrivacyUrl, + required this.legalTermsUrl, + required this.termsVersion, + }); + + /// Liest die Konfiguration aus den `--dart-define`-Werten. + /// + /// `String.fromEnvironment` muss mit konstanten Namen aufgerufen werden; + /// deshalb steht jeder Schlüssel hier einzeln. + factory AppConfig.fromEnvironment() => const AppConfig( + environment: String.fromEnvironment( + keyAppEnv, + defaultValue: defaultEnvironment, + ), + supabaseUrl: String.fromEnvironment(keySupabaseUrl), + supabaseAnonKey: String.fromEnvironment(keySupabaseAnonKey), + siteUrl: String.fromEnvironment(keySiteUrl, defaultValue: defaultSiteUrl), + legalPrivacyUrl: String.fromEnvironment( + keyLegalPrivacyUrl, + defaultValue: defaultLegalPrivacyUrl, + ), + legalTermsUrl: String.fromEnvironment( + keyLegalTermsUrl, + defaultValue: defaultLegalTermsUrl, + ), + termsVersion: String.fromEnvironment( + keyTermsVersion, + defaultValue: defaultTermsVersion, + ), + ); + + /// Baut die Konfiguration aus einer Map (Tests, Tooling). Fehlende + /// optionale Werte erhalten dieselben Platzhalter wie [fromEnvironment]. + factory AppConfig.fromMap(Map values) => AppConfig( + environment: values[keyAppEnv] ?? defaultEnvironment, + supabaseUrl: values[keySupabaseUrl] ?? '', + supabaseAnonKey: values[keySupabaseAnonKey] ?? '', + siteUrl: values[keySiteUrl] ?? defaultSiteUrl, + legalPrivacyUrl: values[keyLegalPrivacyUrl] ?? defaultLegalPrivacyUrl, + legalTermsUrl: values[keyLegalTermsUrl] ?? defaultLegalTermsUrl, + termsVersion: values[keyTermsVersion] ?? defaultTermsVersion, + ); + + static const keyAppEnv = 'APP_ENV'; + static const keySupabaseUrl = 'SUPABASE_URL'; + static const keySupabaseAnonKey = 'SUPABASE_ANON_KEY'; + static const keySiteUrl = 'SITE_URL'; + static const keyLegalPrivacyUrl = 'LEGAL_PRIVACY_URL'; + static const keyLegalTermsUrl = 'LEGAL_TERMS_URL'; + static const keyTermsVersion = 'TERMS_VERSION'; + + // Platzhalter (Spec #1 § 5.1), bis Chris die echten Werte festlegt. + static const defaultEnvironment = 'dev'; + static const defaultSiteUrl = 'https://shuffle.cshomelabs.work'; + static const defaultLegalPrivacyUrl = + 'https://shuffle.cshomelabs.work/legal/privacy'; + static const defaultLegalTermsUrl = + 'https://shuffle.cshomelabs.work/legal/terms'; + static const defaultTermsVersion = '2026-11-draft'; + + /// Name der Stage (`dev`, `ci`, `staging`, `prod`). + final String environment; + final String supabaseUrl; + final String supabaseAnonKey; + + /// Öffentliche Basis-URL der Web-App (Ziel der Mail-Links). + final String siteUrl; + final String legalPrivacyUrl; + final String legalTermsUrl; + + /// Version der Rechtstexte, die bei der Registrierung gespeichert wird. + final String termsVersion; + + /// Namen der Pflichtwerte, die fehlen oder leer sind. + List get missingKeys => [ + if (supabaseUrl.isEmpty) keySupabaseUrl, + if (supabaseAnonKey.isEmpty) keySupabaseAnonKey, + ]; + + bool get isValid => missingKeys.isEmpty; + + /// Wirft einen [StateError], wenn Pflichtwerte fehlen. + void validate() { + final missing = missingKeys; + if (missing.isNotEmpty) { + throw StateError( + 'Missing app configuration: ${missing.join(', ')}. ' + 'Start the app with --dart-define-from-file=env/.json ' + '(see app/env/dev.example.json).', + ); + } + } +} diff --git a/app/lib/core/config/app_config_provider.dart b/app/lib/core/config/app_config_provider.dart new file mode 100644 index 0000000..8ac16b4 --- /dev/null +++ b/app/lib/core/config/app_config_provider.dart @@ -0,0 +1,8 @@ +import 'package:riverpod_annotation/riverpod_annotation.dart'; +import 'package:shuffle/core/config/app_config.dart'; + +part 'app_config_provider.g.dart'; + +/// Konfiguration aus `--dart-define-from-file`. In Tests überschreiben. +@Riverpod(keepAlive: true) +AppConfig appConfig(Ref ref) => AppConfig.fromEnvironment(); diff --git a/app/lib/core/config/app_config_provider.g.dart b/app/lib/core/config/app_config_provider.g.dart new file mode 100644 index 0000000..3e93a9b --- /dev/null +++ b/app/lib/core/config/app_config_provider.g.dart @@ -0,0 +1,55 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'app_config_provider.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint, type=warning +/// Konfiguration aus `--dart-define-from-file`. In Tests überschreiben. + +@ProviderFor(appConfig) +final appConfigProvider = AppConfigProvider._(); + +/// Konfiguration aus `--dart-define-from-file`. In Tests überschreiben. + +final class AppConfigProvider + extends $FunctionalProvider + with $Provider { + /// Konfiguration aus `--dart-define-from-file`. In Tests überschreiben. + AppConfigProvider._() + : super( + from: null, + argument: null, + retry: null, + name: r'appConfigProvider', + isAutoDispose: false, + dependencies: null, + $allTransitiveDependencies: null, + ); + + @override + String debugGetCreateSourceHash() => _$appConfigHash(); + + @$internal + @override + $ProviderElement $createElement($ProviderPointer pointer) => + $ProviderElement(pointer); + + @override + AppConfig create(Ref ref) { + return appConfig(ref); + } + + /// {@macro riverpod.override_with_value} + Override overrideWithValue(AppConfig value) { + return $ProviderOverride( + origin: this, + providerOverride: $SyncValueProvider(value), + ); + } +} + +String _$appConfigHash() => r'87f9d20a2d92252672162b2ce97547b7b2479239'; diff --git a/app/lib/core/error/global_error_handler.dart b/app/lib/core/error/global_error_handler.dart new file mode 100644 index 0000000..a3cf509 --- /dev/null +++ b/app/lib/core/error/global_error_handler.dart @@ -0,0 +1,24 @@ +import 'package:flutter/foundation.dart'; +import 'package:shuffle/core/logging/app_logger.dart'; + +/// Leitet nicht abgefangene Framework- und Plattformfehler an den Logger. +void installGlobalErrorHandlers({AppLogger? logger}) { + final log = logger ?? AppLogger('GlobalError'); + + FlutterError.onError = (details) { + log.error( + 'Flutter framework error', + error: details.exception, + stackTrace: details.stack, + ); + // Im Debug-Modus zusätzlich die Standardausgabe der Konsole. + if (kDebugMode) { + FlutterError.presentError(details); + } + }; + + PlatformDispatcher.instance.onError = (error, stackTrace) { + log.error('Uncaught platform error', error: error, stackTrace: stackTrace); + return true; + }; +} diff --git a/app/lib/core/l10n/app_locale.dart b/app/lib/core/l10n/app_locale.dart new file mode 100644 index 0000000..d027143 --- /dev/null +++ b/app/lib/core/l10n/app_locale.dart @@ -0,0 +1,51 @@ +import 'package:flutter/widgets.dart'; +import 'package:riverpod_annotation/riverpod_annotation.dart'; +import 'package:shuffle/l10n/app_localizations.dart'; + +part 'app_locale.g.dart'; + +/// Fallback-Sprache, wenn die Gerätesprache nicht unterstützt wird +/// (QUE-05 Kriterium 4). +const fallbackLocale = Locale('en'); + +/// Bildet eine Gerätesprache auf eine unterstützte Sprache ab (de/en, sonst en). +/// +/// Wird auch als `localeResolutionCallback` genutzt: gen-l10n sortiert die +/// unterstützten Sprachen alphabetisch, Flutter würde sonst auf Deutsch fallen. +Locale resolveAppLocale(Locale? deviceLocale) { + if (deviceLocale == null) { + return fallbackLocale; + } + for (final supported in AppLocalizations.supportedLocales) { + if (supported.languageCode == deviceLocale.languageCode) { + return Locale(supported.languageCode); + } + } + return fallbackLocale; +} + +/// Aktive Oberflächensprache: Gerätesprache (de/en), sonst Englisch. +/// +/// Folgt Änderungen der Gerätesprache. Eine manuelle Wahl folgt mit KTO-11. +@Riverpod(keepAlive: true) +class AppLocale extends _$AppLocale { + @override + Locale build() { + final binding = WidgetsBinding.instance; + final observer = _LocaleObserver( + (locales) => state = resolveAppLocale(locales?.firstOrNull), + ); + binding.addObserver(observer); + ref.onDispose(() => binding.removeObserver(observer)); + return resolveAppLocale(binding.platformDispatcher.locales.firstOrNull); + } +} + +class _LocaleObserver with WidgetsBindingObserver { + _LocaleObserver(this._onChanged); + + final void Function(List? locales) _onChanged; + + @override + void didChangeLocales(List? locales) => _onChanged(locales); +} diff --git a/app/lib/core/l10n/app_locale.g.dart b/app/lib/core/l10n/app_locale.g.dart new file mode 100644 index 0000000..35fb4e1 --- /dev/null +++ b/app/lib/core/l10n/app_locale.g.dart @@ -0,0 +1,74 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'app_locale.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint, type=warning +/// Aktive Oberflächensprache: Gerätesprache (de/en), sonst Englisch. +/// +/// Folgt Änderungen der Gerätesprache. Eine manuelle Wahl folgt mit KTO-11. + +@ProviderFor(AppLocale) +final appLocaleProvider = AppLocaleProvider._(); + +/// Aktive Oberflächensprache: Gerätesprache (de/en), sonst Englisch. +/// +/// Folgt Änderungen der Gerätesprache. Eine manuelle Wahl folgt mit KTO-11. +final class AppLocaleProvider extends $NotifierProvider { + /// Aktive Oberflächensprache: Gerätesprache (de/en), sonst Englisch. + /// + /// Folgt Änderungen der Gerätesprache. Eine manuelle Wahl folgt mit KTO-11. + AppLocaleProvider._() + : super( + from: null, + argument: null, + retry: null, + name: r'appLocaleProvider', + isAutoDispose: false, + dependencies: null, + $allTransitiveDependencies: null, + ); + + @override + String debugGetCreateSourceHash() => _$appLocaleHash(); + + @$internal + @override + AppLocale create() => AppLocale(); + + /// {@macro riverpod.override_with_value} + Override overrideWithValue(Locale value) { + return $ProviderOverride( + origin: this, + providerOverride: $SyncValueProvider(value), + ); + } +} + +String _$appLocaleHash() => r'69f10aec719d677951a31d0551fe3bc440e4fbcd'; + +/// Aktive Oberflächensprache: Gerätesprache (de/en), sonst Englisch. +/// +/// Folgt Änderungen der Gerätesprache. Eine manuelle Wahl folgt mit KTO-11. + +abstract class _$AppLocale extends $Notifier { + Locale build(); + @$mustCallSuper + @override + WhenComplete runBuild() { + final ref = this.ref as $Ref; + final element = + ref.element + as $ClassProviderElement< + AnyNotifier, + Locale, + Object?, + Object? + >; + return element.handleCreate(ref, build); + } +} diff --git a/app/lib/core/l10n/l10n.dart b/app/lib/core/l10n/l10n.dart new file mode 100644 index 0000000..628d4d8 --- /dev/null +++ b/app/lib/core/l10n/l10n.dart @@ -0,0 +1,8 @@ +import 'package:flutter/widgets.dart'; +import 'package:shuffle/l10n/app_localizations.dart'; + +export 'package:shuffle/l10n/app_localizations.dart'; + +extension AppLocalizationsContext on BuildContext { + AppLocalizations get l10n => AppLocalizations.of(this); +} diff --git a/app/lib/core/logging/app_logger.dart b/app/lib/core/logging/app_logger.dart new file mode 100644 index 0000000..263d20d --- /dev/null +++ b/app/lib/core/logging/app_logger.dart @@ -0,0 +1,41 @@ +import 'dart:developer' as developer; + +import 'package:flutter/foundation.dart'; +import 'package:logging/logging.dart'; + +/// Zentrales Logger-Utility (Wrapper um `package:logging`). +/// +/// Regeln: kein `print`, keine personenbezogenen Daten (E-Mail, Namen, +/// Passwörter, Tokens) in Nachrichten oder Fehlerobjekten. +class AppLogger { + AppLogger(String name) : _logger = Logger(name); + + final Logger _logger; + + void debug(String message) => _logger.fine(message); + + void info(String message) => _logger.info(message); + + void warning(String message, {Object? error, StackTrace? stackTrace}) => + _logger.warning(message, error, stackTrace); + + void error(String message, {Object? error, StackTrace? stackTrace}) => + _logger.severe(message, error, stackTrace); + + /// Richtet die Ausgabe einmalig ein. Release: ab INFO, sonst alles. + static void configure({Level? level}) { + Logger.root.level = level ?? (kReleaseMode ? Level.INFO : Level.ALL); + Logger.root.onRecord.listen(_write); + } + + static void _write(LogRecord record) { + developer.log( + record.message, + time: record.time, + level: record.level.value, + name: record.loggerName, + error: record.error, + stackTrace: record.stackTrace, + ); + } +} diff --git a/app/lib/core/result/result.dart b/app/lib/core/result/result.dart new file mode 100644 index 0000000..9cbca86 --- /dev/null +++ b/app/lib/core/result/result.dart @@ -0,0 +1,40 @@ +/// Einfaches Ergebnis-Typ für erwartbare Fehler (kein zusätzliches Paket). +sealed class Result { + const Result(); + + const factory Result.success(T value) = Success; + const factory Result.failure(E error) = Failure; + + bool get isSuccess => this is Success; + bool get isFailure => this is Failure; + + /// Wert bei Erfolg, sonst `null`. + T? get valueOrNull => switch (this) { + Success(:final value) => value, + Failure() => null, + }; + + /// Fehler bei Misserfolg, sonst `null`. + E? get errorOrNull => switch (this) { + Success() => null, + Failure(:final error) => error, + }; + + R when({ + required R Function(T value) success, + required R Function(E error) failure, + }) => switch (this) { + Success(:final value) => success(value), + Failure(:final error) => failure(error), + }; +} + +final class Success extends Result { + const Success(this.value); + final T value; +} + +final class Failure extends Result { + const Failure(this.error); + final E error; +} diff --git a/app/lib/core/routing/app_router.dart b/app/lib/core/routing/app_router.dart new file mode 100644 index 0000000..6a1991d --- /dev/null +++ b/app/lib/core/routing/app_router.dart @@ -0,0 +1,28 @@ +import 'package:go_router/go_router.dart'; +import 'package:riverpod_annotation/riverpod_annotation.dart'; +import 'package:shuffle/core/routing/app_routes.dart'; +import 'package:shuffle/core/routing/not_found_screen.dart'; +import 'package:shuffle/core/routing/redirect_source.dart'; +import 'package:shuffle/features/home/presentation/home_screen.dart'; + +part 'app_router.g.dart'; + +@Riverpod(keepAlive: true) +GoRouter appRouter(Ref ref) { + final source = ref.watch(redirectSourceProvider); + + final router = GoRouter( + initialLocation: AppRoutes.home, + refreshListenable: source.changes, + redirect: (context, state) => source.redirect(state), + errorBuilder: (context, state) => const NotFoundScreen(), + routes: [ + GoRoute( + path: AppRoutes.home, + builder: (context, state) => const HomeScreen(), + ), + ], + ); + ref.onDispose(router.dispose); + return router; +} diff --git a/app/lib/core/routing/app_router.g.dart b/app/lib/core/routing/app_router.g.dart new file mode 100644 index 0000000..40c8d4a --- /dev/null +++ b/app/lib/core/routing/app_router.g.dart @@ -0,0 +1,51 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'app_router.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint, type=warning + +@ProviderFor(appRouter) +final appRouterProvider = AppRouterProvider._(); + +final class AppRouterProvider + extends $FunctionalProvider + with $Provider { + AppRouterProvider._() + : super( + from: null, + argument: null, + retry: null, + name: r'appRouterProvider', + isAutoDispose: false, + dependencies: null, + $allTransitiveDependencies: null, + ); + + @override + String debugGetCreateSourceHash() => _$appRouterHash(); + + @$internal + @override + $ProviderElement $createElement($ProviderPointer pointer) => + $ProviderElement(pointer); + + @override + GoRouter create(Ref ref) { + return appRouter(ref); + } + + /// {@macro riverpod.override_with_value} + Override overrideWithValue(GoRouter value) { + return $ProviderOverride( + origin: this, + providerOverride: $SyncValueProvider(value), + ); + } +} + +String _$appRouterHash() => r'c3ba8cecc011ab4327ceb2284a58118355176803'; diff --git a/app/lib/core/routing/app_routes.dart b/app/lib/core/routing/app_routes.dart new file mode 100644 index 0000000..bc31dc0 --- /dev/null +++ b/app/lib/core/routing/app_routes.dart @@ -0,0 +1,4 @@ +/// Pfade der App. Weitere Routen kommen mit den Features. +abstract final class AppRoutes { + static const home = '/'; +} diff --git a/app/lib/core/routing/not_found_screen.dart b/app/lib/core/routing/not_found_screen.dart new file mode 100644 index 0000000..ed7b8ee --- /dev/null +++ b/app/lib/core/routing/not_found_screen.dart @@ -0,0 +1,35 @@ +import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; +import 'package:shuffle/core/l10n/l10n.dart'; +import 'package:shuffle/core/routing/app_routes.dart'; + +/// 404-Seite für unbekannte Pfade. +class NotFoundScreen extends StatelessWidget { + const NotFoundScreen({super.key}); + + @override + Widget build(BuildContext context) { + final l10n = context.l10n; + return Scaffold( + key: const Key('not_found_screen'), + appBar: AppBar(title: Text(l10n.notFoundTitle)), + body: Center( + child: Padding( + padding: const EdgeInsets.all(24), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Text(l10n.notFoundMessage, textAlign: TextAlign.center), + const SizedBox(height: 16), + FilledButton( + key: const Key('not_found_home_button'), + onPressed: () => context.go(AppRoutes.home), + child: Text(l10n.notFoundBackHome), + ), + ], + ), + ), + ), + ); + } +} diff --git a/app/lib/core/routing/redirect_source.dart b/app/lib/core/routing/redirect_source.dart new file mode 100644 index 0000000..b970f79 --- /dev/null +++ b/app/lib/core/routing/redirect_source.dart @@ -0,0 +1,33 @@ +import 'package:flutter/foundation.dart'; +import 'package:go_router/go_router.dart'; +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +part 'redirect_source.g.dart'; + +/// Austauschbare Quelle für Redirect-Entscheidungen des Routers. +/// +/// Das Fundament liefert [NoRedirectSource]. Die Auth-Story (#1) überschreibt +/// [redirectSource] mit einer Implementierung, die den Anmeldestatus kennt. +abstract interface class RedirectSource { + /// Löst eine Neubewertung der Redirects aus (z. B. Anmeldestatus ändert sich). + Listenable get changes; + + /// Zielpfad für den Redirect oder `null`, wenn die Route bleibt. + String? redirect(GoRouterState state); +} + +/// Standard: kein Redirect, keine Änderungen. +class NoRedirectSource implements RedirectSource { + const NoRedirectSource(); + + @override + Listenable get changes => _never; + + @override + String? redirect(GoRouterState state) => null; + + static final _never = ValueNotifier(0); +} + +@Riverpod(keepAlive: true) +RedirectSource redirectSource(Ref ref) => const NoRedirectSource(); diff --git a/app/lib/core/routing/redirect_source.g.dart b/app/lib/core/routing/redirect_source.g.dart new file mode 100644 index 0000000..f239cac --- /dev/null +++ b/app/lib/core/routing/redirect_source.g.dart @@ -0,0 +1,51 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'redirect_source.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint, type=warning + +@ProviderFor(redirectSource) +final redirectSourceProvider = RedirectSourceProvider._(); + +final class RedirectSourceProvider + extends $FunctionalProvider + with $Provider { + RedirectSourceProvider._() + : super( + from: null, + argument: null, + retry: null, + name: r'redirectSourceProvider', + isAutoDispose: false, + dependencies: null, + $allTransitiveDependencies: null, + ); + + @override + String debugGetCreateSourceHash() => _$redirectSourceHash(); + + @$internal + @override + $ProviderElement $createElement($ProviderPointer pointer) => + $ProviderElement(pointer); + + @override + RedirectSource create(Ref ref) { + return redirectSource(ref); + } + + /// {@macro riverpod.override_with_value} + Override overrideWithValue(RedirectSource value) { + return $ProviderOverride( + origin: this, + providerOverride: $SyncValueProvider(value), + ); + } +} + +String _$redirectSourceHash() => r'c568056f573be8b72071c02e497ace86ebf04dc8'; diff --git a/app/lib/core/routing/url_strategy.dart b/app/lib/core/routing/url_strategy.dart new file mode 100644 index 0000000..d36b4c2 --- /dev/null +++ b/app/lib/core/routing/url_strategy.dart @@ -0,0 +1,12 @@ +import 'package:flutter/foundation.dart'; +import 'package:flutter_web_plugins/url_strategy.dart'; + +/// Web: saubere Pfade ohne `#`. Auf Mobilgeräten ohne Wirkung. +/// +/// Der Webserver braucht dafür eine SPA-Rewrite-Regel (alle Pfade auf +/// `index.html`). +void configurePathUrlStrategy() { + if (kIsWeb) { + usePathUrlStrategy(); + } +} diff --git a/app/lib/core/supabase/supabase_client_provider.dart b/app/lib/core/supabase/supabase_client_provider.dart new file mode 100644 index 0000000..d29ca66 --- /dev/null +++ b/app/lib/core/supabase/supabase_client_provider.dart @@ -0,0 +1,9 @@ +import 'package:riverpod_annotation/riverpod_annotation.dart'; +import 'package:supabase_flutter/supabase_flutter.dart'; + +part 'supabase_client_provider.g.dart'; + +/// Der initialisierte Supabase-Client (`Supabase.initialize` läuft in `main`). +/// In Tests mit einem Mock überschreiben. +@Riverpod(keepAlive: true) +SupabaseClient supabaseClient(Ref ref) => Supabase.instance.client; diff --git a/app/lib/core/supabase/supabase_client_provider.g.dart b/app/lib/core/supabase/supabase_client_provider.g.dart new file mode 100644 index 0000000..a8e0c4b --- /dev/null +++ b/app/lib/core/supabase/supabase_client_provider.g.dart @@ -0,0 +1,58 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'supabase_client_provider.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +// GENERATED CODE - DO NOT MODIFY BY HAND +// ignore_for_file: type=lint, type=warning +/// Der initialisierte Supabase-Client (`Supabase.initialize` läuft in `main`). +/// In Tests mit einem Mock überschreiben. + +@ProviderFor(supabaseClient) +final supabaseClientProvider = SupabaseClientProvider._(); + +/// Der initialisierte Supabase-Client (`Supabase.initialize` läuft in `main`). +/// In Tests mit einem Mock überschreiben. + +final class SupabaseClientProvider + extends $FunctionalProvider + with $Provider { + /// Der initialisierte Supabase-Client (`Supabase.initialize` läuft in `main`). + /// In Tests mit einem Mock überschreiben. + SupabaseClientProvider._() + : super( + from: null, + argument: null, + retry: null, + name: r'supabaseClientProvider', + isAutoDispose: false, + dependencies: null, + $allTransitiveDependencies: null, + ); + + @override + String debugGetCreateSourceHash() => _$supabaseClientHash(); + + @$internal + @override + $ProviderElement $createElement($ProviderPointer pointer) => + $ProviderElement(pointer); + + @override + SupabaseClient create(Ref ref) { + return supabaseClient(ref); + } + + /// {@macro riverpod.override_with_value} + Override overrideWithValue(SupabaseClient value) { + return $ProviderOverride( + origin: this, + providerOverride: $SyncValueProvider(value), + ); + } +} + +String _$supabaseClientHash() => r'3db2a4c212c7f24cea9810e376225aa1a6cab012'; diff --git a/app/lib/core/theme/app_theme.dart b/app/lib/core/theme/app_theme.dart new file mode 100644 index 0000000..c9d9454 --- /dev/null +++ b/app/lib/core/theme/app_theme.dart @@ -0,0 +1,10 @@ +import 'package:flutter/material.dart'; + +/// Minimales Platzhalter-Theme. Wird vom Design-System (F6, ui-designer) +/// ersetzt; `ShuffleApp` greift nur auf [AppTheme.light] zu. +abstract final class AppTheme { + static ThemeData light() => ThemeData( + useMaterial3: true, + colorScheme: ColorScheme.fromSeed(seedColor: Colors.indigo), + ); +} diff --git a/app/lib/features/home/presentation/home_screen.dart b/app/lib/features/home/presentation/home_screen.dart new file mode 100644 index 0000000..1274e26 --- /dev/null +++ b/app/lib/features/home/presentation/home_screen.dart @@ -0,0 +1,26 @@ +import 'package:flutter/material.dart'; +import 'package:shuffle/core/l10n/l10n.dart'; + +/// Platzhalter-Startseite. Wird durch die Katalogsuche bzw. QUE-09 ersetzt. +class HomeScreen extends StatelessWidget { + const HomeScreen({super.key}); + + @override + Widget build(BuildContext context) { + final l10n = context.l10n; + return Scaffold( + key: const Key('home_screen'), + appBar: AppBar(title: Text(l10n.appTitle)), + body: Center( + child: Padding( + padding: const EdgeInsets.all(24), + child: Text( + l10n.homePlaceholderMessage, + key: const Key('home_placeholder_message'), + textAlign: TextAlign.center, + ), + ), + ), + ); + } +} diff --git a/app/lib/l10n/app_de.arb b/app/lib/l10n/app_de.arb new file mode 100644 index 0000000..d71ccac --- /dev/null +++ b/app/lib/l10n/app_de.arb @@ -0,0 +1,8 @@ +{ + "@@locale": "de", + "appTitle": "Shuffle", + "homePlaceholderMessage": "Willkommen bei Shuffle. Der Brettspielkatalog folgt in Kürze.", + "notFoundTitle": "Seite nicht gefunden", + "notFoundMessage": "Diese Seite existiert nicht oder wurde verschoben.", + "notFoundBackHome": "Zurück zum Start" +} diff --git a/app/lib/l10n/app_en.arb b/app/lib/l10n/app_en.arb new file mode 100644 index 0000000..938ef0f --- /dev/null +++ b/app/lib/l10n/app_en.arb @@ -0,0 +1,23 @@ +{ + "@@locale": "en", + "appTitle": "Shuffle", + "@appTitle": { + "description": "Name of the app" + }, + "homePlaceholderMessage": "Welcome to Shuffle. The board game catalog is coming soon.", + "@homePlaceholderMessage": { + "description": "Placeholder text on the start page until real content exists" + }, + "notFoundTitle": "Page not found", + "@notFoundTitle": { + "description": "Title of the 404 page" + }, + "notFoundMessage": "This page does not exist or has been moved.", + "@notFoundMessage": { + "description": "Explanation on the 404 page" + }, + "notFoundBackHome": "Back to start", + "@notFoundBackHome": { + "description": "Button on the 404 page that navigates to the start page" + } +} diff --git a/app/lib/l10n/app_localizations.dart b/app/lib/l10n/app_localizations.dart new file mode 100644 index 0000000..989bd53 --- /dev/null +++ b/app/lib/l10n/app_localizations.dart @@ -0,0 +1,164 @@ +import 'dart:async'; + +import 'package:flutter/foundation.dart'; +import 'package:flutter/widgets.dart'; +import 'package:flutter_localizations/flutter_localizations.dart'; +import 'package:intl/intl.dart' as intl; + +import 'app_localizations_de.dart'; +import 'app_localizations_en.dart'; + +// ignore_for_file: type=lint + +/// Callers can lookup localized strings with an instance of AppLocalizations +/// returned by `AppLocalizations.of(context)`. +/// +/// Applications need to include `AppLocalizations.delegate()` in their app's +/// `localizationDelegates` list, and the locales they support in the app's +/// `supportedLocales` list. For example: +/// +/// ```dart +/// import 'l10n/app_localizations.dart'; +/// +/// return MaterialApp( +/// localizationsDelegates: AppLocalizations.localizationsDelegates, +/// supportedLocales: AppLocalizations.supportedLocales, +/// home: MyApplicationHome(), +/// ); +/// ``` +/// +/// ## Update pubspec.yaml +/// +/// Please make sure to update your pubspec.yaml to include the following +/// packages: +/// +/// ```yaml +/// dependencies: +/// # Internationalization support. +/// flutter_localizations: +/// sdk: flutter +/// intl: any # Use the pinned version from flutter_localizations +/// +/// # Rest of dependencies +/// ``` +/// +/// ## iOS Applications +/// +/// iOS applications define key application metadata, including supported +/// locales, in an Info.plist file that is built into the application bundle. +/// To configure the locales supported by your app, you’ll need to edit this +/// file. +/// +/// First, open your project’s ios/Runner.xcworkspace Xcode workspace file. +/// Then, in the Project Navigator, open the Info.plist file under the Runner +/// project’s Runner folder. +/// +/// Next, select the Information Property List item, select Add Item from the +/// Editor menu, then select Localizations from the pop-up menu. +/// +/// Select and expand the newly-created Localizations item then, for each +/// locale your application supports, add a new item and select the locale +/// you wish to add from the pop-up menu in the Value field. This list should +/// be consistent with the languages listed in the AppLocalizations.supportedLocales +/// property. +abstract class AppLocalizations { + AppLocalizations(String locale) + : localeName = intl.Intl.canonicalizedLocale(locale.toString()); + + final String localeName; + + static AppLocalizations of(BuildContext context) { + return Localizations.of(context, AppLocalizations)!; + } + + static const LocalizationsDelegate delegate = + _AppLocalizationsDelegate(); + + /// A list of this localizations delegate along with the default localizations + /// delegates. + /// + /// Returns a list of localizations delegates containing this delegate along with + /// GlobalMaterialLocalizations.delegate, GlobalCupertinoLocalizations.delegate, + /// and GlobalWidgetsLocalizations.delegate. + /// + /// Additional delegates can be added by appending to this list in + /// MaterialApp. This list does not have to be used at all if a custom list + /// of delegates is preferred or required. + static const List> localizationsDelegates = + >[ + delegate, + GlobalMaterialLocalizations.delegate, + GlobalCupertinoLocalizations.delegate, + GlobalWidgetsLocalizations.delegate, + ]; + + /// A list of this localizations delegate's supported locales. + static const List supportedLocales = [ + Locale('de'), + Locale('en'), + ]; + + /// Name of the app + /// + /// In en, this message translates to: + /// **'Shuffle'** + String get appTitle; + + /// Placeholder text on the start page until real content exists + /// + /// In en, this message translates to: + /// **'Welcome to Shuffle. The board game catalog is coming soon.'** + String get homePlaceholderMessage; + + /// Title of the 404 page + /// + /// In en, this message translates to: + /// **'Page not found'** + String get notFoundTitle; + + /// Explanation on the 404 page + /// + /// In en, this message translates to: + /// **'This page does not exist or has been moved.'** + String get notFoundMessage; + + /// Button on the 404 page that navigates to the start page + /// + /// In en, this message translates to: + /// **'Back to start'** + String get notFoundBackHome; +} + +class _AppLocalizationsDelegate + extends LocalizationsDelegate { + const _AppLocalizationsDelegate(); + + @override + Future load(Locale locale) { + return SynchronousFuture(lookupAppLocalizations(locale)); + } + + @override + bool isSupported(Locale locale) => + ['de', 'en'].contains(locale.languageCode); + + @override + bool shouldReload(_AppLocalizationsDelegate old) => false; +} + +AppLocalizations lookupAppLocalizations(Locale locale) { + // Lookup logic when only language code is specified. + switch (locale.languageCode) { + case 'de': + return AppLocalizationsDe(); + case 'en': + return AppLocalizationsEn(); + } + + throw FlutterError( + 'AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely ' + 'an issue with the localizations generation tool. Please file an issue ' + 'on GitHub with a reproducible sample app and the gen-l10n configuration ' + 'that was used.', + ); +} diff --git a/app/lib/l10n/app_localizations_de.dart b/app/lib/l10n/app_localizations_de.dart new file mode 100644 index 0000000..185ddf6 --- /dev/null +++ b/app/lib/l10n/app_localizations_de.dart @@ -0,0 +1,28 @@ +// ignore: unused_import +import 'package:intl/intl.dart' as intl; + +import 'app_localizations.dart'; + +// ignore_for_file: type=lint + +/// The translations for German (`de`). +class AppLocalizationsDe extends AppLocalizations { + AppLocalizationsDe([String locale = 'de']) : super(locale); + + @override + String get appTitle => 'Shuffle'; + + @override + String get homePlaceholderMessage => + 'Willkommen bei Shuffle. Der Brettspielkatalog folgt in Kürze.'; + + @override + String get notFoundTitle => 'Seite nicht gefunden'; + + @override + String get notFoundMessage => + 'Diese Seite existiert nicht oder wurde verschoben.'; + + @override + String get notFoundBackHome => 'Zurück zum Start'; +} diff --git a/app/lib/l10n/app_localizations_en.dart b/app/lib/l10n/app_localizations_en.dart new file mode 100644 index 0000000..553cb30 --- /dev/null +++ b/app/lib/l10n/app_localizations_en.dart @@ -0,0 +1,27 @@ +// ignore: unused_import +import 'package:intl/intl.dart' as intl; + +import 'app_localizations.dart'; + +// ignore_for_file: type=lint + +/// The translations for English (`en`). +class AppLocalizationsEn extends AppLocalizations { + AppLocalizationsEn([String locale = 'en']) : super(locale); + + @override + String get appTitle => 'Shuffle'; + + @override + String get homePlaceholderMessage => + 'Welcome to Shuffle. The board game catalog is coming soon.'; + + @override + String get notFoundTitle => 'Page not found'; + + @override + String get notFoundMessage => 'This page does not exist or has been moved.'; + + @override + String get notFoundBackHome => 'Back to start'; +} diff --git a/app/lib/main.dart b/app/lib/main.dart new file mode 100644 index 0000000..1772cf2 --- /dev/null +++ b/app/lib/main.dart @@ -0,0 +1,23 @@ +import 'package:flutter/widgets.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:shuffle/app.dart'; +import 'package:shuffle/core/config/app_config.dart'; +import 'package:shuffle/core/error/global_error_handler.dart'; +import 'package:shuffle/core/logging/app_logger.dart'; +import 'package:shuffle/core/routing/url_strategy.dart'; +import 'package:supabase_flutter/supabase_flutter.dart'; + +Future main() async { + WidgetsFlutterBinding.ensureInitialized(); + AppLogger.configure(); + installGlobalErrorHandlers(); + configurePathUrlStrategy(); + + final config = AppConfig.fromEnvironment()..validate(); + await Supabase.initialize( + url: config.supabaseUrl, + publishableKey: config.supabaseAnonKey, + ); + + runApp(const ProviderScope(child: ShuffleApp())); +} diff --git a/app/pubspec.lock b/app/pubspec.lock new file mode 100644 index 0000000..6276c08 --- /dev/null +++ b/app/pubspec.lock @@ -0,0 +1,999 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + _fe_analyzer_shared: + dependency: transitive + description: + name: _fe_analyzer_shared + sha256: "1c5591cc6f252d5f440d96ab87c03e43504be552a3fa49d7cb7563f04c51fb0a" + url: "https://pub.dev" + source: hosted + version: "111.0.0" + analyzer: + dependency: transitive + description: + name: analyzer + sha256: "6c39bd5486a310e56217bed7cb1691377959f31be4227e41750107db7e6dd55c" + url: "https://pub.dev" + source: hosted + version: "14.7.0" + analyzer_buffer: + dependency: transitive + description: + name: analyzer_buffer + sha256: f890a2e708e38fbf4238ad2f9fd3d506538acdddb0cd8eb2c3e8c7bd17784b57 + url: "https://pub.dev" + source: hosted + version: "0.3.4" + app_links: + dependency: transitive + description: + name: app_links + sha256: "08ba88bf19d9edea33130cb71c8ced2cb982b4e00b82efef4a434d1357bc69c3" + url: "https://pub.dev" + source: hosted + version: "7.2.2" + app_links_linux: + dependency: transitive + description: + name: app_links_linux + sha256: "9ccb5802085a1e57bb07b6256fd1d61a78c7ec104944d4965e62938b4fefd9cb" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + app_links_platform_interface: + dependency: transitive + description: + name: app_links_platform_interface + sha256: "7546f09a6e93f4a2df2fe2bd40a5c6c64310ac461b036d82b43033be7a59f809" + url: "https://pub.dev" + source: hosted + version: "2.0.4" + app_links_web: + dependency: transitive + description: + name: app_links_web + sha256: "382d32c6f486f15b1d7f5d6a37a70a481a4fc08382eef419d373169921a3e765" + url: "https://pub.dev" + source: hosted + version: "1.0.5" + args: + dependency: transitive + description: + name: args + sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04 + url: "https://pub.dev" + source: hosted + version: "2.7.0" + 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" + build: + dependency: transitive + description: + name: build + sha256: "8a5c5761af8e31748bba3c82f68925ace40f3225c3eea25be9beb57eca7cd7a8" + url: "https://pub.dev" + source: hosted + version: "4.0.11" + build_config: + dependency: transitive + description: + name: build_config + sha256: d466ed2dc9c6cd1d169948879b84ee061eb5e22c64a7c6089879c6296d272a8d + url: "https://pub.dev" + source: hosted + version: "1.3.3" + build_daemon: + dependency: transitive + description: + name: build_daemon + sha256: "39ab65f7c60c19af64b9ef96e6a5d3ab48355f7dddfd98a9079d55a8cb6628fc" + url: "https://pub.dev" + source: hosted + version: "4.1.7" + build_runner: + dependency: "direct dev" + description: + name: build_runner + sha256: "6feadd32d90a68253c1f7b4fcff76adb4b41ad32a53f8bad835dc65f01ac9dc5" + url: "https://pub.dev" + source: hosted + version: "2.16.2" + built_collection: + dependency: transitive + description: + name: built_collection + sha256: "44922ecebd8e3d0cef743dadd3b54df4e87e2a4c52a29465a1872aa9e192caa8" + url: "https://pub.dev" + source: hosted + version: "5.1.2" + built_value: + dependency: transitive + description: + name: built_value + sha256: f87ea98192116f7093cb214551ce1929caae0681fdba282b3d8b4462adee7bb7 + url: "https://pub.dev" + source: hosted + version: "8.13.0" + 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" + clock: + dependency: transitive + description: + name: clock + sha256: e51d50bca3217c9a9fa2b41a30e4a38971133f5f9ec7a3d57bae095007f1d28e + url: "https://pub.dev" + source: hosted + version: "1.1.3" + code_builder: + dependency: transitive + description: + name: code_builder + sha256: "811709c1badd02fc054039a13f66e0db1961865f9a314175f68c3eaeebec786f" + url: "https://pub.dev" + source: hosted + version: "4.13.0" + 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" + crypto: + dependency: transitive + description: + name: crypto + sha256: e3626ae6270383c9e3a549f34c9e4cd26c09ae6a9adaab2bf4737a00340efdc4 + url: "https://pub.dev" + source: hosted + version: "3.0.8" + cupertino_ui: + dependency: transitive + description: + name: cupertino_ui + sha256: e003b87afde18cb396ec15928c7894063d64af04462c68df9a1404c461316dd2 + url: "https://pub.dev" + source: hosted + version: "1.1.5" + dart_jsonwebtoken: + dependency: transitive + description: + name: dart_jsonwebtoken + sha256: ad84e60181696513d04d5f2078e0bbc20365b911f46f647797317414bdc88fbe + url: "https://pub.dev" + source: hosted + version: "3.4.1" + dart_style: + dependency: transitive + description: + name: dart_style + sha256: a0e4f65339b31eb6a9e6a12e14b4682a48d46fbc54a82f4a702396fbdbac63a7 + url: "https://pub.dev" + source: hosted + version: "3.1.14" + 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" + 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_lints: + dependency: "direct dev" + description: + name: flutter_lints + sha256: "3105dc8492f6183fb076ccf1f351ac3d60564bff92e20bfc4af9cc1651f4e7e1" + url: "https://pub.dev" + source: hosted + version: "6.0.0" + flutter_localizations: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_riverpod: + dependency: "direct main" + description: + name: flutter_riverpod + sha256: "2b7f9d2a3c730ac1a98221b420cef966b990fca7ab546ede324642ca57a533e3" + url: "https://pub.dev" + source: hosted + version: "3.4.3" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + flutter_web_plugins: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + freezed: + dependency: "direct dev" + description: + name: freezed + sha256: cb910646cb09265d49077b63b600ef1f5a718c1d6031836432237ddeabae1b12 + url: "https://pub.dev" + source: hosted + version: "4.0.3" + freezed_annotation: + dependency: "direct main" + description: + name: freezed_annotation + sha256: "7294967ff0a6d98638e7acb774aac3af2550777accd8149c90af5b014e6d44d8" + url: "https://pub.dev" + source: hosted + version: "3.1.0" + functions_client: + dependency: transitive + description: + name: functions_client + sha256: "931e822688d2e97867b2300e2fdbb08c9db73f8653fc83efc7a259d2e0cca769" + url: "https://pub.dev" + source: hosted + version: "2.7.1" + glob: + dependency: transitive + description: + name: glob + sha256: "218aeb56050c714f62a3182775320dfa04602b55074873e24e31bbd39bda96fb" + url: "https://pub.dev" + source: hosted + version: "2.2.0" + go_router: + dependency: "direct main" + description: + name: go_router + sha256: f1c2d3c2b0b2096b435d7af033dd4e586fa31f51d988c5985e64495cd926d872 + url: "https://pub.dev" + source: hosted + version: "18.1.2" + gotrue: + dependency: transitive + description: + name: gotrue + sha256: cca816226824160e40d149816fd89740cc64dda1eaa3d9161e334330b18bba89 + url: "https://pub.dev" + source: hosted + version: "2.27.3" + graphs: + dependency: transitive + description: + name: graphs + sha256: "741bbf84165310a68ff28fe9e727332eef1407342fca52759cb21ad8177bb8d0" + url: "https://pub.dev" + source: hosted + version: "2.3.2" + http: + dependency: transitive + description: + name: http + sha256: "87721a4a50b19c7f1d49001e51409bddc46303966ce89a65af4f4e6004896412" + url: "https://pub.dev" + source: hosted + version: "1.6.0" + http_multi_server: + dependency: transitive + description: + name: http_multi_server + sha256: "361668bdd71f0ae2dc6d17b75a593520f3c414af6534f9eed1aa72049dd71d18" + url: "https://pub.dev" + source: hosted + version: "3.2.3" + http_parser: + dependency: transitive + description: + name: http_parser + sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571" + url: "https://pub.dev" + source: hosted + version: "4.1.2" + intl: + dependency: "direct main" + description: + name: intl + sha256: "1ca20c894b1717686a2319b8548763d812bc0aabdac580420a44c5178c57a867" + url: "https://pub.dev" + source: hosted + version: "0.20.3" + io: + dependency: transitive + description: + name: io + sha256: "2635216ca6a737e60de577ffa1a48a0bec76ca8a62917cfc1bb88c14c570646f" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + jni: + dependency: transitive + description: + name: jni + sha256: d8df6dab6847855512fe44dd9032b0bbe34dda7bf7597e41d30750879779813f + url: "https://pub.dev" + source: hosted + version: "1.1.1" + jni_util: + dependency: transitive + description: + name: jni_util + sha256: "1ba86da04a5f2bf18fde2edb235587e70c5b0fc5bd4ba955f46b00942c3fc35f" + url: "https://pub.dev" + source: hosted + version: "1.0.0" + json_annotation: + dependency: "direct main" + description: + name: json_annotation + sha256: "2a743920d81b7910627f68ee2c9ac1fc0bfee32b9fc3403587d7c6791ca12f80" + url: "https://pub.dev" + source: hosted + version: "4.12.0" + json_serializable: + dependency: "direct dev" + description: + name: json_serializable + sha256: cc7822761b40be9237bcaae62b755ffe5453ceff96a0001f1f5f2439251c66f1 + url: "https://pub.dev" + source: hosted + version: "6.15.2" + 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" + listen: + dependency: transitive + description: + name: listen + sha256: "47501a08016a43fcad79252439d723f50f14f88fa7bfd8a177e0a417e5c9e1f2" + url: "https://pub.dev" + source: hosted + version: "1.0.1" + logging: + dependency: "direct main" + description: + name: logging + sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61 + url: "https://pub.dev" + source: hosted + version: "1.3.0" + matcher: + dependency: transitive + description: + name: matcher + sha256: "31bd099b47c10cd1aeb55146a2d46ce0277630ecef3f7dae54ad7873f36696cd" + url: "https://pub.dev" + source: hosted + version: "0.12.20" + material_color_utilities: + dependency: transitive + description: + name: material_color_utilities + sha256: "9c337007e82b1889149c82ed242ed1cb24a66044e30979c44912381e9be4c48b" + url: "https://pub.dev" + source: hosted + version: "0.13.0" + material_ui: + dependency: transitive + description: + name: material_ui + sha256: feb289df1e5f9ed9522f9fe3d909432a7f7bc76943f16abad09f80a16cd25196 + url: "https://pub.dev" + source: hosted + version: "1.9.0" + meta: + dependency: transitive + description: + name: meta + sha256: c82594181e3312f3d0695fc95aaaf7758d75b8d4ae2bbecf223b9fd5109a059d + url: "https://pub.dev" + source: hosted + version: "1.18.3" + mime: + dependency: transitive + description: + name: mime + sha256: bd47de35f07e27267e69c8c8b22edf9473bfee170a60d60fcc93730c5144b7f6 + url: "https://pub.dev" + source: hosted + version: "2.1.0" + mockito: + dependency: transitive + description: + name: mockito + sha256: "6c1970612452260366064d4df80fdb3eece1ec5e52610ae34a0e51f2f3d8e64f" + url: "https://pub.dev" + source: hosted + version: "5.8.1" + mocktail: + dependency: "direct dev" + description: + name: mocktail + sha256: "5e1bf53cc7baa8062a33b84424deb61513858ea05c601b8509e683815b5914aa" + url: "https://pub.dev" + source: hosted + version: "1.0.5" + package_config: + dependency: transitive + description: + name: package_config + sha256: ffcf4cf3d6c0b74ac43708d9f56625506e8a68aa935abe9d267a7330f320eb5d + url: "https://pub.dev" + source: hosted + version: "3.0.0" + passkeys_platform_interface: + dependency: transitive + description: + name: passkeys_platform_interface + sha256: "5fca044a6f1a3c5abff645ca5a5417b613c130d1c4e08513ba9182c7f4834619" + url: "https://pub.dev" + source: hosted + version: "2.10.0" + path: + dependency: transitive + description: + name: path + sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" + url: "https://pub.dev" + source: hosted + version: "1.9.1" + 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" + platform: + dependency: transitive + description: + name: platform + sha256: a36d119c13416516a7b5913fbe8af8531e11633d784c550b2125f76c758524ec + url: "https://pub.dev" + source: hosted + version: "3.2.0" + 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" + pool: + dependency: transitive + description: + name: pool + sha256: "4177f68c237ea2128d1bee66ac17b2ce05ba3dbaafcbdd54c5d40a39d0b6b11c" + url: "https://pub.dev" + source: hosted + version: "1.5.3" + postgrest: + dependency: transitive + description: + name: postgrest + sha256: b7f957273ba6a1c26cefa987ac524f4138e9ab7542fbb9e6abdfddacb9895a21 + url: "https://pub.dev" + source: hosted + version: "2.9.1" + pub_semver: + dependency: transitive + description: + name: pub_semver + sha256: "261236774e8b1d69cfc6b9eabbc96c40f25e7a2d6b171f3385d4f65d5734fb24" + url: "https://pub.dev" + source: hosted + version: "2.2.1" + pubspec_parse: + dependency: transitive + description: + name: pubspec_parse + sha256: "9ac81c01ffd6a9cf9b2713288834fbaaf6aebde05ffdf02d380e68b8e06f27d8" + url: "https://pub.dev" + source: hosted + version: "1.7.0" + realtime_client: + dependency: transitive + description: + name: realtime_client + sha256: "2ef680d83ba2c0f76019d16194ca7067fa2458b2d4091b52323a9ca4a964fd40" + url: "https://pub.dev" + source: hosted + version: "2.13.2" + riverpod: + dependency: transitive + description: + name: riverpod + sha256: "484dfc873ea4c4f4240e5635444fa066f87b07862b7279ebd004a2b71fba4b7a" + url: "https://pub.dev" + source: hosted + version: "3.4.3" + riverpod_analyzer_utils: + dependency: transitive + description: + name: riverpod_analyzer_utils + sha256: bb13cb3985815840cc103eda1027158358c5fdc00f308fc6f76574d0594107af + url: "https://pub.dev" + source: hosted + version: "1.0.0-dev.12" + riverpod_annotation: + dependency: "direct main" + description: + name: riverpod_annotation + sha256: "322e56ad198928ef26ba240f85421bfff2493bd65665c887b1299e6386b6206d" + url: "https://pub.dev" + source: hosted + version: "4.0.7" + riverpod_generator: + dependency: "direct dev" + description: + name: riverpod_generator + sha256: c94dcb8b60ff4805d2bb8cacca969c48237bcb563e2ab0b5afb50204470c7636 + url: "https://pub.dev" + source: hosted + version: "4.0.9" + shared_preferences: + dependency: transitive + description: + name: shared_preferences + sha256: "1e85e0dccf5b4a016077fea7dfbb4a7cb39c759ac1596fcf60c06deadb7da91f" + url: "https://pub.dev" + source: hosted + version: "2.5.6" + shared_preferences_android: + dependency: transitive + description: + name: shared_preferences_android + sha256: "33b38b07d9ac7d16aff0426c61418752fd3e7a8c7dc8be786c875d6ce673b002" + url: "https://pub.dev" + source: hosted + version: "2.5.4" + shared_preferences_foundation: + dependency: transitive + description: + name: shared_preferences_foundation + sha256: "2ec3934efa51e46117f23031cc141b8fc878e8525b94ec1ea4f7f586cf1b47ea" + url: "https://pub.dev" + source: hosted + version: "2.5.7" + 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" + shelf: + dependency: transitive + description: + name: shelf + sha256: e75e9cf311d7fd712048038cc17c25199c38536c20330d53e7db058b543d5a48 + url: "https://pub.dev" + source: hosted + version: "1.4.3" + shelf_web_socket: + dependency: transitive + description: + name: shelf_web_socket + sha256: "3632775c8e90d6c9712f883e633716432a27758216dfb61bd86a8321c0580925" + url: "https://pub.dev" + source: hosted + version: "3.0.0" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + source_gen: + dependency: transitive + description: + name: source_gen + sha256: "833ea7d15b5be79949d3d6c077da0267a0bd93c16897b36a771395a91e63086e" + url: "https://pub.dev" + source: hosted + version: "4.3.1" + source_helper: + dependency: transitive + description: + name: source_helper + sha256: "279126bce72de3f2b7d4756408a4157988cf6bb4815be551bf55851aa00e9984" + url: "https://pub.dev" + source: hosted + version: "1.4.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: "277654b3034d17ac6f9f1cb5595db011b1d5d41e8806866db28e0abaa101c490" + url: "https://pub.dev" + source: hosted + version: "1.12.2" + state_notifier: + dependency: transitive + description: + name: state_notifier + sha256: b8677376aa54f2d7c58280d5a007f9e8774f1968d1fb1c096adcb4792fba29bb + url: "https://pub.dev" + source: hosted + version: "1.0.0" + storage_client: + dependency: transitive + description: + name: storage_client + sha256: b951281b8e2b293460f0e6cc4e866f2546681390f0e37d24fbbd7b4a0deb27a3 + url: "https://pub.dev" + source: hosted + version: "2.8.1" + stream_channel: + dependency: transitive + description: + name: stream_channel + sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + stream_transform: + dependency: transitive + description: + name: stream_transform + sha256: a00e5f18bffc764f923e7dec1038527f7fe7a1791361a7117f0358193f13d53a + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: transitive + description: + name: string_scanner + sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43" + url: "https://pub.dev" + source: hosted + version: "1.4.1" + supabase: + dependency: transitive + description: + name: supabase + sha256: "123fe08792b24e5e7c4b9a01145de8e95ebaa9183cd5f3c9d48dd2ff890f28a6" + url: "https://pub.dev" + source: hosted + version: "2.16.5" + supabase_common: + dependency: transitive + description: + name: supabase_common + sha256: a7961a44953cf8d9da049381fc3377516348255042fbb12b9d4f8540816f2fe9 + url: "https://pub.dev" + source: hosted + version: "0.1.2" + supabase_flutter: + dependency: "direct main" + description: + name: supabase_flutter + sha256: "48bbde226e68bdb293020859a1bfa42d0f3bd2239992fba0ec4f9194cbb842e6" + url: "https://pub.dev" + source: hosted + version: "2.18.3" + 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: "2a122cbe059f8b610d3a5415f42e255b6c17b1f21eee1d960f31080237fb4f11" + url: "https://pub.dev" + source: hosted + version: "0.7.12" + typed_data: + dependency: transitive + description: + name: typed_data + sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006 + url: "https://pub.dev" + source: hosted + version: "1.4.0" + url_launcher: + dependency: transitive + description: + name: url_launcher + sha256: e8cc955c97e06df9879140a1fe301f3d493f01b7c62dec7f46834be31d7e9fda + url: "https://pub.dev" + source: hosted + version: "6.3.3" + url_launcher_android: + dependency: transitive + description: + name: url_launcher_android + sha256: "611e87fb320b70d1dd721dc46af89c98aceccea9b31fde49e084591414e0c610" + url: "https://pub.dev" + source: hosted + version: "6.3.33" + url_launcher_ios: + dependency: transitive + description: + name: url_launcher_ios + sha256: "8faa1aab294f1ab4040b43660c887b0418d5fa4f0cffef76a484e6aa1092eb4a" + url: "https://pub.dev" + source: hosted + version: "6.4.2" + url_launcher_linux: + dependency: transitive + description: + name: url_launcher_linux + sha256: "10f86fef4c2c43563fa6c211ff9cf757adf4d3ab762c56bd430664a947d70cd0" + url: "https://pub.dev" + source: hosted + version: "3.2.3" + url_launcher_macos: + dependency: transitive + description: + name: url_launcher_macos + sha256: "5e835a3b869c2d70325349c81c5a45c28e20791265b67b2669da6b08c5cd5201" + url: "https://pub.dev" + source: hosted + version: "3.2.6" + url_launcher_platform_interface: + dependency: transitive + description: + name: url_launcher_platform_interface + sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029" + url: "https://pub.dev" + source: hosted + version: "2.3.2" + url_launcher_web: + dependency: transitive + description: + name: url_launcher_web + sha256: "85c81589622fbc87c1c683aaea164d3604a7777495a79d91e39ffcdec39ddb34" + url: "https://pub.dev" + source: hosted + version: "2.4.3" + url_launcher_windows: + dependency: transitive + description: + name: url_launcher_windows + sha256: "6c5ad3f22cd4c38e089b81963b3cd7bb83b111b2df5dce008bb066162f42e429" + url: "https://pub.dev" + source: hosted + version: "3.1.6" + uuid: + dependency: transitive + description: + name: uuid + sha256: "9b129329f58692f6e6578329498a8fe9fbe98f090beb764ffbb8ee2eadd01dcd" + url: "https://pub.dev" + source: hosted + version: "4.6.0" + vector_math: + dependency: transitive + description: + name: vector_math + sha256: fa49e1674cb84acb900141714e6c6e1f9ae099827c24d141430ff6819db4e1bc + url: "https://pub.dev" + source: hosted + version: "2.4.4" + vm_service: + dependency: transitive + description: + name: vm_service + sha256: "89b11d62e1040ee681af3b4f1c97a803ecbf010c6e8b9c5896ee5b08c3bf7b78" + url: "https://pub.dev" + source: hosted + version: "15.4.0" + watcher: + dependency: transitive + description: + name: watcher + sha256: "1398c9f081a753f9226febe8900fce8f7d0a67163334e1c94a2438339d79d635" + url: "https://pub.dev" + source: hosted + version: "1.2.1" + web: + dependency: transitive + description: + name: web + sha256: e119e82ac4795c7925103b7cf3768191f33941b99e7ccffbd6c645201d9f606b + url: "https://pub.dev" + source: hosted + version: "1.1.2" + web_socket: + dependency: transitive + description: + name: web_socket + sha256: "34d64019aa8e36bf9842ac014bb5d2f5586ca73df5e4d9bf5c936975cae6982c" + url: "https://pub.dev" + source: hosted + version: "1.0.1" + web_socket_channel: + dependency: transitive + description: + name: web_socket_channel + sha256: d645757fb0f4773d602444000a8131ff5d48c9e47adfe9772652dd1a4f2d45c8 + url: "https://pub.dev" + source: hosted + version: "3.0.3" + xdg_directories: + dependency: transitive + description: + name: xdg_directories + sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + yaml: + dependency: transitive + description: + name: yaml + sha256: f67cdd8e07d3c6329146aaef1ba043542b3134c12489f553ca9a7435d1068aea + url: "https://pub.dev" + source: hosted + version: "3.1.4" + yet_another_json_isolate: + dependency: transitive + description: + name: yet_another_json_isolate + sha256: eaa26beb5990b25a49d942374fd5a0c5aa67a837e03b14b4c26134aaa1ed01a9 + url: "https://pub.dev" + source: hosted + version: "2.1.1" +sdks: + dart: ">=3.13.7 <4.0.0" + flutter: ">=3.47.0" diff --git a/app/pubspec.yaml b/app/pubspec.yaml new file mode 100644 index 0000000..4d4030c --- /dev/null +++ b/app/pubspec.yaml @@ -0,0 +1,39 @@ +name: shuffle +description: "Shuffle – Brettspiel-App für iOS, Android und Web." +publish_to: 'none' + +version: 0.1.0+1 + +environment: + sdk: ^3.13.7 + +# Versionen gepinnt laut Spec #1 § 5.7 (Fundament-Issue #31). +dependencies: + flutter: + sdk: flutter + flutter_localizations: + sdk: flutter + flutter_web_plugins: + sdk: flutter + flutter_riverpod: 3.4.3 + riverpod_annotation: 4.0.7 + go_router: 18.1.2 + supabase_flutter: 2.18.3 + freezed_annotation: 3.1.0 + json_annotation: 4.12.0 + logging: 1.3.0 + intl: 0.20.3 + +dev_dependencies: + flutter_test: + sdk: flutter + flutter_lints: 6.0.0 + build_runner: 2.16.2 + riverpod_generator: 4.0.9 + freezed: 4.0.3 + json_serializable: 6.15.2 + mocktail: 1.0.5 + +flutter: + uses-material-design: true + generate: true diff --git a/app/test/app_test.dart b/app/test/app_test.dart new file mode 100644 index 0000000..1dd3a54 --- /dev/null +++ b/app/test/app_test.dart @@ -0,0 +1,33 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:shuffle/app.dart'; + +Future _pumpApp(WidgetTester tester) async { + await tester.pumpWidget(const ProviderScope(child: ShuffleApp())); + await tester.pumpAndSettle(); +} + +void main() { + tearDown(() { + TestWidgetsFlutterBinding.instance.platformDispatcher + .clearLocalesTestValue(); + }); + + testWidgets('app starts on the placeholder home page (English fallback)', ( + tester, + ) async { + tester.platformDispatcher.localesTestValue = [const Locale('fr')]; + await _pumpApp(tester); + + expect(find.byKey(const Key('home_screen')), findsOneWidget); + expect(find.textContaining('Welcome to Shuffle'), findsOneWidget); + }); + + testWidgets('app shows German texts on a German device', (tester) async { + tester.platformDispatcher.localesTestValue = [const Locale('de', 'DE')]; + await _pumpApp(tester); + + expect(find.textContaining('Willkommen bei Shuffle'), findsOneWidget); + }); +} diff --git a/app/test/core/config/app_config_test.dart b/app/test/core/config/app_config_test.dart new file mode 100644 index 0000000..0d6dcee --- /dev/null +++ b/app/test/core/config/app_config_test.dart @@ -0,0 +1,65 @@ +import 'package:flutter_test/flutter_test.dart'; +import 'package:shuffle/core/config/app_config.dart'; + +void main() { + group('AppConfig', () { + test('fromMap reads all values', () { + final config = AppConfig.fromMap(const { + 'APP_ENV': 'ci', + 'SUPABASE_URL': 'http://localhost:54321', + 'SUPABASE_ANON_KEY': 'anon', + 'SITE_URL': 'http://localhost:3000', + 'LEGAL_PRIVACY_URL': 'https://example.org/privacy', + 'LEGAL_TERMS_URL': 'https://example.org/terms', + 'TERMS_VERSION': 'v1', + }); + + expect(config.environment, 'ci'); + expect(config.supabaseUrl, 'http://localhost:54321'); + expect(config.supabaseAnonKey, 'anon'); + expect(config.siteUrl, 'http://localhost:3000'); + expect(config.legalPrivacyUrl, 'https://example.org/privacy'); + expect(config.legalTermsUrl, 'https://example.org/terms'); + expect(config.termsVersion, 'v1'); + expect(config.isValid, isTrue); + expect(config.validate, returnsNormally); + }); + + test('optional values fall back to placeholders', () { + final config = AppConfig.fromMap(const { + 'SUPABASE_URL': 'http://localhost:54321', + 'SUPABASE_ANON_KEY': 'anon', + }); + + expect(config.environment, AppConfig.defaultEnvironment); + expect(config.siteUrl, 'https://shuffle.cshomelabs.work'); + expect(config.legalPrivacyUrl, AppConfig.defaultLegalPrivacyUrl); + expect(config.legalTermsUrl, AppConfig.defaultLegalTermsUrl); + expect(config.termsVersion, AppConfig.defaultTermsVersion); + }); + + test('validate lists missing required values', () { + final config = AppConfig.fromMap(const {}); + + expect(config.isValid, isFalse); + expect(config.missingKeys, ['SUPABASE_URL', 'SUPABASE_ANON_KEY']); + expect( + config.validate, + throwsA( + isA().having( + (e) => e.message, + 'message', + contains('SUPABASE_URL'), + ), + ), + ); + }); + + test('fromEnvironment without defines yields an invalid config', () { + final config = AppConfig.fromEnvironment(); + + expect(config.isValid, isFalse); + expect(config.termsVersion, AppConfig.defaultTermsVersion); + }); + }); +} diff --git a/app/test/core/l10n/app_locale_test.dart b/app/test/core/l10n/app_locale_test.dart new file mode 100644 index 0000000..a25d406 --- /dev/null +++ b/app/test/core/l10n/app_locale_test.dart @@ -0,0 +1,42 @@ +import 'package:flutter/widgets.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:shuffle/core/l10n/app_locale.dart'; + +void main() { + TestWidgetsFlutterBinding.ensureInitialized(); + + group('resolveAppLocale', () { + test('keeps supported languages', () { + expect(resolveAppLocale(const Locale('de')), const Locale('de')); + expect(resolveAppLocale(const Locale('en')), const Locale('en')); + }); + + test('drops country codes of supported languages', () { + expect(resolveAppLocale(const Locale('de', 'AT')), const Locale('de')); + }); + + test('falls back to English for unsupported or missing locales', () { + expect(resolveAppLocale(const Locale('fr')), const Locale('en')); + expect(resolveAppLocale(null), const Locale('en')); + }); + }); + + group('appLocaleProvider', () { + tearDown(() { + TestWidgetsFlutterBinding.instance.platformDispatcher + .clearLocalesTestValue(); + }); + + test('uses the device language and follows changes', () { + final dispatcher = TestWidgetsFlutterBinding.instance.platformDispatcher + ..localesTestValue = [const Locale('de', 'DE')]; + final container = ProviderContainer.test(); + + expect(container.read(appLocaleProvider), const Locale('de')); + + dispatcher.localesTestValue = [const Locale('fr', 'FR')]; + expect(container.read(appLocaleProvider), const Locale('en')); + }); + }); +} diff --git a/app/test/core/logging/app_logger_test.dart b/app/test/core/logging/app_logger_test.dart new file mode 100644 index 0000000..40eb5eb --- /dev/null +++ b/app/test/core/logging/app_logger_test.dart @@ -0,0 +1,20 @@ +import 'package:flutter_test/flutter_test.dart'; +import 'package:logging/logging.dart'; +import 'package:shuffle/core/logging/app_logger.dart'; + +void main() { + test('AppLogger forwards records to package:logging', () { + Logger.root.level = Level.ALL; + final records = []; + final sub = Logger.root.onRecord.listen(records.add); + addTearDown(sub.cancel); + + AppLogger('Test') + ..info('hello') + ..error('failed', error: StateError('x')); + + expect(records.map((r) => r.message), ['hello', 'failed']); + expect(records.last.level, Level.SEVERE); + expect(records.last.loggerName, 'Test'); + }); +} diff --git a/app/test/core/result/result_test.dart b/app/test/core/result/result_test.dart new file mode 100644 index 0000000..3521707 --- /dev/null +++ b/app/test/core/result/result_test.dart @@ -0,0 +1,22 @@ +import 'package:flutter_test/flutter_test.dart'; +import 'package:shuffle/core/result/result.dart'; + +void main() { + test('success exposes value and no error', () { + const Result result = Result.success(1); + + expect(result.isSuccess, isTrue); + expect(result.valueOrNull, 1); + expect(result.errorOrNull, isNull); + expect(result.when(success: (v) => 'ok $v', failure: (e) => e), 'ok 1'); + }); + + test('failure exposes error and no value', () { + const Result result = Result.failure('boom'); + + expect(result.isFailure, isTrue); + expect(result.valueOrNull, isNull); + expect(result.errorOrNull, 'boom'); + expect(result.when(success: (v) => 'ok', failure: (e) => e), 'boom'); + }); +} diff --git a/app/test/core/routing/app_router_test.dart b/app/test/core/routing/app_router_test.dart new file mode 100644 index 0000000..dc8a025 --- /dev/null +++ b/app/test/core/routing/app_router_test.dart @@ -0,0 +1,61 @@ +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:go_router/go_router.dart'; +import 'package:shuffle/app.dart'; +import 'package:shuffle/core/routing/app_router.dart'; +import 'package:shuffle/core/routing/redirect_source.dart'; + +class _FakeRedirectSource implements RedirectSource { + final notifier = ValueNotifier(0); + String? target; + + @override + Listenable get changes => notifier; + + @override + String? redirect(GoRouterState state) => + state.uri.path == '/blocked' ? target : null; +} + +void main() { + testWidgets('unknown path shows the 404 page and leads back home', ( + tester, + ) async { + final container = ProviderContainer.test(); + await tester.pumpWidget( + UncontrolledProviderScope( + container: container, + child: const ShuffleApp(), + ), + ); + container.read(appRouterProvider).go('/does-not-exist'); + await tester.pumpAndSettle(); + + expect(find.byKey(const Key('not_found_screen')), findsOneWidget); + + await tester.tap(find.byKey(const Key('not_found_home_button'))); + await tester.pumpAndSettle(); + + expect(find.byKey(const Key('home_screen')), findsOneWidget); + }); + + testWidgets('redirect source decides where a route leads', (tester) async { + final source = _FakeRedirectSource()..target = '/'; + final container = ProviderContainer.test( + overrides: [redirectSourceProvider.overrideWithValue(source)], + ); + await tester.pumpWidget( + UncontrolledProviderScope( + container: container, + child: const ShuffleApp(), + ), + ); + + container.read(appRouterProvider).go('/blocked'); + await tester.pumpAndSettle(); + + expect(find.byKey(const Key('home_screen')), findsOneWidget); + }); +} diff --git a/app/web/favicon.png b/app/web/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..8aaa46ac1ae21512746f852a42ba87e4165dfdd1 GIT binary patch literal 917 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|I14-?iy0X7 zltGxWVyS%@P(fs7NJL45ua8x7ey(0(N`6wRUPW#JP&EUCO@$SZnVVXYs8ErclUHn2 zVXFjIVFhG^g!Ppaz)DK8ZIvQ?0~DO|i&7O#^-S~(l1AfjnEK zjFOT9D}DX)@^Za$W4-*MbbUihOG|wNBYh(yU7!lx;>x^|#0uTKVr7USFmqf|i<65o z3raHc^AtelCMM;Vme?vOfh>Xph&xL%(-1c06+^uR^q@XSM&D4+Kp$>4P^%3{)XKjo zGZknv$b36P8?Z_gF{nK@`XI}Z90TzwSQO}0J1!f2c(B=V`5aP@1P1a|PZ!4!3&Gl8 zTYqUsf!gYFyJnXpu0!n&N*SYAX-%d(5gVjrHJWqXQshj@!Zm{!01WsQrH~9=kTxW#6SvuapgMqt>$=j#%eyGrQzr zP{L-3gsMA^$I1&gsBAEL+vxi1*Igl=8#8`5?A-T5=z-sk46WA1IUT)AIZHx1rdUrf zVJrJn<74DDw`j)Ki#gt}mIT-Q`XRa2-jQXQoI%w`nb|XblvzK${ZzlV)m-XcwC(od z71_OEC5Bt9GEXosOXaPTYOia#R4ID2TiU~`zVMl08TV_C%DnU4^+HE>9(CE4D6?Fz oujB08i7adh9xk7*FX66dWH6F5TM;?E2b5PlUHx3vIVCg!0Dx9vYXATM literal 0 HcmV?d00001 diff --git a/app/web/icons/Icon-192.png b/app/web/icons/Icon-192.png new file mode 100644 index 0000000000000000000000000000000000000000..b749bfef07473333cf1dd31e9eed89862a5d52aa GIT binary patch literal 5292 zcmZ`-2T+sGz6~)*FVZ`aW+(v>MIm&M-g^@e2u-B-DoB?qO+b1Tq<5uCCv>ESfRum& zp%X;f!~1{tzL__3=gjVJ=j=J>+nMj%ncXj1Q(b|Ckbw{Y0FWpt%4y%$uD=Z*c-x~o zE;IoE;xa#7Ll5nj-e4CuXB&G*IM~D21rCP$*xLXAK8rIMCSHuSu%bL&S3)8YI~vyp@KBu9Ph7R_pvKQ@xv>NQ`dZp(u{Z8K3yOB zn7-AR+d2JkW)KiGx0hosml;+eCXp6+w%@STjFY*CJ?udJ64&{BCbuebcuH;}(($@@ znNlgBA@ZXB)mcl9nbX#F!f_5Z=W>0kh|UVWnf!At4V*LQP%*gPdCXd6P@J4Td;!Ur z<2ZLmwr(NG`u#gDEMP19UcSzRTL@HsK+PnIXbVBT@oHm53DZr?~V(0{rsalAfwgo zEh=GviaqkF;}F_5-yA!1u3!gxaR&Mj)hLuj5Q-N-@Lra{%<4ONja8pycD90&>yM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HT9JU zRA`umgmP9d6=PHmFIgx=0$(sjb>+0CHG)K@cPG{IxaJ&Ueo8)0RWgV9+gO7+Bl1(F z7!BslJ2MP*PWJ;x)QXbR$6jEr5q3 z(3}F@YO_P1NyTdEXRLU6fp?9V2-S=E+YaeLL{Y)W%6`k7$(EW8EZSA*(+;e5@jgD^I zaJQ2|oCM1n!A&-8`;#RDcZyk*+RPkn_r8?Ak@agHiSp*qFNX)&i21HE?yuZ;-C<3C zwJGd1lx5UzViP7sZJ&|LqH*mryb}y|%AOw+v)yc`qM)03qyyrqhX?ub`Cjwx2PrR! z)_z>5*!*$x1=Qa-0uE7jy0z`>|Ni#X+uV|%_81F7)b+nf%iz=`fF4g5UfHS_?PHbr zB;0$bK@=di?f`dS(j{l3-tSCfp~zUuva+=EWxJcRfp(<$@vd(GigM&~vaYZ0c#BTs z3ijkxMl=vw5AS&DcXQ%eeKt!uKvh2l3W?&3=dBHU=Gz?O!40S&&~ei2vg**c$o;i89~6DVns zG>9a*`k5)NI9|?W!@9>rzJ;9EJ=YlJTx1r1BA?H`LWijk(rTax9(OAu;q4_wTj-yj z1%W4GW&K4T=uEGb+E!>W0SD_C0RR91 literal 0 HcmV?d00001 diff --git a/app/web/icons/Icon-512.png b/app/web/icons/Icon-512.png new file mode 100644 index 0000000000000000000000000000000000000000..88cfd48dff1169879ba46840804b412fe02fefd6 GIT binary patch literal 8252 zcmd5=2T+s!lYZ%-(h(2@5fr2dC?F^$C=i-}R6$UX8af(!je;W5yC_|HmujSgN*6?W z3knF*TL1$|?oD*=zPbBVex*RUIKsL<(&Rj9%^UD2IK3W?2j>D?eWQgvS-HLymHo9%~|N2Q{~j za?*X-{b9JRowv_*Mh|;*-kPFn>PI;r<#kFaxFqbn?aq|PduQg=2Q;~Qc}#z)_T%x9 zE|0!a70`58wjREmAH38H1)#gof)U3g9FZ^ zF7&-0^Hy{4XHWLoC*hOG(dg~2g6&?-wqcpf{ z&3=o8vw7lMi22jCG9RQbv8H}`+}9^zSk`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$sFpBrkT{7Jpd?HpIvj2!}RIq zH{9~+gErN2+}J`>Jvng2hwM`=PLNkc7pkjblKW|+Fk9rc)G1R>Ww>RC=r-|!m-u7( zc(a$9NG}w#PjWNMS~)o=i~WA&4L(YIW25@AL9+H9!?3Y}sv#MOdY{bb9j>p`{?O(P zIvb`n?_(gP2w3P#&91JX*md+bBEr%xUHMVqfB;(f?OPtMnAZ#rm5q5mh;a2f_si2_ z3oXWB?{NF(JtkAn6F(O{z@b76OIqMC$&oJ_&S|YbFJ*)3qVX_uNf5b8(!vGX19hsG z(OP>RmZp29KH9Ge2kKjKigUmOe^K_!UXP`von)PR8Qz$%=EmOB9xS(ZxE_tnyzo}7 z=6~$~9k0M~v}`w={AeqF?_)9q{m8K#6M{a&(;u;O41j)I$^T?lx5(zlebpY@NT&#N zR+1bB)-1-xj}R8uwqwf=iP1GbxBjneCC%UrSdSxK1vM^i9;bUkS#iRZw2H>rS<2<$ zNT3|sDH>{tXb=zq7XZi*K?#Zsa1h1{h5!Tq_YbKFm_*=A5-<~j63he;4`77!|LBlo zR^~tR3yxcU=gDFbshyF6>o0bdp$qmHS7D}m3;^QZq9kBBU|9$N-~oU?G5;jyFR7>z hN`IR97YZXIo@y!QgFWddJ3|0`sjFx!m))><{BI=FK%f8s literal 0 HcmV?d00001 diff --git a/app/web/icons/Icon-maskable-192.png b/app/web/icons/Icon-maskable-192.png new file mode 100644 index 0000000000000000000000000000000000000000..eb9b4d76e525556d5d89141648c724331630325d GIT binary patch literal 5594 zcmdT|`#%%j|KDb2V@0DPm$^(Lx5}lO%Yv(=e*7hl@QqKS50#~#^IQPxBmuh|i9sXnt4ch@VT0F7% zMtrs@KWIOo+QV@lSs66A>2pz6-`9Jk=0vv&u?)^F@HZ)-6HT=B7LF;rdj zskUyBfbojcX#CS>WrIWo9D=DIwcXM8=I5D{SGf$~=gh-$LwY?*)cD%38%sCc?5OsX z-XfkyL-1`VavZ?>(pI-xp-kYq=1hsnyP^TLb%0vKRSo^~r{x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54)dsS%nkBb}+GuUEKU~pHcYIg4vSo$J(J|U36bs0Use+3A&IMcR%6@jv$ z=+QI+@wW@?iu}Hpyzlvj-EYeop{f65GX0O%>w#0t|V z1-svWk`hU~m`|O$kw5?Yn5UhI%9P-<45A(v0ld1n+%Ziq&TVpBcV9n}L9Tus-TI)f zd_(g+nYCDR@+wYNQm1GwxhUN4tGMLCzDzPqY$~`l<47{+l<{FZ$L6(>J)|}!bi<)| zE35dl{a2)&leQ@LlDxLQOfUDS`;+ZQ4ozrleQwaR-K|@9T{#hB5Z^t#8 zC-d_G;B4;F#8A2EBL58s$zF-=SCr`P#z zNCTnHF&|X@q>SkAoYu>&s9v@zCpv9lLSH-UZzfhJh`EZA{X#%nqw@@aW^vPcfQrlPs(qQxmC|4tp^&sHy!H!2FH5eC{M@g;ElWNzlb-+ zxpfc0m4<}L){4|RZ>KReag2j%Ot_UKkgpJN!7Y_y3;Ssz{9 z!K3isRtaFtQII5^6}cm9RZd5nTp9psk&u1C(BY`(_tolBwzV_@0F*m%3G%Y?2utyS zY`xM0iDRT)yTyYukFeGQ&W@ReM+ADG1xu@ruq&^GK35`+2r}b^V!m1(VgH|QhIPDE X>c!)3PgKfL&lX^$Z>Cpu&6)6jvi^Z! literal 0 HcmV?d00001 diff --git a/app/web/icons/Icon-maskable-512.png b/app/web/icons/Icon-maskable-512.png new file mode 100644 index 0000000000000000000000000000000000000000..d69c56691fbdb0b7efa65097c7cc1edac12a6d3e GIT binary patch literal 20998 zcmeFZ_gj-)&^4Nb2tlbLMU<{!p(#yjqEe+=0IA_oih%ScH9@5#MNp&}Y#;;(h=A0@ zh7{>lT2MkSQ344eAvrhici!td|HJuyvJm#Y_w1Q9Yu3!26dNlO-oxUDK_C#XnW^Co z5C{VN6#{~B0)K2j7}*1Xq(Nqemv23A-6&=ZpEijkVnSwVGqLv40?n0=p;k3-U5e5+ z+z3>aS`u9DS=!wg8ROu?X4TFoW6CFLL&{GzoVT)ldhLekLM|+j3tIxRd|*5=c{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+t>P)4tHlYw-pPN z^oJ=uc$Sl>pv@fZH~ZqxSvdhF@F1s=oZawpr^-#l{IIOGG=T%QXjtwPhIg-F@k@uIlr?J->Ia zpEUQ*=4g|XYn4Gez&aHr*;t$u3oODPmc2Ku)2Og|xjc%w;q!Zz+zY)*3{7V8bK4;& zYV82FZ+8?v)`J|G1w4I0fWdKg|2b#iaazCv;|?(W-q}$o&Y}Q5d@BRk^jL7#{kbCK zSgkyu;=DV+or2)AxCBgq-nj5=@n^`%T#V+xBGEkW4lCqrE)LMv#f;AvD__cQ@Eg3`~x| zW+h9mofSXCq5|M)9|ez(#X?-sxB%Go8};sJ?2abp(Y!lyi>k)|{M*Z$c{e1-K4ky` MPgg&ebxsLQ025IeI{*Lx literal 0 HcmV?d00001 diff --git a/app/web/index.html b/app/web/index.html new file mode 100644 index 0000000..e2bd128 --- /dev/null +++ b/app/web/index.html @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + Shuffle + + + + + + + diff --git a/app/web/manifest.json b/app/web/manifest.json new file mode 100644 index 0000000..1280c31 --- /dev/null +++ b/app/web/manifest.json @@ -0,0 +1,35 @@ +{ + "name": "Shuffle", + "short_name": "Shuffle", + "start_url": ".", + "display": "standalone", + "background_color": "#0175C2", + "theme_color": "#0175C2", + "description": "Shuffle – Brettspiel-App", + "orientation": "portrait-primary", + "prefer_related_applications": false, + "icons": [ + { + "src": "icons/Icon-192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "icons/Icon-512.png", + "sizes": "512x512", + "type": "image/png" + }, + { + "src": "icons/Icon-maskable-192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "icons/Icon-maskable-512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ] +} -- 2.45.2 From 77c71c0169ba811a369dad9fc543fc06eb30740a Mon Sep 17 00:00:00 2001 From: cschlaefke Date: Mon, 2 Nov 2026 20:18:58 +0100 Subject: [PATCH 03/11] ci: run Flutter and web build checks from app/ Refs #31 Co-Authored-By: Claude Sonnet 5.5 --- .forgejo/workflows/ci.yml | 67 ++++++++++++++++++++++++++++++++------- env/ci.example.json | 5 --- 2 files changed, 56 insertions(+), 16 deletions(-) delete mode 100644 env/ci.example.json diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 4312dae..4600444 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -1,4 +1,5 @@ -# CI für Pull Requests und main – läuft auf einem Forgejo-Runner mit Docker-Label +# CI für Pull Requests und main – läuft auf einem Forgejo-Runner mit Docker-Label. +# Flutter-Projekt liegt in app/, Supabase in supabase/. name: CI on: @@ -6,11 +7,18 @@ on: push: branches: [main] +env: + SUPABASE_CLI_VERSION: 3.0.0 + jobs: + # Format, Analyse, Tests. Generierte Dateien (*.g.dart, gen-l10n) sind eingecheckt und + # werden hier neu erzeugt; ein Diff bedeutet: Generierung im PR vergessen. flutter: runs-on: docker container: - image: ghcr.io/cirruslabs/flutter:stable # für Releases auf feste Version pinnen + image: ghcr.io/cirruslabs/flutter:3.47.9 # = lokale Flutter-Version (Dart 3.13.7); in beiden Jobs gleich halten + env: + PUB_CACHE: ${{ github.workspace }}/.pub-cache defaults: run: working-directory: app @@ -20,23 +28,57 @@ jobs: - name: Pub-Cache uses: https://code.forgejo.org/actions/cache@v4 with: - path: /root/.pub-cache + path: ${{ github.workspace }}/.pub-cache key: pub-${{ hashFiles('app/pubspec.lock') }} + restore-keys: pub- - - name: Abhängigkeiten + - name: Abhängigkeiten (erzeugt auch gen-l10n) run: flutter pub get - name: Code-Generierung run: dart run build_runner build --delete-conflicting-outputs + - name: Generierte Dateien aktuell? + run: | + git config --global --add safe.directory "$GITHUB_WORKSPACE" + if ! git diff --exit-code -- . ; then + echo "::error::Generierte Dateien sind nicht aktuell. Lokal 'dart run build_runner build --delete-conflicting-outputs' und 'flutter gen-l10n' ausführen und committen." + exit 1 + fi + untracked=$(git ls-files --others --exclude-standard -- lib test) + if [ -n "$untracked" ]; then echo "Nicht eingecheckte generierte Dateien:"; echo "$untracked"; exit 1; fi + - name: Format - run: dart format --set-exit-if-changed lib test + run: dart format --set-exit-if-changed . - name: Analyse run: flutter analyze --fatal-infos - name: Tests - run: flutter test --coverage + run: flutter test + + # Web-Build parallel zu den Prüfungen; Platzhalterwerte aus app/env/ci.example.json (keine Secrets). + web-build: + runs-on: docker + container: + image: ghcr.io/cirruslabs/flutter:3.47.9 + env: + PUB_CACHE: ${{ github.workspace }}/.pub-cache + defaults: + run: + working-directory: app + steps: + - uses: https://code.forgejo.org/actions/checkout@v4 + + - name: Pub-Cache + uses: https://code.forgejo.org/actions/cache@v4 + with: + path: ${{ github.workspace }}/.pub-cache + key: pub-${{ hashFiles('app/pubspec.lock') }} + restore-keys: pub- + + - name: Abhängigkeiten + run: flutter pub get - name: Web-Build run: flutter build web --release --dart-define-from-file=env/ci.example.json @@ -44,9 +86,11 @@ jobs: supabase: runs-on: docker container: - image: node:22-bookworm + image: node:22.12-bookworm steps: - uses: https://code.forgejo.org/actions/checkout@v4 + with: + fetch-depth: 0 - name: Migrationen prüfen (ohne laufende DB) run: | test -d supabase/migrations || { echo "Keine Migrationen – übersprungen"; exit 0; } @@ -58,7 +102,7 @@ jobs: fi # RLS-/pgTAP-Tests: braucht einen Runner mit Docker-Socket (Label "docker-host"). - # Läuft nur, wenn Migrationen existieren. Ohne passenden Runner Job bei Bedarf deaktivieren. + # Nutzt die eingecheckte supabase/config.toml. Ohne passenden Runner Job bei Bedarf deaktivieren. supabase-tests: runs-on: docker-host steps: @@ -68,9 +112,10 @@ jobs: node-version: 22 - name: Supabase starten und Datenbanktests ausführen run: | + test -f supabase/config.toml || { echo "supabase/config.toml fehlt"; exit 1; } test -d supabase/migrations || { echo "Keine Migrationen – übersprungen"; exit 0; } - npx --yes supabase start -x studio,imgproxy,edge-runtime,logflare,vector - npx --yes supabase test db + npx --yes supabase@${{ env.SUPABASE_CLI_VERSION }} start -x studio,imgproxy,edge-runtime,logflare,vector + npx --yes supabase@${{ env.SUPABASE_CLI_VERSION }} test db - name: Aufräumen if: always() - run: npx --yes supabase stop --no-backup || true + run: npx --yes supabase@${{ env.SUPABASE_CLI_VERSION }} stop --no-backup || true diff --git a/env/ci.example.json b/env/ci.example.json deleted file mode 100644 index 10a05f7..0000000 --- a/env/ci.example.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "SUPABASE_URL": "http://localhost:54321", - "SUPABASE_ANON_KEY": "public-anon-key-placeholder", - "APP_ENV": "ci" -} -- 2.45.2 From 936ca7bd4b363005dc71f49c430b2146916eacb3 Mon Sep 17 00:00:00 2001 From: cschlaefke Date: Mon, 2 Nov 2026 20:19:19 +0100 Subject: [PATCH 04/11] feat(theme): add Material 3 light/dark theme base and design tokens Refs #31 Co-Authored-By: Claude Sonnet 5.5 --- app/lib/app.dart | 2 + app/lib/core/theme/app_spacing.dart | 59 +++++++++ app/lib/core/theme/app_theme.dart | 151 +++++++++++++++++++++- app/test/core/theme/app_theme_test.dart | 164 ++++++++++++++++++++++++ docs/design-system.md | 61 +++++++++ 5 files changed, 431 insertions(+), 6 deletions(-) create mode 100644 app/lib/core/theme/app_spacing.dart create mode 100644 app/test/core/theme/app_theme_test.dart create mode 100644 docs/design-system.md diff --git a/app/lib/app.dart b/app/lib/app.dart index cddfa61..31dfbc0 100644 --- a/app/lib/app.dart +++ b/app/lib/app.dart @@ -14,6 +14,8 @@ class ShuffleApp extends ConsumerWidget { return MaterialApp.router( onGenerateTitle: (context) => AppLocalizations.of(context).appTitle, theme: AppTheme.light(), + darkTheme: AppTheme.dark(), + themeMode: ThemeMode.system, routerConfig: ref.watch(appRouterProvider), locale: ref.watch(appLocaleProvider), supportedLocales: AppLocalizations.supportedLocales, diff --git a/app/lib/core/theme/app_spacing.dart b/app/lib/core/theme/app_spacing.dart new file mode 100644 index 0000000..0ced66e --- /dev/null +++ b/app/lib/core/theme/app_spacing.dart @@ -0,0 +1,59 @@ +import 'package:flutter/widgets.dart'; + +/// Spacing tokens (dp) on a 4dp grid. +abstract final class AppSpacing { + static const double xxs = 2; + static const double xs = 4; + static const double sm = 8; + static const double md = 12; + static const double lg = 16; + static const double xl = 24; + static const double xxl = 32; + static const double xxxl = 48; + + /// Minimum size of interactive targets (WCAG 2.5.5 / Material: 48dp). + static const double minTouchTarget = 48; + + /// Page padding per width class. + static EdgeInsets pagePadding(double width) => EdgeInsets.symmetric( + horizontal: width >= AppBreakpoints.expanded + ? xxl + : width >= AppBreakpoints.medium + ? xl + : lg, + vertical: lg, + ); +} + +/// Corner radius tokens (dp). +abstract final class AppRadius { + static const double sm = 8; + static const double md = 12; + static const double lg = 16; + static const double xl = 28; + + static BorderRadius get smAll => BorderRadius.circular(sm); + static BorderRadius get mdAll => BorderRadius.circular(md); + static BorderRadius get lgAll => BorderRadius.circular(lg); +} + +/// Width breakpoints: compact < 600, medium 600-1023, expanded >= 1024. +abstract final class AppBreakpoints { + static const double medium = 600; + static const double expanded = 1024; + + /// Max content width for forms/text on wide screens. + static const double maxContentWidth = 560; +} + +enum AppWidthClass { + compact, + medium, + expanded; + + static AppWidthClass of(double width) => width >= AppBreakpoints.expanded + ? expanded + : width >= AppBreakpoints.medium + ? medium + : compact; +} diff --git a/app/lib/core/theme/app_theme.dart b/app/lib/core/theme/app_theme.dart index c9d9454..08e82d6 100644 --- a/app/lib/core/theme/app_theme.dart +++ b/app/lib/core/theme/app_theme.dart @@ -1,10 +1,149 @@ import 'package:flutter/material.dart'; +import 'package:shuffle/core/theme/app_spacing.dart'; -/// Minimales Platzhalter-Theme. Wird vom Design-System (F6, ui-designer) -/// ersetzt; `ShuffleApp` greift nur auf [AppTheme.light] zu. +/// Material 3 theme base of the design system (see docs/design-system.md). +/// +/// Colors come from [ColorScheme.fromSeed]; the contrast of all core pairs is +/// verified in `test/core/theme/app_theme_test.dart` (WCAG AA, >= 4.5:1 for +/// text, >= 3:1 for the focus indicator and input borders). abstract final class AppTheme { - static ThemeData light() => ThemeData( - useMaterial3: true, - colorScheme: ColorScheme.fromSeed(seedColor: Colors.indigo), - ); + static const Color seed = Color(0xFF4F46E5); + + static ThemeData light() => _build(Brightness.light); + + static ThemeData dark() => _build(Brightness.dark); + + static ColorScheme _scheme(Brightness brightness) { + final base = ColorScheme.fromSeed(seedColor: seed, brightness: brightness); + // Tone 50/60 outlines keep >= 3:1 against the surface (WCAG 1.4.11); + // the M3 default outline is slightly weaker in light mode. + return base.copyWith( + outline: brightness == Brightness.light + ? const Color(0xFF6B6A7A) + : const Color(0xFF9A99AB), + ); + } + + static ThemeData _build(Brightness brightness) { + final scheme = _scheme(brightness); + final textTheme = Typography.material2021(colorScheme: scheme).black + .apply(bodyColor: scheme.onSurface, displayColor: scheme.onSurface); + final themedText = brightness == Brightness.dark + ? Typography.material2021(colorScheme: scheme).white.apply( + bodyColor: scheme.onSurface, + displayColor: scheme.onSurface, + ) + : textTheme; + + const minSize = Size(AppSpacing.minTouchTarget, AppSpacing.minTouchTarget); + final shape = RoundedRectangleBorder(borderRadius: AppRadius.mdAll); + // Visible keyboard focus ring (web/desktop), contrast >= 3:1. + final focusSide = WidgetStateProperty.resolveWith( + (states) => states.contains(WidgetState.focused) + ? BorderSide(color: scheme.primary, width: 3) + : null, + ); + + OutlineInputBorder border(Color color, double width) => OutlineInputBorder( + borderRadius: AppRadius.mdAll, + borderSide: BorderSide(color: color, width: width), + ); + + return ThemeData( + useMaterial3: true, + colorScheme: scheme, + textTheme: themedText, + visualDensity: VisualDensity.standard, + materialTapTargetSize: MaterialTapTargetSize.padded, + scaffoldBackgroundColor: scheme.surface, + focusColor: scheme.primary.withValues(alpha: 0.16), + dividerTheme: DividerThemeData(color: scheme.outlineVariant), + appBarTheme: AppBarTheme( + backgroundColor: scheme.surface, + foregroundColor: scheme.onSurface, + centerTitle: false, + titleTextStyle: themedText.titleLarge, + ), + cardTheme: CardThemeData( + elevation: 0, + color: scheme.surfaceContainerLow, + shape: RoundedRectangleBorder( + borderRadius: AppRadius.lgAll, + side: BorderSide(color: scheme.outlineVariant), + ), + ), + filledButtonTheme: FilledButtonThemeData( + style: FilledButton.styleFrom( + minimumSize: minSize, + shape: shape, + padding: const EdgeInsets.symmetric(horizontal: AppSpacing.xl), + ).copyWith(side: focusSide), + ), + elevatedButtonTheme: ElevatedButtonThemeData( + style: ElevatedButton.styleFrom( + minimumSize: minSize, + shape: shape, + ).copyWith(side: focusSide), + ), + outlinedButtonTheme: OutlinedButtonThemeData( + style: + OutlinedButton.styleFrom( + minimumSize: minSize, + shape: shape, + side: BorderSide(color: scheme.outline), + padding: const EdgeInsets.symmetric(horizontal: AppSpacing.xl), + ).copyWith( + side: WidgetStateProperty.resolveWith( + (states) => states.contains(WidgetState.focused) + ? BorderSide(color: scheme.primary, width: 3) + : BorderSide(color: scheme.outline), + ), + ), + ), + textButtonTheme: TextButtonThemeData( + style: TextButton.styleFrom( + minimumSize: minSize, + shape: shape, + padding: const EdgeInsets.symmetric(horizontal: AppSpacing.lg), + ).copyWith(side: focusSide), + ), + iconButtonTheme: IconButtonThemeData( + style: IconButton.styleFrom(minimumSize: minSize), + ), + checkboxTheme: CheckboxThemeData( + materialTapTargetSize: MaterialTapTargetSize.padded, + side: BorderSide(color: scheme.outline, width: 2), + ), + inputDecorationTheme: InputDecorationTheme( + filled: true, + fillColor: scheme.surfaceContainerHighest, + contentPadding: const EdgeInsets.symmetric( + horizontal: AppSpacing.lg, + vertical: AppSpacing.md, + ), + border: border(scheme.outline, 1), + enabledBorder: border(scheme.outline, 1), + focusedBorder: border(scheme.primary, 3), + errorBorder: border(scheme.error, 2), + focusedErrorBorder: border(scheme.error, 3), + errorStyle: themedText.bodySmall?.copyWith(color: scheme.error), + helperStyle: themedText.bodySmall?.copyWith( + color: scheme.onSurfaceVariant, + ), + ), + snackBarTheme: SnackBarThemeData( + behavior: SnackBarBehavior.floating, + backgroundColor: scheme.inverseSurface, + contentTextStyle: themedText.bodyMedium?.copyWith( + color: scheme.onInverseSurface, + ), + actionTextColor: scheme.inversePrimary, + shape: RoundedRectangleBorder(borderRadius: AppRadius.smAll), + showCloseIcon: true, + closeIconColor: scheme.onInverseSurface, + // Wide screens: do not stretch across the whole window. + width: null, + ), + ); + } } diff --git a/app/test/core/theme/app_theme_test.dart b/app/test/core/theme/app_theme_test.dart new file mode 100644 index 0000000..e08edcc --- /dev/null +++ b/app/test/core/theme/app_theme_test.dart @@ -0,0 +1,164 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:shuffle/core/theme/app_spacing.dart'; +import 'package:shuffle/core/theme/app_theme.dart'; + +double _lum(Color c) => c.computeLuminance(); + +double contrast(Color a, Color b) { + final l1 = _lum(a); + final l2 = _lum(b); + final hi = l1 > l2 ? l1 : l2; + final lo = l1 > l2 ? l2 : l1; + return (hi + 0.05) / (lo + 0.05); +} + +void main() { + final themes = {'light': AppTheme.light(), 'dark': AppTheme.dark()}; + + for (final entry in themes.entries) { + final name = entry.key; + final theme = entry.value; + final s = theme.colorScheme; + + group('$name theme', () { + test('uses Material 3 and matching brightness', () { + expect(theme.useMaterial3, isTrue); + expect( + s.brightness, + name == 'light' ? Brightness.light : Brightness.dark, + ); + }); + + test('text pairs have contrast >= 4.5:1', () { + final pairs = { + 'onSurface/surface': (s.onSurface, s.surface), + 'onSurfaceVariant/surface': (s.onSurfaceVariant, s.surface), + 'onSurface/surfaceContainerLow': (s.onSurface, s.surfaceContainerLow), + 'onSurfaceVariant/surfaceContainerHighest': ( + s.onSurfaceVariant, + s.surfaceContainerHighest, + ), + 'onPrimary/primary': (s.onPrimary, s.primary), + 'onSecondary/secondary': (s.onSecondary, s.secondary), + 'onError/error': (s.onError, s.error), + 'onPrimaryContainer/primaryContainer': ( + s.onPrimaryContainer, + s.primaryContainer, + ), + 'onErrorContainer/errorContainer': ( + s.onErrorContainer, + s.errorContainer, + ), + 'error/surface': (s.error, s.surface), + 'error/inputFill': (s.error, s.surfaceContainerHighest), + 'primary/surface (text buttons)': (s.primary, s.surface), + 'onInverseSurface/inverseSurface': ( + s.onInverseSurface, + s.inverseSurface, + ), + 'inversePrimary/inverseSurface (snackbar action)': ( + s.inversePrimary, + s.inverseSurface, + ), + }; + for (final p in pairs.entries) { + expect( + contrast(p.value.$1, p.value.$2), + greaterThanOrEqualTo(4.5), + reason: p.key, + ); + } + }); + + test('non-text UI parts have contrast >= 3:1', () { + final pairs = { + 'outline/surface': (s.outline, s.surface), + 'outline/inputFill': (s.outline, s.surfaceContainerHighest), + 'focus ring primary/surface': (s.primary, s.surface), + 'focus ring primary/inputFill': ( + s.primary, + s.surfaceContainerHighest, + ), + 'error border/inputFill': (s.error, s.surfaceContainerHighest), + }; + for (final p in pairs.entries) { + expect( + contrast(p.value.$1, p.value.$2), + greaterThanOrEqualTo(3.0), + reason: p.key, + ); + } + }); + + test('touch targets are padded and buttons are >= 48dp', () { + expect(theme.materialTapTargetSize, MaterialTapTargetSize.padded); + final styles = [ + theme.filledButtonTheme.style, + theme.elevatedButtonTheme.style, + theme.outlinedButtonTheme.style, + theme.textButtonTheme.style, + theme.iconButtonTheme.style, + ]; + for (final style in styles) { + final size = style!.minimumSize!.resolve({})!; + expect(size.width, greaterThanOrEqualTo(48)); + expect(size.height, greaterThanOrEqualTo(48)); + } + }); + + testWidgets('buttons render >= 48dp and satisfy a11y guidelines', ( + tester, + ) async { + final handle = tester.ensureSemantics(); + await tester.pumpWidget( + MaterialApp( + theme: theme, + home: Scaffold( + body: Column( + children: [ + FilledButton(onPressed: () {}, child: const Text('Save')), + OutlinedButton(onPressed: () {}, child: const Text('Back')), + TextButton(onPressed: () {}, child: const Text('More')), + IconButton( + onPressed: () {}, + tooltip: 'Close', + icon: const Icon(Icons.close), + ), + const TextField( + decoration: InputDecoration(labelText: 'Email'), + ), + ], + ), + ), + ), + ); + await expectLater(tester, meetsGuideline(androidTapTargetGuideline)); + await expectLater(tester, meetsGuideline(iOSTapTargetGuideline)); + await expectLater(tester, meetsGuideline(labeledTapTargetGuideline)); + await expectLater(tester, meetsGuideline(textContrastGuideline)); + handle.dispose(); + }); + }); + } + + test('light and dark differ', () { + expect( + AppTheme.light().colorScheme.surface, + isNot(AppTheme.dark().colorScheme.surface), + ); + }); + + test('width classes follow breakpoints 600 / 1024', () { + expect(AppWidthClass.of(599), AppWidthClass.compact); + expect(AppWidthClass.of(600), AppWidthClass.medium); + expect(AppWidthClass.of(1023), AppWidthClass.medium); + expect(AppWidthClass.of(1024), AppWidthClass.expanded); + }); + + test('page padding grows with width', () { + expect(AppSpacing.pagePadding(400).left, AppSpacing.lg); + expect(AppSpacing.pagePadding(800).left, AppSpacing.xl); + expect(AppSpacing.pagePadding(1200).left, AppSpacing.xxl); + }); +} diff --git a/docs/design-system.md b/docs/design-system.md new file mode 100644 index 0000000..bc85daf --- /dev/null +++ b/docs/design-system.md @@ -0,0 +1,61 @@ +# Design-System (Theme-Basis, F6 / Issue #31) + +Stand: Basis. Konkrete Komponenten (Formularfelder, Banner, Spiel-Kachel usw.) folgen in U1. +Code: `app/lib/core/theme/` (`app_theme.dart`, `app_spacing.dart`), Tests: `app/test/core/theme/`. + +## Theme + +- Material 3, `AppTheme.light()` und `AppTheme.dark()`; `ShuffleApp` nutzt `ThemeMode.system`. +- Farben: `ColorScheme.fromSeed` mit Seed `#4F46E5` (Indigo). Einzige Abweichung: `outline` ist + etwas dunkler (hell `#6B6A7A`) bzw. heller (dunkel `#9A99AB`), damit Feldrahmen mindestens 3:1 erreichen. +- Keine Farbwerte in Widgets: immer `Theme.of(context).colorScheme` und `textTheme` verwenden. + +## Kontraste (WCAG 2.1 AA) + +Geprüft im Test `app_theme_test.dart` für Hell und Dunkel. Text mindestens 4.5:1, Bedienelemente +(Rahmen, Fokusring, Fehlerrahmen) mindestens 3:1. + +| Paar | Hell | Dunkel | +|---|---|---| +| onSurface / surface | 16.3 | 14.4 | +| onSurfaceVariant / surface | 8.9 | 10.9 | +| onSurfaceVariant / Feldfüllung | 7.2 | 7.3 | +| onPrimary / primary (Buttons) | 6.5 | 7.7 | +| Fehlertext (error) / Feldfüllung | 5.0 | 7.3 | +| SnackBar-Text / SnackBar-Fläche | 11.5 | 10.1 | +| SnackBar-Aktion / SnackBar-Fläche | 7.7 | 5.0 | +| Feldrahmen (outline) / Feldfüllung | 4.1 | 4.4 | +| Fokusring (primary) / Feldfüllung | 5.0 | 7.2 | + +Regeln: Informationen nie nur über Farbe vermitteln (Fehler = Text + Rahmen + Icon). Neue Farbpaare +müssen in den Test aufgenommen werden. Deaktivierte Elemente sind von der Kontrastpflicht ausgenommen. + +## Touch-Ziele und Fokus + +- Mindestgröße 48 x 48 dp für alle Buttons und Icon-Buttons (`minimumSize`), `MaterialTapTargetSize.padded`, + `VisualDensity.standard`. Nicht auf `compact` verkleinern. +- Tastaturfokus (Web/Desktop): Buttons und Textfelder zeigen einen 3 dp breiten Rahmen in `primary`. +- Icons ohne Text brauchen `tooltip` bzw. `Semantics(label: ...)`; Bilder ein Label oder `excludeSemantics`. +- Text muss bis 200 % Skalierung ohne Abschneiden funktionieren (kein fixes Höhen-Layout für Text). + +## Typografie + +Material-2021-Skala (`textTheme`), Farbe `onSurface`. Überschriften `headline*`/`title*`, Fließtext `bodyLarge/Medium`, +Hinweise `bodySmall` (`onSurfaceVariant`). Schriftgrößen nie hart codieren. + +## Abstände, Radien, Breakpoints (`app_spacing.dart`) + +| Token | Wert (dp) | +|---|---| +| `AppSpacing` xxs / xs / sm / md / lg / xl / xxl / xxxl | 2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 | +| `AppRadius` sm / md / lg / xl | 8 / 12 / 16 / 28 | +| Breakpoints (`AppWidthClass`) | kompakt < 600, mittel 600-1023, groß >= 1024 | +| `AppBreakpoints.maxContentWidth` | 560 (Formulare/Text auf breiten Bildschirmen begrenzen) | + +`AppSpacing.pagePadding(width)` liefert den Seitenrand je Breitenklasse (16 / 24 / 32). Web darf nicht +wie eine gestreckte Handy-App wirken: Inhalt zentrieren und auf `maxContentWidth` begrenzen. + +## Komponenten-Themes in der Basis + +FilledButton, ElevatedButton, OutlinedButton, TextButton, IconButton, Checkbox, InputDecoration +(gefüllt, Rahmen 1 dp, Fokus 3 dp, Fehler 2 dp), Card, AppBar, Divider, SnackBar (schwebend, mit Schließen-Icon). -- 2.45.2 From adf61b3ba2a1ba714feccaaec73311c989da4844 Mon Sep 17 00:00:00 2001 From: cschlaefke Date: Mon, 2 Nov 2026 20:21:55 +0100 Subject: [PATCH 05/11] test: add pumpApp helpers, fakes and coverage matrix template Refs #31 Co-Authored-By: Claude Sonnet 5.5 --- app/test/README.md | 44 +++++++++ app/test/app_test.dart | 18 +--- app/test/core/routing/app_router_test.dart | 42 +++------ app/test/helpers/fakes.dart | 55 +++++++++++ app/test/helpers/helpers_test.dart | 88 ++++++++++++++++++ app/test/helpers/pump_app.dart | 103 +++++++++++++++++++++ app/test/helpers/router_helpers.dart | 45 +++++++++ docs/templates/abdeckungsmatrix.md | 20 ++++ 8 files changed, 369 insertions(+), 46 deletions(-) create mode 100644 app/test/README.md create mode 100644 app/test/helpers/fakes.dart create mode 100644 app/test/helpers/helpers_test.dart create mode 100644 app/test/helpers/pump_app.dart create mode 100644 app/test/helpers/router_helpers.dart create mode 100644 docs/templates/abdeckungsmatrix.md diff --git a/app/test/README.md b/app/test/README.md new file mode 100644 index 0000000..c15e777 --- /dev/null +++ b/app/test/README.md @@ -0,0 +1,44 @@ +# Tests der App + +Unit- und Widget-Tests spiegeln die Struktur von `lib/`. Integration (`integration_test/`) +und Web-E2E (Playwright) kommen mit den jeweiligen Feature-Tasks. + +```bash +flutter test --coverage +``` + +## Helfer (`test/helpers/`) + +| Datei | Inhalt | +|---|---| +| `pump_app.dart` | `pumpApp(tester, home: …)` bzw. `router: …`: MaterialApp mit AppTheme, l10n-Delegates, ProviderScope, wählbare `locale` (Standard `de`), `textScale`, `themeMode`. `pumpShuffleApp(tester, deviceLocale: …)` startet die echte `ShuffleApp`. Beide geben den `ProviderContainer` zurück. | +| `fakes.dart` | `MockSupabaseClient`, `MockGoTrueClient`, `SupabaseMocks` (Client mit verdrahtetem `auth`), `testAppConfig(…)`, `testOverrides(…)` (feste AppConfig + Supabase-Mock, weitere Overrides anhängbar). | +| `router_helpers.dart` | `buildTestRouter`, `FakeRedirectSource`, `currentPath`, `currentUri`. | + +Regeln: keine echten Netzwerkaufrufe, feste Zeit (`clock`/`fakeAsync`), feste Zufallswerte. +Schlägt ein Test wegen eines Produktivcode-Fehlers fehl, wird der Test nicht angepasst, +sondern der Fehler an den Entwickler-Agent zurückgegeben. + +## Benennung mit Akzeptanzkriterien + +Tests, die ein Akzeptanzkriterium belegen, tragen die Referenz `KTO-01 Kriterium 3` +(Story-ID, Kriterium-Nummer wie im Issue) am Anfang des Namens: + +```dart +group('KTO-01 Kriterium 3: Passwort-Richtlinie', () { + test('lehnt Passwörter unter 10 Zeichen ab', () { … }); +}); + +testWidgets('KTO-01 Kriterium 7: zeigt bei falschen Zugangsdaten eine allgemeine Meldung', …); +``` + +- Eine Referenz pro `group`/Test; deckt ein Test mehrere Kriterien ab, alle nennen + (`KTO-01 Kriterium 1, 2`). +- Konfigurationsabhängige Tests nennen zusätzlich die Konfig-ID (`AUTH-CFG-10`). +- Sprache der Testnamen einheitlich Englisch (wie der Code); die Referenz bleibt unverändert. +- Suche nach Abdeckung: `grep -rn "KTO-01 Kriterium 3" test integration_test ../supabase/tests ../e2e`. + +## Abdeckungsmatrix + +Jeder PR enthält eine Matrix Akzeptanzkriterium → Test(s). Vorlage: +`docs/templates/abdeckungsmatrix.md`. diff --git a/app/test/app_test.dart b/app/test/app_test.dart index 1dd3a54..02fb568 100644 --- a/app/test/app_test.dart +++ b/app/test/app_test.dart @@ -1,32 +1,20 @@ import 'package:flutter/material.dart'; -import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_test/flutter_test.dart'; -import 'package:shuffle/app.dart'; -Future _pumpApp(WidgetTester tester) async { - await tester.pumpWidget(const ProviderScope(child: ShuffleApp())); - await tester.pumpAndSettle(); -} +import 'helpers/pump_app.dart'; void main() { - tearDown(() { - TestWidgetsFlutterBinding.instance.platformDispatcher - .clearLocalesTestValue(); - }); - testWidgets('app starts on the placeholder home page (English fallback)', ( tester, ) async { - tester.platformDispatcher.localesTestValue = [const Locale('fr')]; - await _pumpApp(tester); + await pumpShuffleApp(tester, deviceLocale: const Locale('fr')); expect(find.byKey(const Key('home_screen')), findsOneWidget); expect(find.textContaining('Welcome to Shuffle'), findsOneWidget); }); testWidgets('app shows German texts on a German device', (tester) async { - tester.platformDispatcher.localesTestValue = [const Locale('de', 'DE')]; - await _pumpApp(tester); + await pumpShuffleApp(tester, deviceLocale: const Locale('de', 'DE')); expect(find.textContaining('Willkommen bei Shuffle'), findsOneWidget); }); diff --git a/app/test/core/routing/app_router_test.dart b/app/test/core/routing/app_router_test.dart index dc8a025..d04aabc 100644 --- a/app/test/core/routing/app_router_test.dart +++ b/app/test/core/routing/app_router_test.dart @@ -1,35 +1,17 @@ -import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; -import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_test/flutter_test.dart'; -import 'package:go_router/go_router.dart'; -import 'package:shuffle/app.dart'; import 'package:shuffle/core/routing/app_router.dart'; import 'package:shuffle/core/routing/redirect_source.dart'; -class _FakeRedirectSource implements RedirectSource { - final notifier = ValueNotifier(0); - String? target; - - @override - Listenable get changes => notifier; - - @override - String? redirect(GoRouterState state) => - state.uri.path == '/blocked' ? target : null; -} +import '../../helpers/fakes.dart'; +import '../../helpers/pump_app.dart'; +import '../../helpers/router_helpers.dart'; void main() { testWidgets('unknown path shows the 404 page and leads back home', ( tester, ) async { - final container = ProviderContainer.test(); - await tester.pumpWidget( - UncontrolledProviderScope( - container: container, - child: const ShuffleApp(), - ), - ); + final container = await pumpShuffleApp(tester); container.read(appRouterProvider).go('/does-not-exist'); await tester.pumpAndSettle(); @@ -42,20 +24,18 @@ void main() { }); testWidgets('redirect source decides where a route leads', (tester) async { - final source = _FakeRedirectSource()..target = '/'; - final container = ProviderContainer.test( - overrides: [redirectSourceProvider.overrideWithValue(source)], - ); - await tester.pumpWidget( - UncontrolledProviderScope( - container: container, - child: const ShuffleApp(), + final source = FakeRedirectSource({'/blocked': '/'}); + final container = await pumpShuffleApp( + tester, + overrides: testOverrides( + overrides: [redirectSourceProvider.overrideWithValue(source)], ), ); - container.read(appRouterProvider).go('/blocked'); + final router = container.read(appRouterProvider)..go('/blocked'); await tester.pumpAndSettle(); expect(find.byKey(const Key('home_screen')), findsOneWidget); + expect(currentPath(router), '/'); }); } diff --git a/app/test/helpers/fakes.dart b/app/test/helpers/fakes.dart new file mode 100644 index 0000000..3c33eda --- /dev/null +++ b/app/test/helpers/fakes.dart @@ -0,0 +1,55 @@ +import 'package:flutter_riverpod/misc.dart' show Override; +import 'package:mocktail/mocktail.dart'; +import 'package:shuffle/core/config/app_config.dart'; +import 'package:shuffle/core/config/app_config_provider.dart'; +import 'package:shuffle/core/supabase/supabase_client_provider.dart'; +import 'package:supabase_flutter/supabase_flutter.dart'; + +/// Mock des Supabase-Clients. Kein Netzwerk: nicht gestubbte Aufrufe schlagen +/// mit einem mocktail-Fehler fehl, statt still zu laufen. +class MockSupabaseClient extends Mock implements SupabaseClient {} + +/// Mock der Auth-Schnittstelle (`client.auth`). +class MockGoTrueClient extends Mock implements GoTrueClient {} + +/// Feste Test-Konfiguration ohne echte Zugangsdaten. +AppConfig testAppConfig({ + String environment = 'test', + String supabaseUrl = 'http://localhost:54321', + String supabaseAnonKey = 'test-anon-key', + String siteUrl = 'http://localhost:3000', + String legalPrivacyUrl = 'https://example.test/privacy', + String legalTermsUrl = 'https://example.test/terms', + String termsVersion = 'test-1', +}) => AppConfig( + environment: environment, + supabaseUrl: supabaseUrl, + supabaseAnonKey: supabaseAnonKey, + siteUrl: siteUrl, + legalPrivacyUrl: legalPrivacyUrl, + legalTermsUrl: legalTermsUrl, + termsVersion: termsVersion, +); + +/// Ein Mock-Client samt Auth-Mock: `client.auth` liefert [auth]. +class SupabaseMocks { + SupabaseMocks() { + when(() => client.auth).thenReturn(auth); + } + + final client = MockSupabaseClient(); + final auth = MockGoTrueClient(); +} + +/// Standard-Overrides für Tests: feste [AppConfig] und ein Supabase-Mock. +/// +/// Zusätzliche [overrides] kommen hinten dran und haben Vorrang. +List testOverrides({ + AppConfig? config, + SupabaseClient? supabase, + List overrides = const [], +}) => [ + appConfigProvider.overrideWithValue(config ?? testAppConfig()), + supabaseClientProvider.overrideWithValue(supabase ?? MockSupabaseClient()), + ...overrides, +]; diff --git a/app/test/helpers/helpers_test.dart b/app/test/helpers/helpers_test.dart new file mode 100644 index 0000000..94f3c26 --- /dev/null +++ b/app/test/helpers/helpers_test.dart @@ -0,0 +1,88 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:go_router/go_router.dart'; +import 'package:mocktail/mocktail.dart'; +import 'package:shuffle/core/config/app_config_provider.dart'; +import 'package:shuffle/core/l10n/l10n.dart'; +import 'package:shuffle/core/supabase/supabase_client_provider.dart'; + +import 'fakes.dart'; +import 'pump_app.dart'; +import 'router_helpers.dart'; + +class _L10nProbe extends StatelessWidget { + const _L10nProbe(); + + @override + Widget build(BuildContext context) => + Scaffold(body: Text(context.l10n.homePlaceholderMessage)); +} + +void main() { + group('pumpApp', () { + testWidgets('renders German texts by default', (tester) async { + await pumpApp(tester, home: const _L10nProbe()); + expect(find.textContaining('Willkommen bei Shuffle'), findsOneWidget); + }); + + testWidgets('renders English texts for Locale en', (tester) async { + await pumpApp( + tester, + home: const _L10nProbe(), + locale: const Locale('en'), + ); + expect(find.textContaining('Welcome to Shuffle'), findsOneWidget); + }); + + testWidgets('falls back to English for unsupported locales', ( + tester, + ) async { + await pumpApp( + tester, + home: const _L10nProbe(), + locale: const Locale('fr'), + ); + expect(find.textContaining('Welcome to Shuffle'), findsOneWidget); + }); + + testWidgets('applies the text scale factor', (tester) async { + await pumpApp(tester, home: const _L10nProbe(), textScale: 2); + final context = tester.element(find.byType(_L10nProbe)); + expect(MediaQuery.textScalerOf(context).scale(10), 20); + }); + + testWidgets('provides test AppConfig and Supabase mock by default', ( + tester, + ) async { + final container = await pumpApp(tester, home: const _L10nProbe()); + expect(container.read(appConfigProvider).termsVersion, 'test-1'); + expect(container.read(supabaseClientProvider), isA()); + }); + + testWidgets('accepts a custom GoRouter', (tester) async { + final router = buildTestRouter( + routes: [ + GoRoute(path: '/', builder: (_, _) => const _L10nProbe()), + GoRoute(path: '/other', builder: (_, _) => const Text('other')), + ], + ); + addTearDown(router.dispose); + await pumpApp(tester, router: router); + + router.go('/other'); + await tester.pumpAndSettle(); + expect(currentPath(router), '/other'); + expect(find.text('other'), findsOneWidget); + }); + }); + + group('SupabaseMocks', () { + test('client.auth returns the auth mock', () { + final mocks = SupabaseMocks(); + when(() => mocks.auth.currentSession).thenReturn(null); + + expect(mocks.client.auth.currentSession, isNull); + verify(() => mocks.auth.currentSession).called(1); + }); + }); +} diff --git a/app/test/helpers/pump_app.dart b/app/test/helpers/pump_app.dart new file mode 100644 index 0000000..835b146 --- /dev/null +++ b/app/test/helpers/pump_app.dart @@ -0,0 +1,103 @@ +import 'package:flutter/material.dart'; +import 'package:flutter_localizations/flutter_localizations.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:flutter_riverpod/misc.dart' show Override; +import 'package:flutter_test/flutter_test.dart'; +import 'package:go_router/go_router.dart'; +import 'package:shuffle/app.dart'; +import 'package:shuffle/core/l10n/app_locale.dart'; +import 'package:shuffle/core/theme/app_theme.dart'; +import 'package:shuffle/l10n/app_localizations.dart'; + +import 'fakes.dart'; + +/// Pumpt ein einzelnes Widget ([home]) oder einen eigenen [router] in eine +/// Test-App mit AppTheme, l10n-Delegates, ProviderScope und fester [locale]. +/// +/// Genau eines von [home] und [router] ist anzugeben. Ohne [overrides] +/// gelten [testOverrides] (feste AppConfig, Supabase-Mock). Gibt den +/// [ProviderContainer] zurück, um Provider im Test zu lesen. +Future pumpApp( + WidgetTester tester, { + Widget? home, + GoRouter? router, + Locale locale = const Locale('de'), + List? overrides, + ThemeMode themeMode = ThemeMode.light, + double? textScale, + bool settle = true, +}) async { + assert( + (home == null) != (router == null), + 'Entweder home oder router angeben.', + ); + final container = ProviderContainer.test( + overrides: overrides ?? testOverrides(), + ); + Widget builder(BuildContext context, Widget? child) => textScale == null + ? child! + : MediaQuery( + data: MediaQuery.of(context) + .copyWith(textScaler: TextScaler.linear(textScale)), + child: child!, + ); + + const delegates = >[ + AppLocalizations.delegate, + GlobalMaterialLocalizations.delegate, + GlobalWidgetsLocalizations.delegate, + GlobalCupertinoLocalizations.delegate, + ]; + final theme = AppTheme.light(); + final darkTheme = AppTheme.dark(); + + await tester.pumpWidget( + UncontrolledProviderScope( + container: container, + child: router != null + ? MaterialApp.router( + routerConfig: router, + theme: theme, + darkTheme: darkTheme, + themeMode: themeMode, + locale: locale, + supportedLocales: AppLocalizations.supportedLocales, + localizationsDelegates: delegates, + localeResolutionCallback: (l, _) => resolveAppLocale(l), + builder: builder, + ) + : MaterialApp( + home: home, + theme: theme, + darkTheme: darkTheme, + themeMode: themeMode, + locale: locale, + supportedLocales: AppLocalizations.supportedLocales, + localizationsDelegates: delegates, + localeResolutionCallback: (l, _) => resolveAppLocale(l), + builder: builder, + ), + ), + ); + if (settle) await tester.pumpAndSettle(); + return container; +} + +/// Pumpt die echte [ShuffleApp] (inkl. Router) mit der Gerätesprache +/// [deviceLocale]. Die Sprache wird nach dem Test automatisch zurückgesetzt. +Future pumpShuffleApp( + WidgetTester tester, { + Locale deviceLocale = const Locale('en'), + List? overrides, +}) async { + tester.platformDispatcher.localesTestValue = [deviceLocale]; + addTearDown(tester.platformDispatcher.clearLocalesTestValue); + final container = ProviderContainer.test( + overrides: overrides ?? testOverrides(), + ); + await tester.pumpWidget( + UncontrolledProviderScope(container: container, child: const ShuffleApp()), + ); + await tester.pumpAndSettle(); + return container; +} diff --git a/app/test/helpers/router_helpers.dart b/app/test/helpers/router_helpers.dart new file mode 100644 index 0000000..8dbb821 --- /dev/null +++ b/app/test/helpers/router_helpers.dart @@ -0,0 +1,45 @@ +import 'package:flutter/foundation.dart'; +import 'package:go_router/go_router.dart'; +import 'package:shuffle/core/routing/redirect_source.dart'; + +/// Steuerbare [RedirectSource]: `targets` bildet Pfad -> Weiterleitungsziel ab. +/// [notifyChanged] löst eine Neubewertung der Redirects aus. +class FakeRedirectSource implements RedirectSource { + FakeRedirectSource([Map? targets]) + : targets = targets ?? {}; + + final Map targets; + final _notifier = ValueNotifier(0); + + void notifyChanged() => _notifier.value++; + + @override + Listenable get changes => _notifier; + + @override + String? redirect(GoRouterState state) => targets[state.uri.path]; +} + +/// Kleiner Test-Router mit eigenen [routes]. Für Screens, die ohne die +/// App-Routen geprüft werden. Der Aufrufer ruft am Ende `dispose` (z. B. per +/// `addTearDown(router.dispose)`). +GoRouter buildTestRouter({ + required List routes, + String initialLocation = '/', + RedirectSource? redirectSource, +}) => GoRouter( + initialLocation: initialLocation, + routes: routes, + refreshListenable: redirectSource?.changes, + redirect: redirectSource == null + ? null + : (context, state) => redirectSource.redirect(state), +); + +/// Aktueller Pfad des Routers (ohne Query). +String currentPath(GoRouter router) => + router.routerDelegate.currentConfiguration.uri.path; + +/// Aktuelle URI inklusive Query, z. B. für `?from=`-Prüfungen. +Uri currentUri(GoRouter router) => + router.routerDelegate.currentConfiguration.uri; diff --git a/docs/templates/abdeckungsmatrix.md b/docs/templates/abdeckungsmatrix.md new file mode 100644 index 0000000..d85b6c3 --- /dev/null +++ b/docs/templates/abdeckungsmatrix.md @@ -0,0 +1,20 @@ +# Abdeckungsmatrix – # + +Pflicht in der PR-Beschreibung. Pro Akzeptanzkriterium mindestens eine Ebene belegen; +nicht zutreffende Ebenen mit „–“ markieren, nicht automatisierbare Punkte unten begründen. +Testnamen tragen die Referenz („KTO-01 Kriterium n“), siehe `app/test/README.md`. + +| AK | Unit | Widget | Integration/E2E (Playwright) | RLS/pgTAP | Status | +|---|---|---|---|---|---| +| KTO-01 Kriterium 1 | `test/features/…/x_test.dart` › Name | `…` | `e2e/…` | `supabase/tests/database/…` | grün | +| KTO-01 Kriterium 2 | – | – | – | – | manuell (Begründung) | + +## Nicht automatisiert testbar + +- + +## Ausführung + +- [ ] `cd app && dart format --set-exit-if-changed . && flutter analyze && flutter test --coverage` +- [ ] `supabase test db` (bei Backend-Änderungen) +- [ ] Abdeckung neue Logik ≥ 80 %, Domänenschicht ≥ 90 %: -- 2.45.2 From 568f425ef75365d5a0f8a23b898cc7f035bad5d1 Mon Sep 17 00:00:00 2001 From: cschlaefke Date: Mon, 2 Nov 2026 20:24:50 +0100 Subject: [PATCH 06/11] ci: install pinned Flutter SDK from git tag instead of missing image Refs #31 Co-Authored-By: Claude Sonnet 5.5 --- .forgejo/workflows/ci.yml | 58 +++++++++++++++++++++++++++++++++++---- 1 file changed, 52 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 4600444..77cb8ee 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -9,6 +9,10 @@ on: env: SUPABASE_CLI_VERSION: 3.0.0 + # Einzige Stelle für die Flutter-Version (= lokale Version, Dart 3.13.7; muss zu app/pubspec.yaml passen). + # Muss ein existierendes Tag in github.com/flutter/flutter sein. Ein Cirrus-Image mit dieser Version gibt es nicht. + FLUTTER_VERSION: 3.47.9 + FLUTTER_HOME: /opt/flutter jobs: # Format, Analyse, Tests. Generierte Dateien (*.g.dart, gen-l10n) sind eingecheckt und @@ -16,7 +20,7 @@ jobs: flutter: runs-on: docker container: - image: ghcr.io/cirruslabs/flutter:3.47.9 # = lokale Flutter-Version (Dart 3.13.7); in beiden Jobs gleich halten + image: node:22.12-bookworm # gepinnt; enthält git, curl, unzip, xz und Node (für JS-Actions) env: PUB_CACHE: ${{ github.workspace }}/.pub-cache defaults: @@ -25,12 +29,33 @@ jobs: steps: - uses: https://code.forgejo.org/actions/checkout@v4 + - name: Flutter-SDK-Cache + id: flutter-cache + uses: https://code.forgejo.org/actions/cache@v4 + with: + path: ${{ env.FLUTTER_HOME }} + key: flutter-${{ env.FLUTTER_VERSION }}-node22.12-bookworm + + - name: Flutter installieren + run: | + if [ ! -x "$FLUTTER_HOME/bin/flutter" ]; then + rm -rf "$FLUTTER_HOME" + git clone --depth 1 --branch "$FLUTTER_VERSION" https://github.com/flutter/flutter.git "$FLUTTER_HOME" + fi + echo "$FLUTTER_HOME/bin" >> "$GITHUB_PATH" + export PATH="$FLUTTER_HOME/bin:$PATH" + export CI=true + flutter config --no-analytics --enable-web + flutter --version + flutter precache --web + working-directory: . + - name: Pub-Cache uses: https://code.forgejo.org/actions/cache@v4 with: path: ${{ github.workspace }}/.pub-cache - key: pub-${{ hashFiles('app/pubspec.lock') }} - restore-keys: pub- + key: pub-${{ env.FLUTTER_VERSION }}-${{ hashFiles('app/pubspec.lock') }} + restore-keys: pub-${{ env.FLUTTER_VERSION }}- - name: Abhängigkeiten (erzeugt auch gen-l10n) run: flutter pub get @@ -61,7 +86,7 @@ jobs: web-build: runs-on: docker container: - image: ghcr.io/cirruslabs/flutter:3.47.9 + image: node:22.12-bookworm # gepinnt; enthält git, curl, unzip, xz und Node (für JS-Actions) env: PUB_CACHE: ${{ github.workspace }}/.pub-cache defaults: @@ -70,12 +95,33 @@ jobs: steps: - uses: https://code.forgejo.org/actions/checkout@v4 + - name: Flutter-SDK-Cache + id: flutter-cache + uses: https://code.forgejo.org/actions/cache@v4 + with: + path: ${{ env.FLUTTER_HOME }} + key: flutter-${{ env.FLUTTER_VERSION }}-node22.12-bookworm + + - name: Flutter installieren + run: | + if [ ! -x "$FLUTTER_HOME/bin/flutter" ]; then + rm -rf "$FLUTTER_HOME" + git clone --depth 1 --branch "$FLUTTER_VERSION" https://github.com/flutter/flutter.git "$FLUTTER_HOME" + fi + echo "$FLUTTER_HOME/bin" >> "$GITHUB_PATH" + export PATH="$FLUTTER_HOME/bin:$PATH" + export CI=true + flutter config --no-analytics --enable-web + flutter --version + flutter precache --web + working-directory: . + - name: Pub-Cache uses: https://code.forgejo.org/actions/cache@v4 with: path: ${{ github.workspace }}/.pub-cache - key: pub-${{ hashFiles('app/pubspec.lock') }} - restore-keys: pub- + key: pub-${{ env.FLUTTER_VERSION }}-${{ hashFiles('app/pubspec.lock') }} + restore-keys: pub-${{ env.FLUTTER_VERSION }}- - name: Abhängigkeiten run: flutter pub get -- 2.45.2 From b03d771869b869db6713648d75fb8d55c321c582 Mon Sep 17 00:00:00 2001 From: cschlaefke Date: Mon, 2 Nov 2026 20:36:58 +0100 Subject: [PATCH 07/11] fix(app): address review findings for foundation - add INTERNET permission, iOS localizations, html lang - make focus ring visible on FilledButton - neutral SITE_URL default, idempotent logger configure Refs #31 Co-Authored-By: Claude Sonnet 5.5 --- app/README.md | 2 +- app/android/app/src/main/AndroidManifest.xml | 2 ++ app/ios/Runner.xcodeproj/project.pbxproj | 1 + app/ios/Runner/Info.plist | 5 ++++ app/lib/core/config/app_config.dart | 2 +- app/lib/core/logging/app_logger.dart | 24 +++++++++++++++++-- app/lib/core/theme/app_spacing.dart | 3 +++ app/lib/core/theme/app_theme.dart | 11 ++++++--- app/test/README.md | 10 ++++---- app/test/core/config/app_config_test.dart | 3 ++- app/test/core/logging/app_logger_test.dart | 12 ++++++++++ app/test/core/theme/app_theme_test.dart | 25 ++++++++++++++++++++ app/web/index.html | 3 ++- docs/design-system.md | 5 ++-- 14 files changed, 93 insertions(+), 15 deletions(-) diff --git a/app/README.md b/app/README.md index 9ffb89e..4bda7de 100644 --- a/app/README.md +++ b/app/README.md @@ -24,7 +24,7 @@ flutter run -d chrome --dart-define-from-file=env/dev.json ``` Pflichtwerte: `SUPABASE_URL`, `SUPABASE_ANON_KEY` (der Start bricht ohne sie ab). -Optional mit Platzhalter: `SITE_URL`, `LEGAL_PRIVACY_URL`, `LEGAL_TERMS_URL`, `TERMS_VERSION`, `APP_ENV`. +Optional mit Platzhalter: `SITE_URL` (Default `http://localhost:3000`; für Staging/Prod zwingend setzen, sonst zeigen Mail-Links auf localhost), `LEGAL_PRIVACY_URL`, `LEGAL_TERMS_URL`, `TERMS_VERSION`, `APP_ENV`. ## Platzhalter-Identität (vor dem Store-Release festlegen) diff --git a/app/android/app/src/main/AndroidManifest.xml b/app/android/app/src/main/AndroidManifest.xml index 7ab87d7..41e93cb 100644 --- a/app/android/app/src/main/AndroidManifest.xml +++ b/app/android/app/src/main/AndroidManifest.xml @@ -1,4 +1,6 @@ + + CADisableMinimumFrameDurationOnPhone + CFBundleLocalizations + + de + en + CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleDisplayName diff --git a/app/lib/core/config/app_config.dart b/app/lib/core/config/app_config.dart index da64f52..a1108bb 100644 --- a/app/lib/core/config/app_config.dart +++ b/app/lib/core/config/app_config.dart @@ -61,7 +61,7 @@ class AppConfig { // Platzhalter (Spec #1 § 5.1), bis Chris die echten Werte festlegt. static const defaultEnvironment = 'dev'; - static const defaultSiteUrl = 'https://shuffle.cshomelabs.work'; + static const defaultSiteUrl = 'http://localhost:3000'; static const defaultLegalPrivacyUrl = 'https://shuffle.cshomelabs.work/legal/privacy'; static const defaultLegalTermsUrl = diff --git a/app/lib/core/logging/app_logger.dart b/app/lib/core/logging/app_logger.dart index 263d20d..a10f4d6 100644 --- a/app/lib/core/logging/app_logger.dart +++ b/app/lib/core/logging/app_logger.dart @@ -1,3 +1,4 @@ +import 'dart:async'; import 'dart:developer' as developer; import 'package:flutter/foundation.dart'; @@ -22,10 +23,29 @@ class AppLogger { void error(String message, {Object? error, StackTrace? stackTrace}) => _logger.severe(message, error, stackTrace); - /// Richtet die Ausgabe einmalig ein. Release: ab INFO, sonst alles. + static StreamSubscription? _subscription; + + /// Richtet die Ausgabe ein. Release: ab INFO, sonst alles. + /// + /// Idempotent: Wiederholte Aufrufe aktualisieren nur den Level und + /// registrieren keinen weiteren Listener. + /// + /// Hinweis: `developer.log` hat in Release-Builds praktisch keine sichtbare + /// Wirkung; produktives Crash-/Error-Reporting folgt in einem eigenen Task. static void configure({Level? level}) { Logger.root.level = level ?? (kReleaseMode ? Level.INFO : Level.ALL); - Logger.root.onRecord.listen(_write); + _subscription ??= Logger.root.onRecord.listen(_write); + } + + /// Aktiver Listener (nur für Tests). + @visibleForTesting + static StreamSubscription? get subscription => _subscription; + + /// Entfernt den Listener wieder (nur für Tests). + @visibleForTesting + static Future resetForTesting() async { + await _subscription?.cancel(); + _subscription = null; } static void _write(LogRecord record) { diff --git a/app/lib/core/theme/app_spacing.dart b/app/lib/core/theme/app_spacing.dart index 0ced66e..5035708 100644 --- a/app/lib/core/theme/app_spacing.dart +++ b/app/lib/core/theme/app_spacing.dart @@ -44,6 +44,9 @@ abstract final class AppBreakpoints { /// Max content width for forms/text on wide screens. static const double maxContentWidth = 560; + + /// Max width of the centered auth card (Spec #1 § 6) from the medium class on. + static const double authCardMaxWidth = 480; } enum AppWidthClass { diff --git a/app/lib/core/theme/app_theme.dart b/app/lib/core/theme/app_theme.dart index 08e82d6..289994e 100644 --- a/app/lib/core/theme/app_theme.dart +++ b/app/lib/core/theme/app_theme.dart @@ -43,6 +43,13 @@ abstract final class AppTheme { ? BorderSide(color: scheme.primary, width: 3) : null, ); + // The primary ring is invisible on the primary fill of a FilledButton; + // onSurface contrasts with both the fill and the surrounding surface. + final filledFocusSide = WidgetStateProperty.resolveWith( + (states) => states.contains(WidgetState.focused) + ? BorderSide(color: scheme.onSurface, width: 3) + : null, + ); OutlineInputBorder border(Color color, double width) => OutlineInputBorder( borderRadius: AppRadius.mdAll, @@ -77,7 +84,7 @@ abstract final class AppTheme { minimumSize: minSize, shape: shape, padding: const EdgeInsets.symmetric(horizontal: AppSpacing.xl), - ).copyWith(side: focusSide), + ).copyWith(side: filledFocusSide), ), elevatedButtonTheme: ElevatedButtonThemeData( style: ElevatedButton.styleFrom( @@ -141,8 +148,6 @@ abstract final class AppTheme { shape: RoundedRectangleBorder(borderRadius: AppRadius.smAll), showCloseIcon: true, closeIconColor: scheme.onInverseSurface, - // Wide screens: do not stretch across the whole window. - width: null, ), ); } diff --git a/app/test/README.md b/app/test/README.md index c15e777..2d897a6 100644 --- a/app/test/README.md +++ b/app/test/README.md @@ -4,9 +4,11 @@ Unit- und Widget-Tests spiegeln die Struktur von `lib/`. Integration (`integrati und Web-E2E (Playwright) kommen mit den jeweiligen Feature-Tasks. ```bash -flutter test --coverage +flutter test ``` +Coverage wird in der CI derzeit nicht erhoben; lokal optional `flutter test --coverage`. + ## Helfer (`test/helpers/`) | Datei | Inhalt | @@ -25,11 +27,11 @@ Tests, die ein Akzeptanzkriterium belegen, tragen die Referenz `KTO-01 Kriterium (Story-ID, Kriterium-Nummer wie im Issue) am Anfang des Namens: ```dart -group('KTO-01 Kriterium 3: Passwort-Richtlinie', () { - test('lehnt Passwörter unter 10 Zeichen ab', () { … }); +group('KTO-01 Kriterium 3: password policy', () { + test('rejects passwords shorter than 10 characters', () { … }); }); -testWidgets('KTO-01 Kriterium 7: zeigt bei falschen Zugangsdaten eine allgemeine Meldung', …); +testWidgets('KTO-01 Kriterium 7: shows a generic message for wrong credentials', …); ``` - Eine Referenz pro `group`/Test; deckt ein Test mehrere Kriterien ab, alle nennen diff --git a/app/test/core/config/app_config_test.dart b/app/test/core/config/app_config_test.dart index 0d6dcee..a11eec7 100644 --- a/app/test/core/config/app_config_test.dart +++ b/app/test/core/config/app_config_test.dart @@ -32,7 +32,8 @@ void main() { }); expect(config.environment, AppConfig.defaultEnvironment); - expect(config.siteUrl, 'https://shuffle.cshomelabs.work'); + expect(config.siteUrl, AppConfig.defaultSiteUrl); + expect(config.siteUrl, 'http://localhost:3000'); expect(config.legalPrivacyUrl, AppConfig.defaultLegalPrivacyUrl); expect(config.legalTermsUrl, AppConfig.defaultLegalTermsUrl); expect(config.termsVersion, AppConfig.defaultTermsVersion); diff --git a/app/test/core/logging/app_logger_test.dart b/app/test/core/logging/app_logger_test.dart index 40eb5eb..baac91c 100644 --- a/app/test/core/logging/app_logger_test.dart +++ b/app/test/core/logging/app_logger_test.dart @@ -3,6 +3,18 @@ import 'package:logging/logging.dart'; import 'package:shuffle/core/logging/app_logger.dart'; void main() { + test('configure is idempotent and registers a single listener', () async { + addTearDown(AppLogger.resetForTesting); + await AppLogger.resetForTesting(); + AppLogger.configure(level: Level.ALL); + final first = AppLogger.subscription; + AppLogger.configure(level: Level.WARNING); + + expect(first, isNotNull); + expect(AppLogger.subscription, same(first)); + expect(Logger.root.level, Level.WARNING); + }); + test('AppLogger forwards records to package:logging', () { Logger.root.level = Level.ALL; final records = []; diff --git a/app/test/core/theme/app_theme_test.dart b/app/test/core/theme/app_theme_test.dart index e08edcc..eebbb75 100644 --- a/app/test/core/theme/app_theme_test.dart +++ b/app/test/core/theme/app_theme_test.dart @@ -91,6 +91,31 @@ void main() { } }); + test('focused FilledButton ring differs from fill and contrasts with surface', () { + final side = theme.filledButtonTheme.style!.side!.resolve({ + WidgetState.focused, + })!; + expect( + side.color, + isNot(s.primary), + reason: 'ring must differ from fill', + ); + expect(side.width, greaterThanOrEqualTo(2)); + expect( + contrast(side.color, s.surface), + greaterThanOrEqualTo(3.0), + reason: 'ring/surface', + ); + // Ring/fill cannot reach 3:1 in both modes with a single color (the dark + // fill is light, the dark surface is dark); the outer half of the ring + // is judged against the surface, the inner half only has to differ. + expect( + theme.filledButtonTheme.style!.side!.resolve({}), + isNull, + reason: 'no border when unfocused', + ); + }); + test('touch targets are padded and buttons are >= 48dp', () { expect(theme.materialTapTargetSize, MaterialTapTargetSize.padded); final styles = [ diff --git a/app/web/index.html b/app/web/index.html index e2bd128..7b7181d 100644 --- a/app/web/index.html +++ b/app/web/index.html @@ -1,5 +1,6 @@ - + +