refactor: organize repository as a pub workspace#312
Open
marandaneto wants to merge 3 commits intomainfrom
Open
refactor: organize repository as a pub workspace#312marandaneto wants to merge 3 commits intomainfrom
marandaneto wants to merge 3 commits intomainfrom
Conversation
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💡 Motivation and Context
Organizes the repository as a Dart pub workspace to enable better multi-package management and shared dependency resolution.
What changed
posthog_flutter/subdirectory (with all native code:android/,ios/,macos/,lib/,test/)pubspec.yamlthat declaresposthog_flutterandexampleas workspace membersresolution: workspaceto both memberpubspec.yamlfiles^3.5.0(minimum for workspace support)flutter_lintsversion across workspace (^5.0.0)CI / Release updates
ci.yml: Simplified to singleflutter pub getat root (workspace resolves all); test runs from./posthog_flutterpublish-pub-dev.yml: Version validation reads fromposthog_flutter/pubspec.yaml;flutter pub publishruns from./posthog_flutter; changelog read fromposthog_flutter/CHANGELOG.mdcodeql.yml: Simplified dependency install to singleflutter pub getpublish.yml: No changes needed (uses setup action + scripts)setup/action.yml: No changes needed (singleflutter pub getresolves workspace)Other updates
scripts/bump-version.sh: All paths prefixed withposthog_flutter/Makefile: Paths updated for new structureRELEASING.md: Manual publish instructions updated💚 How did you test it?
flutter pub getresolves successfully at workspace rootflutter testfromposthog_flutter/)dart analyzepasses (only pre-existing info-level warnings in example)📝 Checklist