Skip to content
Snippets Groups Projects
Commit 44e5faad authored by Markin Igor's avatar Markin Igor
Browse files

Add Android build scripts.

parent 23937712
No related branches found
No related tags found
1 merge request!3Resolve "Set up building process."
......@@ -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`
......
#!/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
......@@ -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 \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment