From a726b09f266fe22ac61bae51c1a52aeaa10f7ec7 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Sat, 14 Oct 2023 05:24:08 -0400 Subject: [PATCH] Fix Source selection (HTML) which broke in the last release --- lib/app_sources/fdroidrepo.dart | 1 + lib/main.dart | 2 +- lib/providers/source_provider.dart | 3 ++- pubspec.yaml | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/app_sources/fdroidrepo.dart b/lib/app_sources/fdroidrepo.dart index 22b8e49..6152c2b 100644 --- a/lib/app_sources/fdroidrepo.dart +++ b/lib/app_sources/fdroidrepo.dart @@ -8,6 +8,7 @@ class FDroidRepo extends AppSource { FDroidRepo() { name = tr('fdroidThirdPartyRepo'); canSearch = true; + neverAutoSelect = true; additionalSourceAppSpecificSettingFormItems = [ [ diff --git a/lib/main.dart b/lib/main.dart index c202d40..0a6ada9 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -19,7 +19,7 @@ import 'package:easy_localization/src/easy_localization_controller.dart'; // ignore: implementation_imports import 'package:easy_localization/src/localization.dart'; -const String currentVersion = '0.14.28'; +const String currentVersion = '0.14.29'; const String currentReleaseTag = 'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES diff --git a/lib/providers/source_provider.dart b/lib/providers/source_provider.dart index e3e1c3a..ce07727 100644 --- a/lib/providers/source_provider.dart +++ b/lib/providers/source_provider.dart @@ -330,6 +330,7 @@ abstract class AppSource { bool appIdInferIsOptional = false; bool allowSubDomains = false; bool naiveStandardVersionDetection = false; + bool neverAutoSelect = false; AppSource() { name = runtimeType.toString(); @@ -604,7 +605,7 @@ class SourceProvider { } } if (source == null) { - for (var s in sources.where((element) => element.host == null)) { + for (var s in sources.where((element) => element.host == null && !element.neverAutoSelect)) { try { s.sourceSpecificStandardizeURL(url); source = s; diff --git a/pubspec.yaml b/pubspec.yaml index 02990a4..e90cf53 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 0.14.28+220 # When changing this, update the tag in main() accordingly +version: 0.14.29+221 # When changing this, update the tag in main() accordingly environment: sdk: '>=3.0.0 <4.0.0'