diff --git a/README.md b/README.md index df4c819787b77383c0020b8b81a09babb23f0164..f62788ebbd5f70300781a570326bdad82b2915a7 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,14 @@ ## Building process -##### iOS +#### iOS - Production `./build-ios.sh` - Development `./build-ios.sh development` +#### Android +- Production `./build-android.sh` +- Development `./build-android.sh development` + ### Build application in debug mode - With development flavor `flutter run --flavor development -t lib/main-dev.dart` - With production flavor `flutter run --flavor production -t lib/main.dart` diff --git a/build-android.sh b/build-android.sh new file mode 100755 index 0000000000000000000000000000000000000000..03e594a3493daf629c1e6a4b4872a87663300bfe --- /dev/null +++ b/build-android.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +flavor='production' +entryPoint='main.dart' + +if [[ $1 == 'development' ]] +then + flavor='development' + entryPoint='main-dev.dart' +fi + +# Build ios +flutter build apk --flavor ${flavor} -t lib/${entryPoint} + + +# Move packages wherever we need +# cp build/app/outputs/apk/development/release/app-development-release.apk /path +# cp build/app/outputs/apk/production/release/app-production-release.apk /path + +# Cleanup +# flutter clean diff --git a/build-ios.sh b/build-ios.sh index 49be273cc47a47ee3c42edf08d2635210f1c1339..fd31aee5139f6d4d91817e4ba7939e614197493c 100755 --- a/build-ios.sh +++ b/build-ios.sh @@ -16,7 +16,7 @@ then fi # Build ios -flutter build ios -v --flavor ${flavor} -t lib/${entryPoint} +flutter build ios --flavor ${flavor} -t lib/${entryPoint} # Export xarchive xcodebuild \