Skip to content

Commit cbec916

Browse files
committed
Template update.
1 parent 5189897 commit cbec916

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

pubspec.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ environment:
1818

1919
dependencies:
2020
crypto: ^3.0.3
21+
cupertino_icons: ^1.0.2 # An asset repository.
2122
encrypt: ^5.0.3
2223
flutter:
2324
sdk: flutter
@@ -59,7 +60,7 @@ flutter:
5960
flutter_launcher_icons:
6061
image_path: "assets/images/app_icon.png"
6162
android: true
62-
min_sdk_android: 21
63+
min_sdk_android: 21 # android min sdk min:16, default 21 ios: true
6364
ios: true
6465
remove_alpha_ios: true
6566
background_color_ios: "#ffffff"

support/flutter.mk

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Makefile template for Flutter
44
#
5-
# Copyright 2021 (c) Graham.Williams@togaware.com
5+
# Copyright 2021-2025 (c) Graham.Williams@togaware.com
66
#
77
# License: Creative Commons Attribution-ShareAlike 4.0 International.
88
#
@@ -189,7 +189,7 @@ analyze:
189189

190190
.PHONY: depend
191191
depend:
192-
@echo "Review pubspec.yaml dependencies."
192+
@echo "Dart: REVIEW DEPENDENCIES."
193193
-dependency_validator
194194
@echo $(SEPARATOR)
195195

@@ -208,7 +208,8 @@ todo:
208208
.PHONY: license
209209
license:
210210
@echo "Files without a LICENSE:\n"
211-
@-find lib -type f -not -name '*~' ! -exec grep -qE '^(/// .*|/// Copyright|/// Licensed)' {} \; -print | xargs printf "\t%s\n"
211+
@-find lib -type f -not -name '*~' -not -name 'README*' \
212+
! -exec grep -qE '^(/// .*|/// Copyright|/// Licensed)' {} \; -print | xargs printf "\t%s\n"
212213
@echo $(SEPARATOR)
213214

214215
.PHONY: riverpod
@@ -387,13 +388,13 @@ publish:
387388
.PHONY: import_order
388389
import_order:
389390
@echo "Dart: CHECK IMPORT ORDER"
390-
dart run custom_lint
391+
import_order --check
391392
@echo $(SEPARATOR)
392393

393394
.PHONY: import_order_fix
394395
import_order_fix:
395396
@echo "Dart: FIX IMPORT ORDER"
396-
fix_imports --project-name=$(APP) -r lib
397+
import_order -r lib
397398
@echo $(SEPARATOR)
398399

399400
### TODO THESE SHOULD BE CHECKED AND CLEANED UP
@@ -413,6 +414,7 @@ loc: lib/*.dart
413414
@cat $(shell find lib -name '*.dart') \
414415
| egrep -v '^ */' \
415416
| egrep -v '^ *$$' \
417+
| egrep -v '^ *[)},]+, *$$' \
416418
| wc -l
417419

418420
#

0 commit comments

Comments
 (0)