Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' into feat/next/analytics_migrate_new_new
- Loading branch information
Showing
58 changed files
with
3,377 additions
and
326 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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 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 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 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 |
---|---|---|
|
@@ -5,3 +5,4 @@ analyzer: | |
public_member_api_docs: ignore | ||
exclude: | ||
- '**/*.g.dart' | ||
- external/ |
This file contains 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 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,36 @@ | ||
# Versioning Algorithm | ||
|
||
The `aft version-bump` command uses Git history + [conventional commit](https://www.conventionalcommits.org/en/v1.0.0/) formatting to determine a suitable next version for a package along with the required changes for depending packages. | ||
|
||
1. Let `packages` be the set of all packages in the repo which are publishable to `pub.dev`. | ||
2. For every package `P` in `packages`: | ||
1. Let `component` be the component of `P`, if any. | ||
2. Let `baseRef` be the commit of the last release of `P`. | ||
3. Let `headRef` be the releaseable commit of `P` (defaults to `HEAD`). | ||
4. Let `history` be the list of git commits in the range `baseRef..headRef` which affected `P`, i.e. those commits which included changes to files in `P`. | ||
5. Let `nextVersion = currentVersion`. | ||
6. For each `commit` in `history`: | ||
1. If `commit` is a version bump (i.e. `chore(version)`), ignore it. | ||
2. If `commit` is a merge commit, update dependencies based on the packages changed by the commit. | ||
1. The thinking here is that PRs should either be squashed into a single commit or merged as a set of independent commits capped off by a merge commit. The independent commits are isolated changes which are used to update changelogs and bump versions. The merge commit is then used solely for associating previous commits and updating constraints accordingly. | ||
3. If `commit` is a breaking change (i.e. `feat(auth)!`), set `bumpType = breaking`. | ||
1. else if `commit`'s type is `feat`, set `bumpType = nonBreaking`. | ||
2. else, set `bumpType = patch`. | ||
4. If `commit` is a noteworthy change (scope is one of `feat`, `fix`, `bug`, `perf`, or `revert` or it's a breaking change), set `includeInChangelog = true`. | ||
5. Let `proposedVersion = currentVersion.bump(bumpType)` | ||
6. Let `nextVersion = max(nextVersion, proposedVersion)` | ||
7. If `nextVersion > currentVersion`: | ||
1. Update `pubspec.yaml`, set `version = nextVersion` | ||
2. If `includeInChangelog`: | ||
1. Update `CHANGELOG.md` with an entry for `commit`. | ||
3. If `bumpType == breaking`: | ||
1. For every package `Q` which directly depends on `P`: | ||
1. Bump the version of `Q` with `bumpType = patch` and `includeInChangelog = false`. | ||
2. Update `Q`'s constraint on `P`. | ||
4. If `bumpType == breaking` or `bumpType == nonBreaking` and `component != null`: | ||
1. For every package `Q` in `component`: | ||
1. Bump the version of `Q` with the same `bumpType` as `P` and `includeInChangelog = false`. | ||
8. If `component` has a summary package: | ||
1. Update `CHANGELOG.md` in the summary package with `commit`. | ||
9. For every package `Q` which was affected by `commit`: | ||
1. Update `Q`'s constraint on `P` using `nextVersion`. |
Submodule libgit2dart
added at
34d492
This file contains 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,29 @@ | ||
diff --git a/pubspec.yaml b/pubspec.yaml | ||
index 5acda72..2831e58 100644 | ||
--- a/pubspec.yaml | ||
+++ b/pubspec.yaml | ||
@@ -8,7 +8,6 @@ homepage: https://github.com/SkinnyMind/libgit2dart | ||
|
||
environment: | ||
sdk: ">=2.18.0 <3.0.0" | ||
- flutter: ">=3.3.0" | ||
|
||
dependencies: | ||
args: ^2.3.0 | ||
@@ -23,16 +22,6 @@ dev_dependencies: | ||
lints: ^2.0.0 | ||
test: ^1.20.0 | ||
|
||
-flutter: | ||
- plugin: | ||
- platforms: | ||
- linux: | ||
- pluginClass: Libgit2dartPlugin | ||
- macos: | ||
- pluginClass: Libgit2dartPlugin | ||
- windows: | ||
- pluginClass: Libgit2dartPlugin | ||
- | ||
ffigen: | ||
output: "lib/src/bindings/libgit2_bindings.dart" | ||
headers: |
This file contains 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.