From 7ccd08ee2b9a68af545c163b999aef0561823f08 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Wed, 3 Jan 2024 18:32:09 -0500 Subject: [PATCH] Make GitHub's (and Codeberg's) "fallback" work with the APK filter (#1236) --- lib/app_sources/github.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/app_sources/github.dart b/lib/app_sources/github.dart index 5bc2801..754de12 100644 --- a/lib/app_sources/github.dart +++ b/lib/app_sources/github.dart @@ -346,6 +346,11 @@ class GitHub extends AppSource { continue; } var apkUrls = getReleaseAPKUrls(releases[i]); + if (additionalSettings['apkFilterRegEx'] != null) { + var reg = RegExp(additionalSettings['apkFilterRegEx']); + apkUrls = + apkUrls.where((element) => reg.hasMatch(element.key)).toList(); + } if (apkUrls.isEmpty && additionalSettings['trackOnly'] != true) { continue; }