diff --git a/README.md b/README.md index 7fc3dda2bf126428a292af2280795e1bea8141ba..a230caebbf1bd66ca7e54d8581d3a86ef9808646 100644 --- a/README.md +++ b/README.md @@ -1,16 +1 @@ -# myapp - -A new Flutter project. - -## Getting Started - -This project is a starting point for a Flutter application. - -A few resources to get you started if this is your first Flutter project: - -- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) -- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) - -For help getting started with Flutter, view our -[online documentation](https://flutter.dev/docs), which offers tutorials, -samples, guidance on mobile development, and a full API reference. +# Ente Photos \ No newline at end of file diff --git a/android/app/build.gradle b/android/app/build.gradle index 0c7e0b372e46a50c6fb92b9bd858e7ba48120d25..9f63df150b7b7f02ecd7be7109170b2ab6b38f3e 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -38,7 +38,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "com.example.myapp" + applicationId "io.ente.photos" minSdkVersion 16 targetSdkVersion 28 versionCode flutterVersionCode.toInteger() diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml index 38ddf897671a458aa54d34ed50586cd7bd9eeb5a..1408e61e4ae6f9f9b3b550444736ff58f29028fd 100644 --- a/android/app/src/debug/AndroidManifest.xml +++ b/android/app/src/debug/AndroidManifest.xml @@ -1,5 +1,5 @@ + package="io.ente.photos"> diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index a5a2867c650a4e5cd1ad53cc6339d6fdc2c3386d..051d5e2eb23bd442f57db7e8f57946bc1b2fbce6 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,5 +1,5 @@ + package="io.ente.photos"> diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 2f208e19575098f4a47b82c83515551a20fe4c33..33bac87614a95e462949c3626b129e2828aaafb6 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -1,4 +1,9 @@ PODS: + - connectivity (0.0.1): + - Flutter + - Reachability + - connectivity_macos (0.0.1): + - Flutter - esys_flutter_share (0.0.1): - Flutter - Flutter (1.0.0) @@ -29,6 +34,7 @@ PODS: - Flutter - photo_manager (0.0.1): - Flutter + - Reachability (3.2) - SDWebImage/Core (5.7.3) - SDWebImageWebPCoder (0.6.1): - libwebp (~> 1.0) @@ -44,6 +50,8 @@ PODS: - FMDB (~> 2.7.2) DEPENDENCIES: + - connectivity (from `.symlinks/plugins/connectivity/ios`) + - connectivity_macos (from `.symlinks/plugins/connectivity_macos/ios`) - esys_flutter_share (from `.symlinks/plugins/esys_flutter_share/ios`) - Flutter (from `Flutter`) - flutter_image_compress (from `.symlinks/plugins/flutter_image_compress/ios`) @@ -61,10 +69,15 @@ SPEC REPOS: - FMDB - libwebp - Mantle + - Reachability - SDWebImage - SDWebImageWebPCoder EXTERNAL SOURCES: + connectivity: + :path: ".symlinks/plugins/connectivity/ios" + connectivity_macos: + :path: ".symlinks/plugins/connectivity_macos/ios" esys_flutter_share: :path: ".symlinks/plugins/esys_flutter_share/ios" Flutter: @@ -89,6 +102,8 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/sqflite/ios" SPEC CHECKSUMS: + connectivity: 6e94255659cc86dcbef1d452ad3e0491bb1b3e75 + connectivity_macos: e2e9731b6b22dda39eb1b128f6969d574460e191 esys_flutter_share: 403498dab005b36ce1f8d7aff377e81f0621b0b4 Flutter: 0e3d915762c693b495b44d77113d4970485de6ec flutter_image_compress: 082f8daaf6c1b0c9fe798251c750ef0ecd98d7ae @@ -99,6 +114,7 @@ SPEC CHECKSUMS: path_provider: fb74bd0465e96b594bb3b5088ee4a4e7bb1f2a9d path_provider_macos: f760a3c5b04357c380e2fddb6f9db6f3015897e0 photo_manager: f7c619c2cc8c2adb8d85c63363babac477de9c67 + Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96 SDWebImage: 97351f6582ceca541ea294ba66a1fcb342a331c2 SDWebImageWebPCoder: d0dac55073088d24b2ac1b191a71a8f8d0adac21 shared_preferences: 430726339841afefe5142b9c1f50cb6bd7793e01 diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index df3a65401072dd67e7414bba6a68c58db766eae1..5b7269afd9af6702e9727f52bc582b5045d03502 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -378,7 +378,7 @@ "$(inherited)", "$(PROJECT_DIR)/Flutter", ); - PRODUCT_BUNDLE_IDENTIFIER = orma.app; + PRODUCT_BUNDLE_IDENTIFIER = io.ente.photos; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; @@ -517,7 +517,7 @@ "$(inherited)", "$(PROJECT_DIR)/Flutter", ); - PRODUCT_BUNDLE_IDENTIFIER = orma.app; + PRODUCT_BUNDLE_IDENTIFIER = io.ente.photos; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; @@ -549,7 +549,7 @@ "$(inherited)", "$(PROJECT_DIR)/Flutter", ); - PRODUCT_BUNDLE_IDENTIFIER = orma.app; + PRODUCT_BUNDLE_IDENTIFIER = io.ente.photos; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index 6491b246365ccf0c8b846ea0b1e000b85b252a42..59f6c7e94f64c32ac0bd73dd6d84370e6b592bb7 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -11,7 +11,7 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleName - myapp + Photos CFBundlePackageType APPL CFBundleShortVersionString diff --git a/lib/core/image_cache.dart b/lib/core/image_cache.dart index 72190b35d90f8adf248048801771a5fc44a503d9..050f3252dadcfc660a4f404f462953a4b08d5cfb 100644 --- a/lib/core/image_cache.dart +++ b/lib/core/image_cache.dart @@ -1,7 +1,7 @@ import 'dart:typed_data'; -import 'package:myapp/core/lru_map.dart'; -import 'package:myapp/models/photo.dart'; +import 'lru_map.dart'; +import 'package:photos/models/photo.dart'; class ImageLruCache { static LRUMap _map = LRUMap(500); diff --git a/lib/core/thumbnail_cache.dart b/lib/core/thumbnail_cache.dart index a7433ededebc5d0e2235a3f0d660e0173ec9b9ff..f68153ebf1012321cf06c0ff261be7e96c609004 100644 --- a/lib/core/thumbnail_cache.dart +++ b/lib/core/thumbnail_cache.dart @@ -1,7 +1,7 @@ import 'dart:typed_data'; -import 'package:myapp/core/lru_map.dart'; -import 'package:myapp/models/photo.dart'; +import 'lru_map.dart'; +import 'package:photos/models/photo.dart'; class ThumbnailLruCache { static LRUMap<_ThumbnailCacheKey, Uint8List> _map = LRUMap(5000); diff --git a/lib/db/db_helper.dart b/lib/db/db_helper.dart index 79c855aaa343364cf2122f2a7534403763409098..3423a71d80a19ab8235388846a8df7019c47fe8a 100644 --- a/lib/db/db_helper.dart +++ b/lib/db/db_helper.dart @@ -1,6 +1,6 @@ import 'dart:io'; -import 'package:myapp/models/photo.dart'; +import 'package:photos/models/photo.dart'; import 'package:path/path.dart'; import 'package:sqflite/sqflite.dart'; import 'package:path_provider/path_provider.dart'; diff --git a/lib/face_search_manager.dart b/lib/face_search_manager.dart index f5ba62fbd13b18f9a0a472f727f63c3f0444f6ee..3fe395edbc6f270f0f9e64c12a78a4e5132cfcf7 100644 --- a/lib/face_search_manager.dart +++ b/lib/face_search_manager.dart @@ -1,7 +1,7 @@ import 'package:dio/dio.dart'; import 'package:logger/logger.dart'; -import 'package:myapp/core/configuration.dart'; -import 'package:myapp/db/db_helper.dart'; +import 'core/configuration.dart'; +import 'db/db_helper.dart'; import 'models/face.dart'; import 'models/photo.dart'; diff --git a/lib/main.dart b/lib/main.dart index ca5d54c6d6814de90fdca6af32bc45e59c170305..8d3cd9c63b94704302a2941ac7355f5875708c4c 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; import 'package:logger/logger.dart'; -import 'package:myapp/core/configuration.dart'; -import 'package:myapp/photo_loader.dart'; -import 'package:myapp/photo_sync_manager.dart'; -import 'package:myapp/ui/home_widget.dart'; +import 'core/configuration.dart'; +import 'photo_loader.dart'; +import 'photo_sync_manager.dart'; +import 'ui/home_widget.dart'; import 'package:provider/provider.dart'; void main() async { @@ -14,7 +14,7 @@ void main() async { } class MyApp extends StatelessWidget with WidgetsBindingObserver { - final _title = 'ente photos'; + final _title = 'Photos'; @override Widget build(BuildContext context) { WidgetsBinding.instance.addObserver(this); diff --git a/lib/models/album.dart b/lib/models/album.dart index cb587e781eeff9877ad9b327f77dc071141e3904..e2489de7fd0b69910539b14019276c15d81d5a10 100644 --- a/lib/models/album.dart +++ b/lib/models/album.dart @@ -1,4 +1,4 @@ -import 'package:myapp/models/photo.dart'; +import 'photo.dart'; class Album { final String name; diff --git a/lib/photo_loader.dart b/lib/photo_loader.dart index 03551ebff7013b0146555a3d7edb328de3e1ce79..e8954ba5af531be4e2de5a5742b6824229b839e4 100644 --- a/lib/photo_loader.dart +++ b/lib/photo_loader.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:logger/logger.dart'; -import 'package:myapp/db/db_helper.dart'; -import 'package:myapp/models/photo.dart'; +import 'db/db_helper.dart'; +import 'models/photo.dart'; class PhotoLoader extends ChangeNotifier { final logger = Logger(); diff --git a/lib/photo_sync_manager.dart b/lib/photo_sync_manager.dart index 8706df39e7043598978af0b9fc90f7d6300863e2..d7b2478bc9acf058cb6ae4fdd0c1462a1df81897 100644 --- a/lib/photo_sync_manager.dart +++ b/lib/photo_sync_manager.dart @@ -2,17 +2,17 @@ import 'dart:async'; import 'dart:io'; import 'package:logger/logger.dart'; -import 'package:myapp/core/event_bus.dart'; -import 'package:myapp/db/db_helper.dart'; -import 'package:myapp/events/user_authenticated_event.dart'; -import 'package:myapp/photo_loader.dart'; -import 'package:myapp/photo_provider.dart'; +import 'core/event_bus.dart'; +import 'db/db_helper.dart'; +import 'events/user_authenticated_event.dart'; +import 'photo_loader.dart'; +import 'photo_provider.dart'; import 'package:path/path.dart'; import 'package:path_provider/path_provider.dart'; import 'package:photo_manager/photo_manager.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:dio/dio.dart'; -import 'package:myapp/models/photo.dart'; +import 'models/photo.dart'; import 'core/configuration.dart'; import 'events/remote_sync_event.dart'; diff --git a/lib/ui/album_list_widget.dart b/lib/ui/album_list_widget.dart index 1df2a08dc2fd0dbecda5bd19a2de5248a8e9a299..aa7b5ea65350b75a331dbc88967867831b183c99 100644 --- a/lib/ui/album_list_widget.dart +++ b/lib/ui/album_list_widget.dart @@ -2,10 +2,10 @@ import 'dart:collection'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; -import 'package:myapp/models/album.dart'; -import 'package:myapp/models/photo.dart'; -import 'package:myapp/ui/album_widget.dart'; -import 'package:myapp/ui/thumbnail_widget.dart'; +import 'package:photos/models/album.dart'; +import 'package:photos/models/photo.dart'; +import 'package:photos/ui/album_widget.dart'; +import 'package:photos/ui/thumbnail_widget.dart'; import 'package:path/path.dart' as path; class AlbumListWidget extends StatefulWidget { diff --git a/lib/ui/album_widget.dart b/lib/ui/album_widget.dart index 910e1212159d5db570c7857b9d648dc3a83c708d..fc4e0148b23222ef7a808e9e19bc7aef801f541b 100644 --- a/lib/ui/album_widget.dart +++ b/lib/ui/album_widget.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; import 'package:logger/logger.dart'; -import 'package:myapp/models/album.dart'; -import 'package:myapp/models/photo.dart'; -import 'package:myapp/ui/gallery.dart'; -import 'package:myapp/ui/gallery_app_bar_widget.dart'; +import 'package:photos/models/album.dart'; +import 'package:photos/models/photo.dart'; +import 'package:photos/ui/gallery.dart'; +import 'package:photos/ui/gallery_app_bar_widget.dart'; class AlbumPage extends StatefulWidget { final Album album; diff --git a/lib/ui/detail_page.dart b/lib/ui/detail_page.dart index 45c993b38e2fdf73ef010c1598506cf2596e1ffa..fd1a9f785131b94c4f70496172e93a2f1a6e0c50 100644 --- a/lib/ui/detail_page.dart +++ b/lib/ui/detail_page.dart @@ -1,11 +1,11 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:logger/logger.dart'; -import 'package:myapp/core/lru_map.dart'; -import 'package:myapp/models/photo.dart'; -import 'package:myapp/ui/extents_page_view.dart'; -import 'package:myapp/ui/zoomable_image.dart'; -import 'package:myapp/utils/share_util.dart'; +import 'package:photos/core/lru_map.dart'; +import 'package:photos/models/photo.dart'; +import 'extents_page_view.dart'; +import 'zoomable_image.dart'; +import 'package:photos/utils/share_util.dart'; class DetailPage extends StatefulWidget { final List photos; diff --git a/lib/ui/face_search_results_page.dart b/lib/ui/face_search_results_page.dart index 8418cb00bf37258b9bf11bd8a08ac581734fc6c0..729e7da6914cffa4f6b5b774ff23322a7a21b7e8 100644 --- a/lib/ui/face_search_results_page.dart +++ b/lib/ui/face_search_results_page.dart @@ -1,10 +1,10 @@ import 'package:flutter/material.dart'; -import 'package:myapp/core/configuration.dart'; -import 'package:myapp/face_search_manager.dart'; -import 'package:myapp/models/face.dart'; -import 'package:myapp/models/photo.dart'; -import 'package:myapp/ui/circular_network_image_widget.dart'; -import 'package:myapp/ui/thumbnail_widget.dart'; +import 'package:photos/core/configuration.dart'; +import 'package:photos/face_search_manager.dart'; +import 'package:photos/models/face.dart'; +import 'package:photos/models/photo.dart'; +import 'package:photos/ui/circular_network_image_widget.dart'; +import 'package:photos/ui/thumbnail_widget.dart'; import 'detail_page.dart'; diff --git a/lib/ui/gallery.dart b/lib/ui/gallery.dart index 855972eaaedecbdea6cabd6c0c7f8c69ec046992..a2d296e3f85778a643541ba009c4dda9e10e27ae 100644 --- a/lib/ui/gallery.dart +++ b/lib/ui/gallery.dart @@ -4,15 +4,15 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:logger/logger.dart'; -import 'package:myapp/core/thumbnail_cache.dart'; -import 'package:myapp/models/photo.dart'; -import 'package:myapp/photo_loader.dart'; -import 'package:myapp/ui/detail_page.dart'; -import 'package:myapp/ui/thumbnail_widget.dart'; -import 'package:myapp/utils/date_time_util.dart'; +import 'package:photos/core/thumbnail_cache.dart'; +import 'package:photos/models/photo.dart'; +import 'package:photos/photo_loader.dart'; +import 'package:photos/ui/detail_page.dart'; +import 'package:photos/ui/thumbnail_widget.dart'; +import 'package:photos/utils/date_time_util.dart'; import 'package:provider/provider.dart'; import 'package:visibility_detector/visibility_detector.dart'; -import 'package:myapp/core/constants.dart'; +import 'package:photos/core/constants.dart'; class Gallery extends StatefulWidget { final List photos; diff --git a/lib/ui/gallery_app_bar_widget.dart b/lib/ui/gallery_app_bar_widget.dart index 8bcbb6db087e9d576499cd9089f2b9d1b1245562..a318ff1bfae29e4dc00810d07fa3a99b073280ba 100644 --- a/lib/ui/gallery_app_bar_widget.dart +++ b/lib/ui/gallery_app_bar_widget.dart @@ -1,14 +1,14 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:logger/logger.dart'; -import 'package:myapp/core/event_bus.dart'; -import 'package:myapp/db/db_helper.dart'; -import 'package:myapp/events/remote_sync_event.dart'; -import 'package:myapp/models/photo.dart'; -import 'package:myapp/photo_loader.dart'; -import 'package:myapp/ui/setup_page.dart'; +import 'package:photos/core/event_bus.dart'; +import 'package:photos/db/db_helper.dart'; +import 'package:photos/events/remote_sync_event.dart'; +import 'package:photos/models/photo.dart'; +import 'package:photos/photo_loader.dart'; +import 'package:photos/ui/setup_page.dart'; import 'package:photo_manager/photo_manager.dart'; -import 'package:myapp/utils/share_util.dart'; +import 'package:photos/utils/share_util.dart'; class GalleryAppBarWidget extends StatefulWidget implements PreferredSizeWidget { diff --git a/lib/ui/gallery_container_widget.dart b/lib/ui/gallery_container_widget.dart index a4ea3745a02bf3c214b3779947b3c0285ed7012b..e24fc39b10b2911bae0ef50e5573d105892c8cd0 100644 --- a/lib/ui/gallery_container_widget.dart +++ b/lib/ui/gallery_container_widget.dart @@ -1,12 +1,12 @@ import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; -import 'package:myapp/models/photo.dart'; -import 'package:myapp/photo_loader.dart'; -import 'package:myapp/ui/change_notifier_builder.dart'; -import 'package:myapp/ui/gallery.dart'; -import 'package:myapp/ui/loading_widget.dart'; -import 'package:myapp/ui/search_page.dart'; -import 'package:myapp/utils/important_items_filter.dart'; +import 'package:photos/models/photo.dart'; +import 'package:photos/photo_loader.dart'; +import 'package:photos/ui/change_notifier_builder.dart'; +import 'package:photos/ui/gallery.dart'; +import 'package:photos/ui/loading_widget.dart'; +import 'package:photos/ui/search_page.dart'; +import 'package:photos/utils/important_items_filter.dart'; import 'package:provider/provider.dart'; // TODO: Remove redundant layer diff --git a/lib/ui/home_widget.dart b/lib/ui/home_widget.dart index 77604a2c3467fc8713a0c7f5493d31c43dfcadb2..b0afec76bd93cfd04d1c5df3ad53c1b119be14a9 100644 --- a/lib/ui/home_widget.dart +++ b/lib/ui/home_widget.dart @@ -3,12 +3,12 @@ import 'dart:collection'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; -import 'package:myapp/models/photo.dart'; -import 'package:myapp/photo_loader.dart'; -import 'package:myapp/ui/album_list_widget.dart'; -import 'package:myapp/ui/change_notifier_builder.dart'; -import 'package:myapp/ui/gallery_app_bar_widget.dart'; -import 'package:myapp/ui/gallery_container_widget.dart'; +import 'package:photos/models/photo.dart'; +import 'package:photos/photo_loader.dart'; +import 'package:photos/ui/album_list_widget.dart'; +import 'package:photos/ui/change_notifier_builder.dart'; +import 'package:photos/ui/gallery_app_bar_widget.dart'; +import 'package:photos/ui/gallery_container_widget.dart'; import 'package:provider/provider.dart'; class HomeWidget extends StatefulWidget { diff --git a/lib/ui/network_image_detail_page.dart b/lib/ui/network_image_detail_page.dart index a6c0e93763d6abed280d3e041f2b171ac736cf7a..e094860971959cc936a8de5969356cb76fbd6f3f 100644 --- a/lib/ui/network_image_detail_page.dart +++ b/lib/ui/network_image_detail_page.dart @@ -1,6 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:myapp/core/configuration.dart'; -import 'package:myapp/core/constants.dart' as Constants; +import 'package:photos/core/configuration.dart'; class NetworkImageDetailPage extends StatelessWidget { final String _path; diff --git a/lib/ui/search_page.dart b/lib/ui/search_page.dart index 616bd6ebef6fcb69a4e18af885f914820e7a06f1..ec36847a0dfbf646a87781dc45d6f0f7967ea408 100644 --- a/lib/ui/search_page.dart +++ b/lib/ui/search_page.dart @@ -1,10 +1,9 @@ import 'package:flutter/material.dart'; -import 'package:myapp/core/configuration.dart'; -import 'package:myapp/face_search_manager.dart'; -import 'package:myapp/models/face.dart'; -import 'package:myapp/core/constants.dart' as Constants; -import 'package:myapp/ui/circular_network_image_widget.dart'; -import 'package:myapp/ui/face_search_results_page.dart'; +import 'package:photos/core/configuration.dart'; +import 'package:photos/face_search_manager.dart'; +import 'package:photos/models/face.dart'; +import 'package:photos/ui/circular_network_image_widget.dart'; +import 'package:photos/ui/face_search_results_page.dart'; class SearchPage extends StatelessWidget { final FaceSearchManager _faceSearchManager = FaceSearchManager.instance; diff --git a/lib/ui/setup_page.dart b/lib/ui/setup_page.dart index 06bea2dccf347ba422578a37da8d8a16ce3b555b..0c549cf0ab746d4bcefe2c1444bfadadd5439d92 100644 --- a/lib/ui/setup_page.dart +++ b/lib/ui/setup_page.dart @@ -1,9 +1,8 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; -import 'package:logger/logger.dart'; -import 'package:myapp/core/configuration.dart'; -import 'package:myapp/ui/sign_in_widget.dart'; -import 'package:myapp/utils/endpoint_finder.dart'; +import 'package:photos/core/configuration.dart'; +import 'package:photos/ui/sign_in_widget.dart'; +import 'package:photos/utils/endpoint_finder.dart'; class SetupPage extends StatefulWidget { SetupPage({key}) : super(key: key); diff --git a/lib/ui/sign_in_widget.dart b/lib/ui/sign_in_widget.dart index 701e04ec952a1969d8603c3944c801ed71077cf4..f5bf68d96ce3d7034b9b6838442ea2ff87d91856 100644 --- a/lib/ui/sign_in_widget.dart +++ b/lib/ui/sign_in_widget.dart @@ -1,8 +1,8 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; -import 'package:myapp/core/configuration.dart'; -import 'package:myapp/user_authenticator.dart'; +import 'package:photos/core/configuration.dart'; +import 'package:photos/user_authenticator.dart'; class SignInWidget extends StatefulWidget { final Function() onReconfigurationRequested; diff --git a/lib/ui/thumbnail_widget.dart b/lib/ui/thumbnail_widget.dart index 2008f68be21904aa99d2b8ef0227560f75a78654..44491b58f93c8f85b5086b88e253d8c38998a866 100644 --- a/lib/ui/thumbnail_widget.dart +++ b/lib/ui/thumbnail_widget.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; -import 'package:myapp/core/thumbnail_cache.dart'; -import 'package:myapp/models/photo.dart'; -import 'package:myapp/core/constants.dart'; +import 'package:photos/core/thumbnail_cache.dart'; +import 'package:photos/models/photo.dart'; +import 'package:photos/core/constants.dart'; class ThumbnailWidget extends StatefulWidget { final Photo photo; diff --git a/lib/ui/zoomable_image.dart b/lib/ui/zoomable_image.dart index 8d154c227d802f3f9e9a9350e3d94ab13f08cb84..4e098d7cb37cf49d7d6e85bd4c985e4ee0d610c9 100644 --- a/lib/ui/zoomable_image.dart +++ b/lib/ui/zoomable_image.dart @@ -1,12 +1,12 @@ import 'dart:typed_data'; import 'package:flutter/widgets.dart'; import 'package:logger/logger.dart'; -import 'package:myapp/core/image_cache.dart'; -import 'package:myapp/core/thumbnail_cache.dart'; -import 'package:myapp/models/photo.dart'; -import 'package:myapp/ui/loading_widget.dart'; +import 'package:photos/core/image_cache.dart'; +import 'package:photos/core/thumbnail_cache.dart'; +import 'package:photos/models/photo.dart'; +import 'package:photos/ui/loading_widget.dart'; import 'package:photo_view/photo_view.dart'; -import 'package:myapp/core/constants.dart'; +import 'package:photos/core/constants.dart'; class ZoomableImage extends StatefulWidget { final Photo photo; diff --git a/lib/user_authenticator.dart b/lib/user_authenticator.dart index d2e0810f7ce1d25adf9f6ddf51dd47c3203a607b..e6fcb363042dc88fbaf6ec105b9b8b7292799950 100644 --- a/lib/user_authenticator.dart +++ b/lib/user_authenticator.dart @@ -1,7 +1,7 @@ import 'package:dio/dio.dart'; import 'package:logger/logger.dart'; -import 'package:myapp/core/configuration.dart'; -import 'package:myapp/core/event_bus.dart'; +import 'core/configuration.dart'; +import 'core/event_bus.dart'; import 'events/user_authenticated_event.dart'; diff --git a/lib/utils/gallery_items_filter.dart b/lib/utils/gallery_items_filter.dart index d1e8c3c9218206ff90420326ff2685c64b906aec..0e8349b1911ba86a7f2fb722ef84d1b7e46c4690 100644 --- a/lib/utils/gallery_items_filter.dart +++ b/lib/utils/gallery_items_filter.dart @@ -1,4 +1,4 @@ -import 'package:myapp/models/photo.dart'; +import 'package:photos/models/photo.dart'; class GalleryItemsFilter { bool shouldInclude(Photo photo) { diff --git a/lib/utils/important_items_filter.dart b/lib/utils/important_items_filter.dart index 8b4e52ccdc5606d7c03b0c1cf69a7224e09bca38..5b64fdcac667573d3162bc951d14ce02a23f545f 100644 --- a/lib/utils/important_items_filter.dart +++ b/lib/utils/important_items_filter.dart @@ -1,7 +1,7 @@ import 'dart:io'; -import 'package:myapp/models/photo.dart'; -import 'package:myapp/utils/gallery_items_filter.dart'; +import 'package:photos/models/photo.dart'; +import 'package:photos/utils/gallery_items_filter.dart'; import 'package:path/path.dart'; class ImportantItemsFilter implements GalleryItemsFilter { diff --git a/lib/utils/share_util.dart b/lib/utils/share_util.dart index 54f6ab23b808e0b57066bf6e0e50cad8f4081b4b..5bf24a09d159512b52c415f69636870a66de67a9 100644 --- a/lib/utils/share_util.dart +++ b/lib/utils/share_util.dart @@ -1,7 +1,7 @@ import 'dart:typed_data'; import 'package:esys_flutter_share/esys_flutter_share.dart'; -import 'package:myapp/models/photo.dart'; +import 'package:photos/models/photo.dart'; import 'package:path/path.dart'; Future share(Photo photo) async { diff --git a/pubspec.yaml b/pubspec.yaml index 8b1684f2c1fc4175c935522a045da06eb080cf8b..13e88e17daee036f9e04abfe38d071f5f84a90c2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ -name: myapp -description: A new Flutter project. +name: photos +description: ente photos application # The following defines the version and build number for your application. # A version number is three numbers separated by dots, like 1.2.43