mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-19 05:00:21 +02:00
@@ -30,6 +30,7 @@ import 'package:obtainium/app_sources/uptodown.dart';
|
||||
import 'package:obtainium/components/generated_form.dart';
|
||||
import 'package:obtainium/custom_errors.dart';
|
||||
import 'package:obtainium/mass_app_sources/githubstars.dart';
|
||||
import 'package:obtainium/providers/logs_provider.dart';
|
||||
import 'package:obtainium/providers/settings_provider.dart';
|
||||
|
||||
class AppNames {
|
||||
@@ -367,7 +368,12 @@ class App {
|
||||
otherAssetUrls: otherAssetUrls);
|
||||
|
||||
factory App.fromJson(Map<String, dynamic> json) {
|
||||
json = appJSONCompatibilityModifiers(json);
|
||||
try {
|
||||
json = appJSONCompatibilityModifiers(json);
|
||||
} catch (e) {
|
||||
LogsProvider()
|
||||
.add('Error running JSON compat modifiers: ${e.toString()}');
|
||||
}
|
||||
return App(
|
||||
json['id'] as String,
|
||||
json['url'] as String,
|
||||
|
Reference in New Issue
Block a user