/flutter-app-playground

A playground for Flutter.

Primary LanguageDartApache License 2.0Apache-2.0

Flutter Playground

License build Twitter Follow

Setup

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

Build the Android app

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

Build the iOS app

Debug

flutter build ios --debug --no-codesign

Release

flutter build ios --release --obfuscate --split-debug-info build/ios/outputs/symbols

Build the Web app

Debug

flutter build web

Release

flutter build web --base-href /flutter-app-playground/

Testing

Run unit tests with coverage

flutter test --coverage

Reports

Run analyzer

flutter analyze

Local Debug Run

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

License

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.