Skip to content

Commit 31e7289

Browse files
committed
Changed CONTRIBUTING.md to Use Latest Dart
1 parent 6174c0a commit 31e7289

5 files changed

Lines changed: 11 additions & 37 deletions

File tree

.github/workflows/dart.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ jobs:
1313
- name: Checkout branch
1414
uses: actions/checkout@v4
1515

16-
- name: Setup Dart SDK
16+
- name: Setup Dart SDK # This will use the latest version of dart unless specified otherwise.
1717
uses: dart-lang/setup-dart@v1 # https://github.com/dart-lang/setup-dart
18-
with:
19-
sdk: 3.7
2018

2119
- name: Install dependencies
2220
run: dart pub get

.github/workflows/dart_formatting.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ jobs:
1313
- name: Checkout branch
1414
uses: actions/checkout@v4
1515

16-
- name: Setup Dart SDK
16+
- name: Setup Dart SDK # This will use the latest version of dart unless specified otherwise.
1717
uses: dart-lang/setup-dart@v1 # https://github.com/dart-lang/setup-dart
18-
with:
19-
sdk: 3.7
2018

2119
- name: Install dependencies
2220
run: dart pub get

.github/workflows/gh-pages-dev.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ jobs:
2020
ref: gh-pages
2121
path: gh-pages-repo
2222

23-
- name: Setup Dart SDK
23+
- name: Setup Dart SDK # This will use the latest version of dart unless specified otherwise.
2424
uses: dart-lang/setup-dart@v1 # https://github.com/dart-lang/setup-dart
25-
with:
26-
sdk: 3.7
2725

2826
- name: Install dependencies
2927
run: dart pub get

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ jobs:
1919
ref: gh-pages
2020
path: gh-pages-repo
2121

22-
- name: Setup Dart SDK
22+
- name: Setup Dart SDK # This will use the latest version of dart unless specified otherwise.
2323
uses: dart-lang/setup-dart@v1 # https://github.com/dart-lang/setup-dart
24-
with:
25-
sdk: 3.7
2624

2725
- name: Install dependencies
2826
run: dart pub get

CONTRIBUTING.md

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -241,23 +241,17 @@ git checkout dev
241241

242242
### Installing Dart
243243

244-
This project requires using Dart version **3.7.3**, not the latest version. Click on a dropdown below for installation instructions for your operating system.
244+
This project requires using the latest Dart version. Click on a dropdown below for installation instructions for your operating system.
245245

246246
<!--TODO: Find a way to use code blocks with syntax highlighting inside <details>-->
247247

248248
<details><summary><strong>Windows</strong></summary>
249249
First, install <a href="https://chocolatey.org/install">Chocolatey</a> if you haven't already. If <code>choco help</code> shows a help menu for using Chocolatey, then you've set it up correctly.
250250

251-
Then, open a shell (cmd/Powershell) with Administrative privileges (go to Start type `cmd`, right-click on "Command Prompt", or type Powershell and right-click on "Powershell"; in both cases pick "Run as administrator") and install Dart 3.7.3:
251+
Then, open a shell (cmd/Powershell) with Administrative privileges (go to Start type `cmd`, right-click on "Command Prompt", or type Powershell and right-click on "Powershell"; in both cases pick "Run as administrator") and install Dart:
252252

253253
<pre>
254-
choco install dart-sdk --version 3.7.3
255-
</pre>
256-
257-
To stop Chocolatey from automatically updating Dart to the latest version, pin it:
258-
259-
<pre>
260-
choco pin --name="'dart-sdk'" --version="'3.7.3'"
254+
choco install dart-sdk
261255
</pre>
262256

263257
</details>
@@ -267,16 +261,10 @@ First, install <a href="https://brew.sh/">Homebrew</a> if you haven't already. I
267261

268262
It may help to run `brew tap dart-lang/dart` first.
269263

270-
Then, install Dart 3.7.3:
271-
272-
<pre>
273-
brew install dart@3.7.3
274-
</pre>
275-
276-
To stop Homebrew from automatically updating Dart to the latest version, pin it:
264+
Then, install Dart:
277265

278266
<pre>
279-
brew pin dart@3.7.3
267+
brew install dart
280268
</pre>
281269

282270
If running `dart` in a terminal now does not work, you may need to follow <a href="https://docs.brew.sh/FAQ#my-mac-apps-dont-find-homebrew-utilities">these instructions</a>.
@@ -292,17 +280,11 @@ wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo gpg --dea
292280
echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' | sudo tee /etc/apt/sources.list.d/dart_stable.list
293281
</pre>
294282

295-
Then, install Dart 3.7.3:
283+
Then, install Dart:
296284

297285
<pre>
298286
sudo apt-get update
299-
sudo apt-get install dart=3.7.3
300-
</pre>
301-
302-
To stop apt from automatically updating Dart to the latest version, hold it:
303-
304-
<pre>
305-
sudo apt-mark hold dart=3.7.3
287+
sudo apt-get install dart
306288
</pre>
307289

308290
</details>

0 commit comments

Comments
 (0)