resolve merge conflicts

This commit is contained in:
ashilkn 2022-09-07 17:56:24 +05:30
commit c1722959e7
262 changed files with 522 additions and 6 deletions

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:io'; import 'dart:io';
import 'package:adaptive_theme/adaptive_theme.dart'; import 'package:adaptive_theme/adaptive_theme.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:io' as io; import 'dart:io' as io;
import 'package:photos/core/cache/lru_map.dart'; import 'package:photos/core/cache/lru_map.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:collection'; import 'dart:collection';
typedef EvictionHandler<K, V> = Function(K key, V value); typedef EvictionHandler<K, V> = Function(K key, V value);

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:typed_data'; import 'dart:typed_data';
import 'package:photos/core/cache/lru_map.dart'; import 'package:photos/core/cache/lru_map.dart';

View file

@ -1,3 +1,5 @@
import 'package:flutter_cache_manager/flutter_cache_manager.dart'; import 'package:flutter_cache_manager/flutter_cache_manager.dart';
class ThumbnailCacheManager { class ThumbnailCacheManager {

View file

@ -1,3 +1,5 @@
import 'package:flutter_cache_manager/flutter_cache_manager.dart'; import 'package:flutter_cache_manager/flutter_cache_manager.dart';
class VideoCacheManager { class VideoCacheManager {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert'; import 'dart:convert';
import 'dart:io' as io; import 'dart:io' as io;
import 'dart:typed_data'; import 'dart:typed_data';

View file

@ -1,3 +1,5 @@
// @dart = 2.7
const int kThumbnailSmallSize = 256; const int kThumbnailSmallSize = 256;
const int kThumbnailQuality = 50; const int kThumbnailQuality = 50;
const int kThumbnailLargeSize = 512; const int kThumbnailLargeSize = 512;

View file

@ -1,3 +1,5 @@
// @dart=2.9
library super_logging; library super_logging;
import 'dart:async'; import 'dart:async';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert'; import 'dart:convert';
import 'package:http/http.dart'; import 'package:http/http.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
class InvalidFileError extends ArgumentError { class InvalidFileError extends ArgumentError {
InvalidFileError(String message) : super(message); InvalidFileError(String message) : super(message);
} }

View file

@ -1,3 +1,5 @@
import 'package:event_bus/event_bus.dart'; import 'package:event_bus/event_bus.dart';
class Bus { class Bus {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:io'; import 'dart:io';
import 'package:alice/alice.dart'; import 'package:alice/alice.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/search/holiday_search_result.dart'; import 'package:photos/models/search/holiday_search_result.dart';
const List<HolidayData> allHolidays = [ const List<HolidayData> allHolidays = [

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/search/month_search_result.dart'; import 'package:photos/models/search/month_search_result.dart';
List<MonthData> allMonths = [ List<MonthData> allMonths = [

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/utils/date_time_util.dart'; import 'package:photos/utils/date_time_util.dart';
class YearsData { class YearsData {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert'; import 'dart:convert';
import 'dart:io'; import 'dart:io';

View file

@ -1,3 +1,4 @@
// @dart = 2.9
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
import 'package:photo_manager/photo_manager.dart'; import 'package:photo_manager/photo_manager.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:io'; import 'dart:io';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';

View file

@ -1,5 +1,6 @@
// @dart=2.9
import 'dart:io' as io; import 'dart:io' as io;
import 'dart:io';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
@ -101,7 +102,7 @@ class FilesDB {
// this opens the database (and creates it if it doesn't exist) // this opens the database (and creates it if it doesn't exist)
Future<Database> _initDatabase() async { Future<Database> _initDatabase() async {
final Directory documentsDirectory = final io.Directory documentsDirectory =
await getApplicationDocumentsDirectory(); await getApplicationDocumentsDirectory();
final String path = join(documentsDirectory.path, _databaseName); final String path = join(documentsDirectory.path, _databaseName);
_logger.info("DB path " + path); _logger.info("DB path " + path);
@ -931,7 +932,7 @@ class FilesDB {
// on iOS, match using localID and fileType. title can either match or // on iOS, match using localID and fileType. title can either match or
// might be null based on how the file was imported // might be null based on how the file was imported
String whereClause = ''' ($columnOwnerID = ? OR $columnOwnerID IS NULL) AND String whereClause = ''' ($columnOwnerID = ? OR $columnOwnerID IS NULL) AND
$columnLocalID = ? AND $columnFileType = ? AND $columnLocalID = ? AND $columnFileType = ? AND ß
($columnTitle=? OR $columnTitle IS NULL) '''; ($columnTitle=? OR $columnTitle IS NULL) ''';
List<Object> whereArgs = [ List<Object> whereArgs = [
ownerID, ownerID,
@ -939,7 +940,7 @@ class FilesDB {
getInt(fileType), getInt(fileType),
title, title,
]; ];
if (Platform.isAndroid) { if (io.Platform.isAndroid) {
whereClause = ''' ($columnOwnerID = ? OR $columnOwnerID IS NULL) AND whereClause = ''' ($columnOwnerID = ? OR $columnOwnerID IS NULL) AND
$columnLocalID = ? AND $columnFileType = ? AND $columnTitle=? AND $columnDeviceFolder= ? $columnLocalID = ? AND $columnFileType = ? AND $columnTitle=? AND $columnDeviceFolder= ?
'''; ''';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:io'; import 'dart:io';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:async'; import 'dart:async';
import 'dart:io'; import 'dart:io';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:async'; import 'dart:async';
import 'dart:io'; import 'dart:io';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert'; import 'dart:convert';
import 'dart:io'; import 'dart:io';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:async'; import 'dart:async';
import 'dart:io'; import 'dart:io';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_datetime_picker/flutter_datetime_picker.dart'; import 'package:flutter_datetime_picker/flutter_datetime_picker.dart';

View file

@ -1,3 +1,5 @@
import 'package:photos/events/event.dart'; import 'package:photos/events/event.dart';
class AccountConfiguredEvent extends Event {} class AccountConfiguredEvent extends Event {}

View file

@ -1,3 +1,5 @@
import 'package:photos/events/event.dart'; import 'package:photos/events/event.dart';
class BackupFoldersUpdatedEvent extends Event {} class BackupFoldersUpdatedEvent extends Event {}

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/events/files_updated_event.dart'; import 'package:photos/events/files_updated_event.dart';
class CollectionUpdatedEvent extends FilesUpdatedEvent { class CollectionUpdatedEvent extends FilesUpdatedEvent {

View file

@ -1 +1,3 @@
class Event {} class Event {}

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/events/event.dart'; import 'package:photos/events/event.dart';
import 'package:photos/models/file.dart'; import 'package:photos/models/file.dart';

View file

@ -1,3 +1,5 @@
import 'package:photos/events/event.dart'; import 'package:photos/events/event.dart';
class ForceReloadHomeGalleryEvent extends Event { class ForceReloadHomeGalleryEvent extends Event {

View file

@ -1,3 +1,5 @@
import 'package:photos/events/event.dart'; import 'package:photos/events/event.dart';
class ForceReloadTrashPageEvent extends Event { class ForceReloadTrashPageEvent extends Event {

View file

@ -1,3 +1,5 @@
import 'package:photos/events/files_updated_event.dart'; import 'package:photos/events/files_updated_event.dart';
class LocalPhotosUpdatedEvent extends FilesUpdatedEvent { class LocalPhotosUpdatedEvent extends FilesUpdatedEvent {

View file

@ -1,3 +1,5 @@
import 'package:photos/events/event.dart'; import 'package:photos/events/event.dart';
class PermissionGrantedEvent extends Event {} class PermissionGrantedEvent extends Event {}

View file

@ -1,3 +1,5 @@
import 'package:photos/events/event.dart'; import 'package:photos/events/event.dart';
class SignedInEvent extends Event {} class SignedInEvent extends Event {}

View file

@ -1,3 +1,5 @@
import 'package:photos/events/event.dart'; import 'package:photos/events/event.dart';
class SubscriptionPurchasedEvent extends Event {} class SubscriptionPurchasedEvent extends Event {}

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/events/event.dart'; import 'package:photos/events/event.dart';
class SyncStatusUpdate extends Event { class SyncStatusUpdate extends Event {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/events/event.dart'; import 'package:photos/events/event.dart';
class TabChangedEvent extends Event { class TabChangedEvent extends Event {

View file

@ -1,3 +1,5 @@
import 'package:photos/events/event.dart'; import 'package:photos/events/event.dart';
class TriggerLogoutEvent extends Event {} class TriggerLogoutEvent extends Event {}

View file

@ -1,3 +1,5 @@
import 'package:photos/events/event.dart'; import 'package:photos/events/event.dart';
class TwoFactorStatusChangeEvent extends Event { class TwoFactorStatusChangeEvent extends Event {

View file

@ -1,3 +1,5 @@
import 'package:photos/events/event.dart'; import 'package:photos/events/event.dart';
class UserDetailsChangedEvent extends Event {} class UserDetailsChangedEvent extends Event {}

View file

@ -1,3 +1,5 @@
import 'package:photos/events/event.dart'; import 'package:photos/events/event.dart';
class UserLoggedOutEvent extends Event {} class UserLoggedOutEvent extends Event {}

View file

@ -1,3 +1,5 @@
import 'dart:ui'; import 'dart:ui';
class L10n { class L10n {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:async'; import 'dart:async';
import 'dart:io'; import 'dart:io';

View file

@ -1,3 +1,5 @@
// @dart=2.9
class BackupStatus { class BackupStatus {
final List<String> localIDs; final List<String> localIDs;
final int size; final int size;

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert'; import 'dart:convert';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert'; import 'dart:convert';
import 'dart:core'; import 'dart:core';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert'; import 'dart:convert';
class CollectionFileItem { class CollectionFileItem {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/collection.dart'; import 'package:photos/models/collection.dart';
import 'package:photos/models/device_collection.dart'; import 'package:photos/models/device_collection.dart';
import 'package:photos/models/file.dart'; import 'package:photos/models/file.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
class DeleteChallengeResponse { class DeleteChallengeResponse {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:typed_data'; import 'dart:typed_data';
class DerivedKeyResult { class DerivedKeyResult {

View file

@ -1,3 +1,4 @@
// @dart = 2.9
import 'package:photos/models/file.dart'; import 'package:photos/models/file.dart';
import 'package:photos/models/upload_strategy.dart'; import 'package:photos/models/upload_strategy.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert'; import 'dart:convert';
import 'package:photos/models/file.dart'; import 'package:photos/models/file.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:typed_data'; import 'dart:typed_data';
class EncryptionResult { class EncryptionResult {

View file

@ -1,5 +1,8 @@
// EnteFile is base file entry for various type of files // EnteFile is base file entry for various type of files
// like DeviceFile,RemoteFile or TrashedFile // like DeviceFile,RemoteFile or TrashedFile
// @dart=2.9
abstract class EnteFile { abstract class EnteFile {
// returns cacheKey which should be used while caching entry related to // returns cacheKey which should be used while caching entry related to
// this file. // this file.

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:path/path.dart'; import 'package:path/path.dart';
import 'package:photo_manager/photo_manager.dart'; import 'package:photo_manager/photo_manager.dart';
import 'package:photos/core/configuration.dart'; import 'package:photos/core/configuration.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/file.dart'; import 'package:photos/models/file.dart';
class FileLoadResult { class FileLoadResult {

View file

@ -1,3 +1,5 @@
// @dart=2.9
enum FileType { enum FileType {
image, image,
video, video,

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/file.dart'; import 'package:photos/models/file.dart';
class GalleryItemsFilter { class GalleryItemsFilter {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:io'; import 'dart:io';
import 'package:path/path.dart'; import 'package:path/path.dart';

View file

@ -1,3 +1,5 @@
enum GalleryType { enum GalleryType {
homepage, homepage,
archive, archive,

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/trash_file.dart'; import 'package:photos/models/trash_file.dart';
const kIgnoreReasonTrash = "trash"; const kIgnoreReasonTrash = "trash";

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert'; import 'dart:convert';
class KeyAttributes { class KeyAttributes {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/key_attributes.dart'; import 'package:photos/models/key_attributes.dart';
import 'package:photos/models/private_key_attributes.dart'; import 'package:photos/models/private_key_attributes.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
class Location { class Location {
final double latitude; final double latitude;
final double longitude; final double longitude;

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert'; import 'dart:convert';
const kVisibilityVisible = 0; const kVisibilityVisible = 0;

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/file.dart'; import 'package:photos/models/file.dart';
class Memory { class Memory {

View file

@ -1,3 +1,5 @@
// @dart=2.9
class PrivateKeyAttributes { class PrivateKeyAttributes {
final String key; final String key;
final String recoveryKey; final String recoveryKey;

View file

@ -1,3 +1,5 @@
// @dart=2.9
class PublicKey { class PublicKey {
final String email; final String email;
final String publicKey; final String publicKey;

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/collection_items.dart'; import 'package:photos/models/collection_items.dart';
import 'package:photos/models/search/search_results.dart'; import 'package:photos/models/search/search_results.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/file.dart'; import 'package:photos/models/file.dart';
import 'package:photos/models/search/search_results.dart'; import 'package:photos/models/search/search_results.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/file.dart'; import 'package:photos/models/file.dart';
import 'package:photos/models/search/search_results.dart'; import 'package:photos/models/search/search_results.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
class LocationApiResponse { class LocationApiResponse {
final List<LocationDataFromResponse> results; final List<LocationDataFromResponse> results;
LocationApiResponse({ LocationApiResponse({

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/file.dart'; import 'package:photos/models/file.dart';
import 'package:photos/models/search/search_results.dart'; import 'package:photos/models/search/search_results.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/file.dart'; import 'package:photos/models/file.dart';
import 'package:photos/models/search/search_results.dart'; import 'package:photos/models/search/search_results.dart';

View file

@ -1 +1,3 @@
class SearchResult {} class SearchResult {}

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/file.dart'; import 'package:photos/models/file.dart';
import 'package:photos/models/search/search_results.dart'; import 'package:photos/models/search/search_results.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:photos/models/file.dart'; import 'package:photos/models/file.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert'; import 'dart:convert';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert'; import 'dart:convert';
class SetKeysRequest { class SetKeysRequest {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert'; import 'dart:convert';
class SetRecoveryKeyRequest { class SetRecoveryKeyRequest {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert'; import 'dart:convert';
const kFreeProductID = "free"; const kFreeProductID = "free";

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:photos/models/file.dart'; import 'package:photos/models/file.dart';
class TrashFile extends File { class TrashFile extends File {

View file

@ -1,3 +1,5 @@
// @dart=2.9
class TrashRequest { class TrashRequest {
final int fileID; final int fileID;
final int collectionID; final int collectionID;

View file

@ -1 +0,0 @@

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert'; import 'dart:convert';
class UploadURL { class UploadURL {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:math'; import 'dart:math';
import 'package:collection/collection.dart'; import 'package:collection/collection.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
class AppLifecycleService { class AppLifecycleService {

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:io'; import 'dart:io';
import 'package:dio/dio.dart'; import 'package:dio/dio.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert'; import 'dart:convert';
import 'dart:math'; import 'dart:math';
import 'dart:typed_data'; import 'dart:typed_data';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:dio/dio.dart'; import 'package:dio/dio.dart';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
import 'package:photos/core/configuration.dart'; import 'package:photos/core/configuration.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert'; import 'dart:convert';
import 'package:flutter_sodium/flutter_sodium.dart'; import 'package:flutter_sodium/flutter_sodium.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert'; import 'dart:convert';
import 'dart:io'; import 'dart:io';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:convert'; import 'dart:convert';
import 'package:dio/dio.dart'; import 'package:dio/dio.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:async'; import 'dart:async';
import 'dart:io'; import 'dart:io';

View file

@ -1,3 +1,4 @@
// @dart = 2.9
import 'dart:math'; import 'dart:math';
import 'package:computer/computer.dart'; import 'package:computer/computer.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:local_auth/local_auth.dart'; import 'package:local_auth/local_auth.dart';
import 'package:photos/core/configuration.dart'; import 'package:photos/core/configuration.dart';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:async'; import 'dart:async';
import 'dart:core'; import 'dart:core';
import 'dart:io'; import 'dart:io';

View file

@ -1,3 +1,5 @@
// @dart=2.9
import 'dart:async'; import 'dart:async';
import 'dart:io'; import 'dart:io';

Some files were not shown because too many files have changed in this diff Show more