try to optimize APK size

This commit is contained in:
Henry Hiles 2026-08-22 14:05:31 -04:00
commit 9b79304edc
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
5 changed files with 5 additions and 5 deletions

View file

@ -8,7 +8,7 @@ on:
jobs:
build-apk:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
steps:
- name: Checkout repository
@ -27,7 +27,7 @@ jobs:
KEYSTORE_CONTENT: ${{ secrets.KEYSTORE_CONTENT }}
- name: Build app
run: nix develop --command bash -c "flutter pub get && dart scripts/generate.dart && flutter pub run build_runner build && flutter build apk --release"
run: nix develop --command bash -c "flutter pub get && dart scripts/generate.dart && flutter pub run build_runner build && flutter build apk --target-platform android-arm64"
env:
KEYSTORE_PATH: ../../keystore.jks
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}

View file

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

Before After
Before After

View file

@ -20,7 +20,7 @@ extension ShowContextMenu on BuildContext {
Row(
spacing: 12,
children: [
SvgPicture.asset("assets/icon.svg", width: 64),
SvgPicture.asset("assets/bundled/icon.svg", width: 64),
Expanded(
child: Column(
crossAxisAlignment: .start,

View file

@ -132,7 +132,7 @@ class const SelectServerPage({super.key}) extends HookConsumerWidget {
children: [
Row(
children: [
SvgPicture.asset("assets/icon.svg", width: 128),
SvgPicture.asset("assets/bundled/icon.svg", width: 128),
SizedBox(width: 12),
Expanded(
child: Column(

View file

@ -12,7 +12,7 @@ flutter:
fonts:
- asset: assets/fonts/Roboto.ttf
assets:
- assets/
- assets/bundled/
uses-material-design: true
environment: