-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Android - Added separation for development/production builds
- Loading branch information
1 parent
6d8f182
commit b1f49a3
Showing
101 changed files
with
377 additions
and
73 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,26 +63,25 @@ jobs: | |
flutter build apk --release \ | ||
--build-name=$VERSION_NAME \ | ||
--build-number=$GITHUB_RUN_NUMBER \ | ||
--dart-define=FLAVOR=release | ||
--flavor production | ||
# Build AAB | ||
flutter build appbundle --release \ | ||
--build-name=$VERSION_NAME \ | ||
--build-number=$GITHUB_RUN_NUMBER \ | ||
--dart-define=FLAVOR=release | ||
--flavor production | ||
- name: Rename APK and AAB | ||
run: | | ||
mv build/app/outputs/flutter-apk/app-release.apk "build/app/outputs/flutter-apk/${{ env.APP_NAME }}-${{ env.VERSION_NAME }}-signed.apk" | ||
mv build/app/outputs/bundle/release/app-release.aab "build/app/outputs/bundle/release/${{ env.APP_NAME }}-${{ env.VERSION_NAME }}-signed.aab" | ||
mkdir -p build/app/outputs/android_artifacts | ||
mv build/app/outputs/flutter-apk/app-production-release.apk "build/app/outputs/android_artifacts/${{ env.APP_NAME }}-Android-${{ env.VERSION_NAME }}.apk" | ||
mv build/app/outputs/bundle/productionRelease/app-production-release.aab "build/app/outputs/android_artifacts/${{ env.APP_NAME }}-Android-${{ env.VERSION_NAME }}.aab" | ||
- name: Archive Android artifacts | ||
uses: actions/[email protected] | ||
with: | ||
name: ${{ env.APP_NAME }}-Android-${{ env.VERSION_NAME }} | ||
path: | | ||
build/app/outputs/flutter-apk/${{ env.APP_NAME }}-${{ env.VERSION_NAME }}-signed.apk | ||
build/app/outputs/bundle/release/${{ env.APP_NAME }}-${{ env.VERSION_NAME }}-signed.aab | ||
path: build/app/outputs/android_artifacts/ | ||
|
||
build-windows: | ||
#Use windows-2019, latest(2022) causes MSVCP140.dll related crashes | ||
|
@@ -274,6 +273,7 @@ jobs: | |
path: build/web | ||
|
||
- name: Deploy to ghcr.io | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
uses: mr-smithers-excellent/docker-build-push@v6 | ||
with: | ||
image: fladder | ||
|
@@ -283,9 +283,11 @@ jobs: | |
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build Github pages web | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
run: flutter build web --base-href /${{ github.event.repository.name }}/ --release --build-number=$GITHUB_RUN_NUMBER | ||
|
||
- name: Deploy to GitHub Pages | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
uses: peaceiris/actions-gh-pages@v4 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} # Automatically provided by GitHub Actions | ||
|
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions
6
android/app/src/development/res/mipmap-anydpi-v26/ic_launcher.xml
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@color/ic_launcher_background"/> | ||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> | ||
<monochrome android:drawable="@mipmap/ic_launcher_monochrome"/> | ||
</adaptive-icon> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.1 KB
android/app/src/development/res/mipmap-hdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.87 KB
android/app/src/development/res/mipmap-hdpi/ic_launcher_monochrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.04 KB
android/app/src/development/res/mipmap-mdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.47 KB
android/app/src/development/res/mipmap-mdpi/ic_launcher_monochrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11.4 KB
android/app/src/development/res/mipmap-xhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.1 KB
android/app/src/development/res/mipmap-xhdpi/ic_launcher_monochrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.5 KB
android/app/src/development/res/mipmap-xxhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.83 KB
android/app/src/development/res/mipmap-xxhdpi/ic_launcher_monochrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.5 KB
android/app/src/development/res/mipmap-xxxhdpi/ic_launcher_foreground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.1 KB
android/app/src/development/res/mipmap-xxxhdpi/ic_launcher_monochrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="ic_launcher_background">#FF21013A</color> | ||
</resources> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
android/app/src/production/res/mipmap-anydpi-v26/ic_launcher.xml
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@color/ic_launcher_background"/> | ||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> | ||
<monochrome android:drawable="@mipmap/ic_launcher_monochrome"/> | ||
</adaptive-icon> |
Oops, something went wrong.
Binary file added
BIN
+6.36 KB
android/app/src/production/res/mipmap-hdpi/ic_launcher_foreground.png
Oops, something went wrong.
Binary file added
BIN
+2.95 KB
android/app/src/production/res/mipmap-hdpi/ic_launcher_monochrome.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+4.17 KB
android/app/src/production/res/mipmap-mdpi/ic_launcher_foreground.png
Oops, something went wrong.
Binary file added
BIN
+1.97 KB
android/app/src/production/res/mipmap-mdpi/ic_launcher_monochrome.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+9.07 KB
android/app/src/production/res/mipmap-xhdpi/ic_launcher_foreground.png
Oops, something went wrong.
Binary file added
BIN
+3.77 KB
android/app/src/production/res/mipmap-xhdpi/ic_launcher_monochrome.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+14.4 KB
android/app/src/production/res/mipmap-xxhdpi/ic_launcher_foreground.png
Oops, something went wrong.
Binary file added
BIN
+5.42 KB
android/app/src/production/res/mipmap-xxhdpi/ic_launcher_monochrome.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+22 KB
android/app/src/production/res/mipmap-xxxhdpi/ic_launcher_foreground.png
Oops, something went wrong.
Binary file added
BIN
+6.52 KB
android/app/src/production/res/mipmap-xxxhdpi/ic_launcher_monochrome.png
Oops, something went wrong.
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,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="ic_launcher_background">#FF3A2101</color> | ||
</resources> |
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
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
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,24 @@ | ||
icons_launcher: | ||
image_path: "icons/development/fladder_icon.png" | ||
platforms: | ||
android: | ||
adaptive_foreground_image: "icons/development/fladder_icon.png" | ||
adaptive_background_color: "#21013a" | ||
adaptive_monochrome_image: "icons/development/fladder_adaptive_icon.png" | ||
notification_image: icons/fladder_notification_icon.png | ||
enable: true | ||
ios: | ||
image_path: "icons/development/fladder_store_icon.jpg" | ||
enable: true | ||
windows: | ||
image_path: "icons/development/fladder_icon_desktop.png" | ||
enable: true | ||
macos: | ||
image_path: "icons/development/fladder_macos_icon.png" | ||
enable: true | ||
linux: | ||
image_path: "icons/development/fladder_icon_desktop.png" | ||
enable: true | ||
web: | ||
favicon_path: "icons/development/fladder_icon_desktop.png" | ||
enable: true |
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,24 @@ | ||
icons_launcher: | ||
image_path: "icons/production/fladder_icon.png" | ||
platforms: | ||
android: | ||
adaptive_foreground_image: "icons/production/fladder_icon.png" | ||
adaptive_background_color: "#3a2101" | ||
adaptive_monochrome_image: "icons/production/fladder_adaptive_icon.png" | ||
notification_image: icons/fladder_notification_icon.png | ||
enable: true | ||
ios: | ||
image_path: "icons/production/fladder_store_icon.jpg" | ||
enable: true | ||
windows: | ||
image_path: "icons/production/fladder_icon_desktop.png" | ||
enable: true | ||
macos: | ||
image_path: "icons/production/fladder_macos_icon.png" | ||
enable: true | ||
linux: | ||
image_path: "icons/production/fladder_icon_desktop.png" | ||
enable: true | ||
web: | ||
favicon_path: "icons/production/fladder_icon_desktop.png" | ||
enable: true |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.