@underpeaks/generator-flutter 1.0.55 → 1.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pubspec.d.ts","sourceRoot":"","sources":["../../src/templates/pubspec.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE/D,wBAAgB,eAAe,CAC7B,WAAW,EAAG,MAAM,EACpB,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"pubspec.d.ts","sourceRoot":"","sources":["../../src/templates/pubspec.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE/D,wBAAgB,eAAe,CAC7B,WAAW,EAAG,MAAM,EACpB,YAAY,EAAE,MAAM,EACpB,aAAa,GAAE,OAAe,GAC7B,aAAa,CA+Ff"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.generatePubspec = generatePubspec;
|
|
4
|
-
function generatePubspec(projectName, stateManager,
|
|
5
|
-
// NAVIGATOR/MAPS: only add the google_maps_flutter dependency when the
|
|
6
|
-
// project actually has a location-input field somewhere — no point
|
|
7
|
-
// pulling in a native-platform-dependent package (and the setup burden
|
|
8
|
-
// that comes with it) for projects that never use it.
|
|
9
|
-
needsLocation = false) {
|
|
4
|
+
function generatePubspec(projectName, stateManager, needsLocation = false) {
|
|
10
5
|
const name = projectName
|
|
11
6
|
.toLowerCase()
|
|
12
7
|
.replace(/\s+/g, '_')
|
|
@@ -21,7 +16,12 @@ needsLocation = false) {
|
|
|
21
16
|
lines.push(`publish_to: none`);
|
|
22
17
|
lines.push(``);
|
|
23
18
|
lines.push(`environment:`);
|
|
24
|
-
lines.push(`
|
|
19
|
+
lines.push(` # FIX: bumped from '>=3.3.0 <4.0.0' — the newer json_serializable/`);
|
|
20
|
+
lines.push(` # build_runner versions (pulled in to fix the analyzer crash) require`);
|
|
21
|
+
lines.push(` # ^3.8.0. A too-low SDK constraint here doesn't hard-fail, but causes`);
|
|
22
|
+
lines.push(` # a language-version mismatch warning and unreliable build_runner`);
|
|
23
|
+
lines.push(` # behavior.`);
|
|
24
|
+
lines.push(` sdk: '>=3.8.0 <4.0.0'`);
|
|
25
25
|
lines.push(``);
|
|
26
26
|
lines.push(`dependencies:`);
|
|
27
27
|
lines.push(` flutter:`);
|
|
@@ -60,12 +60,6 @@ needsLocation = false) {
|
|
|
60
60
|
lines.push(` # Models — Freezed + json_serializable (build_runner runs`);
|
|
61
61
|
lines.push(` # automatically after \`nxf generate\`, see .g.dart/.freezed.dart`);
|
|
62
62
|
lines.push(` # companion files next to each model)`);
|
|
63
|
-
lines.push(` # FIX: bumped freezed_annotation/json_annotation/build_runner/freezed/`);
|
|
64
|
-
lines.push(` # json_serializable — the previously pinned versions' bundled 'analyzer'`);
|
|
65
|
-
lines.push(` # dependency didn't support newer Dart SDK language features`);
|
|
66
|
-
lines.push(` # (dot-shorthand property access), causing build_runner to crash with`);
|
|
67
|
-
lines.push(` # "Missing implementation of visitDotShorthandPropertyAccess" on any`);
|
|
68
|
-
lines.push(` # project using a recent Dart SDK (3.13+).`);
|
|
69
63
|
lines.push(` freezed_annotation: ^3.1.0`);
|
|
70
64
|
lines.push(` json_annotation: ^4.12.0`);
|
|
71
65
|
lines.push(``);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pubspec.js","sourceRoot":"","sources":["../../src/templates/pubspec.ts"],"names":[],"mappings":";;AAGA,
|
|
1
|
+
{"version":3,"file":"pubspec.js","sourceRoot":"","sources":["../../src/templates/pubspec.ts"],"names":[],"mappings":";;AAGA,0CAmGC;AAnGD,SAAgB,eAAe,CAC7B,WAAoB,EACpB,YAAoB,EACpB,gBAAyB,KAAK;IAE9B,MAAM,IAAI,GAAG,W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