mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-13 13:26:43 +02:00
@ -32,6 +32,7 @@ Currently supported App sources:
|
|||||||
- Jenkins Jobs
|
- Jenkins Jobs
|
||||||
- [APKMirror](https://apkmirror.com/) (Track-Only)
|
- [APKMirror](https://apkmirror.com/) (Track-Only)
|
||||||
- Other - App-Specific:
|
- Other - App-Specific:
|
||||||
|
- [Telegram App](https://telegram.org)
|
||||||
- [Neutron Code](https://neutroncode.com)
|
- [Neutron Code](https://neutroncode.com)
|
||||||
- Direct APK Link
|
- Direct APK Link
|
||||||
- "HTML" (Fallback): Any other URL that returns an HTML page with links to APK files
|
- "HTML" (Fallback): Any other URL that returns an HTML page with links to APK files
|
||||||
|
@ -25,6 +25,7 @@ import 'package:obtainium/app_sources/jenkins.dart';
|
|||||||
import 'package:obtainium/app_sources/neutroncode.dart';
|
import 'package:obtainium/app_sources/neutroncode.dart';
|
||||||
import 'package:obtainium/app_sources/sourceforge.dart';
|
import 'package:obtainium/app_sources/sourceforge.dart';
|
||||||
import 'package:obtainium/app_sources/sourcehut.dart';
|
import 'package:obtainium/app_sources/sourcehut.dart';
|
||||||
|
import 'package:obtainium/app_sources/telegramapp.dart';
|
||||||
import 'package:obtainium/app_sources/tencent.dart';
|
import 'package:obtainium/app_sources/tencent.dart';
|
||||||
import 'package:obtainium/app_sources/uptodown.dart';
|
import 'package:obtainium/app_sources/uptodown.dart';
|
||||||
import 'package:obtainium/components/generated_form.dart';
|
import 'package:obtainium/components/generated_form.dart';
|
||||||
@ -258,22 +259,6 @@ appJSONCompatibilityModifiers(Map<String, dynamic> json) {
|
|||||||
replacementAdditionalSettings['matchGroupToUse'] = "1";
|
replacementAdditionalSettings['matchGroupToUse'] = "1";
|
||||||
additionalSettings = replacementAdditionalSettings;
|
additionalSettings = replacementAdditionalSettings;
|
||||||
}
|
}
|
||||||
// Telegram App from before it was removed should be converted to Direct APK Link (#1943)
|
|
||||||
if (json['url'] == 'https://telegram.org' &&
|
|
||||||
json['id'] == 'org.telegram.messenger.web' &&
|
|
||||||
json['author'] == 'Telegram' &&
|
|
||||||
json['name'] == 'Telegram' &&
|
|
||||||
json['overrideSource'] == null &&
|
|
||||||
additionalSettings['trackOnly'] == false &&
|
|
||||||
additionalSettings['versionExtractionRegEx'] == '' &&
|
|
||||||
json['lastUpdateCheck'] != null) {
|
|
||||||
json['url'] = 'https://telegram.org/dl/android/apk';
|
|
||||||
var newSource = DirectAPKLink();
|
|
||||||
json['overrideSource'] = newSource.runtimeType.toString();
|
|
||||||
var replacementAdditionalSettings = getDefaultValuesFromFormItems(
|
|
||||||
newSource.combinedAppSpecificSettingFormItems);
|
|
||||||
additionalSettings = replacementAdditionalSettings;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
json['additionalSettings'] = jsonEncode(additionalSettings);
|
json['additionalSettings'] = jsonEncode(additionalSettings);
|
||||||
// F-Droid no longer needs cloudflare exception since override can be used - migrate apps appropriately
|
// F-Droid no longer needs cloudflare exception since override can be used - migrate apps appropriately
|
||||||
@ -879,6 +864,7 @@ class SourceProvider {
|
|||||||
Tencent(),
|
Tencent(),
|
||||||
Jenkins(),
|
Jenkins(),
|
||||||
APKMirror(),
|
APKMirror(),
|
||||||
|
TelegramApp(),
|
||||||
NeutronCode(),
|
NeutronCode(),
|
||||||
DirectAPKLink(),
|
DirectAPKLink(),
|
||||||
HTML() // This should ALWAYS be the last option as they are tried in order
|
HTML() // This should ALWAYS be the last option as they are tried in order
|
||||||
|
Reference in New Issue
Block a user