Skip to content

Commit cdc68bf

Browse files
kuhnroyaljosxha
andauthored
Prepare 0.20.0 release (#443)
Co-authored-by: Joscha <[email protected]>
1 parent d5306f1 commit cdc68bf

File tree

8 files changed

+40
-66
lines changed

8 files changed

+40
-66
lines changed

CHANGELOG.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## UNRELEASED
1+
## 0.20.0
22

33
A lot of files/classes have been renamed and moved around in this release.
44
If you notice any build errors, please make sure to run `flutter clean`.
@@ -20,15 +20,18 @@ If you notice any build errors, please make sure to run `flutter clean`.
2020
for more information.
2121
* Renamed the method channel to `plugins.flutter.io/maplibre_gl_*` in all
2222
packages.
23-
* Renamed `Maplibre` to `MapLibre` to be in line with maplibre-native
24-
(affects for example the classes MaplibreMap and MaplibreMapController).
23+
* Renamed "Maplibre" to "MapLibre" to be in line with maplibre-native
24+
(affects for example the classes `MaplibreMap` and `MaplibreMapController`).
2525

2626
### Changes
2727

2828
* Added support for Swift Package Manager usage on iOS.
2929
* Migrated main iOS plugin class from Objective-C to Swift.
3030
* Renamed iOS plugin classes from `Mapbox` to `MapLibre`.
3131

32+
**Full Changelog**:
33+
[v0.19.0+2...v0.20.0](https://github.com/maplibre/flutter-maplibre-gl/compare/v0.19.0+2...v0.20.0)
34+
3235
## 0.19.0
3336

3437
This is the first version where all packages are published on pub.dev. Please

RELEASE.md

Lines changed: 22 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
1-
# Release Process
21

3-
This document describes the steps needed to make a release:
42

5-
## **On the main branch:**
3+
# Release Process
64

7-
1. Update the top-level `CHANGELOG.md` with the commits/PRs since the previous
8-
release (the changelogs for the other two packages link there). Ideally at
9-
least PRs with breaking changes should already have modified the changelog to
10-
list their breaking change.
5+
This document describes the steps needed to make a release.
6+
All packages are versioned and released together.
117

12-
2. Update the library version in `pubspec.yaml` for each supported library:
13-
- `maplibre_gl_platform_interface`
14-
- `maplibre_gl_web`
15-
- `flutter-maplibre-gl`
8+
## Preparing a release
169

17-
### Version numbering
10+
### Define the release version number
1811

1912
As long as we are on major version 0 (i.e. version number 0.xx.xx), we increase
2013
the minor component (e.g. from 0.16.0 to 0.17.0) for every breaking/significant
@@ -23,52 +16,28 @@ release.
2316
We may want to make releases where we only increase the patch version (the final
2417
digits) for small bug-fix-releases or similar.
2518

26-
## Only on the GitHub release branch
27-
28-
1. After performing the above changes on the main branch (new changelog and
29-
versions), create a new git release branch from the main branch, named
30-
like `git-release-x.y.z`.
31-
32-
2. On that branch:
33-
34-
a. In `flutter-maplibre-gl` and `maplibre_gl_web` in their respective
35-
pubspec.yaml file, change the `ref` value for the maplibre git dependencies
36-
from `main` to `git-release-x.y.z` (the new git release branch).
37-
38-
b. In the example app's pubspec.yaml: change the git refs
39-
for `maplibre_gl_platform_interface` and `maplibre_gl_platform_interface` to
40-
the new git release branch and comment out the `dependency_overrides`. Then
41-
the example app will use the packages from this git release branch, instead
42-
of their local copies. This way, inter-package dependencies can be tested and
43-
users can see how to correctly use the release in their app.
44-
45-
4. Then, create a GitHub release (`x.y.z`) with a new git tag (`x.y.z`) from
46-
this git release branch (This can be done from the GitHub web interface).
47-
48-
## Only on the pub release branch
19+
### Update the version number
4920

50-
1. After performing the above changes on the git release branch, create a new
51-
pub release branch from the git release branch, named
52-
like `pub-release-x.y.z`.
21+
Update the library version in `pubspec.yaml` for each library:
22+
- `maplibre_gl_platform_interface`
23+
- `maplibre_gl_web`
24+
- `maplibre_gl` (root directory)
5325

54-
2. On that branch:
26+
Ensure that also the dependent sub-packages are updated to the new version.
5527

56-
a. In `flutter-maplibre-gl` and `maplibre_gl_web` in their pubspec.yaml files
57-
change the maplibre git dependencies to hosted dependencies (regular pub.dev
58-
dependencies) with the same version number.
28+
### Update the changelog
5929

60-
b. In the example apps's pubspec.yaml file, change
61-
the `maplibre_gl_platform_interface` and `maplibre_gl_platform_interface`
62-
dependencies to use the hosted versions from pub.dev as well.
30+
Update the `maplibre_gl` (root directory) `CHANGELOG.md` with the commits/PRs since the previous
31+
release (the changelogs for the other two packages link there). Ideally at
32+
least PRs with breaking changes should already have modified the changelog to
33+
list their breaking change.
6334

64-
### Publishing order to pub.dev
35+
### Create a PR
6536

66-
Then the 3 plugins can be published from this pub release branch in this order (
67-
because of the inter-package dependencies):
37+
Commit all changes and create a PR targeting the main branch.
6838

69-
1. `maplibre_gl_platform_interface`
70-
2. `maplibre_gl_web`
71-
3. `flutter-maplibre-gl`
39+
## Creating a release
7240

73-
(For the first two, of course only publish the contents of the relevant
74-
subfolder with the same name)
41+
After the release PR has been merged, the release can be created
42+
by creating & pushing a tag on the main branch in the format `vVERSION`,
43+
for example `v0.20.0`.

example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ environment:
1212
dependencies:
1313
flutter:
1414
sdk: flutter
15-
16-
maplibre_gl: ^0.19.0
15+
maplibre_gl:
16+
path: ..
1717
location: ^5.0.3
1818
path_provider: ^2.0.15
1919
http: ^1.1.0

maplibre_gl_platform_interface/LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
flutter-maplibre-gl Copyright (c) 2023, MapLibre contributors.
12
flutter-maplibre-gl Copyright (c) 2021, m0nac0.
23

34
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

maplibre_gl_platform_interface/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: maplibre_gl_platform_interface
2-
description: A common platform interface for the maplibre_gl plugin.
3-
version: 0.19.0+2
2+
description: A common platform interface for the maplibre_gl plugin. This package is only intended to be used by the maplibre_gl package.
3+
version: 0.20.0
44
repository: https://github.com/maplibre/flutter-maplibre-gl
55
issue_tracker: https://github.com/maplibre/flutter-maplibre-gl/issues
66

maplibre_gl_web/LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
flutter-maplibre-gl Copyright (c) 2023, MapLibre contributors.
12
flutter-maplibre-gl Copyright (c) 2021, m0nac0.
23

34
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

maplibre_gl_web/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: maplibre_gl_web
2-
description: Web platform implementation of maplibre_gl
3-
version: 0.19.0+2
2+
description: Web platform implementation of maplibre_gl. This package is only intended to be used by the maplibre_gl package.
3+
version: 0.20.0
44
repository: https://github.com/maplibre/flutter-maplibre-gl
55
issue_tracker: https://github.com/maplibre/flutter-maplibre-gl/issues
66

@@ -22,7 +22,7 @@ dependencies:
2222
flutter_web_plugins:
2323
sdk: flutter
2424
meta: ^1.3.0
25-
maplibre_gl_platform_interface: ^0.19.0+2
25+
maplibre_gl_platform_interface: ^0.20.0
2626
image: ^4.0.17
2727

2828
dev_dependencies:

pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: maplibre_gl
22
description: A Flutter plugin for integrating MapLibre Maps inside a Flutter application on Android, iOS and web platforms.
3-
version: 0.19.0+2
3+
version: 0.20.0
44
repository: https://github.com/maplibre/flutter-maplibre-gl
55
issue_tracker: https://github.com/maplibre/flutter-maplibre-gl/issues
66

@@ -11,8 +11,8 @@ environment:
1111
dependencies:
1212
flutter:
1313
sdk: flutter
14-
maplibre_gl_platform_interface: ^0.19.0+2
15-
maplibre_gl_web: ^0.19.0+2
14+
maplibre_gl_platform_interface: ^0.20.0
15+
maplibre_gl_web: ^0.20.0
1616

1717
dev_dependencies:
1818
very_good_analysis: ^5.0.0

0 commit comments

Comments
 (0)