diff --git a/lib/Screens/Compare/compare_drivers.dart b/lib/Screens/Compare/compare_drivers.dart index aa21dd65..db503598 100644 --- a/lib/Screens/Compare/compare_drivers.dart +++ b/lib/Screens/Compare/compare_drivers.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/Screens/Compare/compare_results.dart'; diff --git a/lib/Screens/Compare/compare_home.dart b/lib/Screens/Compare/compare_home.dart index dbf50ce8..6bea96e8 100644 --- a/lib/Screens/Compare/compare_home.dart +++ b/lib/Screens/Compare/compare_home.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/Screens/Compare/compare_drivers.dart'; diff --git a/lib/Screens/Compare/compare_results.dart b/lib/Screens/Compare/compare_results.dart index 0a03bc9d..5d1b5a01 100644 --- a/lib/Screens/Compare/compare_results.dart +++ b/lib/Screens/Compare/compare_results.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:flutter/material.dart'; diff --git a/lib/Screens/FormulaYou/home.dart b/lib/Screens/FormulaYou/home.dart index 9c23fb72..a297d7ef 100644 --- a/lib/Screens/FormulaYou/home.dart +++ b/lib/Screens/FormulaYou/home.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/Screens/FormulaYou/settings.dart'; diff --git a/lib/Screens/FormulaYou/settings.dart b/lib/Screens/FormulaYou/settings.dart index d046df06..f027e40e 100644 --- a/lib/Screens/FormulaYou/settings.dart +++ b/lib/Screens/FormulaYou/settings.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/Screens/FormulaYou/tags.dart'; diff --git a/lib/Screens/FormulaYou/tags.dart b/lib/Screens/FormulaYou/tags.dart index 26bf2bb3..89f25c51 100644 --- a/lib/Screens/FormulaYou/tags.dart +++ b/lib/Screens/FormulaYou/tags.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ class FormulaYouTags { diff --git a/lib/Screens/LivetimingArchive/drivers_map.dart b/lib/Screens/LivetimingArchive/drivers_map.dart index 83358f28..fb5e2dd0 100644 --- a/lib/Screens/LivetimingArchive/drivers_map.dart +++ b/lib/Screens/LivetimingArchive/drivers_map.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'dart:async'; diff --git a/lib/Screens/LivetimingArchive/live_timing.dart b/lib/Screens/LivetimingArchive/live_timing.dart index 9d9fee1c..3ee79d78 100644 --- a/lib/Screens/LivetimingArchive/live_timing.dart +++ b/lib/Screens/LivetimingArchive/live_timing.dart @@ -16,7 +16,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'dart:async'; diff --git a/lib/Screens/LivetimingArchive/races_list.dart b/lib/Screens/LivetimingArchive/races_list.dart index cbe4910f..528fb3a3 100644 --- a/lib/Screens/LivetimingArchive/races_list.dart +++ b/lib/Screens/LivetimingArchive/races_list.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/Screens/LivetimingArchive/live_timing.dart'; diff --git a/lib/Screens/MixedNews/edit_order.dart b/lib/Screens/MixedNews/edit_order.dart index 83f962d2..238f39b7 100644 --- a/lib/Screens/MixedNews/edit_order.dart +++ b/lib/Screens/MixedNews/edit_order.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:flutter/material.dart'; diff --git a/lib/Screens/MixedNews/mixed_news.dart b/lib/Screens/MixedNews/mixed_news.dart index 486c3b87..50c27083 100644 --- a/lib/Screens/MixedNews/mixed_news.dart +++ b/lib/Screens/MixedNews/mixed_news.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/Screens/MixedNews/edit_order.dart'; diff --git a/lib/Screens/MixedNews/rss_feed.dart b/lib/Screens/MixedNews/rss_feed.dart index 1318e492..5d20b63f 100644 --- a/lib/Screens/MixedNews/rss_feed.dart +++ b/lib/Screens/MixedNews/rss_feed.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/Screens/MixedNews/rss_feed_article.dart'; diff --git a/lib/Screens/MixedNews/rss_feed_article.dart b/lib/Screens/MixedNews/rss_feed_article.dart index ca3f6672..14622a84 100644 --- a/lib/Screens/MixedNews/rss_feed_article.dart +++ b/lib/Screens/MixedNews/rss_feed_article.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:flutter/foundation.dart'; diff --git a/lib/Screens/MixedNews/wordpress.dart b/lib/Screens/MixedNews/wordpress.dart index f36dd467..cd33cf74 100644 --- a/lib/Screens/MixedNews/wordpress.dart +++ b/lib/Screens/MixedNews/wordpress.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'dart:async'; diff --git a/lib/Screens/about.dart b/lib/Screens/about.dart index b4f185ed..3a17176c 100644 --- a/lib/Screens/about.dart +++ b/lib/Screens/about.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/Screens/links.dart'; diff --git a/lib/Screens/article.dart b/lib/Screens/article.dart index 21759ed0..5f75b237 100644 --- a/lib/Screens/article.dart +++ b/lib/Screens/article.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/api/article_parts.dart'; diff --git a/lib/Screens/circuit.dart b/lib/Screens/circuit.dart index 68a0600d..00370831 100644 --- a/lib/Screens/circuit.dart +++ b/lib/Screens/circuit.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'dart:async'; diff --git a/lib/Screens/circuit_map_screen.dart b/lib/Screens/circuit_map_screen.dart index 197a71e1..0f436374 100644 --- a/lib/Screens/circuit_map_screen.dart +++ b/lib/Screens/circuit_map_screen.dart @@ -16,7 +16,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'dart:async'; diff --git a/lib/Screens/custom_home_feed_settings.dart b/lib/Screens/custom_home_feed_settings.dart index 8e3ba981..78960dba 100644 --- a/lib/Screens/custom_home_feed_settings.dart +++ b/lib/Screens/custom_home_feed_settings.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:flutter/material.dart'; diff --git a/lib/Screens/driver_details.dart b/lib/Screens/driver_details.dart index d04ad7ba..448941d9 100644 --- a/lib/Screens/driver_details.dart +++ b/lib/Screens/driver_details.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/Screens/race_details.dart'; @@ -250,7 +250,7 @@ class DriverResults extends StatelessWidget { ), body: RaceResultsProvider( raceUrl: - 'https://www.formula1.com/en/results.html/2023/races/$circuitId/$circuitName/race-result.html', + 'https://www.formula1.com/en/results.html/${DateTime.now().year}/races/$circuitId/$circuitName/race-result.html', ), ), ), diff --git a/lib/Screens/free_practice_screen.dart b/lib/Screens/free_practice_screen.dart index d2cb75fc..96dab38d 100644 --- a/lib/Screens/free_practice_screen.dart +++ b/lib/Screens/free_practice_screen.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/api/driver_components.dart'; diff --git a/lib/Screens/grand_prix_running_details.dart b/lib/Screens/grand_prix_running_details.dart index 5df86434..6deadd98 100644 --- a/lib/Screens/grand_prix_running_details.dart +++ b/lib/Screens/grand_prix_running_details.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/Screens/circuit.dart'; diff --git a/lib/Screens/hall_of_fame.dart b/lib/Screens/hall_of_fame.dart index 90758b1c..0f7dd107 100644 --- a/lib/Screens/hall_of_fame.dart +++ b/lib/Screens/hall_of_fame.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/helpers/loading_indicator_util.dart'; diff --git a/lib/Screens/history.dart b/lib/Screens/history.dart index d5f9efce..d7af33b1 100644 --- a/lib/Screens/history.dart +++ b/lib/Screens/history.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/Screens/article.dart'; diff --git a/lib/Screens/home.dart b/lib/Screens/home.dart index 739741c7..c2f09cb2 100644 --- a/lib/Screens/home.dart +++ b/lib/Screens/home.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/helpers/live_session_status_indicator.dart'; diff --git a/lib/Screens/links.dart b/lib/Screens/links.dart index 6595da6b..fb3d525c 100644 --- a/lib/Screens/links.dart +++ b/lib/Screens/links.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:flutter/material.dart'; diff --git a/lib/Screens/race_details.dart b/lib/Screens/race_details.dart index d9208cd8..e71610f5 100644 --- a/lib/Screens/race_details.dart +++ b/lib/Screens/race_details.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'dart:async'; @@ -161,7 +161,7 @@ class RaceDetailsScreen extends StatelessWidget { child: SingleChildScrollView( child: QualificationResultsProvider( raceUrl: - 'https://www.formula1.com/en/results.html/2023/races/${Convert().circuitIdFromErgastToFormulaOne(race.circuitId)}/${Convert().circuitNameFromErgastToFormulaOne(race.circuitId)}/sprint-shootout.html', + 'https://www.formula1.com/en/results.html/${DateTime.now().year}/races/${Convert().circuitIdFromErgastToFormulaOne(race.circuitId)}/${Convert().circuitNameFromErgastToFormulaOne(race.circuitId)}/sprint-shootout.html', hasSprint: hasSprint, ), ), diff --git a/lib/Screens/schedule.dart b/lib/Screens/schedule.dart index 91f3e35e..e7e5da7c 100644 --- a/lib/Screens/schedule.dart +++ b/lib/Screens/schedule.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'dart:async'; diff --git a/lib/Screens/search.dart b/lib/Screens/search.dart index 66668b98..014557c3 100644 --- a/lib/Screens/search.dart +++ b/lib/Screens/search.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/Screens/article.dart'; diff --git a/lib/Screens/server_settings.dart b/lib/Screens/server_settings.dart index a4f3e8e1..dfff1788 100644 --- a/lib/Screens/server_settings.dart +++ b/lib/Screens/server_settings.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:flutter/material.dart'; diff --git a/lib/Screens/session_screen.dart b/lib/Screens/session_screen.dart index c94ebb3d..4ea11b0b 100644 --- a/lib/Screens/session_screen.dart +++ b/lib/Screens/session_screen.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'dart:async'; diff --git a/lib/Screens/settings.dart b/lib/Screens/settings.dart index ece40ad1..7757a785 100644 --- a/lib/Screens/settings.dart +++ b/lib/Screens/settings.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/Screens/FormulaYou/settings.dart'; diff --git a/lib/Screens/standings.dart b/lib/Screens/standings.dart index bd78154a..915f19c2 100644 --- a/lib/Screens/standings.dart +++ b/lib/Screens/standings.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'dart:async'; diff --git a/lib/Screens/team_details.dart b/lib/Screens/team_details.dart index 63f40e83..20fa43e6 100644 --- a/lib/Screens/team_details.dart +++ b/lib/Screens/team_details.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/Screens/race_details.dart'; @@ -467,7 +467,7 @@ class TeamResults extends StatelessWidget { ), body: RaceResultsProvider( raceUrl: - 'https://www.formula1.com/en/results.html/2023/races/$circuitId/$circuitName/race-result.html', + 'https://www.formula1.com/en/results.html/${DateTime.now().year}/races/$circuitId/$circuitName/race-result.html', ), ), ), diff --git a/lib/Screens/test.dart b/lib/Screens/test.dart index de02a6f1..d5e2316a 100644 --- a/lib/Screens/test.dart +++ b/lib/Screens/test.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:flutter/material.dart'; diff --git a/lib/Screens/video.dart b/lib/Screens/video.dart index 1b29911a..2a598776 100644 --- a/lib/Screens/video.dart +++ b/lib/Screens/video.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/api/videos.dart'; diff --git a/lib/Screens/videos.dart b/lib/Screens/videos.dart index 5883dba5..351f28c9 100644 --- a/lib/Screens/videos.dart +++ b/lib/Screens/videos.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:animations/animations.dart'; diff --git a/lib/api/article_parts.dart b/lib/api/article_parts.dart index afdcf7bf..4e9652f7 100644 --- a/lib/api/article_parts.dart +++ b/lib/api/article_parts.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/Screens/article.dart'; diff --git a/lib/api/brightcove.dart b/lib/api/brightcove.dart index 92cde410..d2d5c032 100644 --- a/lib/api/brightcove.dart +++ b/lib/api/brightcove.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'dart:convert'; diff --git a/lib/api/driver_components.dart b/lib/api/driver_components.dart index 8c7cd1d4..a43f94bf 100644 --- a/lib/api/driver_components.dart +++ b/lib/api/driver_components.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/helpers/driver_image.dart'; diff --git a/lib/api/ergast.dart b/lib/api/ergast.dart index 805733ba..3cefdfd9 100644 --- a/lib/api/ergast.dart +++ b/lib/api/ergast.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'dart:async'; diff --git a/lib/api/event_tracker.dart b/lib/api/event_tracker.dart index bab9c11d..c50320a8 100644 --- a/lib/api/event_tracker.dart +++ b/lib/api/event_tracker.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'dart:async'; diff --git a/lib/api/formula1.dart b/lib/api/formula1.dart index ae239386..888f91cc 100644 --- a/lib/api/formula1.dart +++ b/lib/api/formula1.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'dart:async'; diff --git a/lib/api/live_feed.dart b/lib/api/live_feed.dart index 0b15fa64..b2c50d11 100644 --- a/lib/api/live_feed.dart +++ b/lib/api/live_feed.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'dart:async'; diff --git a/lib/api/livetiming.dart b/lib/api/livetiming.dart index b1dab6ce..cab564a7 100644 --- a/lib/api/livetiming.dart +++ b/lib/api/livetiming.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'dart:async'; diff --git a/lib/api/mixed_news.dart b/lib/api/mixed_news.dart index 5d7ff397..cf3be345 100644 --- a/lib/api/mixed_news.dart +++ b/lib/api/mixed_news.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'dart:convert'; diff --git a/lib/api/race_components.dart b/lib/api/race_components.dart index c03ff6b0..c0d8b36e 100644 --- a/lib/api/race_components.dart +++ b/lib/api/race_components.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ // import 'package:awesome_notifications/awesome_notifications.dart'; diff --git a/lib/api/rss.dart b/lib/api/rss.dart index 01fdc5f5..e0c3ebc1 100644 --- a/lib/api/rss.dart +++ b/lib/api/rss.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:http/http.dart' as http; diff --git a/lib/api/searx.dart b/lib/api/searx.dart index 517242d2..67da31f9 100644 --- a/lib/api/searx.dart +++ b/lib/api/searx.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'dart:convert'; diff --git a/lib/api/team_components.dart b/lib/api/team_components.dart index 88973fe4..d219caa3 100644 --- a/lib/api/team_components.dart +++ b/lib/api/team_components.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/Screens/team_details.dart'; diff --git a/lib/api/videos.dart b/lib/api/videos.dart index 8e6b4b12..44e3af62 100644 --- a/lib/api/videos.dart +++ b/lib/api/videos.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'dart:async'; diff --git a/lib/helpers/bottom_navigation_bar.dart b/lib/helpers/bottom_navigation_bar.dart index 20409d40..63818ff3 100644 --- a/lib/helpers/bottom_navigation_bar.dart +++ b/lib/helpers/bottom_navigation_bar.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/Screens/videos.dart'; diff --git a/lib/helpers/circuit_points.dart b/lib/helpers/circuit_points.dart index 3181987e..f8ac4167 100644 --- a/lib/helpers/circuit_points.dart +++ b/lib/helpers/circuit_points.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'dart:convert'; diff --git a/lib/helpers/convert_ergast_and_formula_one.dart b/lib/helpers/convert_ergast_and_formula_one.dart index 5d9763e4..e5513463 100644 --- a/lib/helpers/convert_ergast_and_formula_one.dart +++ b/lib/helpers/convert_ergast_and_formula_one.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ class Convert { @@ -52,29 +52,30 @@ class Convert { String circuitIdFromErgastToFormulaOne(String circuitId) { Map ergastToFormulaOne = { - 'bahrain': '1141', - 'jeddah': '1142', - 'albert_park': '1143', - 'baku': '1207', - 'miami': '1208', - 'imola': '1209', - 'monaco': '1210', - 'catalunya': '1211', - 'villeneuve': '1212', - 'red_bull_ring': '1213', - 'silverstone': '1214', - 'hungaroring': '1215', - 'spa': '1216', - 'zandvoort': '1217', - 'monza': '1218', - 'marina_bay': '1219', - 'suzuka': '1220', - 'losail': '1221', - 'americas': '1222', - 'rodriguez': '1223', - 'interlagos': '1224', - 'vegas': '1225', - 'yas_marina': '1226', + 'bahrain': '1229', + 'jeddah': '1230', + 'albert_park': '1231', + 'suzuka': '1232', + 'shanghai': '1233', + 'miami': '1234', + 'imola': '1235', + 'monaco': '1236', + 'villeneuve': '1237', + 'catalunya': '1238', + 'red_bull_ring': '1239', + 'silverstone': '1240', + 'hungaroring': '1241', + 'spa': '1242', + 'zandvoort': '1243', + 'monza': '1244', + 'baku': '1245', + 'marina_bay': '1246', + 'americas': '1247', + 'rodriguez': '1248', + 'interlagos': '1249', + 'vegas': '1250', + 'losail': '1251', + 'yas_marina': '1252', }; return ergastToFormulaOne[circuitId]; } @@ -104,6 +105,7 @@ class Convert { "interlagos": "Brazil", "vegas": "Las_Vegas", "yas_marina": "United_Arab_Emirates", + "shanghai": "China", }; return ergastToFormulaOne[circuitId]; } @@ -133,6 +135,7 @@ class Convert { 'interlagos': 'brazil', 'vegas': 'las-vegas', 'yas_marina': 'abu-dhabi', + 'shanghai': 'china', }; return ergastToFormulaOne[circuitId]; } @@ -198,30 +201,31 @@ class Convert { String circuitNameFromFormulaOneToFormulaOneIdForRaceHub(String circuitId) { Map ergastToFormulaOne = { - "Bahrain": '1141', - "Saudi_Arabia": '1142', - "Australia": '1143', - "Azerbaijan": '1207', - "Miami": '1208', - "EmiliaRomagna": '1209', - "Monaco": '1210', - "Monte%20Carlo": '1210', - "Spain": '1211', - "Canada": '1212', - "Austria": '1213', - "Great_Britain": '1214', - "Hungary": '1215', - "Belgium": '1216', - "Netherlands": '1217', - "Italy": '1218', - "Singapore": '1219', - "Japan": '1220', - "Qatar": '1221', - "USA": '1222', - "Mexico": '1223', - "Brazil": '1224', - "Las_Vegas": '1225', - "United_Arab_Emirates": '1226', + "Bahrain": '1229', + "Saudi_Arabia": '1230', + "Australia": '1231', + "Japan": '1232', + "China": '1233', + "Miami": '1234', + "EmiliaRomagna": '1235', + "Monaco": '1236', + "Monte%20Carlo": '1236', + "Canada": '1237', + "Spain": '1238', + "Austria": '1239', + "Great_Britain": '1240', + "Hungary": '1241', + "Belgium": '1242', + "Netherlands": '1243', + "Italy": '1244', + "Azerbaijan": '1245', + "Singapore": '1246', + "USA": '1247', + "Mexico": '1248', + "Brazil": '1249', + "Las_Vegas": '1250', + "Qatar": '1251', + "United_Arab_Emirates": '1252', }; return ergastToFormulaOne[circuitId]; } @@ -231,27 +235,28 @@ class Convert { "Bahrain": '1', "Saudi_Arabia": '2', "Australia": '3', - "Azerbaijan": '4', - "Miami": '5', - //"EmiliaRomagna": '6', - "Monaco": '6', - "Monte%20Carlo": '6', - "Spain": '7', - "Canada": '8', - "Austria": '9', - "Great_Britain": '10', - "Hungary": '11', - "Belgium": '12', - "Netherlands": '13', - "Italy": '14', - "Singapore": '15', - "Japan": '16', - "Qatar": '17', - "USA": '18', - "Mexico": '19', - "Brazil": '20', - "Las_Vegas": '21', - "United_Arab_Emirates": '22', + "Japan": '4', + "China": '5', + "Miami": '6', + "EmiliaRomagna": '7', + "Monaco": '8', + "Monte%20Carlo": '8', + "Canada": '9', + "Spain": '10', + "Austria": '11', + "Great_Britain": '12', + "Hungary": '13', + "Belgium": '14', + "Netherlands": '15', + "Italy": '16', + "Azerbaijan": '17', + "Singapore": '18', + "USA": '19', + "Mexico": '20', + "Brazil": '21', + "Las_Vegas": '22', + "Qatar": '23', + "United_Arab_Emirates": '24', }; return ergastToFormulaOne[circuitId]; } diff --git a/lib/helpers/custom_physics.dart b/lib/helpers/custom_physics.dart index b1a2eaa0..c3944604 100644 --- a/lib/helpers/custom_physics.dart +++ b/lib/helpers/custom_physics.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:flutter/material.dart'; diff --git a/lib/helpers/drawer.dart b/lib/helpers/drawer.dart index dc4a6ff6..7ee7abc8 100644 --- a/lib/helpers/drawer.dart +++ b/lib/helpers/drawer.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/Screens/FormulaYou/home.dart'; diff --git a/lib/helpers/driver_image.dart b/lib/helpers/driver_image.dart index b927bdac..bf269909 100644 --- a/lib/helpers/driver_image.dart +++ b/lib/helpers/driver_image.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/helpers/convert_ergast_and_formula_one.dart'; @@ -81,7 +81,7 @@ class DriverStatsImage { Future getDriverImage(String driverId) async { String driverPath = Convert().driverIdFromErgastForImages(driverId); String driverImageUrl = - "https://media.formula1.com/content/dam/fom-website/drivers/2023Drivers/$driverPath.jpg.img.640.medium.jpg/1677069810695.jpg"; + "https://media.formula1.com/content/dam/fom-website/drivers/2024Drivers/$driverPath.jpg.img.640.medium.jpg/1677069810695.jpg"; return driverImageUrl; } } diff --git a/lib/helpers/driver_result_item.dart b/lib/helpers/driver_result_item.dart index d6886258..ccacf491 100644 --- a/lib/helpers/driver_result_item.dart +++ b/lib/helpers/driver_result_item.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/Screens/driver_details.dart'; diff --git a/lib/helpers/handle_native.dart b/lib/helpers/handle_native.dart index 89c25537..dcbc4fa0 100644 --- a/lib/helpers/handle_native.dart +++ b/lib/helpers/handle_native.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/helpers/route_handler.dart'; diff --git a/lib/helpers/hover.dart b/lib/helpers/hover.dart index 686ece95..37077159 100644 --- a/lib/helpers/hover.dart +++ b/lib/helpers/hover.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:flutter/material.dart'; diff --git a/lib/helpers/live_session_status_indicator.dart b/lib/helpers/live_session_status_indicator.dart index c15f17bd..01d2121e 100644 --- a/lib/helpers/live_session_status_indicator.dart +++ b/lib/helpers/live_session_status_indicator.dart @@ -16,7 +16,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/api/event_tracker.dart'; diff --git a/lib/helpers/loading_indicator_util.dart b/lib/helpers/loading_indicator_util.dart index 93fc271a..7cc4821b 100644 --- a/lib/helpers/loading_indicator_util.dart +++ b/lib/helpers/loading_indicator_util.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:flutter/material.dart'; diff --git a/lib/helpers/news.dart b/lib/helpers/news.dart index 55bd7da6..309502c5 100644 --- a/lib/helpers/news.dart +++ b/lib/helpers/news.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'dart:async'; diff --git a/lib/helpers/news_feed_widget.dart b/lib/helpers/news_feed_widget.dart index c7eed060..63e46d77 100644 --- a/lib/helpers/news_feed_widget.dart +++ b/lib/helpers/news_feed_widget.dart @@ -16,7 +16,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/Screens/MixedNews/rss_feed.dart'; diff --git a/lib/helpers/racetracks_url.dart b/lib/helpers/racetracks_url.dart index a4903156..289d6152 100644 --- a/lib/helpers/racetracks_url.dart +++ b/lib/helpers/racetracks_url.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ class RaceTracksUrls { @@ -42,6 +42,7 @@ class RaceTracksUrls { "interlagos": "Brazil", "vegas": "Las Vegas", "yas_marina": "Abu Dhabi", + "shanghai": "China", }; Map trackLayoutConverter = { @@ -68,6 +69,7 @@ class RaceTracksUrls { "interlagos": "Brazil", "vegas": "Las Vegas", "yas_marina": "Abu Dhabi", + "shanghai": "China", }; Map raceCoverImageConverter = { @@ -94,6 +96,7 @@ class RaceTracksUrls { "interlagos": "Brazilian", "vegas": "Las_Vegas", "yas_marina": "Abu_Dhabi", + "shanghai": "China", }; Future getRaceTrackImageUrl(String gpId) async { String gpName = trackUrlConverter[gpId]!; diff --git a/lib/helpers/request_error.dart b/lib/helpers/request_error.dart index 13647275..e824061e 100644 --- a/lib/helpers/request_error.dart +++ b/lib/helpers/request_error.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:flutter/material.dart'; diff --git a/lib/helpers/route_handler.dart b/lib/helpers/route_handler.dart index c44ba142..2074f9c4 100644 --- a/lib/helpers/route_handler.dart +++ b/lib/helpers/route_handler.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:boxbox/Screens/article.dart'; diff --git a/lib/helpers/schedule_lands.dart b/lib/helpers/schedule_lands.dart deleted file mode 100644 index 2b564a46..00000000 --- a/lib/helpers/schedule_lands.dart +++ /dev/null @@ -1,52 +0,0 @@ -/* - * This file is part of BoxBox (https://github.com/BrightDV/BoxBox). - * - * BoxBox is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * BoxBox is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with BoxBox. If not, see . - * - * Copyright (c) 2022-2023, BrightDV - */ - -class ScheduleLands { - final Map lands = { - "Australia": "Australie", - "Bahrain": "Bahrain", - "Italy": "Italie", - "Portugal": "Portugal", - "United States": "États-Unis", - "Canada": "Canada", - "Spain": "Espagne", - "Monaco": "Monaco", - "Azerbaijan": "Azerbaïdjan", - "France": "France", - "Austria": "Autriche", - "UK": "Grande-Bretagne", - "Hungary": "Hongrie", - "Belgium": "Belgique", - "Netherlands": "Pays-Bas", - "Russia": "Russie", - "Turkey": "Turquie", - "Singapore": "Singapour", - "Japan": "Japon", - "USA": "États-Unis", - "Mexico": "Mexique", - "Brazil": "Brésil", - "Qatar": "Quatar", - "Saudi Arabia": "Arabie Saoudite", - "UAE": "Émirats Arabes Unis", - }; - String getLandName(String oldName) { - String newName = lands[oldName]!; - return newName; - } -} diff --git a/lib/helpers/team_background_color.dart b/lib/helpers/team_background_color.dart index d9f5b953..4facdb01 100644 --- a/lib/helpers/team_background_color.dart +++ b/lib/helpers/team_background_color.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:flutter/material.dart'; diff --git a/lib/helpers/team_car_image.dart b/lib/helpers/team_car_image.dart index c93f2a5c..4c497ffe 100644 --- a/lib/helpers/team_car_image.dart +++ b/lib/helpers/team_car_image.dart @@ -14,31 +14,31 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-${DateTime.now().year}, BrightDV */ class TeamCarImage { Map teamCarDecoder = { "ferrari": - "https://media.formula1.com/content/dam/fom-website/teams/2023/ferrari-left.png", + "https://media.formula1.com/content/dam/fom-website/teams/${DateTime.now().year}/ferrari-left.png", "mercedes": - "https://media.formula1.com/content/dam/fom-website/teams/2023/mercedes-left.png", + "https://media.formula1.com/content/dam/fom-website/teams/${DateTime.now().year}/mercedes-left.png", "red_bull": - "https://media.formula1.com/content/dam/fom-website/teams/2023/red-bull-left.png", + "https://media.formula1.com/content/dam/fom-website/teams/${DateTime.now().year}/red-bull-left.png", "alpine": - "https://media.formula1.com/content/dam/fom-website/teams/2023/alpine-left.png", + "https://media.formula1.com/content/dam/fom-website/teams/${DateTime.now().year}/alpine-left.png", "haas": - "https://media.formula1.com/content/dam/fom-website/teams/2023/haas-f1-team-left.png", + "https://media.formula1.com/content/dam/fom-website/teams/${DateTime.now().year}/haas-f1-team-left.png", "alfa": - "https://media.formula1.com/content/dam/fom-website/teams/2023/alfa-romeo-racing-left.png", + "https://media.formula1.com/content/dam/fom-website/teams/${DateTime.now().year}/alfa-romeo-racing-left.png", "alphatauri": - "https://media.formula1.com/content/dam/fom-website/teams/2023/alphatauri-left.png", + "https://media.formula1.com/content/dam/fom-website/teams/${DateTime.now().year}/alphatauri-left.png", "mclaren": - "https://media.formula1.com/content/dam/fom-website/teams/2023/mclaren-left.png", + "https://media.formula1.com/content/dam/fom-website/teams/${DateTime.now().year}/mclaren-left.png", "aston_martin": - "https://media.formula1.com/content/dam/fom-website/teams/2023/aston-martin-left.png", + "https://media.formula1.com/content/dam/fom-website/teams/${DateTime.now().year}/aston-martin-left.png", "williams": - "https://media.formula1.com/content/dam/fom-website/teams/2023/williams-left.png", + "https://media.formula1.com/content/dam/fom-website/teams/${DateTime.now().year}/williams-left.png", }; Future getTeamCarImageURL(String teamId) async { String teamCarImageUrl = teamCarDecoder[teamId]!; diff --git a/lib/main.dart b/lib/main.dart index 4b67ee99..84e5c689 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'dart:async'; diff --git a/lib/scraping/fia.dart b/lib/scraping/fia.dart index 3c49f30c..85fa93ba 100644 --- a/lib/scraping/fia.dart +++ b/lib/scraping/fia.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:hive_flutter/hive_flutter.dart'; @@ -42,7 +42,7 @@ class FIAScraper { ); } else { latestDocumentsUrl = Uri.parse( - 'https://www.fia.com/documents/championships/fia-formula-one-world-championship-14/season/season-2023-2042', + 'https://www.fia.com/documents/championships/fia-formula-one-world-championship-14/season/season-2023-2042', // TODO: update link ); } http.Response response = await http.get(latestDocumentsUrl); @@ -57,7 +57,7 @@ class FIAScraper { SessionDocument( 'This document cannot be parsed.', 'none', - 'https://www.fia.com/documents/championships/fia-formula-one-world-championship-14/season/season-2023-2042', + 'https://www.fia.com/documents/championships/fia-formula-one-world-championship-14/season/season-2023-2042', // TODO: update link ), ); } else { diff --git a/lib/scraping/formula_one.dart b/lib/scraping/formula_one.dart index 57476073..19a98cef 100644 --- a/lib/scraping/formula_one.dart +++ b/lib/scraping/formula_one.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'dart:convert'; diff --git a/lib/theme/teams_themes.dart b/lib/theme/teams_themes.dart index f74ebd61..95d40b34 100644 --- a/lib/theme/teams_themes.dart +++ b/lib/theme/teams_themes.dart @@ -14,7 +14,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with BoxBox. If not, see . * - * Copyright (c) 2022-2023, BrightDV + * Copyright (c) 2022-2024, BrightDV */ import 'package:flutter/material.dart';