Skip to content

Commit ed84473

Browse files
committed
Simplify boring_to_beautiful rebuild script
1 parent 8bfb6ca commit ed84473

File tree

9 files changed

+50
-64
lines changed

9 files changed

+50
-64
lines changed

boring_to_beautiful/codelab_rebuild.yaml

Lines changed: 18 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ steps:
55
- name: Remove generated code
66
rmdir: step_01
77
- name: Create project
8-
flutter: create myartist
8+
flutter: create -e myartist
99
- name: Strip DEVELOPMENT_TEAM
1010
strip-lines-containing: DEVELOPMENT_TEAM =
1111
path: myartist/ios/Runner.xcodeproj/project.pbxproj
@@ -33,39 +33,27 @@ steps:
3333
}
3434
]
3535
}
36-
- name: Replace pubspec.yaml
37-
path: myartist/pubspec.yaml
38-
replace-contents: |
39-
name: myartist
40-
description: A new Flutter project.
41-
publish_to: "none"
42-
version: 1.0.0
43-
44-
environment:
45-
sdk: ^3.8.0-0
46-
47-
dependencies:
48-
flutter:
49-
sdk: flutter
50-
51-
dev_dependencies:
52-
flutter_test:
53-
sdk: flutter
54-
55-
flutter:
56-
uses-material-design: true
57-
assets:
58-
- assets/images/
59-
- assets/images/playlists/
60-
- assets/images/albums/
61-
- assets/images/artists/
62-
- assets/images/news/
6336
- name: Add adaptive_breakpoints adaptive_components adaptive_navigation animations ...
6437
path: myartist
6538
flutter: pub add adaptive_breakpoints adaptive_components adaptive_navigation animations collection cupertino_icons desktop_window dynamic_color english_words flutter_bloc freezed_annotation go_router material_color_utilities:any universal_platform url_launcher
6639
- name: Add build_runner flutter_lints freezed
6740
path: myartist
6841
flutter: pub add --dev build_runner flutter_lints freezed
42+
- name: Add assets
43+
path: myartist/pubspec.yaml
44+
patch-u: |
45+
--- b/boring_to_beautiful/step_01/pubspec.yaml
46+
+++ a/boring_to_beautiful/step_01/pubspec.yaml
47+
@@ -34,3 +34,9 @@ dev_dependencies:
48+
49+
flutter:
50+
uses-material-design: true
51+
+ assets:
52+
+ - assets/images/
53+
+ - assets/images/playlists/
54+
+ - assets/images/albums/
55+
+ - assets/images/artists/
56+
+ - assets/images/news/
6957
- name: Patch macos/Runner/DebugProfile.entitlements
7058
path: myartist/macos/Runner/DebugProfile.entitlements
7159
patch-u: |
@@ -95,8 +83,6 @@ steps:
9583
+ <true/>
9684
</dict>
9785
</plist>
98-
- name: Drop test/widget_test.dart
99-
rm: myartist/test/widget_test.dart
10086
- name: Replace lib/main.dart
10187
path: myartist/lib/main.dart
10288
replace-contents: |
@@ -73259,7 +73245,7 @@ steps:
7325973245
--- b/boring_to_beautiful/step_04/lib/src/shared/app.dart
7326073246
+++ a/boring_to_beautiful/step_04/lib/src/shared/app.dart
7326173247
@@ -20,10 +20,7 @@ class MyApp extends StatefulWidget {
73262-
73248+
7326373249
class _MyAppState extends State<MyApp> {
7326473250
final settings = ValueNotifier(
7326573251
- ThemeSettings(
@@ -73615,7 +73601,7 @@ steps:
7361573601
+++ a/boring_to_beautiful/final/lib/src/shared/views/outlined_card.dart
7361673602
@@ -15,20 +15,55 @@ class OutlinedCard extends StatefulWidget {
7361773603
}
73618-
73604+
7361973605
class _OutlinedCardState extends State<OutlinedCard> {
7362073606
+ bool _hovered = false;
7362173607
+

boring_to_beautiful/final/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: myartist
2-
description: A new Flutter project.
3-
publish_to: "none"
4-
version: 1.0.0
2+
description: "A new Flutter project."
3+
publish_to: 'none'
4+
version: 0.1.0
55

66
environment:
77
sdk: ^3.8.0-0
@@ -29,8 +29,8 @@ dependencies:
2929
dev_dependencies:
3030
flutter_test:
3131
sdk: flutter
32-
build_runner: ^2.4.15
3332
flutter_lints: ^5.0.0
33+
build_runner: ^2.4.15
3434
freezed: ^3.0.6
3535

3636
flutter:

boring_to_beautiful/step_01/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: myartist
2-
description: A new Flutter project.
3-
publish_to: "none"
4-
version: 1.0.0
2+
description: "A new Flutter project."
3+
publish_to: 'none'
4+
version: 0.1.0
55

66
environment:
77
sdk: ^3.8.0-0
@@ -28,8 +28,8 @@ dependencies:
2828
dev_dependencies:
2929
flutter_test:
3030
sdk: flutter
31-
build_runner: ^2.4.15
3231
flutter_lints: ^5.0.0
32+
build_runner: ^2.4.15
3333
freezed: ^3.0.6
3434

3535
flutter:

boring_to_beautiful/step_02/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: myartist
2-
description: A new Flutter project.
3-
publish_to: "none"
4-
version: 1.0.0
2+
description: "A new Flutter project."
3+
publish_to: 'none'
4+
version: 0.1.0
55

66
environment:
77
sdk: ^3.8.0-0
@@ -28,8 +28,8 @@ dependencies:
2828
dev_dependencies:
2929
flutter_test:
3030
sdk: flutter
31-
build_runner: ^2.4.15
3231
flutter_lints: ^5.0.0
32+
build_runner: ^2.4.15
3333
freezed: ^3.0.6
3434

3535
flutter:

boring_to_beautiful/step_03/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: myartist
2-
description: A new Flutter project.
3-
publish_to: "none"
4-
version: 1.0.0
2+
description: "A new Flutter project."
3+
publish_to: 'none'
4+
version: 0.1.0
55

66
environment:
77
sdk: ^3.8.0-0
@@ -29,8 +29,8 @@ dependencies:
2929
dev_dependencies:
3030
flutter_test:
3131
sdk: flutter
32-
build_runner: ^2.4.15
3332
flutter_lints: ^5.0.0
33+
build_runner: ^2.4.15
3434
freezed: ^3.0.6
3535

3636
flutter:

boring_to_beautiful/step_04/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: myartist
2-
description: A new Flutter project.
3-
publish_to: "none"
4-
version: 1.0.0
2+
description: "A new Flutter project."
3+
publish_to: 'none'
4+
version: 0.1.0
55

66
environment:
77
sdk: ^3.8.0-0
@@ -29,8 +29,8 @@ dependencies:
2929
dev_dependencies:
3030
flutter_test:
3131
sdk: flutter
32-
build_runner: ^2.4.15
3332
flutter_lints: ^5.0.0
33+
build_runner: ^2.4.15
3434
freezed: ^3.0.6
3535

3636
flutter:

boring_to_beautiful/step_05/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: myartist
2-
description: A new Flutter project.
3-
publish_to: "none"
4-
version: 1.0.0
2+
description: "A new Flutter project."
3+
publish_to: 'none'
4+
version: 0.1.0
55

66
environment:
77
sdk: ^3.8.0-0
@@ -29,8 +29,8 @@ dependencies:
2929
dev_dependencies:
3030
flutter_test:
3131
sdk: flutter
32-
build_runner: ^2.4.15
3332
flutter_lints: ^5.0.0
33+
build_runner: ^2.4.15
3434
freezed: ^3.0.6
3535

3636
flutter:

boring_to_beautiful/step_06/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: myartist
2-
description: A new Flutter project.
3-
publish_to: "none"
4-
version: 1.0.0
2+
description: "A new Flutter project."
3+
publish_to: 'none'
4+
version: 0.1.0
55

66
environment:
77
sdk: ^3.8.0-0
@@ -29,8 +29,8 @@ dependencies:
2929
dev_dependencies:
3030
flutter_test:
3131
sdk: flutter
32-
build_runner: ^2.4.15
3332
flutter_lints: ^5.0.0
33+
build_runner: ^2.4.15
3434
freezed: ^3.0.6
3535

3636
flutter:

boring_to_beautiful/step_07/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: myartist
2-
description: A new Flutter project.
3-
publish_to: "none"
4-
version: 1.0.0
2+
description: "A new Flutter project."
3+
publish_to: 'none'
4+
version: 0.1.0
55

66
environment:
77
sdk: ^3.8.0-0
@@ -29,8 +29,8 @@ dependencies:
2929
dev_dependencies:
3030
flutter_test:
3131
sdk: flutter
32-
build_runner: ^2.4.15
3332
flutter_lints: ^5.0.0
33+
build_runner: ^2.4.15
3434
freezed: ^3.0.6
3535

3636
flutter:

0 commit comments

Comments
 (0)