You've already forked immich
							
							
				mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 00:18:28 +02:00 
			
		
		
		
	chore(mobile): Bump to Flutter 3.13 (#3767)
* Bump to Flutter 3.13.0 * Updates permission status * Adds hidden to app livecycle state * Updates and switches to WakelockPlus * bump flutter version github action * mobile test version * fix format * video player * video uri * ios test * Update android target sdk requirement to PlayStore --------- Co-authored-by: Alex Tran <Alex.Tran@conductix.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
		| @@ -157,7 +157,7 @@ User _userDeserialize( | ||||
|     isPartnerSharedBy: reader.readBoolOrNull(offsets[4]) ?? false, | ||||
|     isPartnerSharedWith: reader.readBoolOrNull(offsets[5]) ?? false, | ||||
|     lastName: reader.readString(offsets[6]), | ||||
|     memoryEnabled: reader.readBoolOrNull(offsets[7]) ?? true, | ||||
|     memoryEnabled: reader.readBoolOrNull(offsets[7]), | ||||
|     profileImagePath: reader.readStringOrNull(offsets[8]) ?? '', | ||||
|     updatedAt: reader.readDateTime(offsets[9]), | ||||
|   ); | ||||
| @@ -186,7 +186,7 @@ P _userDeserializeProp<P>( | ||||
|     case 6: | ||||
|       return (reader.readString(offset)) as P; | ||||
|     case 7: | ||||
|       return (reader.readBoolOrNull(offset) ?? true) as P; | ||||
|       return (reader.readBoolOrNull(offset)) as P; | ||||
|     case 8: | ||||
|       return (reader.readStringOrNull(offset) ?? '') as P; | ||||
|     case 9: | ||||
| @@ -979,8 +979,24 @@ extension UserQueryFilter on QueryBuilder<User, User, QFilterCondition> { | ||||
|     }); | ||||
|   } | ||||
|  | ||||
|   QueryBuilder<User, User, QAfterFilterCondition> memoryEnabledIsNull() { | ||||
|     return QueryBuilder.apply(this, (query) { | ||||
|       return query.addFilterCondition(const FilterCondition.isNull( | ||||
|         property: r'memoryEnabled', | ||||
|       )); | ||||
|     }); | ||||
|   } | ||||
|  | ||||
|   QueryBuilder<User, User, QAfterFilterCondition> memoryEnabledIsNotNull() { | ||||
|     return QueryBuilder.apply(this, (query) { | ||||
|       return query.addFilterCondition(const FilterCondition.isNotNull( | ||||
|         property: r'memoryEnabled', | ||||
|       )); | ||||
|     }); | ||||
|   } | ||||
|  | ||||
|   QueryBuilder<User, User, QAfterFilterCondition> memoryEnabledEqualTo( | ||||
|       bool value) { | ||||
|       bool? value) { | ||||
|     return QueryBuilder.apply(this, (query) { | ||||
|       return query.addFilterCondition(FilterCondition.equalTo( | ||||
|         property: r'memoryEnabled', | ||||
| @@ -1661,7 +1677,7 @@ extension UserQueryProperty on QueryBuilder<User, User, QQueryProperty> { | ||||
|     }); | ||||
|   } | ||||
|  | ||||
|   QueryBuilder<User, bool, QQueryOperations> memoryEnabledProperty() { | ||||
|   QueryBuilder<User, bool?, QQueryOperations> memoryEnabledProperty() { | ||||
|     return QueryBuilder.apply(this, (query) { | ||||
|       return query.addPropertyName(r'memoryEnabled'); | ||||
|     }); | ||||
|   | ||||
| @@ -21,6 +21,7 @@ enum AppStateEnum { | ||||
|   paused, | ||||
|   resumed, | ||||
|   detached, | ||||
|   hidden, | ||||
| } | ||||
|  | ||||
| class AppStateNotiifer extends StateNotifier<AppStateEnum> { | ||||
| @@ -84,6 +85,10 @@ class AppStateNotiifer extends StateNotifier<AppStateEnum> { | ||||
|     state = AppStateEnum.detached; | ||||
|     ref.watch(manualUploadProvider.notifier).cancelBackup(); | ||||
|   } | ||||
|  | ||||
|   void handleAppHidden() { | ||||
|     state = AppStateEnum.hidden; | ||||
|   } | ||||
| } | ||||
|  | ||||
| final appStateProvider = | ||||
|   | ||||
| @@ -102,7 +102,7 @@ class LocalNotificationService { | ||||
|                       cancelUploadActionID, | ||||
|                       'Cancel', | ||||
|                       showsUserInterface: true, | ||||
|                     ) | ||||
|                     ), | ||||
|                   ] | ||||
|                 : null, | ||||
|           ) | ||||
|   | ||||
| @@ -16,7 +16,7 @@ class IgnorableChangeNotifier extends ChangeNotifier { | ||||
|       if (_ignorableListeners == null) { | ||||
|         AssertionError([ | ||||
|           'A $runtimeType was used after being disposed.', | ||||
|           'Once you have called dispose() on a $runtimeType, it can no longer be used.' | ||||
|           'Once you have called dispose() on a $runtimeType, it can no longer be used.', | ||||
|         ]); | ||||
|       } | ||||
|       return true; | ||||
|   | ||||
| @@ -15,7 +15,7 @@ class ShareDialog extends StatelessWidget { | ||||
|             margin: const EdgeInsets.only(top: 12), | ||||
|             child: const Text('share_dialog_preparing') | ||||
|                 .tr(), | ||||
|           ) | ||||
|           ), | ||||
|         ], | ||||
|       ), | ||||
|     ); | ||||
|   | ||||
| @@ -62,7 +62,7 @@ class UserCircleAvatar extends ConsumerWidget { | ||||
|                 image: NetworkImage( | ||||
|                   profileImageUrl, | ||||
|                   headers: { | ||||
|                     "Authorization": "Bearer ${Store.get(StoreKey.accessToken)}" | ||||
|                     "Authorization": "Bearer ${Store.get(StoreKey.accessToken)}", | ||||
|                   }, | ||||
|                 ), | ||||
|                 fadeInDuration: const Duration(milliseconds: 200), | ||||
|   | ||||
| @@ -47,7 +47,7 @@ class AppLogDetailPage extends HookConsumerWidget { | ||||
|                     size: 16.0, | ||||
|                     color: Theme.of(context).primaryColor, | ||||
|                   ), | ||||
|                 ) | ||||
|                 ), | ||||
|               ], | ||||
|             ), | ||||
|             Container( | ||||
| @@ -106,7 +106,7 @@ class AppLogDetailPage extends HookConsumerWidget { | ||||
|                     size: 16.0, | ||||
|                     color: Theme.of(context).primaryColor, | ||||
|                   ), | ||||
|                 ) | ||||
|                 ), | ||||
|               ], | ||||
|             ), | ||||
|             Container( | ||||
| @@ -181,7 +181,7 @@ class AppLogDetailPage extends HookConsumerWidget { | ||||
|             if (logMessage.context1 != null) | ||||
|               buildLogContext1(logMessage.context1.toString()), | ||||
|             if (logMessage.context2 != null) | ||||
|               buildStackMessage(logMessage.context2.toString()) | ||||
|               buildStackMessage(logMessage.context2.toString()), | ||||
|           ], | ||||
|         ), | ||||
|       ), | ||||
|   | ||||
| @@ -148,7 +148,7 @@ class TabControllerPage extends HookConsumerWidget { | ||||
|                 color: Theme.of(context).primaryColor, | ||||
|               ), | ||||
|             ), | ||||
|           ) | ||||
|           ), | ||||
|         ], | ||||
|       ); | ||||
|     } | ||||
| @@ -159,7 +159,7 @@ class TabControllerPage extends HookConsumerWidget { | ||||
|         const HomeRoute(), | ||||
|         SearchRoute(), | ||||
|         const SharingRoute(), | ||||
|         const LibraryRoute() | ||||
|         const LibraryRoute(), | ||||
|       ], | ||||
|       builder: (context, child, animation) { | ||||
|         final tabsRouter = AutoTabsRouter.of(context); | ||||
|   | ||||
| @@ -99,7 +99,7 @@ class VersionAnnouncementOverlay extends HookConsumerWidget { | ||||
|                                       text: | ||||
|                                           "version_announcement_overlay_text_3" | ||||
|                                               .tr(), | ||||
|                                     ) | ||||
|                                     ), | ||||
|                                   ], | ||||
|                                 ), | ||||
|                               ), | ||||
| @@ -126,7 +126,7 @@ class VersionAnnouncementOverlay extends HookConsumerWidget { | ||||
|                                   ), | ||||
|                                 ).tr(), | ||||
|                               ), | ||||
|                             ) | ||||
|                             ), | ||||
|                           ], | ||||
|                         ), | ||||
|                       ), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user