Skip to content

Commit 95d396a

Browse files
committed
Create dev.nix file for IDX
1 parent 58f92d3 commit 95d396a

File tree

16 files changed

+308
-236
lines changed

16 files changed

+308
-236
lines changed

.idx/dev.nix

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# To learn more about how to use Nix to configure your environment
2+
# see: https://developers.google.com/idx/guides/customize-idx-env
3+
{ pkgs, ... }: {
4+
# Which nixpkgs channel to use.
5+
channel = "stable-23.11"; # or "unstable"
6+
7+
# Use https://search.nixos.org/packages to find packages
8+
packages = [
9+
pkgs.nodePackages.firebase-tools
10+
pkgs.jdk17
11+
pkgs.unzip
12+
pkgs.flutter
13+
];
14+
15+
# Sets environment variables in the workspace
16+
env = { };
17+
idx = {
18+
# Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
19+
extensions = [
20+
"Dart-Code.flutter"
21+
"Dart-Code.dart-code"
22+
];
23+
24+
# Enable previews
25+
previews = {
26+
enable = true;
27+
previews = {
28+
web = {
29+
command = ["flutter" "run" "--machine" "-d" "web-server" "--web-hostname" "0.0.0.0" "--web-port" "$PORT"];
30+
manager = "flutter";
31+
# TODO(developer): replace 'analytics' with the subfolder that you would like to preview
32+
cwd = "analytics";
33+
};
34+
android = {
35+
command = ["flutter" "run" "--machine" "-d" "android" "-d" "localhost:5555"];
36+
manager = "flutter";
37+
# TODO(developer): replace 'analytics' with the subfolder that you would like to preview
38+
cwd = "analytics";
39+
};
40+
};
41+
};
42+
43+
# Workspace lifecycle hooks
44+
workspace = {
45+
# Runs when a workspace is first created
46+
onCreate = {
47+
build-flutter = ''
48+
cd /home/user/myapp/android
49+
50+
./gradlew \
51+
--parallel \
52+
-Pverbose=true \
53+
-Ptarget-platform=android-x86 \
54+
-Ptarget=/home/user/myapp/lib/main.dart \
55+
-Pbase-application-name=android.app.Application \
56+
-Pdart-defines=RkxVVFRFUl9XRUJfQ0FOVkFTS0lUX1VSTD1odHRwczovL3d3dy5nc3RhdGljLmNvbS9mbHV0dGVyLWNhbnZhc2tpdC85NzU1MDkwN2I3MGY0ZjNiMzI4YjZjMTYwMGRmMjFmYWMxYTE4ODlhLw== \
57+
-Pdart-obfuscation=false \
58+
-Ptrack-widget-creation=true \
59+
-Ptree-shake-icons=false \
60+
-Pfilesystem-scheme=org-dartlang-root \
61+
assembleDebug
62+
63+
# TODO: Execute web build in debug mode.
64+
# flutter run does this transparently either way
65+
# https://github.com/flutter/flutter/issues/96283#issuecomment-1144750411
66+
# flutter build web --profile --dart-define=Dart2jsOptimization=O0
67+
68+
adb -s localhost:5555 wait-for-device
69+
'';
70+
};
71+
# Runs when the workspace is (re)started
72+
onStart = {
73+
# Example: start a background task to watch and re-build backend code
74+
# watch-backend = "npm run watch-backend";
75+
};
76+
};
77+
};
78+
}

