Skip to content

Commit

Permalink
chore(nextcloud,nextcloud_test)!: Remove Nextcloud 26 compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin committed Mar 28, 2024
1 parent 0150774 commit 17902bc
Show file tree
Hide file tree
Showing 30 changed files with 157 additions and 324 deletions.
2 changes: 1 addition & 1 deletion packages/neon/neon_talk/lib/src/widgets/room_avatar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TalkRoomAvatar extends StatelessWidget {

@override
Widget build(BuildContext context) {
if (room.isCustomAvatar ?? false) {
if (room.isCustomAvatar) {
final brightness = Theme.of(context).brightness;

return CircleAvatar(
Expand Down
1 change: 1 addition & 0 deletions packages/neon/neon_talk/test/testing.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Map<String, dynamic> getRoom({
'hasCall': false,
'hasPassword': false,
'id': id ?? 0,
'isCustomAvatar': false,
'isFavorite': false,
'lastActivity': 0,
'lastCommonReadMessage': 0,
Expand Down
2 changes: 1 addition & 1 deletion packages/neon_framework/lib/src/widgets/account_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class NeonAccountTile extends StatelessWidget {
if (userDetails.hasData)
Flexible(
child: Text(
(userDetails.requireData.displayname ?? userDetails.requireData.displayName)!,
userDetails.requireData.displayname,

Check warning on line 62 in packages/neon_framework/lib/src/widgets/account_tile.dart

View check run for this annotation

Codecov / codecov/patch

packages/neon_framework/lib/src/widgets/account_tile.dart#L62

Added line #L62 was not covered by tests
overflow: TextOverflow.ellipsis,
),
),
Expand Down
8 changes: 4 additions & 4 deletions packages/nextcloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ These OpenAPI specifications are [generated](https://github.com/nextcloud/openap

| Component | Supported versions (1) |
|------------------------------------------------------------------------------------|------------------------|
| [Server](https://github.com/nextcloud/server) (2) | 26 - 28 |
| [News app](https://github.com/nextcloud/news) | 21 - 25 |
| [Server](https://github.com/nextcloud/server) (2) | 27 - 28 |
| [News app](https://github.com/nextcloud/news) | 22 - 25 |
| [Notes app](https://github.com/nextcloud/notes) | 4.7 - 4.9 |
| [Notifications app](https://github.com/nextcloud/notifications) | 26 - 28 |
| [Talk app](https://github.com/nextcloud/spreed) | 16 - 18 |
| [NextPush app](https://codeberg.org/NextPush/uppush) | 1.3 - 1.4 |
| [Talk app](https://github.com/nextcloud/spreed) | 17 - 18 |
| [NextPush app](https://codeberg.org/NextPush/uppush) | 1.4 |
| [User account deletion app](https://framagit.org/framasoft/nextcloud/drop_account) | 2.3 - 2.5 |

1: Other versions might be supported too or at least mostly working, but we do not test against those.
Expand Down
10 changes: 5 additions & 5 deletions packages/nextcloud/lib/src/api/core.openapi.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8999,11 +8999,11 @@ abstract interface class $SpreedPublicCapabilities0_Spreed_Config_CallInterface
@BuiltValueField(wireName: 'recording-consent')
int? get recordingConsent;
@BuiltValueField(wireName: 'supported-reactions')
BuiltList<String>? get supportedReactions;
BuiltList<String> get supportedReactions;
@BuiltValueField(wireName: 'predefined-backgrounds')
BuiltList<String>? get predefinedBackgrounds;
BuiltList<String> get predefinedBackgrounds;
@BuiltValueField(wireName: 'can-upload-background')
bool? get canUploadBackground;
bool get canUploadBackground;
@BuiltValueField(wireName: 'sip-enabled')
bool? get sipEnabled;
@BuiltValueField(wireName: 'sip-dialout-enabled')
Expand Down Expand Up @@ -9054,7 +9054,7 @@ abstract interface class $SpreedPublicCapabilities0_Spreed_Config_ChatInterface
@BuiltValueField(wireName: 'has-translation-providers')
bool? get hasTranslationProviders;
@BuiltValueField(wireName: 'typing-privacy')
int? get typingPrivacy;
int get typingPrivacy;
BuiltList<String>? get translations;
}

Expand Down Expand Up @@ -9422,7 +9422,7 @@ abstract class ThemingPublicCapabilities
@BuiltValue(instantiable: false)
abstract interface class $UserStatusCapabilities_UserStatusInterface {
bool get enabled;
bool? get restore;
bool get restore;
@BuiltValueField(wireName: 'supports_emoji')
bool get supportsEmoji;
}
Expand Down
97 changes: 44 additions & 53 deletions packages/nextcloud/lib/src/api/core.openapi.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions packages/nextcloud/lib/src/api/core.openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,10 @@
"required": [
"enabled",
"breakout-rooms",
"recording"
"recording",
"supported-reactions",
"predefined-backgrounds",
"can-upload-background"
],
"properties": {
"enabled": {
Expand Down Expand Up @@ -1283,7 +1286,8 @@
"type": "object",
"required": [
"max-length",
"read-privacy"
"read-privacy",
"typing-privacy"
],
"properties": {
"max-length": {
Expand Down Expand Up @@ -1443,6 +1447,7 @@
"type": "object",
"required": [
"enabled",
"restore",
"supports_emoji"
],
"properties": {
Expand Down
6 changes: 3 additions & 3 deletions packages/nextcloud/lib/src/api/provisioning_api.openapi.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5476,8 +5476,8 @@ abstract interface class $UserDetailsInterface {
String get biography;
String? get biographyScope;
@BuiltValueField(wireName: 'display-name')
String? get displayName;
String? get displayname;
String get displayName;
String get displayname;
String? get displaynameScope;
String? get email;
String? get emailScope;
Expand All @@ -5491,7 +5491,7 @@ abstract interface class $UserDetailsInterface {
String get language;
int get lastLogin;
String get locale;
String? get manager;
String get manager;
@BuiltValueField(wireName: 'notify_email')
String? get notifyEmail;
String get organisation;
Expand Down

0 comments on commit 17902bc

Please sign in to comment.