fix: add internal user config

This commit is contained in:
Prateek Sunal
2024-04-13 14:17:54 +05:30
parent 70bf917f32
commit 1ce6edf626
3 changed files with 16 additions and 6 deletions

View File

@@ -1,3 +1,5 @@
import "package:photos/services/feature_flag_service.dart";
const int thumbnailSmallSize = 256;
const int thumbnailQuality = 50;
const int thumbnailLargeSize = 512;
@@ -47,6 +49,14 @@ class FFDefault {
// this is the chunk size of the un-encrypted file which is read and encrypted before uploading it as a single part.
const multipartPartSize = 20 * 1024 * 1024;
const multipartPartSizeInternal = 8 * 1024 * 1024;
int get multipartPartSizeForUpload {
if (FeatureFlagService.instance.isInternalUserOrDebugBuild()) {
return multipartPartSizeInternal;
}
return multipartPartSize;
}
const kDefaultProductionEndpoint = 'https://api.ente.io';