chore(mobile): generated files and ci check (#16798)

* chore(mobile): more generated files

* ci: verify generated files in mobile are up-to-date

---------

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong 2025-03-11 17:52:31 +05:30 committed by GitHub
parent d7e0f0e70e
commit ac1b2d2fab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
15 changed files with 36 additions and 21 deletions

View File

@ -50,6 +50,26 @@ jobs:
run: dart pub get run: dart pub get
working-directory: ./mobile working-directory: ./mobile
- name: Run Build Runner
run: make build
working-directory: ./mobile
- name: Find file changes
uses: tj-actions/verify-changed-files@v20
id: verify-changed-files
with:
files: |
mobile/**/*.g.dart
mobile/**/*.gr.dart
mobile/**/*.drift.dart
- name: Verify files have not changed
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: |
echo "ERROR: Generated files not up to date! Run make_build inside the mobile directory"
echo "Changed files: ${{ steps.verify-changed-files.outputs.changed_files }}"
exit 1
- name: Run dart analyze - name: Run dart analyze
run: dart analyze --fatal-infos run: dart analyze --fatal-infos
working-directory: ./mobile working-directory: ./mobile
@ -61,8 +81,3 @@ jobs:
- name: Run dart custom_lint - name: Run dart custom_lint
run: dart run custom_lint run: dart run custom_lint
working-directory: ./mobile working-directory: ./mobile
# Enable after riverpod generator migration is completed
# - name: Run dart custom lint
# run: dart run custom_lint
# working-directory: ./mobile

View File

@ -6,7 +6,7 @@ part of 'activity_service.provider.dart';
// RiverpodGenerator // RiverpodGenerator
// ************************************************************************** // **************************************************************************
String _$activityServiceHash() => r'23a3ee7db71676d2719daa64217a683cc5c7eab0'; String _$activityServiceHash() => r'ce775779787588defe1e76406e09a9c109470310';
/// See also [activityService]. /// See also [activityService].
@ProviderFor(activityService) @ProviderFor(activityService)

View File

@ -6,7 +6,7 @@ part of 'api.provider.dart';
// RiverpodGenerator // RiverpodGenerator
// ************************************************************************** // **************************************************************************
String _$apiServiceHash() => r'5b8beddb448316bdae5e3963ff77601653715729'; String _$apiServiceHash() => r'93a7e3b4d3004741abc3061c4688239c3a72f9c4';
/// See also [apiService]. /// See also [apiService].
@ProviderFor(apiService) @ProviderFor(apiService)

View File

@ -7,7 +7,7 @@ part of 'app_settings.provider.dart';
// ************************************************************************** // **************************************************************************
String _$appSettingsServiceHash() => String _$appSettingsServiceHash() =>
r'45ea609a91d250290431a7a08a14d16b37c7515d'; r'3736e0d384ec7b1f896938589656dd6eb1552d60';
/// See also [appSettingsService]. /// See also [appSettingsService].
@ProviderFor(appSettingsService) @ProviderFor(appSettingsService)

View File

@ -6,7 +6,7 @@ part of 'asset_stack.provider.dart';
// RiverpodGenerator // RiverpodGenerator
// ************************************************************************** // **************************************************************************
String _$assetStackIndexHash() => r'0f2df55e929767c8c698bd432b5e6e351d000a16'; String _$assetStackIndexHash() => r'38b4b0116e3e4592620b118ae01cf89b77da9cfe';
/// Copied from Dart SDK /// Copied from Dart SDK
class _SystemHash { class _SystemHash {

View File

@ -6,7 +6,7 @@ part of 'immich_logo_provider.dart';
// RiverpodGenerator // RiverpodGenerator
// ************************************************************************** // **************************************************************************
String _$immichLogoHash() => r'040cc44fae3339e0f40a091fb3b2f2abe9f83acd'; String _$immichLogoHash() => r'6f23d217c44279537b7edee1ca80ebf47f69a4d0';
/// See also [immichLogo]. /// See also [immichLogo].
@ProviderFor(immichLogo) @ProviderFor(immichLogo)

View File

@ -6,7 +6,7 @@ part of 'db.provider.dart';
// RiverpodGenerator // RiverpodGenerator
// ************************************************************************** // **************************************************************************
String _$isarHash() => r'f0e886fa20e56dd1dc0082fcc723016289bd03cb'; String _$isarHash() => r'69d3a06aa7e69a4381478e03f7956eb07d7f7feb';
/// See also [isar]. /// See also [isar].
@ProviderFor(isar) @ProviderFor(isar)

View File

@ -6,7 +6,7 @@ part of 'exif.provider.dart';
// RiverpodGenerator // RiverpodGenerator
// ************************************************************************** // **************************************************************************
String _$exifRepositoryHash() => r'f8f94d2a43fa79b08e58d60e81d7877825f33ec0'; String _$exifRepositoryHash() => r'f0abe778ed61fbb257001fdf2ac6e17814011fee';
/// See also [exifRepository]. /// See also [exifRepository].
@ProviderFor(exifRepository) @ProviderFor(exifRepository)

View File

@ -6,7 +6,7 @@ part of 'store.provider.dart';
// RiverpodGenerator // RiverpodGenerator
// ************************************************************************** // **************************************************************************
String _$storeRepositoryHash() => r'2f1c3e2e2db5082a40eb30a183a6c770f5b09d76'; String _$storeRepositoryHash() => r'9f378b96e552151fa14a8c8ce2c30a5f38f436ed';
/// See also [storeRepository]. /// See also [storeRepository].
@ProviderFor(storeRepository) @ProviderFor(storeRepository)

View File

@ -6,7 +6,7 @@ part of 'map_marker.provider.dart';
// RiverpodGenerator // RiverpodGenerator
// ************************************************************************** // **************************************************************************
String _$mapMarkersHash() => r'737d52f3d02e6a458b11d730f2fe522c39ee1ebf'; String _$mapMarkersHash() => r'f33ac4baa3251b3f06423aece89673315966f885';
/// See also [mapMarkers]. /// See also [mapMarkers].
@ProviderFor(mapMarkers) @ProviderFor(mapMarkers)

View File

@ -6,7 +6,7 @@ part of 'map_service.provider.dart';
// RiverpodGenerator // RiverpodGenerator
// ************************************************************************** // **************************************************************************
String _$mapServiceHash() => r'2f68c07ac6cd5c74ec8be3bd2df91f4db673b79e'; String _$mapServiceHash() => r'7b26bcd231ed5728ac51fe015dddbf8f91491abb';
/// See also [mapService]. /// See also [mapService].
@ProviderFor(mapService) @ProviderFor(mapService)

View File

@ -7,7 +7,7 @@ part of 'paginated_search.provider.dart';
// ************************************************************************** // **************************************************************************
String _$paginatedSearchRenderListHash() => String _$paginatedSearchRenderListHash() =>
r'9efb98fd73d4e57e1ccd97a902cd459e3f18f749'; r'22d715ff7864e5a946be38322ce7813616f899c2';
/// See also [paginatedSearchRenderList]. /// See also [paginatedSearchRenderList].
@ProviderFor(paginatedSearchRenderList) @ProviderFor(paginatedSearchRenderList)

View File

@ -6,7 +6,7 @@ part of 'people.provider.dart';
// RiverpodGenerator // RiverpodGenerator
// ************************************************************************** // **************************************************************************
String _$getAllPeopleHash() => r'3417b7e0c211382d4480a415e352139995d57b6d'; String _$getAllPeopleHash() => r'226947af3b09ce62224916543958dd1d5e2ba651';
/// See also [getAllPeople]. /// See also [getAllPeople].
@ProviderFor(getAllPeople) @ProviderFor(getAllPeople)
@ -22,7 +22,7 @@ final getAllPeopleProvider = AutoDisposeFutureProvider<List<Person>>.internal(
@Deprecated('Will be removed in 3.0. Use Ref instead') @Deprecated('Will be removed in 3.0. Use Ref instead')
// ignore: unused_element // ignore: unused_element
typedef GetAllPeopleRef = AutoDisposeFutureProviderRef<List<Person>>; typedef GetAllPeopleRef = AutoDisposeFutureProviderRef<List<Person>>;
String _$personAssetsHash() => r'3dfecb67a54d07e4208bcb9581b2625acd2e1832'; String _$personAssetsHash() => r'c1d35ee0e024bd6915e21bc724be4b458a14bc24';
/// Copied from Dart SDK /// Copied from Dart SDK
class _SystemHash { class _SystemHash {
@ -173,7 +173,7 @@ class _PersonAssetsProviderElement
String get personId => (origin as PersonAssetsProvider).personId; String get personId => (origin as PersonAssetsProvider).personId;
} }
String _$updatePersonNameHash() => r'7145aaaf6fc38fdafe3a283ebf3d3f4fd0774cd2'; String _$updatePersonNameHash() => r'45f7693172de522a227406d8198811434cf2bbbc';
/// See also [updatePersonName]. /// See also [updatePersonName].
@ProviderFor(updatePersonName) @ProviderFor(updatePersonName)

View File

@ -7,7 +7,7 @@ part of 'search_filter.provider.dart';
// ************************************************************************** // **************************************************************************
String _$getSearchSuggestionsHash() => String _$getSearchSuggestionsHash() =>
r'bc1e9a1a060868f14e6eb970d2251dbfe39c6866'; r'bc30a65e8fcb273cbd07bab876baf67bcc794737';
/// Copied from Dart SDK /// Copied from Dart SDK
class _SystemHash { class _SystemHash {

View File

@ -6,7 +6,7 @@ part of 'person.service.dart';
// RiverpodGenerator // RiverpodGenerator
// ************************************************************************** // **************************************************************************
String _$personServiceHash() => r'32f28cb5a3de0553c17447e33a0efde7409a43ed'; String _$personServiceHash() => r'10883bccc6c402205e6785cf9ee6cd7142cd0983';
/// See also [personService]. /// See also [personService].
@ProviderFor(personService) @ProviderFor(personService)