-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Write Flavour Scripts #22
Open
shubhamsinghmutualmobile
wants to merge
6
commits into
main
Choose a base branch
from
feature/flavour_scripts
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ae78fd6
Written praxis_development flavour script
shubhamsinghmutualmobile 421356e
Written staging and production scripts
shubhamsinghmutualmobile 69f908a
Updated README.md
shubhamsinghmutualmobile 6dcabb0
Fixed some typos
shubhamsinghmutualmobile 07387a2
Extracted all common scripts inside core.sh and code generation for p…
shubhamsinghmutualmobile 764026c
Combined all scripts into one and now asking the user to select the f…
shubhamsinghmutualmobile File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Please make sure that you have your device selected in the Flutter Device Section before running this script | ||
|
||
# Go to root dir from the current scripts dir | ||
echo "<---Going to root directory--->" | ||
cd .. | ||
|
||
# Use pub get to fix pubspec.lock error | ||
flutter pub get | ||
|
||
# Generate config files for the presentation layer | ||
echo "<---Generating config files for the presentation layer--->" | ||
flutter packages pub run build_runner build --delete-conflicting-outputs | ||
|
||
# Go to data layer (package) | ||
echo "<---Going to data layer--->" | ||
cd praxis_data || return | ||
|
||
# Use pub get to fix pubspec.lock error | ||
flutter pub get | ||
|
||
# Generate config files for the data layer | ||
echo "<---Generating config files for the data layer--->" | ||
flutter packages pub run build_runner build --delete-conflicting-outputs | ||
|
||
#Go back to root dir | ||
echo "<---Going back to root dir--->" | ||
cd .. | ||
|
||
# Generate translation files | ||
echo "<---Generating translation files--->" | ||
flutter gen-l10n --template-arb-file=arb/app_en.arb | ||
|
||
# Build development flavor and run it | ||
echo "<---Building development flavor and running it--->" | ||
flutter run --flavor development --target lib/main_development.dart | ||
echo "<---Press any key to exit--->" | ||
read -r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Please make sure that you have your device selected in the Flutter Device Section before running this script | ||
|
||
# Go to root dir from the current scripts dir | ||
echo "<---Going to root directory--->" | ||
cd .. | ||
|
||
# Use pub get to fix pubspec.lock error | ||
flutter pub get | ||
|
||
# Generate config files for the presentation layer | ||
echo "<---Generating config files for the presentation layer--->" | ||
flutter packages pub run build_runner build --delete-conflicting-outputs | ||
|
||
# Go to data layer (package) | ||
echo "<---Going to data layer--->" | ||
cd praxis_data || return | ||
|
||
# Use pub get to fix pubspec.lock error | ||
flutter pub get | ||
|
||
# Generate config files for the data layer | ||
echo "<---Generating config files for the data layer--->" | ||
flutter packages pub run build_runner build --delete-conflicting-outputs | ||
|
||
#Go back to root dir | ||
echo "<---Going back to root dir--->" | ||
cd .. | ||
|
||
# Generate translation files | ||
echo "<---Generating translation files--->" | ||
flutter gen-l10n --template-arb-file=arb/app_en.arb | ||
|
||
# Build production flavor and run it | ||
echo "<---Building production flavor and running it--->" | ||
flutter run --flavor production --target lib/main_production.dart | ||
echo "<---Press any key to exit--->" | ||
read -r |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Please make sure that you have your device selected in the Flutter Device Section before running this script | ||
|
||
# Go to root dir from the current scripts dir | ||
echo "<---Going to root directory--->" | ||
cd .. | ||
|
||
# Use pub get to fix pubspec.lock error | ||
flutter pub get | ||
|
||
# Generate config files for the presentation layer | ||
echo "<---Generating config files for the presentation layer--->" | ||
flutter packages pub run build_runner build --delete-conflicting-outputs | ||
|
||
# Go to data layer (package) | ||
echo "<---Going to data layer--->" | ||
cd praxis_data || return | ||
|
||
# Use pub get to fix pubspec.lock error | ||
flutter pub get | ||
|
||
# Generate config files for the data layer | ||
echo "<---Generating config files for the data layer--->" | ||
flutter packages pub run build_runner build --delete-conflicting-outputs | ||
|
||
#Go back to root dir | ||
echo "<---Going back to root dir--->" | ||
cd .. | ||
|
||
# Generate translation files | ||
echo "<---Generating translation files--->" | ||
flutter gen-l10n --template-arb-file=arb/app_en.arb | ||
|
||
# Build staging flavor and run it | ||
echo "<---Building staging flavor and running it--->" | ||
flutter run --flavor staging --target lib/main_staging.dart | ||
echo "<---Press any key to exit--->" | ||
read -r |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shubhamsinghmutualmobile we need to first generate for praxis_data and then root.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done