|
|
@ -15,6 +15,7 @@ import 'package:neon/src/settings/models/storage.dart'; |
|
|
|
import 'package:neon/src/utils/provider.dart'; |
|
|
|
import 'package:neon/src/utils/provider.dart'; |
|
|
|
import 'package:neon/src/widgets/drawer_destination.dart'; |
|
|
|
import 'package:neon/src/widgets/drawer_destination.dart'; |
|
|
|
import 'package:nextcloud/core.dart' as core; |
|
|
|
import 'package:nextcloud/core.dart' as core; |
|
|
|
|
|
|
|
import 'package:nextcloud/nextcloud.dart' show VersionSupported; |
|
|
|
import 'package:provider/provider.dart'; |
|
|
|
import 'package:provider/provider.dart'; |
|
|
|
import 'package:rxdart/rxdart.dart'; |
|
|
|
import 'package:rxdart/rxdart.dart'; |
|
|
|
import 'package:vector_graphics/vector_graphics.dart'; |
|
|
|
import 'package:vector_graphics/vector_graphics.dart'; |
|
|
@ -36,15 +37,14 @@ abstract class AppImplementation<T extends Bloc, R extends NextcloudAppOptions> |
|
|
|
|
|
|
|
|
|
|
|
/// Checks if the app is supported on the server of the [account]. |
|
|
|
/// Checks if the app is supported on the server of the [account]. |
|
|
|
/// |
|
|
|
/// |
|
|
|
/// A `supported` value of `null` means that it can not be known if the app is supported. |
|
|
|
/// A value of `null` means that it can not be known if the app is supported. |
|
|
|
/// This is the case for apps that depend on the server version like files and we assume that the app is supported. |
|
|
|
/// This is the case for apps that depend on the server version like files and we assume that the app is supported. |
|
|
|
/// The server support is handled differently. |
|
|
|
/// The server support is handled differently. |
|
|
|
/// |
|
|
|
FutureOr<VersionSupported<String>?> isSupported( |
|
|
|
/// The first value of the record is the supported status and the second value is the supported minimum version. |
|
|
|
|
|
|
|
FutureOr<(bool? supported, String? minimumVersion)> isSupported( |
|
|
|
|
|
|
|
final Account account, |
|
|
|
final Account account, |
|
|
|
final core.OcsGetCapabilitiesResponseApplicationJson_Ocs_Data capabilities, |
|
|
|
final core.OcsGetCapabilitiesResponseApplicationJson_Ocs_Data capabilities, |
|
|
|
); |
|
|
|
) => |
|
|
|
|
|
|
|
null; |
|
|
|
|
|
|
|
|
|
|
|
final blocsCache = AccountCache<T>(); |
|
|
|
final blocsCache = AccountCache<T>(); |
|
|
|
|
|
|
|
|
|
|
|