Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
enabled_branches:
- main
- release-go_router-\d+\.\d+\.\d+
- release-cupertino_ui-\d+\.\d+\.\d+

platform_properties:
linux:
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/cupertino_ui_batch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "Creates Batch Release for cupertino_ui"

on:
workflow_dispatch:
schedule:
# Run every Monday at 8:00 AM. Update cron as needed.
- cron: "0 8 * * 1"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this means this won't go out until next Monday?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Any way to manually trigger it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sweet!


jobs:
dispatch_release_pr:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@5fc4efd1a4797ddb68ffd0714a238564e4cc0e6f
with:
event-type: batch-release-pr
client-payload: '{"package": "cupertino_ui"}'
1 change: 1 addition & 0 deletions .github/workflows/release_from_branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- 'release-go_router-*'
- 'release-cupertino_ui-*'
permissions:
# Release needs to push a tag back to the repo.
contents: write
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sync_release_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
# As packages opt into batched releases, they need to be added here
- 'release-go_router-*'
- 'release-cupertino_ui-*'

jobs:
create_sync_pr:
Expand Down
2 changes: 1 addition & 1 deletion packages/cupertino_ui/ci_config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# TODO(stuartmorgan): Remove this; see https://github.com/flutter/flutter/issues/102679
exempt_from_excerpts: true
release:
batch: false
batch: true

# Temporarily ignore tests that have yet to have their cross imports fixed.
# See https://github.com/flutter/flutter/issues/177028.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
changelog: |
- Copies over all Cupertino code from flutter/flutter.
- Copies over Cupertino localizations from flutter/flutter's
flutter_localizations package.
- Migrates API doc samples and formatting.
- Updates minimum supported SDK version to Flutter 3.44/Dart 3.12.
version: patch
6 changes: 6 additions & 0 deletions packages/cupertino_ui/pending_changelogs/template.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Use this file as a template to draft an unreleased changelog file.
# Make a copy of this file in the same directory, give it an appropriate name, and fill in the details.
changelog: |
- Can include a list of changes.
- with markdown supported.
version: <major|minor|patch|skip>
1 change: 0 additions & 1 deletion packages/cupertino_ui/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: cupertino_ui
description: The official Flutter Cupertino Design Library, implementing the iOS design system.
version: 0.0.1
publish_to: none

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

Attempting to publish cupertino_ui will fail because it contains a path dependency on material_ui under dev_dependencies (line 32 of pubspec.yaml). Packages published to pub.dev cannot have path dependencies in their dev_dependencies section. Since material_ui also depends on cupertino_ui, this creates a circular dependency. You will need to temporarily remove or resolve this path dependency to publish cupertino_ui first.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hrm. Is this true?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm hoping this is not true and I can fix it after publishing.

repository: https://github.com/flutter/packages/tree/main/packages/cupertino_ui
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A%20cupertino%22

Expand Down
Loading