Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor nextcloud package exports #869

Merged
merged 3 commits into from
Sep 29, 2023
Merged

Conversation

provokateurin
Copy link
Member

@provokateurin provokateurin commented Sep 29, 2023

Splits all the exports into separate files.

Moves the supported check to the app implementations to prevent importing the respective APIs in the core.

Also generates the app IDs. They are still not implemented as an enum since enum can't be used in consts yet (although there has been a fix in the Dart SDK already).

Sadly this doesn't reduce the app size at all (which was my initial goal), but I still think that it improves the structure quite a lot (also because we now won't forget to export something).

Closes #796
Partially addresses #794

Copy link
Member

@Leptopoda Leptopoda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love these changes 😍

packages/nextcloud/lib/nextcloud.dart Outdated Show resolved Hide resolved
packages/nextcloud/bin/generate_exports.dart Show resolved Hide resolved
packages/neon/neon/lib/src/blocs/apps.dart Outdated Show resolved Hide resolved
packages/neon/neon/lib/src/models/app_implementation.dart Outdated Show resolved Hide resolved
packages/neon/neon/lib/src/models/app_implementation.dart Outdated Show resolved Hide resolved
packages/nextcloud/lib/ids.dart Outdated Show resolved Hide resolved
@provokateurin provokateurin force-pushed the refactor/nextcloud/exports branch from 83cf658 to fe7331c Compare September 29, 2023 10:05
@provokateurin
Copy link
Member Author

@Leptopoda please review again :)

@provokateurin provokateurin merged commit 0ad957c into main Sep 29, 2023
@provokateurin provokateurin deleted the refactor/nextcloud/exports branch September 29, 2023 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move AppIds into the nextcloud package
2 participants