Minor changes (#1732)

Minor changes
This commit is contained in:
Vishnu Mohandas 2024-02-20 08:18:26 +05:30 committed by GitHub
commit a37cbbaa5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 1185 additions and 37 deletions

File diff suppressed because it is too large Load diff

View file

@ -15,7 +15,7 @@ class MachineLearningController {
final _logger = Logger("MachineLearningController");
static const kMaximumTemperature = 36; // 36 degree celsius
static const kMaximumTemperature = 42; // 42 degree celsius
static const kMinimumBatteryLevel = 20; // 20%
static const kInitialInteractionTimeout = Duration(seconds: 10);
static const kDefaultInteractionTimeout = Duration(seconds: 5);

View file

@ -1,5 +1,6 @@
import "dart:async";
import "dart:collection";
import "dart:io";
import "package:computer/computer.dart";
import "package:logging/logging.dart";
@ -100,13 +101,17 @@ class SemanticSearchService {
if (shouldSyncImmediately) {
unawaited(sync());
}
Bus.instance.on<MachineLearningControlEvent>().listen((event) {
if (event.shouldRun) {
_startIndexing();
} else {
_pauseIndexing();
}
});
if (Platform.isAndroid) {
Bus.instance.on<MachineLearningControlEvent>().listen((event) {
if (event.shouldRun) {
_startIndexing();
} else {
_pauseIndexing();
}
});
} else {
_startIndexing();
}
}
Future<void> release() async {

View file

@ -12,7 +12,7 @@ description: ente photos application
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.8.59+579
version: 0.8.61+581
environment:
sdk: ">=3.0.0 <4.0.0"