-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
if the download failed don't show the upload in progress without progress text
- Loading branch information
1 parent
aec969f
commit ec8ac32
Showing
7 changed files
with
47 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
import 'package:ardrive_utils/ardrive_utils.dart'; | ||
import 'package:flutter/foundation.dart'; | ||
|
||
final privateFileSizeLimit = const MiB(100000).size; | ||
|
||
final mobilePrivateFileSizeLimit = const GiB(10).size; | ||
|
||
final publicFileSafeSizeLimit = const GiB(5).size; | ||
|
||
final bundleSizeLimit = kIsWeb ? webBundleSizeLimit : mobileBundleSizeLimit; | ||
int bundleSizeLimit(bool isTurbo) => | ||
isTurbo ? turboBundleSizeLimit : d2nBundleSizeLimit; | ||
|
||
final webBundleSizeLimit = const MiB(65000).size; | ||
final mobileBundleSizeLimit = const MiB(65000).size; | ||
final d2nBundleSizeLimit = const GiB(65).size; | ||
final turboBundleSizeLimit = const MiB(1).size; | ||
final mobileBundleSizeLimit = const GiB(65).size; | ||
const maxBundleDataItemCount = 500; | ||
const maxFilesPerBundle = maxBundleDataItemCount ~/ 2; | ||
const maxFilesSizePerBundleUsingTurbo = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters