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

Add debug script.

parent 44e5faad
No related branches found
No related tags found
1 merge request!3Resolve "Set up building process."
# Vereign mobile application. # Vereign mobile application.
## Building process ## Debug
- Development `./run.sh`
- Production `./run.sh production`
## Build
#### iOS #### iOS
- Production `./build-ios.sh` - Production `./build-ios.sh`
...@@ -10,11 +14,6 @@ ...@@ -10,11 +14,6 @@
- Production `./build-android.sh` - Production `./build-android.sh`
- Development `./build-android.sh development` - 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`
## Flutter Getting Started ## Flutter Getting Started
This project is a starting point for a Flutter application. This project is a starting point for a Flutter application.
......
...@@ -9,7 +9,7 @@ then ...@@ -9,7 +9,7 @@ then
entryPoint='main-dev.dart' entryPoint='main-dev.dart'
fi fi
# Build ios # Build android
flutter build apk --flavor ${flavor} -t lib/${entryPoint} flutter build apk --flavor ${flavor} -t lib/${entryPoint}
......
...@@ -18,7 +18,7 @@ PODS: ...@@ -18,7 +18,7 @@ PODS:
- Flutter - Flutter
DEPENDENCIES: DEPENDENCIES:
- Flutter (from `.symlinks/flutter/ios-release`) - Flutter (from `.symlinks/flutter/ios`)
- flutter_app_auth_wrapper (from `.symlinks/plugins/flutter_app_auth_wrapper/ios`) - flutter_app_auth_wrapper (from `.symlinks/plugins/flutter_app_auth_wrapper/ios`)
- flutter_web_browser (from `.symlinks/plugins/flutter_web_browser/ios`) - flutter_web_browser (from `.symlinks/plugins/flutter_web_browser/ios`)
- shared_preferences (from `.symlinks/plugins/shared_preferences/ios`) - shared_preferences (from `.symlinks/plugins/shared_preferences/ios`)
...@@ -31,7 +31,7 @@ SPEC REPOS: ...@@ -31,7 +31,7 @@ SPEC REPOS:
EXTERNAL SOURCES: EXTERNAL SOURCES:
Flutter: Flutter:
:path: ".symlinks/flutter/ios-release" :path: ".symlinks/flutter/ios"
flutter_app_auth_wrapper: flutter_app_auth_wrapper:
:path: ".symlinks/plugins/flutter_app_auth_wrapper/ios" :path: ".symlinks/plugins/flutter_app_auth_wrapper/ios"
flutter_web_browser: flutter_web_browser:
......
run.sh 0 → 100755
#!/usr/bin/env bash
flavor='development'
entryPoint='main-dev.dart'
if [[ $1 == 'production' ]]
then
flavor='production'
entryPoint='main.dart'
fi
flutter run --flavor ${flavor} -t lib/${entryPoint}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment