From ac1b2d2fab87e12791e9de6ea94c3acb3d534777 Mon Sep 17 00:00:00 2001 From: shenlong <139912620+shenlong-tanwen@users.noreply.github.com> Date: Tue, 11 Mar 2025 17:52:31 +0530 Subject: [PATCH] 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> --- .github/workflows/static_analysis.yml | 25 ++++++++++++++---- .../activity_service.provider.g.dart | Bin 1060 -> 1060 bytes mobile/lib/providers/api.provider.g.dart | Bin 969 -> 969 bytes .../providers/app_settings.provider.g.dart | Bin 1068 -> 1068 bytes .../asset_viewer/asset_stack.provider.g.dart | Bin 4483 -> 4483 bytes .../lib/providers/immich_logo_provider.g.dart | Bin 1009 -> 1009 bytes .../infrastructure/db.provider.g.dart | Bin 908 -> 908 bytes .../infrastructure/exif.provider.g.dart | Bin 1026 -> 1026 bytes .../infrastructure/store.provider.g.dart | Bin 1051 -> 1051 bytes .../providers/map/map_marker.provider.g.dart | Bin 1020 -> 1020 bytes .../providers/map/map_service.provider.g.dart | Bin 999 -> 999 bytes .../search/paginated_search.provider.g.dart | Bin 1150 -> 1150 bytes .../providers/search/people.provider.g.dart | Bin 9220 -> 9220 bytes .../search/search_filter.provider.g.dart | Bin 7004 -> 7004 bytes mobile/lib/services/person.service.g.dart | Bin 1029 -> 1029 bytes 15 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.yml index 4d8d40a47..1e2020a19 100644 --- a/.github/workflows/static_analysis.yml +++ b/.github/workflows/static_analysis.yml @@ -50,6 +50,26 @@ jobs: run: dart pub get 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 run: dart analyze --fatal-infos working-directory: ./mobile @@ -61,8 +81,3 @@ jobs: - name: Run dart custom_lint run: dart run custom_lint working-directory: ./mobile - - # Enable after riverpod generator migration is completed - # - name: Run dart custom lint - # run: dart run custom_lint - # working-directory: ./mobile diff --git a/mobile/lib/providers/activity_service.provider.g.dart b/mobile/lib/providers/activity_service.provider.g.dart index 1a08a6f8aaba7c20d0edef43eb7dca8aa895c18d..2bf160c4872d7fd08d5a1a2782a320e0259a7cf6 100644 GIT binary patch delta 52 zcmZ3&v4mrT4x@TiDSX|j20V$$Yd H#*0h=T7kL3<+ delta 53 zcmX@fev*BI6r+Y|l0{N#N=lN6iG{JDSyD=3s%fgRrI~SBnz^}|fuWhHvALnCxsl~& IC&qRr0I4btwg3PC diff --git a/mobile/lib/providers/app_settings.provider.g.dart b/mobile/lib/providers/app_settings.provider.g.dart index 1d2fe173b179503edae52d95d43513cff5800961..88cab49c1b5e47ab81729feb91c0c2764116342c 100644 GIT binary patch delta 53 zcmZ3(v4&%VKBI=Qxv^QQL5i`3Noulrl3|*KrJ1F%g(;9SHA_h`OHDE~H8n~xGuRx? Hc$EnNh|~_G delta 53 zcmZ3(v4&%VKBI<-X=Vq$ERWSVN0YHVtlVqjp9XlSws9Xku((Xku=WYG9mZZfRU delta 52 zcmeBS?_u8{%&4AbkZNIJmX>H_kZNj{l46*WY+ztvl$M-qZe(m=Xl7(#nUrE+oV?kJ HF^CBOd*coU diff --git a/mobile/lib/providers/infrastructure/exif.provider.g.dart b/mobile/lib/providers/infrastructure/exif.provider.g.dart index 5eec1bd23ed39491dd839ed654b12e57bd69938e..053abf18cc29c09161eb8984cd58437503f5b145 100644 GIT binary patch delta 52 zcmZqTXyVwQz^HDJn3QU6ZjqW|W|)?gWMpb?U|^V*l4g{cY?f+hZeeI*U}%_@n!4GY HaW@kHg3u1s delta 52 zcmZqTXyVwQz^HDKW@(aQlxSj{mS}F7WMGkMYLQ}QkZNI=Vs2q>Zee7aW^A0AY_Qp# HaW@kHbWILD diff --git a/mobile/lib/providers/infrastructure/store.provider.g.dart b/mobile/lib/providers/infrastructure/store.provider.g.dart index 0551793b80e500bc87495487571a04af2c8907e2..ebf18047043f826f0061b7fc7778a0234397d803 100644 GIT binary patch delta 53 zcmbQuF`Hw9BBO?7nz6Y>lBHRysi~2nsbN~8p-G}evPE*LQL?c?qG_73MVg7RS!&8= IPsU430E!t84*&oF delta 53 zcmbQuF`Hw9BBO>;nqjhWs!^&@N|LF8g;Ao3L28n*L876BaiUqWxw%1_X_A3uin-Zl IPsU430FdJj?*IS* diff --git a/mobile/lib/providers/map/map_marker.provider.g.dart b/mobile/lib/providers/map/map_marker.provider.g.dart index c79292aa612d5d01aa0c062d6c7e402b7734a6de..76cc44a103d02961c67d58bc37a33bb768b8f532 100644 GIT binary patch delta 53 zcmeyv{)c^oBBMr{v2kLuNm62>v5~1^l5v`WnTe5cVrp`#g{7Ifv9Y14rI}fpg@x&6 IPsYtm0JozLNB{r; delta 53 zcmeyv{)c^oBBO@6v3ZKAQJQgzfl;biqKT84>CzNb}> zn1pg2qXuc75Rn8DQxq;{VC<+hG0gYXaosnt$nL=dl3Eg28nop_PD)%VkT#_Gx%q9c m#A8kpA)`4XR>VvpSpg{pfFiXKRkdAiUHAGN&hvZ!*!=-k-6=f) delta 153 zcmWN}xedZV5CA{{nG=v81`*+a!28`J3czjb-QLoOQzBvlIzVy>G=>Y9nZ{}So>o0E z#1h+35r7gJa~hOE8VLgBoW&%TVDo)-T=!(&Y6($=ZHSF=NTrr62?_=jt%eN};r!hE mw$}(Os_MZjB{%g(iiuirGII8%h`f-?t?OQ&!+C!1AG<$$S}Mi> diff --git a/mobile/lib/providers/search/search_filter.provider.g.dart b/mobile/lib/providers/search/search_filter.provider.g.dart index a5e70b01e80e92d92753fe625b592d4fd45fa2e6..03f88b03320afb17eed44f0e6a22d4f26b4b39cf 100644 GIT binary patch delta 51 zcmca(cE@ak38R{^L86&yszq9Il99P_a#D(cc~WAMg}GT$Vw#zGQgX7nrHQ$*`Q|7_ GCMf`}*AGen delta 51 zcmca(cE@ak38R`}s%4^KqJf!#g_%W~p-HM)YLcb7L5h))sbNY|TB@;SvYCaM+2$xl GCMf`!L=KGr diff --git a/mobile/lib/services/person.service.g.dart b/mobile/lib/services/person.service.g.dart index c7352606b3b1b7c2303fae4edaa12cd15da7480e..8c2d46b3bdf841474a76b42663e408faddba02f8 100644 GIT binary patch delta 53 zcmZqWXyw=-&!}N&U}0gLl$@MwmTY2RWMp8PYG!U>nw(~tnrfDuVs2<+l$>HZV3}xQoSL%P IopB!%0EKl9<^TWy