Compare commits

...

3 Commits

Author SHA1 Message Date
Imran Remtulla
b7544939c2 Merge pull request #1008 from ImranR98/dev
Fix broken search (#1006)
2023-10-14 13:27:01 -04:00
Imran Remtulla
63fa6d4660 Increment version 2023-10-14 13:25:49 -04:00
Imran Remtulla
9506c11951 Fix broken search (#1006) 2023-10-14 13:25:26 -04:00
6 changed files with 12 additions and 8 deletions

View File

@@ -8,6 +8,7 @@ class FDroidRepo extends AppSource {
FDroidRepo() { FDroidRepo() {
name = tr('fdroidThirdPartyRepo'); name = tr('fdroidThirdPartyRepo');
canSearch = true; canSearch = true;
excludeFromMassSearch = true;
neverAutoSelect = true; neverAutoSelect = true;
additionalSourceAppSpecificSettingFormItems = [ additionalSourceAppSpecificSettingFormItems = [

View File

@@ -19,7 +19,7 @@ import 'package:easy_localization/src/easy_localization_controller.dart';
// ignore: implementation_imports // ignore: implementation_imports
import 'package:easy_localization/src/localization.dart'; import 'package:easy_localization/src/localization.dart';
const String currentVersion = '0.14.29'; const String currentVersion = '0.14.30';
const String currentReleaseTag = const String currentReleaseTag =
'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES 'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES

View File

@@ -153,8 +153,7 @@ class _AddAppPageState extends State<AddAppPage> {
overrideSource: pickedSourceOverride, overrideSource: pickedSourceOverride,
inferAppIdIfOptional: inferAppIdIfOptional); inferAppIdIfOptional: inferAppIdIfOptional);
// Only download the APK here if you need to for the package ID // Only download the APK here if you need to for the package ID
if (isTempId(app) && if (isTempId(app) && app.additionalSettings['trackOnly'] != true) {
app.additionalSettings['trackOnly'] != true) {
// ignore: use_build_context_synchronously // ignore: use_build_context_synchronously
var apkUrl = await appsProvider.confirmApkUrl(app, context); var apkUrl = await appsProvider.confirmApkUrl(app, context);
if (apkUrl == null) { if (apkUrl == null) {
@@ -260,8 +259,9 @@ class _AddAppPageState extends State<AddAppPage> {
searching = true; searching = true;
}); });
try { try {
var results = await Future.wait( var results = await Future.wait(sourceProvider.sources
sourceProvider.sources.where((e) => e.canSearch).map((e) async { .where((e) => e.canSearch && !e.excludeFromMassSearch)
.map((e) async {
try { try {
return await e.search(searchQuery); return await e.search(searchQuery);
} catch (err) { } catch (err) {

View File

@@ -141,7 +141,8 @@ class _ImportExportPageState extends State<ImportExportPage> {
} }
}); });
appsProvider.addMissingCategories(settingsProvider); appsProvider.addMissingCategories(settingsProvider);
showMessage(tr('importedX', args: [plural('apps', value)]), context); showMessage(
tr('importedX', args: [plural('apps', value)]), context);
}); });
} else { } else {
// User canceled the picker // User canceled the picker

View File

@@ -494,6 +494,7 @@ abstract class AppSource {
} }
bool canSearch = false; bool canSearch = false;
bool excludeFromMassSearch = false;
List<GeneratedFormItem> searchQuerySettingFormItems = []; List<GeneratedFormItem> searchQuerySettingFormItems = [];
Future<Map<String, List<String>>> search(String query, Future<Map<String, List<String>>> search(String query,
{Map<String, dynamic> querySettings = const {}}) { {Map<String, dynamic> querySettings = const {}}) {
@@ -605,7 +606,8 @@ class SourceProvider {
} }
} }
if (source == null) { if (source == null) {
for (var s in sources.where((element) => element.host == null && !element.neverAutoSelect)) { for (var s in sources.where(
(element) => element.host == null && !element.neverAutoSelect)) {
try { try {
s.sourceSpecificStandardizeURL(url); s.sourceSpecificStandardizeURL(url);
source = s; source = s;

View File

@@ -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 # 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 # 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. # of the product and file versions while build-number is used as the build suffix.
version: 0.14.29+221 # When changing this, update the tag in main() accordingly version: 0.14.30+222 # When changing this, update the tag in main() accordingly
environment: environment:
sdk: '>=3.0.0 <4.0.0' sdk: '>=3.0.0 <4.0.0'