mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-08-15 23:50:38 +02:00
v3.7.1: YT Music extension priority for YouTube downloads, Qobuz store fallback, queue fixes, server-side search filters
This commit is contained in:
@@ -74,13 +74,6 @@ class UpdateChecker {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Ignore releases from a different major version (e.g. v4.x when we
|
||||
// rolled back to v3.x). Only offer updates within the same major line.
|
||||
if (_majorVersion(latestVersion) != _majorVersion(AppInfo.version)) {
|
||||
_log.i('Skipping update from different major version (current: ${AppInfo.version}, latest: $latestVersion)');
|
||||
return null;
|
||||
}
|
||||
|
||||
final body = releaseData['body'] as String? ?? 'No changelog available';
|
||||
final htmlUrl = releaseData['html_url'] as String? ?? '${AppInfo.githubUrl}/releases';
|
||||
final publishedAt = DateTime.tryParse(releaseData['published_at'] as String? ?? '') ?? DateTime.now();
|
||||
@@ -125,14 +118,6 @@ class UpdateChecker {
|
||||
}
|
||||
}
|
||||
|
||||
static int _majorVersion(String version) {
|
||||
try {
|
||||
return int.parse(version.split('-').first.split('.').first);
|
||||
} catch (_) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
static bool _isNewerVersion(String latest, String current) {
|
||||
try {
|
||||
final latestBase = latest.split('-').first;
|
||||
|
||||
Reference in New Issue
Block a user