Skip to content

Commit ab2fb5a

Browse files
committed
chore(nextcloud)!: Remove deprecated AppIDs
Signed-off-by: provokateurin <kate@provokateurin.de>
1 parent 73c6008 commit ab2fb5a

File tree

5 files changed

+0
-155
lines changed

5 files changed

+0
-155
lines changed

packages/neon_framework/lib/src/models/app_implementation.dart

-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ import 'package:vector_graphics/vector_graphics.dart';
2828
@immutable
2929
abstract class AppImplementation<T extends Bloc, R extends AppImplementationOptions> implements Disposable, Findable {
3030
/// The unique id of an app.
31-
///
32-
/// It is common to specify them in `AppIDs`.
3331
@override
3432
String get id;
3533

packages/nextcloud/generate_exports.dart

-35
Original file line numberDiff line numberDiff line change
@@ -53,41 +53,6 @@ void main() {
5353
formatter.format(output),
5454
);
5555
}
56-
57-
final library = Library((b) {
58-
final appIDBuilder = ClassBuilder()
59-
..docs.add('/// IDs of the apps.')
60-
..annotations
61-
.add(refer('Deprecated').call([refer("\"Use 'appID' from 'package:nextcloud/<id>.dart' instead.\"")]))
62-
..name = 'AppIDs'
63-
..modifier = ClassModifier.final$;
64-
65-
for (final state in states) {
66-
final clientID = state.clientID;
67-
68-
b.directives.add(Directive.import('package:nextcloud/$clientID.dart', as: '_$clientID'));
69-
70-
final appID = Field((b) {
71-
b
72-
..docs.add('/// ID for the $clientID app.')
73-
..static = true
74-
..modifier = FieldModifier.constant
75-
..type = refer('String')
76-
..name = state.dartName
77-
..assignment = refer('_$clientID.$_idField').code;
78-
});
79-
80-
appIDBuilder.fields.add(appID);
81-
}
82-
83-
b.body.add(appIDBuilder.build());
84-
});
85-
86-
final output = library.accept(emitter).toString();
87-
88-
File('lib/src/app_ids.dart').writeAsStringSync(
89-
formatter.format(output),
90-
);
9156
}
9257

9358
Library _buildClientExports(_State state) {

packages/nextcloud/lib/ids.dart

-4
This file was deleted.

packages/nextcloud/lib/nextcloud.dart

-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ export 'package:dynamite_runtime/http_client.dart'
22
show DynamiteApiException, DynamiteResponse, DynamiteStatusCodeException;
33
export 'package:dynamite_runtime/models.dart';
44

5-
export 'src/app_ids.dart';
65
export 'src/models/models.dart';
76
export 'src/nextcloud_client.dart';

packages/nextcloud/lib/src/app_ids.dart

-113
This file was deleted.

0 commit comments

Comments
 (0)