Skip to content

Commit fd60a77

Browse files
authored
chore: add devbox environment for pinned Flutter 3.29.2 setup (#200)
Adds devbox.json, devbox.lock, and .envrc to pin Flutter 3.29.2 and provide consistent dev environment scripts (get, analyze, test, check, codegen, pigeon).
1 parent f019744 commit fd60a77

3 files changed

Lines changed: 90 additions & 0 deletions

File tree

‎.envrc‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
# Automatically sets up your devbox environment whenever you cd into this
4+
# directory via our direnv integration.
5+
# Uses omit-nix-env as a temporary workaround: https://github.com/jetify-com/devbox/issues/1509
6+
7+
eval "$(devbox shellenv --init-hook --install --no-refresh-alias --omit-nix-env=true)"
8+
9+
# check out https://www.jetpack.io/devbox/docs/ide_configuration/direnv/
10+
# for more details

‎devbox.json‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.14.2/.schema/devbox.schema.json",
3+
"packages": {
4+
"flutter": "3.29.2-sdk-links"
5+
},
6+
"shell": {
7+
"init_hook": [
8+
"export PROJECT_ROOT=\"$(git rev-parse --show-toplevel 2>/dev/null || echo $DEVBOX_PROJECT_ROOT)\""
9+
],
10+
"scripts": {
11+
"get": ["cd \"$PROJECT_ROOT/packages/core\" && flutter pub get"],
12+
"analyze": ["cd \"$PROJECT_ROOT/packages/core\" && flutter analyze"],
13+
"test": ["cd \"$PROJECT_ROOT/packages/core\" && flutter test --coverage"],
14+
"check": [
15+
"devbox run get",
16+
"devbox run analyze",
17+
"devbox run test"
18+
],
19+
"codegen": ["cd \"$PROJECT_ROOT/packages/core\" && bash build_json_models.sh"],
20+
"pigeon": ["cd \"$PROJECT_ROOT/packages/core\" && bash build_pigeon_plugins.sh"]
21+
}
22+
}
23+
}

‎devbox.lock‎

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"lockfile_version": "1",
3+
"packages": {
4+
"flutter@3.29.2-sdk-links": {
5+
"last_modified": "2025-04-17T05:47:26Z",
6+
"resolved": "github:NixOS/nixpkgs/ebe4301cbd8f81c4f8d3244b3632338bbeb6d49c#flutter",
7+
"source": "devbox-search",
8+
"version": "3.29.2-sdk-links",
9+
"systems": {
10+
"aarch64-darwin": {
11+
"outputs": [
12+
{
13+
"name": "out",
14+
"path": "/nix/store/794lymy0hm702i1sh3gh2n1yxlzf9pcm-flutter-wrapped-3.29.2-sdk-links",
15+
"default": true
16+
}
17+
],
18+
"store_path": "/nix/store/794lymy0hm702i1sh3gh2n1yxlzf9pcm-flutter-wrapped-3.29.2-sdk-links"
19+
},
20+
"aarch64-linux": {
21+
"outputs": [
22+
{
23+
"name": "out",
24+
"path": "/nix/store/4gm4n0pj4dj6hcrkf13dn94vf25wm505-flutter-wrapped-3.29.2-sdk-links",
25+
"default": true
26+
}
27+
],
28+
"store_path": "/nix/store/4gm4n0pj4dj6hcrkf13dn94vf25wm505-flutter-wrapped-3.29.2-sdk-links"
29+
},
30+
"x86_64-darwin": {
31+
"outputs": [
32+
{
33+
"name": "out",
34+
"path": "/nix/store/lwwg75lpllgacss5xjs4wfcnrri6biza-flutter-wrapped-3.29.2-sdk-links",
35+
"default": true
36+
}
37+
],
38+
"store_path": "/nix/store/lwwg75lpllgacss5xjs4wfcnrri6biza-flutter-wrapped-3.29.2-sdk-links"
39+
},
40+
"x86_64-linux": {
41+
"outputs": [
42+
{
43+
"name": "out",
44+
"path": "/nix/store/g32kahvyc0lxy8zl8kfrcffv7nvb6fkd-flutter-wrapped-3.29.2-sdk-links",
45+
"default": true
46+
}
47+
],
48+
"store_path": "/nix/store/g32kahvyc0lxy8zl8kfrcffv7nvb6fkd-flutter-wrapped-3.29.2-sdk-links"
49+
}
50+
}
51+
},
52+
"github:NixOS/nixpkgs/nixpkgs-unstable": {
53+
"last_modified": "2026-05-06T02:58:03Z",
54+
"resolved": "github:NixOS/nixpkgs/ed67bc86e84e51d4a88e73c7fd36006dc876476f?lastModified=1778036283&narHash=sha256-62EWg6lI0qyzm7oAx5cAnGkLutvJsRBe0KkEW2JDZCE%3D"
55+
}
56+
}
57+
}

0 commit comments

Comments
 (0)