-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(app): add Android setup with Docker
- Loading branch information
Showing
3 changed files
with
33 additions
and
0 deletions.
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
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,7 @@ | ||
FROM instrumentisto/flutter:3.7.6 | ||
COPY . /app | ||
RUN rm -rf /app/build | ||
WORKDIR /app | ||
RUN dart pub get | ||
RUN flutter pub get | ||
RUN flutter pub run build_runner build --delete-conflicting-outputs |
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,12 @@ | ||
#!/bin/bash | ||
|
||
# Run this from the app project root | ||
# Receives path to keystore and path to repository as parameters | ||
|
||
output_path="app/build/app/outputs/bundle/release" | ||
docker build -f build_helpers/android.Dockerfile -t build-pharme-for-android . | ||
docker run \ | ||
-v $1:/keystore \ | ||
-v $2/$output_path:/$output_path \ | ||
build-pharme-for-android \ | ||
flutter build appbundle |