anypay / merchant-app

cash-register-flutter
3 stars 7 forks source link

app

A new Flutter project.

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

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

SETUP for ios DEVICES:

$ open ios/Runner.xcodeproj/

$ which flutter | sed 's/.{11}$//' (should be something like /Users/neil/.flutter) (which flutter should result in the binary, and the flutter root, should be one dir up)

$ flutter clean $ flutter pub get $ rm -rf ~/Library/Developer/Xcode/DerivedData/ $ cd ios;rm -rf Pods/ Podfile Podfile.lock ; pod install; cd .. $ flutter build ios $ open ios/Runner.xcworkspace

( those commands as a one liner ): flutter clean; flutter pub get; rm -rf ~/Library/Developer/Xcode/DerivedData/; cd ios;rm -rf Pods/ Podfile Podfile.lock ; pod install; cd ..; flutter build ios; open ios/Runner.xcworkspace

Building for iOS:

(usually these steps will work, but sometimes you need to go back and run the steps above

flutter build ios; open ios/Runner.xcworkspace

Building for Android:

Do some set up:

#TODO write setup for android building

BEFORE YOU BUILD:

update the version code (Y) in the pubspec.yml (2.X.X+Y)

To build for the android store, run:

flutter build appbundle --release --target-platform android-arm,android-arm64,android-x64

To build for android devices

flutter build apk --release