Jenkins uses release dates only + APK delete bugfix

This commit is contained in:
Imran Remtulla
2023-04-30 17:00:00 -04:00
parent 76e316422c
commit 779de58f74
4 changed files with 25 additions and 3 deletions

View File

@@ -212,7 +212,7 @@ class AppsProvider with ChangeNotifier {
var fn = file.path.split('/').last;
if (fn.startsWith('${app.id}-') &&
fn.endsWith('.apk') &&
fn != fileName) {
fn != downloadedFile.path.split('/').last) {
file.delete();
}
}

View File

@@ -320,6 +320,22 @@ abstract class AppSource {
name = runtimeType.toString();
}
overrideVersionDetectionFormDefault(String vd, bool disableStandard) {
additionalAppSpecificSourceAgnosticSettingFormItems =
additionalAppSpecificSourceAgnosticSettingFormItems.map((e) {
return e.map((e2) {
if (e2.key == 'versionDetection') {
var item = e2 as GeneratedFormDropdown;
item.defaultValue = vd;
if (disableStandard) {
item.disabledOptKeys = ['standardVersionDetection'];
}
}
return e2;
}).toList();
}).toList();
}
String standardizeUrl(String url) {
url = preStandardizeUrl(url);
if (!hostChanged) {
@@ -342,7 +358,7 @@ abstract class AppSource {
[];
// Some additional data may be needed for Apps regardless of Source
final List<List<GeneratedFormItem>>
List<List<GeneratedFormItem>>
additionalAppSpecificSourceAgnosticSettingFormItems = [
[
GeneratedFormSwitch(