Skip to content

Commit 843be8d

Browse files
Update repository to pass validate (#3)
This fixes everything that `validate` failed on locally when running flutter/packages#11784 locally against the repo. This is in preparation for enabling the repo tooling in this repo. - Adds dependabot coverage for example apps (although it's currently not going to actually do anything; it depends whether we ever add Flutter examples for non-Flutter-specific packages) - Adds autolabeling - Adds the tool config - Fixes repo-level README link mistakes - Requires Dart 3.10 (N-2) - Adds languages to code blocks in the README, and temporarily exempts the README from excerpts Tooling will actually be enabled in a future PR, once the tooling updates are published to pub.dev.
1 parent 4533a04 commit 843be8d

9 files changed

Lines changed: 117 additions & 6 deletions

File tree

.github/dependabot.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# See Dependabot documentation for all configuration options:
2+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
3+
4+
version: 2
5+
updates:
6+
- package-ecosystem: "github-actions"
7+
directory: "/"
8+
schedule:
9+
interval: "weekly"
10+
groups:
11+
all-github-actions:
12+
patterns: [ "*" ]
13+
reviewers:
14+
- "stuartmorgan"
15+
labels:
16+
- "team"
17+
- "team: infra"
18+
- "autosubmit"
19+
# Updating patch versions for "github-actions" is too chatty.
20+
# See https://github.com/flutter/flutter/issues/158350.
21+
ignore:
22+
- dependency-name: "*"
23+
update-types: ["version-update:semver-patch"]
24+
25+
# Android example apps.
26+
- package-ecosystem: "gradle"
27+
directories:
28+
- /packages/vector_math/example/android/app
29+
commit-message:
30+
prefix: "[dependabot]"
31+
schedule:
32+
interval: "weekly"
33+
labels:
34+
- "autosubmit"
35+
open-pull-requests-limit: 10
36+
ignore:
37+
- dependency-name: "*"
38+
update-types: ["version-update:semver-minor", "version-update:semver-patch"]

.github/labeler.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'p: vactor_math':
2+
- changed-files:
3+
- any-glob-to-any-file:
4+
- packages/vector_math/**/*
5+
6+
'triage-framework':
7+
- changed-files:
8+
- any-glob-to-any-file:
9+
- packages/vector_math/**/*
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# This workflow applies labels to pull requests based on the
2+
# paths that are modified in the pull request.
3+
#
4+
# Edit `.github/labeler.yml` and `.github/post_merge_labeler.yml`
5+
# to configure labels.
6+
#
7+
# For more information, see: https://github.com/actions/labeler
8+
9+
name: Pull Request Labeler
10+
11+
on:
12+
pull_request_target:
13+
types: [opened, synchronize, reopened, closed]
14+
15+
# Declare default permissions as read only.
16+
permissions: read-all
17+
18+
jobs:
19+
label:
20+
permissions:
21+
pull-requests: write
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/labeler@f27b608878404679385c85cfa523b85ccb86e213
25+
with:
26+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
27+
sync-labels: true

.repo_tool_config.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Repo-specific configuration for the flutter_plugin_tools repository tooling.
2+
3+
repo_name: flutter/core-packages
4+
5+
# The minimum Dart version that can be used as the minimum SDK constraint
6+
# by packages in this repository. For example, if this is set to 3.10.0, then a
7+
# package can have a minimum SDK version of 3.10.0, 3.11.0, 3.12.0, etc., but
8+
# not 3.9.0.
9+
#
10+
# The major and minor version here should match the lowest version analyzed
11+
# in legacy version analysis.
12+
# TODO(stuartmorgan): Set up legacy analysis in this repo. For now this matches
13+
# the N-2 used in flutter/packages, but we aren't actually testing N-1 or N-2.
14+
min_dart: '3.10.0'
15+
16+
# The list of external packages that are allowed as dependencies.
17+
# All entries here must have an explanation for why they are here. See
18+
# https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#Dependencies
19+
allowed_dependencies:
20+
# Dependencies that can be unpinned. Package should only ever be added here if
21+
# we fully trust the package's development and publishing process.
22+
unpinned:
23+
## Allowed by default:
24+
# Dart-team-owned packages
25+
- benchmark_harness
26+
- build_runner
27+
- build_test
28+
- build_web_compilers
29+
- path
30+
- test

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ These are the packages hosted in this repository:
3737

3838
| Package | Pub | Points | Usage | Issues | Pull requests |
3939
|---------|-----|--------|-------|--------|---------------|
40-
| [vector\_math](./packages/vector_math/) | [![pub package](https://img.shields.io/pub/v/vector_math.svg)](https://pub.dev/packages/vector_math) | [![pub points](https://img.shields.io/pub/points/vector_math)](https://pub.dev/packages/vector_math/score) | [![downloads](https://img.shields.io/pub/dm/vector_math)](https://pub.dev/packages/vector_math/score) | [![GitHub issues by-label](https://img.shields.io/github/issues/flutter/flutter/p%3A%20vector_math?label=)](https://github.com/flutter/flutter/labels/p%3A%20vector_math) | [![GitHub pull requests by-label](https://img.shields.io/github/issues-pr/flutter/packages/p%3A%20vector_math?label=)](https://github.com/flutter/packages/labels/p%3A%20vector_math) |
40+
| [vector\_math](./packages/vector_math/) | [![pub package](https://img.shields.io/pub/v/vector_math.svg)](https://pub.dev/packages/vector_math) | [![pub points](https://img.shields.io/pub/points/vector_math)](https://pub.dev/packages/vector_math/score) | [![downloads](https://img.shields.io/pub/dm/vector_math)](https://pub.dev/packages/vector_math/score) | [![GitHub issues by-label](https://img.shields.io/github/issues/flutter/flutter/p%3A%20vector_math?label=)](https://github.com/flutter/flutter/labels/p%3A%20vector_math) | [![GitHub pull requests by-label](https://img.shields.io/github/issues-pr/flutter/core-packages/p%3A%20vector_math?label=)](https://github.com/flutter/core-packages/labels/p%3A%20vector_math) |

packages/vector_math/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- Remove the deprecated `SimplexNoise` class.
44
- Optimized the `identity` constructors on the `Matrix` classes.
5+
- Require Dart 3.10.0 or greater.
56

67
## 2.3.0
78

packages/vector_math/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ void main() {
163163

164164
To run the unit tests:
165165

166-
```
166+
```sh
167167
~/src/vector_math/> dart test
168168
```
169169

170170
To automatically generate the latest version of `vector_math_64`:
171171

172-
```
172+
```sh
173173
~/src/vector_math/> dart tool/generate_vector_math_64.dart
174174
```
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# TODO(stuartmorgan): Remove this; see https://github.com/flutter/flutter/issues/102679
2+
exempt_from_excerpts: true

packages/vector_math/pubspec.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
# Use of this source code is governed by a BSD-style license that can be
33
# found in the LICENSE file.
44
name: vector_math
5+
description: A vector math library for 2D and 3D applications, supporting 2D, 3D, and 4D matrices.
6+
repository: https://github.com/flutter/core-packages/tree/main/packages/vector_math
7+
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+vector_math%22
58
version: 2.4.0-wip
6-
description: A Vector Math library for 2D and 3D applications.
7-
repository: https://github.com/google/vector_math.dart
89

910
environment:
10-
sdk: ^3.7.0
11+
sdk: ^3.10.0
1112

1213
dev_dependencies:
1314
benchmark_harness: ^2.0.0
@@ -16,3 +17,6 @@ dev_dependencies:
1617
build_web_compilers: ^4.1.1
1718
path: ^1.9.0
1819
test: ^1.25.9
20+
21+
topics:
22+
- math

0 commit comments

Comments
 (0)