@underpeaks/generator-flutter 1.0.54 → 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:`);
|
|
@@ -31,11 +31,11 @@ needsLocation = false) {
|
|
|
31
31
|
lines.push(` http: ^1.2.1`);
|
|
32
32
|
lines.push(``);
|
|
33
33
|
lines.push(` # Navigation`);
|
|
34
|
-
lines.push(` go_router: ^14.
|
|
34
|
+
lines.push(` go_router: ^14.8.1`);
|
|
35
35
|
lines.push(``);
|
|
36
36
|
lines.push(` # State management`);
|
|
37
37
|
if (stateManager === 'riverpod') {
|
|
38
|
-
lines.push(` flutter_riverpod: ^2.
|
|
38
|
+
lines.push(` flutter_riverpod: ^2.6.1`);
|
|
39
39
|
}
|
|
40
40
|
else if (stateManager === 'bloc') {
|
|
41
41
|
lines.push(` flutter_bloc: ^8.1.5`);
|
|
@@ -46,13 +46,13 @@ needsLocation = false) {
|
|
|
46
46
|
}
|
|
47
47
|
lines.push(``);
|
|
48
48
|
lines.push(` # Fonts`);
|
|
49
|
-
lines.push(` google_fonts: ^6.
|
|
49
|
+
lines.push(` google_fonts: ^6.3.3`);
|
|
50
50
|
lines.push(``);
|
|
51
51
|
lines.push(` # Local storage`);
|
|
52
|
-
lines.push(` shared_preferences: ^2.
|
|
52
|
+
lines.push(` shared_preferences: ^2.5.5`);
|
|
53
53
|
lines.push(``);
|
|
54
54
|
lines.push(` # Environment config`);
|
|
55
|
-
lines.push(` flutter_dotenv: ^5.1
|
|
55
|
+
lines.push(` flutter_dotenv: ^5.2.1`);
|
|
56
56
|
lines.push(``);
|
|
57
57
|
lines.push(` # Utils`);
|
|
58
58
|
lines.push(` intl: ^0.19.0`);
|
|
@@ -60,12 +60,12 @@ 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(` freezed_annotation: ^
|
|
64
|
-
lines.push(` json_annotation: ^4.
|
|
63
|
+
lines.push(` freezed_annotation: ^3.1.0`);
|
|
64
|
+
lines.push(` json_annotation: ^4.12.0`);
|
|
65
65
|
lines.push(``);
|
|
66
66
|
lines.push(` # File/image picking for upload-type form fields`);
|
|
67
|
-
lines.push(` image_picker: ^1.
|
|
68
|
-
lines.push(` file_picker: ^8.
|
|
67
|
+
lines.push(` image_picker: ^1.2.2`);
|
|
68
|
+
lines.push(` file_picker: ^8.3.7`);
|
|
69
69
|
if (needsLocation) {
|
|
70
70
|
lines.push(``);
|
|
71
71
|
lines.push(` # Maps for location-input fields — also needs GOOGLE_MAPS_API_KEY in`);
|
|
@@ -77,10 +77,10 @@ needsLocation = false) {
|
|
|
77
77
|
lines.push(`dev_dependencies:`);
|
|
78
78
|
lines.push(` flutter_test:`);
|
|
79
79
|
lines.push(` sdk: flutter`);
|
|
80
|
-
lines.push(` flutter_lints: ^
|
|
81
|
-
lines.push(` build_runner: ^2.
|
|
82
|
-
lines.push(` freezed: ^
|
|
83
|
-
lines.push(` json_serializable: ^6.
|
|
80
|
+
lines.push(` flutter_lints: ^6.0.0`);
|
|
81
|
+
lines.push(` build_runner: ^2.16.1`);
|
|
82
|
+
lines.push(` freezed: ^4.0.1`);
|
|
83
|
+
lines.push(` json_serializable: ^6.14.1`);
|
|
84
84
|
lines.push(``);
|
|
85
85
|
lines.push(`flutter:`);
|
|
86
86
|
lines.push(` uses-material-design: true`);
|
|
@@ -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,WAAW;SACrB,WAAW,EAAE;SACb,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;SACpB,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAA;IAE7B,MAAM,KAAK,GAAa,EAAE,CAAA;IAC1B,KAAK,CAAC,IAAI,CAAC,yCAAyC,CAAC,CAAA;IACrD,KAAK,CAAC,IAAI,CAAC,0CAA0C,CAAC,CAAA;IACtD,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACd,KAAK,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC,CAAA;IAC3B,KAAK,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAA;IAC1D,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;IAC9B,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;IAC9B,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACd,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;IAC1B,KAAK,CAAC,IAAI,CAAC,sEAAsE,CAAC,CAAA;IAClF,KAAK,CAAC,IAAI,CAAC,yEAAyE,CAAC,CAAA;IACrF,KAAK,CAAC,IAAI,CAAC,yEAAyE,CAAC,CAAA;IACrF,KAAK,CAAC,IAAI,CAAC,qEAAqE,CAAC,CAAA;IACjF,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;IAC3B,KAAK,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAA;IACrC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACd,KAAK,CAAC,IAAI,CAAC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