-
-
Notifications
You must be signed in to change notification settings - Fork 213
feat: Remove support for expired Dart and Flutter versions #1052
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
89c58f6
feat
mtrezza 9494667
Create VERSIONING_POLICY.md
mtrezza 7064b1a
Update ci.yml
mtrezza 7bd8658
fix
mtrezza 9434ae0
chore: Apply Dart 3.10 formatting
mtrezza ae3e138
Update .gitignore
mtrezza ca49b3a
chore: Add .gitattributes to normalize line endings across platforms
mtrezza 9a8a5c1
Revert "chore: Add .gitattributes to normalize line endings across pl…
mtrezza 7fed11a
fix windows
mtrezza 78ce520
win2
mtrezza 2aee2f0
win3
mtrezza 7aab078
fix flutter
mtrezza 56e4087
lint
mtrezza 056e7ae
ignore plug files
mtrezza File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| --- | ||
| name: "\U0001F4E6 Version Conflict" | ||
| about: Report a version conflict with Parse SDK dependencies | ||
| title: '[Version Conflict] ' | ||
| labels: 'dependencies, version-conflict' | ||
| assignees: '' | ||
| --- | ||
|
|
||
| ## Version Conflict Description | ||
|
|
||
| <!-- Describe the version conflict you're experiencing --> | ||
|
|
||
| ## Environment | ||
|
|
||
| **Parse SDK Version:** | ||
| - Dart SDK: [e.g., 8.0.2] | ||
| - Flutter SDK (if applicable): [e.g., 9.0.0] | ||
|
|
||
| **Framework Version:** | ||
| - Dart: [e.g., 3.2.6] | ||
| - Flutter (if applicable): [e.g., 3.16.9] | ||
|
|
||
| **Platform:** | ||
| - [ ] Dart | ||
| - [ ] Flutter (Web) | ||
| - [ ] Flutter (Mobile - iOS) | ||
| - [ ] Flutter (Mobile - Android) | ||
| - [ ] Flutter (Desktop - macOS) | ||
| - [ ] Flutter (Desktop - Windows) | ||
| - [ ] Flutter (Desktop - Linux) | ||
|
|
||
| ## Conflict Details | ||
|
|
||
| **Conflicting Package:** | ||
| [e.g., dio, http, sembast] | ||
|
|
||
| **Required Version:** | ||
| [e.g., Package X requires dio ^6.0.0 but Parse SDK requires ^5.0.0] | ||
|
|
||
| **Error Message:** | ||
| ``` | ||
| Paste the full error message from `dart pub get` or `flutter pub get` | ||
| ``` | ||
|
|
||
| ## Your pubspec.yaml | ||
|
|
||
| ```yaml | ||
| # Paste relevant sections of your pubspec.yaml | ||
| dependencies: | ||
| parse_server_sdk: ^8.0.0 | ||
| # ... other dependencies | ||
| ``` | ||
|
|
||
| ## Dependency Tree | ||
|
|
||
| ```bash | ||
| # Run: dart pub deps or flutter pub deps | ||
| # Paste the output here | ||
| ``` | ||
|
|
||
| ## Steps Tried | ||
|
|
||
| <!-- Check all that apply --> | ||
|
|
||
| - [ ] Updated to latest Parse SDK version | ||
| - [ ] Ran `dart pub outdated` / `flutter pub outdated` | ||
| - [ ] Checked [MIGRATION_GUIDES.md](https://github.com/parse-community/Parse-SDK-Flutter/blob/master/MIGRATION_GUIDES.md) | ||
| - [ ] Tried `dependency_overrides` (temporary workaround) | ||
| - [ ] Searched existing issues | ||
|
|
||
| ## Workaround | ||
|
|
||
| <!-- If you found a workaround, share it here to help others --> | ||
|
|
||
| ## Additional Context | ||
|
|
||
| <!-- Add any other context, screenshots, or information --> |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| version: 2 | ||
| updates: | ||
| # Dart package dependencies | ||
| - package-ecosystem: "pub" | ||
| directory: "/packages/dart" | ||
| schedule: | ||
| interval: "daily" | ||
| open-pull-requests-limit: 10 | ||
| labels: | ||
| - "dart" | ||
| commit-message: | ||
| prefix: "feat" | ||
|
|
||
| # Flutter package dependencies | ||
| - package-ecosystem: "pub" | ||
| directory: "/packages/flutter" | ||
| schedule: | ||
| interval: "daily" | ||
| open-pull-requests-limit: 10 | ||
| labels: | ||
| - "flutter" | ||
| commit-message: | ||
| prefix: "feat" | ||
|
|
||
| # GitHub Actions | ||
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "weekly" | ||
| open-pull-requests-limit: 5 | ||
| labels: | ||
| - "ci" | ||
| commit-message: | ||
| prefix: "refactor" |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,134 @@ | ||
| name: dependency-audit | ||
|
|
||
| on: | ||
| schedule: | ||
| # Run on the first day of every month at 9:00 AM UTC | ||
| - cron: '0 9 1 * *' | ||
| workflow_dispatch: # Allow manual triggering | ||
|
|
||
| permissions: | ||
| contents: read | ||
| issues: write | ||
|
|
||
| jobs: | ||
| audit-dart: | ||
| name: Audit Dart Package Dependencies | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Dart | ||
| uses: dart-lang/setup-dart@v1 | ||
| with: | ||
| sdk: stable | ||
|
|
||
| - name: Get dependencies | ||
| working-directory: packages/dart | ||
| run: dart pub get | ||
|
|
||
| - name: Check for outdated dependencies | ||
| id: outdated | ||
| working-directory: packages/dart | ||
| run: | | ||
| echo "## Dart Package - Outdated Dependencies" >> $GITHUB_STEP_SUMMARY | ||
| dart pub outdated --mode=outdated || true | ||
| dart pub outdated --mode=outdated >> $GITHUB_STEP_SUMMARY || true | ||
| - name: Security audit | ||
| id: audit | ||
| working-directory: packages/dart | ||
| run: | | ||
| echo "## Dart Package - Security Audit" >> $GITHUB_STEP_SUMMARY | ||
| dart pub audit || true | ||
| dart pub audit >> $GITHUB_STEP_SUMMARY || true | ||
mtrezza marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| audit-flutter: | ||
| name: Audit Flutter Package Dependencies | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Flutter | ||
| uses: subosito/flutter-action@v2 | ||
| with: | ||
| channel: stable | ||
|
|
||
| - name: Get dependencies | ||
| working-directory: packages/flutter | ||
| run: flutter pub get | ||
|
|
||
| - name: Check for outdated dependencies | ||
| id: outdated | ||
| working-directory: packages/flutter | ||
| run: | | ||
| echo "## Flutter Package - Outdated Dependencies" >> $GITHUB_STEP_SUMMARY | ||
| flutter pub outdated --mode=outdated || true | ||
| flutter pub outdated --mode=outdated >> $GITHUB_STEP_SUMMARY || true | ||
| - name: Security audit | ||
| id: audit | ||
| working-directory: packages/flutter | ||
| run: | | ||
| echo "## Flutter Package - Security Audit" >> $GITHUB_STEP_SUMMARY | ||
| dart pub audit || true | ||
| dart pub audit >> $GITHUB_STEP_SUMMARY || true | ||
| create-issue: | ||
| name: Create Issue if Security Vulnerabilities Found | ||
| needs: [audit-dart, audit-flutter] | ||
| runs-on: ubuntu-latest | ||
| if: failure() | ||
| steps: | ||
| - name: Create issue for security vulnerabilities | ||
| uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| const title = '[Security] Dependency vulnerabilities detected'; | ||
| const body = `## Security Vulnerabilities Detected | ||
| The monthly dependency audit has detected security vulnerabilities in our dependencies. | ||
| ### Action Required | ||
| 1. Review the [workflow run](${context.payload.repository.html_url}/actions/runs/${context.runId}) | ||
| 2. Update affected dependencies | ||
| 3. Test thoroughly | ||
| 4. Create a PR with security fixes | ||
| ### Resources | ||
| - [VERSIONING_POLICY.md](${context.payload.repository.html_url}/blob/master/VERSIONING_POLICY.md) | ||
| - [Dart Security Best Practices](https://dart.dev/guides/libraries/secure) | ||
| --- | ||
| **Auto-generated by dependency-audit workflow** | ||
| `; | ||
| // Check if similar issue exists | ||
| const issues = await github.rest.issues.listForRepo({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| state: 'open', | ||
| labels: 'security,dependencies' | ||
| }); | ||
| const existingIssue = issues.data.find(issue => | ||
| issue.title.includes('[Security] Dependency vulnerabilities') | ||
| ); | ||
| if (!existingIssue) { | ||
| await github.rest.issues.create({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| title: title, | ||
| body: body, | ||
| labels: ['security', 'dependencies', 'high-priority'] | ||
| }); | ||
| } else { | ||
| await github.rest.issues.createComment({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| issue_number: existingIssue.number, | ||
| body: `New vulnerabilities detected in [workflow run](${context.payload.repository.html_url}/actions/runs/${context.runId})` | ||
| }); | ||
| } | ||
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.