Skip to content

Commit

Permalink
Merge pull request #2446 from nextcloud/chore/nextcloud/remove-deprec…
Browse files Browse the repository at this point in the history
…ated-appids
  • Loading branch information
provokateurin authored Aug 30, 2024
2 parents 73c6008 + ab2fb5a commit 6e9e5d2
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 155 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ import 'package:vector_graphics/vector_graphics.dart';
@immutable
abstract class AppImplementation<T extends Bloc, R extends AppImplementationOptions> implements Disposable, Findable {
/// The unique id of an app.
///
/// It is common to specify them in `AppIDs`.
@override
String get id;

Expand Down
35 changes: 0 additions & 35 deletions packages/nextcloud/generate_exports.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,41 +53,6 @@ void main() {
formatter.format(output),
);
}

final library = Library((b) {
final appIDBuilder = ClassBuilder()
..docs.add('/// IDs of the apps.')
..annotations
.add(refer('Deprecated').call([refer("\"Use 'appID' from 'package:nextcloud/<id>.dart' instead.\"")]))
..name = 'AppIDs'
..modifier = ClassModifier.final$;

for (final state in states) {
final clientID = state.clientID;

b.directives.add(Directive.import('package:nextcloud/$clientID.dart', as: '_$clientID'));

final appID = Field((b) {
b
..docs.add('/// ID for the $clientID app.')
..static = true
..modifier = FieldModifier.constant
..type = refer('String')
..name = state.dartName
..assignment = refer('_$clientID.$_idField').code;
});

appIDBuilder.fields.add(appID);
}

b.body.add(appIDBuilder.build());
});

final output = library.accept(emitter).toString();

File('lib/src/app_ids.dart').writeAsStringSync(
formatter.format(output),
);
}

Library _buildClientExports(_State state) {
Expand Down
4 changes: 0 additions & 4 deletions packages/nextcloud/lib/ids.dart

This file was deleted.

1 change: 0 additions & 1 deletion packages/nextcloud/lib/nextcloud.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ export 'package:dynamite_runtime/http_client.dart'
show DynamiteApiException, DynamiteResponse, DynamiteStatusCodeException;
export 'package:dynamite_runtime/models.dart';

export 'src/app_ids.dart';
export 'src/models/models.dart';
export 'src/nextcloud_client.dart';
113 changes: 0 additions & 113 deletions packages/nextcloud/lib/src/app_ids.dart

This file was deleted.

0 comments on commit 6e9e5d2

Please sign in to comment.