perf(android): уменьшаем вес APK на ~33% (65→43.6 МБ)

- media_kit только для десктопа — убраны ffmpeg/libass/mdk с мобилы (~10 МБ)
- google_fonts заменён бандлом Inter/Outfit/Unbounded — убран реестр всех
  шрифтов из libapp.so (22→10 МБ)
- удалена неиспользуемая зависимость camera (CameraX)
- Dart-обфускация (--obfuscate --split-debug-info) в релизных CI + выгрузка
  символов
- кастомные шрифты с Google Fonts вернулись через FontLoader + кэш, без веса
- хардкод Inter заменён наследованием шрифта из активной темы
This commit is contained in:
klockky
2026-06-25 22:51:04 +03:00
parent 0f4844bf80
commit a55ab28ede
26 changed files with 291 additions and 237 deletions
+6
View File
@@ -22,6 +22,7 @@ import 'core/config/komet_settings.dart';
import 'core/config/app_bubble_shape.dart';
import 'core/config/app_cache_extent.dart';
import 'core/config/app_fonts.dart';
import 'core/config/custom_font_service.dart';
import 'core/config/app_message_actions_style.dart';
import 'core/config/app_swipe_back_desktop.dart';
import 'core/config/app_pranks.dart';
@@ -147,6 +148,11 @@ void main() async {
final initialFontScale = AppFonts.clampScale(
prefs.getDouble(AppFonts.scalePrefKey) ?? AppFonts.defaultScale,
);
if (AppFonts.resolve(initialFontId).isCustom) {
await CustomFontService.preloadCached();
} else {
unawaited(CustomFontService.preloadCached());
}
final initialAccentSeed = await accentFuture;
AppBubbleShape.current.value = await bubbleShapeFuture;
AppBubbleBehavior.current.value = await bubbleBehaviorFuture;