diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..0c87a20 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,38 @@ +# See Dependabot documentation for all configuration options: +# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + groups: + all-github-actions: + patterns: [ "*" ] + reviewers: + - "stuartmorgan" + labels: + - "team" + - "team: infra" + - "autosubmit" + # Updating patch versions for "github-actions" is too chatty. + # See https://github.com/flutter/flutter/issues/158350. + ignore: + - dependency-name: "*" + update-types: ["version-update:semver-patch"] + + # Android example apps. + - package-ecosystem: "gradle" + directories: + - /packages/vector_math/example/android/app + commit-message: + prefix: "[dependabot]" + schedule: + interval: "weekly" + labels: + - "autosubmit" + open-pull-requests-limit: 10 + ignore: + - dependency-name: "*" + update-types: ["version-update:semver-minor", "version-update:semver-patch"] diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..9035d79 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,9 @@ +'p: vactor_math': + - changed-files: + - any-glob-to-any-file: + - packages/vector_math/**/* + +'triage-framework': + - changed-files: + - any-glob-to-any-file: + - packages/vector_math/**/* diff --git a/.github/workflows/pull_request_label.yml b/.github/workflows/pull_request_label.yml new file mode 100644 index 0000000..8408efb --- /dev/null +++ b/.github/workflows/pull_request_label.yml @@ -0,0 +1,27 @@ +# This workflow applies labels to pull requests based on the +# paths that are modified in the pull request. +# +# Edit `.github/labeler.yml` and `.github/post_merge_labeler.yml` +# to configure labels. +# +# For more information, see: https://github.com/actions/labeler + +name: Pull Request Labeler + +on: + pull_request_target: + types: [opened, synchronize, reopened, closed] + +# Declare default permissions as read only. +permissions: read-all + +jobs: + label: + permissions: + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@f27b608878404679385c85cfa523b85ccb86e213 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true diff --git a/.repo_tool_config.yaml b/.repo_tool_config.yaml new file mode 100644 index 0000000..f829790 --- /dev/null +++ b/.repo_tool_config.yaml @@ -0,0 +1,30 @@ +# Repo-specific configuration for the flutter_plugin_tools repository tooling. + +repo_name: flutter/core-packages + +# The minimum Dart version that can be used as the minimum SDK constraint +# by packages in this repository. For example, if this is set to 3.10.0, then a +# package can have a minimum SDK version of 3.10.0, 3.11.0, 3.12.0, etc., but +# not 3.9.0. +# +# The major and minor version here should match the lowest version analyzed +# in legacy version analysis. +# TODO(stuartmorgan): Set up legacy analysis in this repo. For now this matches +# the N-2 used in flutter/packages, but we aren't actually testing N-1 or N-2. +min_dart: '3.10.0' + +# The list of external packages that are allowed as dependencies. +# All entries here must have an explanation for why they are here. See +# https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#Dependencies +allowed_dependencies: + # Dependencies that can be unpinned. Package should only ever be added here if + # we fully trust the package's development and publishing process. + unpinned: + ## Allowed by default: + # Dart-team-owned packages + - benchmark_harness + - build_runner + - build_test + - build_web_compilers + - path + - test diff --git a/README.md b/README.md index a16a152..b9d3a7e 100644 --- a/README.md +++ b/README.md @@ -37,4 +37,4 @@ These are the packages hosted in this repository: | Package | Pub | Points | Usage | Issues | Pull requests | |---------|-----|--------|-------|--------|---------------| -| [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) | +| [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) | diff --git a/packages/vector_math/CHANGELOG.md b/packages/vector_math/CHANGELOG.md index ac03ea2..ca4649d 100644 --- a/packages/vector_math/CHANGELOG.md +++ b/packages/vector_math/CHANGELOG.md @@ -2,6 +2,7 @@ - Remove the deprecated `SimplexNoise` class. - Optimized the `identity` constructors on the `Matrix` classes. +- Require Dart 3.10.0 or greater. ## 2.3.0 diff --git a/packages/vector_math/README.md b/packages/vector_math/README.md index fc7453f..644ff93 100644 --- a/packages/vector_math/README.md +++ b/packages/vector_math/README.md @@ -163,12 +163,12 @@ void main() { To run the unit tests: -``` +```sh ~/src/vector_math/> dart test ``` To automatically generate the latest version of `vector_math_64`: -``` +```sh ~/src/vector_math/> dart tool/generate_vector_math_64.dart ``` diff --git a/packages/vector_math/ci_config.yaml b/packages/vector_math/ci_config.yaml new file mode 100644 index 0000000..b352e13 --- /dev/null +++ b/packages/vector_math/ci_config.yaml @@ -0,0 +1,2 @@ +# TODO(stuartmorgan): Remove this; see https://github.com/flutter/flutter/issues/102679 +exempt_from_excerpts: true diff --git a/packages/vector_math/pubspec.yaml b/packages/vector_math/pubspec.yaml index 81daa64..ecc75e2 100644 --- a/packages/vector_math/pubspec.yaml +++ b/packages/vector_math/pubspec.yaml @@ -2,12 +2,13 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. name: vector_math +description: A vector math library for 2D and 3D applications, supporting 2D, 3D, and 4D matrices. +repository: https://github.com/flutter/core-packages/tree/main/packages/vector_math +issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+vector_math%22 version: 2.4.0-wip -description: A Vector Math library for 2D and 3D applications. -repository: https://github.com/google/vector_math.dart environment: - sdk: ^3.7.0 + sdk: ^3.10.0 dev_dependencies: benchmark_harness: ^2.0.0 @@ -16,3 +17,6 @@ dev_dependencies: build_web_compilers: ^4.1.1 path: ^1.9.0 test: ^1.25.9 + +topics: + - math