admob/pubspec.lock

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -87,26 +87,26 @@ packages:
8787
dependency: transitive
8888
description:
8989
name: leak_tracker
90-
sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa"
90+
sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a"
9191
url: "https://pub.dev"
9292
source: hosted
93-
version: "10.0.0"
93+
version: "10.0.4"
9494
leak_tracker_flutter_testing:
9595
dependency: transitive
9696
description:
9797
name: leak_tracker_flutter_testing
98-
sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0
98+
sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8"
9999
url: "https://pub.dev"
100100
source: hosted
101-
version: "2.0.1"
101+
version: "3.0.3"
102102
leak_tracker_testing:
103103
dependency: transitive
104104
description:
105105
name: leak_tracker_testing
106-
sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47
106+
sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
107107
url: "https://pub.dev"
108108
source: hosted
109-
version: "2.0.1"
109+
version: "3.0.1"
110110
lints:
111111
dependency: transitive
112112
description:
@@ -135,10 +135,10 @@ packages:
135135
dependency: transitive
136136
description:
137137
name: meta
138-
sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04
138+
sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136"
139139
url: "https://pub.dev"
140140
source: hosted
141-
version: "1.11.0"
141+
version: "1.12.0"
142142
path:
143143
dependency: transitive
144144
description:
@@ -204,10 +204,10 @@ packages:
204204
dependency: transitive
205205
description:
206206
name: test_api
207-
sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
207+
sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f"
208208
url: "https://pub.dev"
209209
source: hosted
210-
version: "0.6.1"
210+
version: "0.7.0"
211211
vector_math:
212212
dependency: transitive
213213
description:
@@ -220,10 +220,10 @@ packages:
220220
dependency: transitive
221221
description:
222222
name: vm_service
223-
sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957
223+
sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec"
224224
url: "https://pub.dev"
225225
source: hosted
226-
version: "13.0.0"
226+
version: "14.2.1"
227227
webview_flutter:
228228
dependency: transitive
229229
description:
@@ -257,5 +257,5 @@ packages:
257257
source: hosted
258258
version: "3.12.0"
259259
sdks:
260-
dart: ">=3.2.3 <4.0.0"
261-
flutter: ">=3.16.6"
260+
dart: ">=3.3.0 <4.0.0"
261+
flutter: ">=3.18.0-18.0.pre.54"

analytics/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ subprojects {
2929
project.evaluationDependsOn(':app')
3030
}
3131

