Connect Flutter phone auth and Android platform
This commit is contained in:
@@ -8,9 +8,9 @@ class WorkoutValidator {
|
||||
private $errors = [];
|
||||
|
||||
private const VALID_WORKOUT_TYPES = ['running', 'walking'];
|
||||
private const MIN_DISTANCE = 100; // meters
|
||||
private const MIN_DISTANCE = 0; // meters; short/aborted sessions remain syncable
|
||||
private const MAX_DISTANCE = 100000; // 100km
|
||||
private const MIN_DURATION = 60; // seconds
|
||||
private const MIN_DURATION = 0; // seconds; timestamp order is validated separately
|
||||
private const MAX_DURATION = 36000; // 10 hours
|
||||
private const MIN_COORDINATES = 2;
|
||||
private const MAX_COORDINATES = 50000;
|
||||
|
||||
Reference in New Issue
Block a user