Flutter
rm pubspec.lock
rm ios/Podfile.lock
flutter upgrade
flutter pub get
flutter pub upgrade
Build All
flutter build apk --debug
flutter build ios --debug --no-codesign
flutter build web
Debug
flutter build apk --debug
Release APK
flutter build apk --release --obfuscate --split-debug-info build/app/outputs/symbols-apk/ --target-platform android-arm64
Release Bundle
flutter build appbundle --release --obfuscate --split-debug-info build/app/outputs/symbols-appbundle --target-platform android-arm64
Debug
flutter build ios --debug --no-codesign
Release
flutter build ios --release --obfuscate --split-debug-info build/ios/outputs/symbols
Debug
flutter build web
Release
flutter build web --base-href /flutter-app-playground/
Run unit tests with coverage
flutter test --coverage
Run analyzer
flutter analyze
rm -f pubspec.lock && \
flutter clean && \
flutter upgrade && \
flutter pub get && \
flutter pub upgrade --major-versions && \
osv-scanner -r . && \
dart fix --dry-run && \
dart fix --apply && \
dart format . && \
flutter analyze && \
flutter test --platform=chrome --test-randomize-ordering-seed=random && \
flutter build ios --debug --no-codesign && \
flutter build apk --debug && \
flutter build web
Copyright (C) 2022 Jared Burrows
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.