From f04677fa050b718fea65ddeb7e543088f70026a0 Mon Sep 17 00:00:00 2001 From: Joaquin Neschisi <39923559+jneschisi@users.noreply.github.com> Date: Mon, 29 Jul 2024 12:55:54 -0300 Subject: [PATCH] chore: renamed app to Vehicle Cockpit (#2) * feat: layout redesign * fix: added test * fix: removed non required widgets * chore: renamed app to Vehicle Cockpit --- .github/workflows/main.yaml | 2 +- README.md | 8 +++---- android/app/build.gradle | 11 ++++----- android/app/src/debug/AndroidManifest.xml | 2 +- android/app/src/main/AndroidManifest.xml | 2 +- .../kotlin/com/vgv/experience/MainActivity.kt | 2 +- android/app/src/profile/AndroidManifest.xml | 2 +- ios/Runner.xcodeproj/project.pbxproj | 18 +++++++------- lib/app/view/app.dart | 4 ++-- lib/dashboard/game/gauge_game.dart | 4 ++-- lib/dashboard/game/gear.dart | 2 +- .../game/rpm_gauge/gauge_component.dart | 2 +- .../rpm_gauge/gauge_number_indicator.dart | 2 +- .../game/rpm_gauge/gauge_progress.dart | 3 ++- .../game/rpm_gauge/gauge_rpm_numbers.dart | 2 +- .../game/rpm_gauge/gauge_rpm_point.dart | 2 +- lib/dashboard/game/speedometer.dart | 2 +- lib/dashboard/view/dashboard_page.dart | 6 ++--- lib/dashboard/widgets/accelerator_button.dart | 4 ++-- lib/dashboard/widgets/clock.dart | 2 +- lib/dashboard/widgets/external_temp.dart | 2 +- lib/dashboard/widgets/fuel_gauge.dart | 4 ++-- lib/dashboard/widgets/lap.dart | 4 ++-- lib/dashboard/widgets/lap_section.dart | 4 ++-- lib/dashboard/widgets/route_map.dart | 2 +- lib/dashboard/widgets/temperature_gauge.dart | 4 ++-- lib/demo/view/demo_page.dart | 6 ++--- lib/main_development.dart | 4 ++-- lib/main_production.dart | 4 ++-- lib/main_staging.dart | 4 ++-- .../cubit/theme_button_cubit.dart | 2 +- lib/theme_button/view/theme_button.dart | 4 ++-- lib/thumbnail/thumbnail.dart | 4 ++-- macos/Runner.xcodeproj/project.pbxproj | 24 +++++++++---------- .../xcshareddata/xcschemes/Runner.xcscheme | 8 +++---- .../xcschemes/development.xcscheme | 8 +++---- .../xcschemes/production.xcscheme | 8 +++---- .../xcshareddata/xcschemes/staging.xcscheme | 8 +++---- pubspec.yaml | 4 ++-- test/dashboard/game/gauge_game_test.dart | 6 ++--- test/dashboard/game/gear_test.dart | 6 ++--- .../game/rpm_gauge/gauge_component_test.dart | 4 ++-- test/dashboard/game/speedometer_test.dart | 6 ++--- test/dashboard/view/dashboard_page_test.dart | 2 +- .../widgets/accelerator_button_test.dart | 2 +- test/dashboard/widgets/lap_section_test.dart | 2 +- test/dashboard/widgets/route_map_test.dart | 2 +- test/demo/demo_page_test.dart | 6 ++--- test/helpers/pump_app.dart | 4 ++-- test/helpers/tester_l10n.dart | 2 +- .../cubit/theme_mode_cubit_test.dart | 2 +- test/theme_button/view/theme_button_test.dart | 2 +- test/thumbnail/thumbnail_test.dart | 4 ++-- web/index.html | 15 +++++++----- web/manifest.json | 6 ++--- windows/CMakeLists.txt | 4 ++-- windows/runner/Runner.rc | 8 +++---- windows/runner/main.cpp | 2 +- 58 files changed, 139 insertions(+), 136 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index f31860d..93fed31 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -1,4 +1,4 @@ -name: dash_and_furious +name: vehicle_cockpit concurrency: group: $-$ diff --git a/README.md b/README.md index e90295e..41e5689 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Dash And Furious +# Vehicle Cockpit ![coverage][coverage_badge] [![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link] @@ -6,7 +6,7 @@ Generated by the [Very Good CLI][very_good_cli_link] 🤖 -Dash and Furious demo project. +Vehicle Cockpit demo project. --- @@ -31,7 +31,7 @@ $ flutter run --flavor staging --target lib/main_staging.dart $ flutter run --flavor production --target lib/main_production.dart ``` -_\*Dash And Furious works on iOS, Android, Web, and Windows._ +_\*Vehicle Cockpit works on iOS, Android, Web, and Windows._ --- @@ -92,7 +92,7 @@ This project relies on [flutter_localizations][flutter_localizations_link] and f 3. Use the new string ```dart -import 'package:dash_and_furious/l10n/l10n.dart'; +import 'package:vehicle_cockpit/l10n/l10n.dart'; @override Widget build(BuildContext context) { diff --git a/android/app/build.gradle b/android/app/build.gradle index 50853e3..95d5825 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -29,7 +29,7 @@ if (keystorePropertiesFile.exists()) { } android { - namespace "com.vgv.experience.dash_and_furious" + namespace "com.vgv.experience.vehicle_cockpit" compileSdkVersion flutter.compileSdkVersion ndkVersion flutter.ndkVersion @@ -47,8 +47,7 @@ android { } defaultConfig { - // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "com.vgv.experience.dash_and_furious" + applicationId "com.vgv.experience.vehicle_cockpit" // You can update the following values to match your application needs. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. minSdkVersion flutter.minSdkVersion @@ -80,17 +79,17 @@ android { production { dimension "default" applicationIdSuffix "" - manifestPlaceholders = [appName: "Dash And Furious"] + manifestPlaceholders = [appName: "Vehicle Cockpit"] } staging { dimension "default" applicationIdSuffix ".stg" - manifestPlaceholders = [appName: "[STG] Dash And Furious"] + manifestPlaceholders = [appName: "[STG] Vehicle Cockpit"] } development { dimension "default" applicationIdSuffix ".dev" - manifestPlaceholders = [appName: "[DEV] Dash And Furious"] + manifestPlaceholders = [appName: "[DEV] Vehicle Cockpit"] } } diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml index 2cee2ce..bdba7aa 100644 --- a/android/app/src/debug/AndroidManifest.xml +++ b/android/app/src/debug/AndroidManifest.xml @@ -1,5 +1,5 @@ + package="com.vgv.experience.vehicle_cockpit"> - + - + - Dash And Furious + Vehicle Cockpit + - + + \ No newline at end of file diff --git a/web/manifest.json b/web/manifest.json index d900f97..8adb0be 100644 --- a/web/manifest.json +++ b/web/manifest.json @@ -1,11 +1,11 @@ { - "name": "Dash And Furious", - "short_name": "Dash And Furious", + "name": "Vehicle Cockpit", + "short_name": "Vehicle Cockpit", "start_url": ".", "display": "standalone", "background_color": "#0175C2", "theme_color": "#0175C2", - "description": "Dash and Furious demo project.", + "description": "Vehicle Cockpit demo project.", "orientation": "portrait-primary", "prefer_related_applications": false, "icons": [ diff --git a/windows/CMakeLists.txt b/windows/CMakeLists.txt index 2256e56..9497564 100644 --- a/windows/CMakeLists.txt +++ b/windows/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.14) -project(dash_and_furious LANGUAGES CXX) +project(vehicle_cockpit LANGUAGES CXX) -set(BINARY_NAME "dash_and_furious") +set(BINARY_NAME "vehicle_cockpit") cmake_policy(SET CMP0063 NEW) diff --git a/windows/runner/Runner.rc b/windows/runner/Runner.rc index 77d1673..3fa3bf4 100644 --- a/windows/runner/Runner.rc +++ b/windows/runner/Runner.rc @@ -90,12 +90,12 @@ BEGIN BLOCK "040904e4" BEGIN VALUE "CompanyName", "com.vgv.experience.dash-and-furious" "\0" - VALUE "FileDescription", "dash_and_furious" "\0" + VALUE "FileDescription", "vehicle_cockpit" "\0" VALUE "FileVersion", VERSION_AS_STRING "\0" - VALUE "InternalName", "dash_and_furious" "\0" + VALUE "InternalName", "vehicle_cockpit" "\0" VALUE "LegalCopyright", "Copyright (C) 2022 com.vgv.experience.dash-and-furious. All rights reserved." "\0" - VALUE "OriginalFilename", "dash_and_furious.exe" "\0" - VALUE "ProductName", "Dash And Furious" "\0" + VALUE "OriginalFilename", "vehicle_cockpit.exe" "\0" + VALUE "ProductName", "Vehicle Cockpit" "\0" VALUE "ProductVersion", VERSION_AS_STRING "\0" END END diff --git a/windows/runner/main.cpp b/windows/runner/main.cpp index 49fc3dc..e1b3456 100644 --- a/windows/runner/main.cpp +++ b/windows/runner/main.cpp @@ -27,7 +27,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, FlutterWindow window(project); Win32Window::Point origin(10, 10); Win32Window::Size size(1280, 720); - if (!window.CreateAndShow(L"Dash And Furious", origin, size)) { + if (!window.CreateAndShow(L"Vehicle Cockpit", origin, size)) { return EXIT_FAILURE; } window.SetQuitOnClose(true);