Merge remote-tracking branch 'origin/feature/60-implement-drift-database' into feature/60-implement-drift-database

This commit is contained in:
2025-08-24 15:42:09 +02:00
5 changed files with 1018 additions and 18 deletions

View File

@@ -4,8 +4,56 @@ on:
pull_request:
jobs:
generate_licenses:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Flutter
uses: subosito/flutter-action@v1.5.3
with:
flutter-version: '3.32.1'
channel: "stable"
- name: Get dependencies
run: flutter pub get
- name: Generate oss_licenses.dart
run: flutter pub run flutter_oss_licenses:generate -o lib/presentation/views/about/licenses/oss_licenses.dart
- name: Escape dollar signs in licenses
run: |
sed -i 's/\$/\\$/g' lib/presentation/views/about/licenses/oss_licenses.dart
- name: Check for changes
id: check_changes
run: |
if [[ $(git status --porcelain) ]]; then
echo "changes_detected=true" >> $GITHUB_OUTPUT
else
echo "changes_detected=false" >> $GITHUB_OUTPUT
fi
- name: Checkout PR branch
if: steps.check_changes.outputs.changes_detected == 'true'
run: |
git fetch origin pull/${{ github.event.pull_request.number }}/head:${{ github.event.pull_request.head.ref }}
git checkout ${{ github.event.pull_request.head.ref }}
- name: Commit Changes
if: steps.check_changes.outputs.changes_detected == 'true'
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git add .
git commit -m "Actions: Licenses updated [skip ci]"
git push origin HEAD:${{ github.event.pull_request.head.ref }}
lint:
runs-on: ubuntu-latest
needs: generate_licenses
steps:
- name: Checkout code
uses: actions/checkout@v4

View File

@@ -63,7 +63,7 @@ import 'app_localizations_en.dart';
/// property.
abstract class AppLocalizations {
AppLocalizations(String locale)
: localeName = intl.Intl.canonicalizedLocale(locale.toString());
: localeName = intl.Intl.canonicalizedLocale(locale.toString());
final String localeName;
@@ -86,16 +86,16 @@ abstract class AppLocalizations {
/// of delegates is preferred or required.
static const List<LocalizationsDelegate<dynamic>> localizationsDelegates =
<LocalizationsDelegate<dynamic>>[
delegate,
GlobalMaterialLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
];
delegate,
GlobalMaterialLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
];
/// A list of this localizations delegate's supported locales.
static const List<Locale> supportedLocales = <Locale>[
Locale('de'),
Locale('en')
Locale('en'),
];
/// No description provided for @app_name.
@@ -487,7 +487,11 @@ abstract class AppLocalizations {
/// In de, this message translates to:
/// **'{playerCount, plural, =1{{names} hat exakt das Punktelimit von {pointLimit} Punkten erreicht und bekommt deshalb {bonusPoints} Punkte abgezogen!} other{{names} haben exakt das Punktelimit von {pointLimit} Punkten erreicht und bekommen deshalb jeweils {bonusPoints} Punkte abgezogen!}}'**
String bonus_points_message(
int playerCount, String names, int pointLimit, int bonusPoints);
int playerCount,
String names,
int pointLimit,
int bonusPoints,
);
/// No description provided for @end_of_game_title.
///
@@ -775,8 +779,9 @@ AppLocalizations lookupAppLocalizations(Locale locale) {
}
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.');
'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.',
);
}

View File

@@ -214,7 +214,11 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String bonus_points_message(
int playerCount, String names, int pointLimit, int bonusPoints) {
int playerCount,
String names,
int pointLimit,
int bonusPoints,
) {
String _temp0 = intl.Intl.pluralLogic(
playerCount,
locale: localeName,

View File

@@ -211,7 +211,11 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String bonus_points_message(
int playerCount, String names, int pointLimit, int bonusPoints) {
int playerCount,
String names,
int pointLimit,
int bonusPoints,
) {
String _temp0 = intl.Intl.pluralLogic(
playerCount,
locale: localeName,

File diff suppressed because it is too large Load Diff