High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
Added icons logo
Alex Tran09964e4b1614
diff --git a/mobile/android/app/src/main/AndroidManifest.xml b/mobile/android/app/src/main/AndroidManifest.xmlindex 71267f848f..5f93e37958 100644--- a/mobile/android/app/src/main/AndroidManifest.xml+++ b/mobile/android/app/src/main/AndroidManifest.xml@@ -1,7 +1,7 @@<manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.example.immich_mobile"><application- android:label="immich_mobile"+ android:label="Immich"android:name="${applicationName}"android:icon="@mipmap/ic_launcher"><activitydiff --git a/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.pngindex db77bb4b7b..4d6c70d143 100644Binary files a/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differdiff --git a/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.pngindex 17987b79bb..0a9d07b326 100644Binary files a/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and b/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differdiff --git a/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.pngindex 09d4391482..661fe7792e 100644Binary files a/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differdiff --git a/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.pngindex d5f1c8d34e..b980adbf51 100644Binary files a/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differdiff --git a/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.pngindex 4d6372eebd..08e57d7e8a 100644Binary files a/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differdiff --git a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]index dc9ada4725..a48b5af354 100644Binary files a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]index 28c6bf0301..e9f32b6ff4 100644Binary files a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]index 2ccbfd967d..f7be67d8cf 100644Binary files a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]index f091b6b0bc..398fa7f007 100644Binary files a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]index 4cde12118d..6a75033600 100644Binary files a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]index d0ef06e7ed..2f3543f99e 100644Binary files a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]index dcdc2306c2..a028809560 100644Binary files a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]index 2ccbfd967d..f7be67d8cf 100644Binary files a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]index c8f9ed8f5c..0f56efe41c 100644Binary files a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]index a6d6b8609d..28bda97fad 100644Binary files a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]index a6d6b8609d..28bda97fad 100644Binary files a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]index 75b2d164a5..cae6292f01 100644Binary files a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]index c4df70d39d..5b4900a0ea 100644Binary files a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]index 6a84f41e14..87e756f9be 100644Binary files a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected]index d0e1f58536..a2143a2b23 100644Binary files a/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] and b/mobile/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] differdiff --git a/mobile/ios/Runner/Info.plist b/mobile/ios/Runner/Info.plistindex db89cddaa1..ded59d2292 100644--- a/mobile/ios/Runner/Info.plist+++ b/mobile/ios/Runner/Info.plist@@ -5,7 +5,7 @@<key>CFBundleDevelopmentRegion</key><string>$(DEVELOPMENT_LANGUAGE)</string><key>CFBundleDisplayName</key>- <string>Immich Mobile</string>+ <string>Immich</string><key>CFBundleExecutable</key><string>$(EXECUTABLE_NAME)</string><key>CFBundleIdentifier</key>diff --git a/mobile/lib/modules/home/ui/draggable_scrollbar.dart b/mobile/lib/modules/home/ui/draggable_scrollbar.dartindex 2b8f1315f3..80b8a69dd0 100644--- a/mobile/lib/modules/home/ui/draggable_scrollbar.dart+++ b/mobile/lib/modules/home/ui/draggable_scrollbar.dart@@ -1,6 +1,5 @@import 'dart:async';-import 'package:flutter/foundation.dart';import 'package:flutter/material.dart';/// Build the Scroll Thumb and label using the current configuration@@ -166,7 +165,7 @@ class DraggableScrollbar extends StatefulWidget {}) {final scrollThumb = CustomPaint(key: scrollThumbKey,- foregroundPainter: ArrowCustomPainter(Colors.grey),+ foregroundPainter: ArrowCustomPainter(Colors.white),child: Material(elevation: 4.0,child: Container(@@ -348,7 +347,7 @@ class _DraggableScrollbarState extends State<DraggableScrollbar> with TickerProvdouble get barMaxScrollExtent => context.size!.height - widget.heightScrollThumb;- double get barMinScrollExtent => 0.0;+ double get barMinScrollExtent => 0;double get viewMaxScrollExtent => widget.controller.position.maxScrollExtent;diff --git a/mobile/lib/modules/home/ui/immich_sliver_appbar.dart b/mobile/lib/modules/home/ui/immich_sliver_appbar.dartindex f009a6f443..ad9bda06bd 100644--- a/mobile/lib/modules/home/ui/immich_sliver_appbar.dart+++ b/mobile/lib/modules/home/ui/immich_sliver_appbar.dart@@ -105,8 +105,8 @@ class ImmichSliverAppBar extends ConsumerWidget {statusBarColor: Colors.indigo,// Status bar brightness (optional)- statusBarIconBrightness: Brightness.dark, // For Android (dark icons)- statusBarBrightness: Brightness.light, // For iOS (dark icons)+ statusBarIconBrightness: Brightness.light, // For Android (dark icons)+ statusBarBrightness: Brightness.dark,),),);diff --git a/mobile/lib/modules/home/ui/thumbnail_image.dart b/mobile/lib/modules/home/ui/thumbnail_image.dartindex 257ad20ffc..ca8ae1d6a7 100644--- a/mobile/lib/modules/home/ui/thumbnail_image.dart+++ b/mobile/lib/modules/home/ui/thumbnail_image.dart@@ -5,7 +5,6 @@ import 'package:hive_flutter/hive_flutter.dart';import 'package:immich_mobile/constants/hive_box.dart';import 'package:immich_mobile/shared/models/immich_asset.model.dart';import 'package:immich_mobile/routing/router.dart';-import 'package:transparent_image/transparent_image.dart';class ThumbnailImage extends StatelessWidget {final ImmichAsset asset;@@ -17,7 +16,6 @@ class ThumbnailImage extends StatelessWidget {var box = Hive.box(userInfoBox);var thumbnailRequestUrl ='${box.get(serverEndpointKey)}/asset/file?aid=${asset.deviceAssetId}&did=${asset.deviceId}&isThumb=true';-return GestureDetector(onTap: () {AutoRouter.of(context).push(@@ -44,7 +42,10 @@ class ThumbnailImage extends StatelessWidget {scale: 0.2,child: CircularProgressIndicator(value: downloadProgress.progress),),- errorWidget: (context, url, error) => const Icon(Icons.error),+ errorWidget: (context, url, error) {+ debugPrint("Error Loading Thumbnail Widget $error");+ return const Icon(Icons.error);+ },),),);diff --git a/mobile/lib/modules/home/views/home_page.dart b/mobile/lib/modules/home/views/home_page.dartindex eea2d2ef87..4ef968870e 100644--- a/mobile/lib/modules/home/views/home_page.dart+++ b/mobile/lib/modules/home/views/home_page.dart@@ -84,6 +84,7 @@ class HomePage extends HookConsumerWidget {int? currentMonth = DateTime.tryParse(dateTitle)?.month;int? previousMonth = DateTime.tryParse(lastGroupDate)?.month;+ // Add Monthly Title Group if started at the beginning of the monthif ((currentMonth! - previousMonth!) != 0) {var monthTitleText = DateFormat('MMMM, y').format(DateTime.parse(dateTitle));@@ -92,10 +93,12 @@ class HomePage extends HookConsumerWidget {);}+ // Add Daily Title GroupimageGridGroup.add(- _buildDateGroupTitle(dateTitle),+ DailyTitleText(dateTitle: dateTitle),);+ // Add Image GroupimageGridGroup.add(ImageGrid(assetGroup: assetGroup),);@@ -121,8 +124,9 @@ class HomePage extends HookConsumerWidget {// return Text(scrollLabelText.value);// },// labelConstraints: const BoxConstraints.tightFor(width: 200.0, height: 30.0),+ backgroundColor: Theme.of(context).primaryColor,controller: _scrollController,- heightScrollThumb: 40.0,+ heightScrollThumb: 48.0,child: CustomScrollView(controller: _scrollController,slivers: [@@ -166,3 +170,41 @@ class MonthlyTitleText extends StatelessWidget {);}}++class DailyTitleText extends StatelessWidget {+ const DailyTitleText({+ Key? key,+ required this.dateTitle,+ }) : super(key: key);++ final String dateTitle;++ @override+ Widget build(BuildContext context) {+ var currentYear = DateTime.now().year;+ var groupYear = DateTime.parse(dateTitle).year;+ var formatDateTemplate = currentYear == groupYear ? 'E, MMM dd' : 'E, MMM dd, yyyy';+ var dateText = DateFormat(formatDateTemplate).format(DateTime.parse(dateTitle));++ return SliverToBoxAdapter(+ child: Padding(+ padding: const EdgeInsets.only(top: 24.0, bottom: 24.0, left: 3.0),+ child: Row(+ children: [+ Padding(+ padding: const EdgeInsets.only(left: 8.0, bottom: 5.0, top: 5.0),+ child: Text(+ dateText,+ style: const TextStyle(+ fontSize: 14,+ fontWeight: FontWeight.bold,+ color: Colors.black87,+ ),+ ),+ ),+ ],+ ),+ ),+ );+ }+}diff --git a/mobile/lib/modules/login/ui/login_form.dart b/mobile/lib/modules/login/ui/login_form.dartindex 0b6b13a71d..9757d476ee 100644--- a/mobile/lib/modules/login/ui/login_form.dart+++ b/mobile/lib/modules/login/ui/login_form.dart@@ -12,7 +12,7 @@ class LoginForm extends HookConsumerWidget {Widget build(BuildContext context, WidgetRef ref) {final usernameController = useTextEditingController(text: '[email protected]');final passwordController = useTextEditingController(text: 'password');- final serverEndpointController = useTextEditingController(text: 'http://192.168.1.103:3000');+ final serverEndpointController = useTextEditingController(text: 'http://192.168.1.216:3000');return Center(child: ConstrainedBox(diff --git a/mobile/makefile b/mobile/makefileindex c68be08444..abd6772374 100644--- a/mobile/makefile+++ b/mobile/makefile@@ -2,4 +2,7 @@ build:flutter packages pub run build_runner buildwatch:- flutter packages pub run build_runner watch\ No newline at end of file+ flutter packages pub run build_runner watch++create_app_icon:+ flutter pub run flutter_launcher_icons:main\ No newline at end of filediff --git a/mobile/pubspec.lock b/mobile/pubspec.lockindex b00996822c..2b015d255c 100644--- a/mobile/pubspec.lock+++ b/mobile/pubspec.lock@@ -15,6 +15,13 @@ packages:url: "https://pub.dartlang.org"source: hostedversion: "3.2.0"+ archive:+ dependency: transitive+ description:+ name: archive+ url: "https://pub.dartlang.org"+ source: hosted+ version: "3.1.11"args:dependency: transitivedescription:@@ -321,6 +328,13 @@ packages:url: "https://pub.dartlang.org"source: hostedversion: "0.18.2"+ flutter_launcher_icons:+ dependency: "direct main"+ description:+ name: flutter_launcher_icons+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.9.2"flutter_lints:dependency: "direct dev"description:@@ -429,6 +443,13 @@ packages:url: "https://pub.dartlang.org"source: hostedversion: "4.0.0"+ image:+ dependency: transitive+ description:+ name: image+ url: "https://pub.dartlang.org"+ source: hosted+ version: "3.1.1"intl:dependency: "direct main"description:@@ -478,6 +499,13 @@ packages:url: "https://pub.dartlang.org"source: hostedversion: "0.12.11"+ material_color_utilities:+ dependency: transitive+ description:+ name: material_color_utilities+ url: "https://pub.dartlang.org"+ source: hosted+ version: "0.1.3"meta:dependency: transitivedescription:@@ -576,6 +604,13 @@ packages:url: "https://pub.dartlang.org"source: hostedversion: "3.4.0"+ petitparser:+ dependency: transitive+ description:+ name: petitparser+ url: "https://pub.dartlang.org"+ source: hosted+ version: "4.4.0"photo_manager:dependency: "direct main"description:@@ -755,7 +790,7 @@ packages:name: test_apiurl: "https://pub.dartlang.org"source: hosted- version: "0.4.3"+ version: "0.4.8"timing:dependency: transitivedescription:@@ -840,6 +875,13 @@ packages:url: "https://pub.dartlang.org"source: hostedversion: "0.2.0"+ xml:+ dependency: transitive+ description:+ name: xml+ url: "https://pub.dartlang.org"+ source: hosted+ version: "5.3.1"yaml:dependency: transitivedescription:diff --git a/mobile/pubspec.yaml b/mobile/pubspec.yamlindex 2585dd0dd0..e1978e0cc2 100644--- a/mobile/pubspec.yaml+++ b/mobile/pubspec.yaml@@ -26,6 +26,7 @@ dependencies:exif: ^3.1.1transparent_image: ^2.0.0visibility_detector: ^0.2.2+ flutter_launcher_icons: "^0.9.2"dev_dependencies:flutter_test:@@ -39,3 +40,9 @@ flutter:uses-material-design: trueassets:- assets/++flutter_icons:+ image_path_android: "assets/immich-logo-no-outline.png"+ image_path_ios: "assets/immich-logo-no-outline.png"+ android: true # can specify file name here e.g. "ic_launcher"+ ios: true # can specify file name here e.g. "My-Launcher-Icon