Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(392)

Unified Diff: sdk/lib/_internal/pub/lib/src/validator/size.dart

Issue 1060713002: Allow packages up to 100MB. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub/lib/src/validator/size.dart
diff --git a/sdk/lib/_internal/pub/lib/src/validator/size.dart b/sdk/lib/_internal/pub/lib/src/validator/size.dart
index 0b8d05f2f55c35001d62418c883ffa656ceab2c8..b3da3883a020fbc731c4e20f17bf0e18cfd5ee47 100644
--- a/sdk/lib/_internal/pub/lib/src/validator/size.dart
+++ b/sdk/lib/_internal/pub/lib/src/validator/size.dart
@@ -10,8 +10,8 @@ import 'dart:math' as math;
import '../entrypoint.dart';
import '../validator.dart';
-/// The maximum size of the package to upload (10 MB).
-const _MAX_SIZE = 10 * 1024 * 1024;
+/// The maximum size of the package to upload (100 MB).
+const _MAX_SIZE = 100 * 1024 * 1024;
/// A validator that validates that a package isn't too big.
class SizeValidator extends Validator {
@@ -25,7 +25,7 @@ class SizeValidator extends Validator {
if (size <= _MAX_SIZE) return;
var sizeInMb = (size / math.pow(2, 20)).toStringAsPrecision(4);
errors.add("Your package is $sizeInMb MB. Hosted packages must be "
- "smaller than 10 MB.");
+ "smaller than 100 MB.");
});
}
}

Powered by Google App Engine
This is Rietveld 408576698