32-
task clean(type: Delete) {
32+
tasks.register("clean", Delete) {
3333
delete rootProject.buildDir
3434
}

analytics/pubspec.lock

Lines changed: 31 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ packages:
55
dependency: transitive
66
description:
77
name: _flutterfire_internals
8-
sha256: "2489c399d8b23a12704bd9e056e3df957c69ceec621f4fc8d69fa7cd5211d1f4"
8+
sha256: f5628cd9c92ed11083f425fd1f8f1bc60ecdda458c81d73b143aeda036c35fe7
99
url: "https://pub.dev"
1010
source: hosted
11-
version: "1.3.24"
11+
version: "1.3.16"
1212
async:
1313
dependency: transitive
1414
description:
@@ -45,10 +45,10 @@ packages:
4545
dependency: transitive
4646
description:
4747
name: collection
48-
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
48+
sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
4949
url: "https://pub.dev"
5050
source: hosted
51-
version: "1.18.0"
51+
version: "1.17.2"
5252
cupertino_icons:
5353
dependency: "direct main"
5454
description:
@@ -69,34 +69,34 @@ packages:
6969
dependency: "direct main"
7070
description:
7171
name: firebase_analytics
72-
sha256: c7f243b336232d01f2f7913d937107bc3a147e2aefb3008dbe0a56d2cf134c3e
72+
sha256: "0240076090d77045d757aecb090616066d23b343840d4c21074094d6fe40a184"
7373
url: "https://pub.dev"
7474
source: hosted
75-
version: "10.8.8"
75+
version: "10.8.0"
7676
firebase_analytics_platform_interface:
7777
dependency: transitive
7878
description:
7979
name: firebase_analytics_platform_interface
80-
sha256: "2e68d302f566f2dec15b9d5a0c710c5d4c759a041aea5b33548785c198921541"
80+
sha256: "6d9baa077d16b47ef5f19d982c4fc475597991aa53b0c601216faa3e1cdab45f"
8181
url: "https://pub.dev"
8282
source: hosted
83-
version: "3.9.8"
83+
version: "3.9.0"
8484
firebase_analytics_web:
8585
dependency: transitive
8686
description:
8787
name: firebase_analytics_web
88-
sha256: "5975aa69c58cc1f66597fc6e769b77b7cd8e3b32c6f9df6b36a496286399b510"
88+
sha256: "89a740249bce9d52a99db4e501be6087ca6749c73c47cff2b174802be10abd81"
8989
url: "https://pub.dev"
9090
source: hosted
91-
version: "0.5.5+20"
91+
version: "0.5.5+12"
9292
firebase_core:
9393
dependency: "direct main"
9494
description:
9595
name: firebase_core
96-
sha256: a746f861618eef57a11d8b658a2db1fa5a336fc82ba65b7763d7e2292687de2b
96+
sha256: "96607c0e829a581c2a483c658f04e8b159964c3bae2730f73297070bc85d40bb"
9797
url: "https://pub.dev"
9898
source: hosted
99-
version: "2.26.0"
99+
version: "2.24.2"
100100
firebase_core_platform_interface:
101101
dependency: transitive
102102
description:
@@ -109,10 +109,10 @@ packages:
109109
dependency: transitive
110110
description:
111111
name: firebase_core_web
112-
sha256: c8e1d59385eee98de63c92f961d2a7062c5d9a65e7f45bdc7f1b0b205aab2492
112+
sha256: d585bdf3c656c3f7821ba1bd44da5f13365d22fcecaf5eb75c4295246aaa83c0
113113
url: "https://pub.dev"
114114
source: hosted
115-
version: "2.11.5"
115+
version: "2.10.0"
116116
flutter:
117117
dependency: "direct main"
118118
description: flutter
@@ -144,30 +144,6 @@ packages:
144144
url: "https://pub.dev"
145145
source: hosted
146146
version: "0.6.7"
147-
leak_tracker:
148-
dependency: transitive
149-
description:
150-
name: leak_tracker
151-
sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa"
152-
url: "https://pub.dev"
153-
source: hosted
154-
version: "10.0.0"
155-
leak_tracker_flutter_testing:
156-
dependency: transitive
157-
description:
158-
name: leak_tracker_flutter_testing
159-
sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0
160-
url: "https://pub.dev"
161-
source: hosted
162-
version: "2.0.1"
163-
leak_tracker_testing:
164-
dependency: transitive
165-
description:
166-
name: leak_tracker_testing
167-
sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47
168-
url: "https://pub.dev"
169-
source: hosted
170-
version: "2.0.1"
171147
lints:
172148
dependency: transitive
173149
description:
@@ -180,34 +156,34 @@ packages:
180156
dependency: transitive
181157
description:
182158
name: matcher
183-
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
159+
sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
184160
url: "https://pub.dev"
185161
source: hosted
186-
version: "0.12.16+1"
162+
version: "0.12.16"
187163
material_color_utilities:
188164
dependency: transitive
189165
description:
190166
name: material_color_utilities
191-
sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
167+
sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
192168
url: "https://pub.dev"
193169
source: hosted
194-
version: "0.8.0"
170+
version: "0.5.0"
195171
meta:
196172
dependency: transitive
197173
description:
198174
name: meta
199-
sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04
175+
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
200176
url: "https://pub.dev"
201177
source: hosted
202-
version: "1.11.0"
178+
version: "1.9.1"
203179
path:
204180
dependency: transitive
205181
description:
206182
name: path
207-
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
183+
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
208184
url: "https://pub.dev"
209185
source: hosted
210-
version: "1.9.0"
186+
version: "1.8.3"
211187
plugin_platform_interface:
212188
dependency: transitive
213189
description:
@@ -233,18 +209,18 @@ packages:
233209
dependency: transitive
234210
description:
235211
name: stack_trace
236-
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
212+
sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
237213
url: "https://pub.dev"
238214
source: hosted
239-
version: "1.11.1"
215+
version: "1.11.0"
240216
stream_channel:
241217
dependency: transitive
242218
description:
243219
name: stream_channel
244-
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
220+
sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
245221
url: "https://pub.dev"
246222
source: hosted
247-
version: "2.1.2"
223+
version: "2.1.1"
248224
string_scanner:
249225
dependency: transitive
250226
description:
@@ -265,10 +241,10 @@ packages:
265241
dependency: transitive
266242
description:
267243
name: test_api
268-
sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
244+
sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
269245
url: "https://pub.dev"
270246
source: hosted
271-
version: "0.6.1"
247+
version: "0.6.0"
272248
vector_math:
273249
dependency: transitive
274250
description:
@@ -277,22 +253,14 @@ packages:
277253
url: "https://pub.dev"
278254
source: hosted
279255
version: "2.1.4"
280-
vm_service:
281-
dependency: transitive
282-
description:
283-
name: vm_service
284-
sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957
285-
url: "https://pub.dev"
286-
source: hosted
287-
version: "13.0.0"
288256
web:
289257
dependency: transitive
290258
description:
291259
name: web
292-
sha256: "4188706108906f002b3a293509234588823c8c979dc83304e229ff400c996b05"
260+
sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
293261
url: "https://pub.dev"
294262
source: hosted
295-
version: "0.4.2"
263+
version: "0.1.4-beta"
296264
sdks:
297-
dart: ">=3.2.0 <4.0.0"
265+
dart: ">=3.1.0-185.0.dev <4.0.0"
298266
flutter: ">=3.3.0"

0 commit comments

Comments
 (0)