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: jobs:
build-apk: build-apk:
runs-on: ubuntu-latest runs-on: ubuntu-24.04-arm
steps: steps:
- name: Checkout repository - name: Checkout repository
@ -27,7 +27,7 @@ jobs:
KEYSTORE_CONTENT: ${{ secrets.KEYSTORE_CONTENT }} KEYSTORE_CONTENT: ${{ secrets.KEYSTORE_CONTENT }}
- name: Build app - 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: env:
KEYSTORE_PATH: ../../keystore.jks KEYSTORE_PATH: ../../keystore.jks
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} 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( Row(
spacing: 12, spacing: 12,
children: [ children: [
SvgPicture.asset("assets/icon.svg", width: 64), SvgPicture.asset("assets/bundled/icon.svg", width: 64),
Expanded( Expanded(
child: Column( child: Column(
crossAxisAlignment: .start, crossAxisAlignment: .start,

View file

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

View file

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