Skip to content

Latest commit

 

History

History
109 lines (86 loc) · 2.78 KB

README.md

File metadata and controls

109 lines (86 loc) · 2.78 KB

Cart Demo App

This is the source code for the demo app Cart Demo mobile app (ios and android) built using flutter programming language.

APK FILE

APK file can be found in here (/assets/app-release.apk)

App Screenshots

Categories Page     Product Page     Checkout Page
   

Requirements

  • Flutter version 3.3.0
  • Flutter sdk environment: ">=2.16.1 <3.0.0"

Getting Started

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Run flutter pub get to download dependencies. Build the application by running flutter run.

or run and debug sidebar, select dev (from the top dropdown), click run (icon).

Testing

Integration tests

To run integration tests: flutter run integration_test/init_test.dart

Upgrade pubspec

flutter pub upgrade --major-versions

Run on device

Open run and debug sidebar, select dev (from the top dropdown), click run (icon).

Build APK

flutter build apk;

Build IPA

flutter build ipa;

Production Deployment Sequence

  • update version (pubspec & app store connect)
  • remove print statements
  • remove assert
  • clear todo
  • clear console problems
  • (ios only) running -> general -> version and build
  flutter clean
  flutter pub get
  flutter pub run import_sorter:main
  flutter build appbundle;
  flutter build ipa

Staging

Changes are deployed to the staging environment after a PR is merged into the dev branch

Production

Changes are deployed to the production environment after a release is created, click here to create a release, see releases section

Releases

Naming Convention

Use the application version and build number. vAppVersion+AppBuildNumber

  • AppVersion (gotten from pubspec file) - 1.0.8

  • AppBuildNumber (gotten from pubspec file) - 6

Example:

Release: v1.0.8+6

  • Increase major version after a major rewrite. (1 in above example)
  • Increase minor version after adding a feature. (0 in above example)
  • Increase bug version for bug fixes. (9 in above example)
  • Increase build number for every production release. (7 in above example)