We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe736f4 commit 976ff5cCopy full SHA for 976ff5c
scripts/check_api_breakage.sh
@@ -9,7 +9,7 @@ fi
9
10
# Get the current stable version of mapbox_maps_flutter on pub.dev
11
PACKAGE_NAME="mapbox_maps_flutter"
12
-PACKAGE_VERSION=$(curl -s "https://pub.dev/api/packages/$PACKAGE_NAME" | grep -o '"latest":{"version":"[^"]*' | grep -o '[0-9]\+\(\.[0-9]\+\)*')
+PACKAGE_VERSION=$(curl -s "https://pub.dev/api/packages/$PACKAGE_NAME") | jq .latest.version
13
echo "Current stable version of mapbox_maps_flutter: $PACKAGE_VERSION"
14
15
# Get the path of local mapbox-maps-flutter
0 commit comments