1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 15:11:58 +00:00

Update inline font for f-droid publication metric (#107)

* Added local font
* Up Patch 1.5.1+9
This commit is contained in:
Alex 2022-04-04 09:08:53 -05:00 committed by GitHub
parent be2794a372
commit b69f6e0df7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 32 additions and 29 deletions

View file

@ -0,0 +1 @@
* Added inline font, remove google-font dependency in pubspec.

Binary file not shown.

Binary file not shown.

BIN
mobile/fonts/WorkSans.ttf Normal file

Binary file not shown.

View file

@ -19,7 +19,7 @@ platform :ios do
desc "iOS Beta" desc "iOS Beta"
lane :beta do lane :beta do
increment_version_number( increment_version_number(
version_number: "1.5.0" version_number: "1.5.1"
) )
increment_build_number( increment_build_number(
build_number: latest_testflight_build_number + 1, build_number: latest_testflight_build_number + 1,

View file

@ -10,7 +10,6 @@ import 'package:immich_mobile/shared/providers/backup.provider.dart';
import 'package:immich_mobile/shared/providers/server_info.provider.dart'; import 'package:immich_mobile/shared/providers/server_info.provider.dart';
import 'package:immich_mobile/shared/providers/websocket.provider.dart'; import 'package:immich_mobile/shared/providers/websocket.provider.dart';
import 'constants/hive_box.dart'; import 'constants/hive_box.dart';
import 'package:google_fonts/google_fonts.dart';
void main() async { void main() async {
await Hive.initFlutter(); await Hive.initFlutter();
@ -94,10 +93,11 @@ class _ImmichAppState extends ConsumerState<ImmichApp> with WidgetsBindingObserv
theme: ThemeData( theme: ThemeData(
brightness: Brightness.light, brightness: Brightness.light,
primarySwatch: Colors.indigo, primarySwatch: Colors.indigo,
textTheme: GoogleFonts.workSansTextTheme( // textTheme: GoogleFonts.workSansTextTheme(
Theme.of(context).textTheme.apply(fontSizeFactor: 1.0), // Theme.of(context).textTheme.apply(fontSizeFactor: 1.0),
), // ),
snackBarTheme: SnackBarThemeData(contentTextStyle: TextStyle(fontFamily: GoogleFonts.workSans().fontFamily)), fontFamily: 'WorkSans',
snackBarTheme: const SnackBarThemeData(contentTextStyle: TextStyle(fontFamily: 'WorkSans')),
scaffoldBackgroundColor: const Color(0xFFf6f8fe), scaffoldBackgroundColor: const Color(0xFFf6f8fe),
appBarTheme: const AppBarTheme( appBarTheme: const AppBarTheme(
backgroundColor: Colors.white, backgroundColor: Colors.white,

View file

@ -1,7 +1,6 @@
import 'package:auto_route/auto_route.dart'; import 'package:auto_route/auto_route.dart';
import 'package:badges/badges.dart'; import 'package:badges/badges.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:immich_mobile/modules/login/providers/authentication.provider.dart'; import 'package:immich_mobile/modules/login/providers/authentication.provider.dart';
@ -79,12 +78,11 @@ class ImmichSliverAppBar extends ConsumerWidget {
), ),
title: Text( title: Text(
'IMMICH', 'IMMICH',
style: GoogleFonts.snowburstOne( style: TextStyle(
textStyle: TextStyle( fontFamily: 'SnowburstOne',
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
fontSize: 22, fontSize: 22,
color: Theme.of(context).primaryColor, color: Theme.of(context).primaryColor,
),
), ),
), ),
actions: [ actions: [

View file

@ -1,7 +1,6 @@
import 'package:auto_route/auto_route.dart'; import 'package:auto_route/auto_route.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_hooks/flutter_hooks.dart'; import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:immich_mobile/modules/home/providers/asset.provider.dart'; import 'package:immich_mobile/modules/home/providers/asset.provider.dart';
import 'package:immich_mobile/modules/login/providers/authentication.provider.dart'; import 'package:immich_mobile/modules/login/providers/authentication.provider.dart';
@ -33,9 +32,12 @@ class LoginForm extends HookConsumerWidget {
), ),
Text( Text(
'IMMICH', 'IMMICH',
style: GoogleFonts.snowburstOne( style: TextStyle(
textStyle: fontFamily: 'SnowburstOne',
TextStyle(fontWeight: FontWeight.bold, fontSize: 48, color: Theme.of(context).primaryColor)), fontWeight: FontWeight.bold,
fontSize: 48,
color: Theme.of(context).primaryColor,
),
), ),
EmailInput(controller: usernameController), EmailInput(controller: usernameController),
PasswordInput(controller: passwordController), PasswordInput(controller: passwordController),

View file

@ -373,13 +373,6 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.2" version: "2.0.2"
google_fonts:
dependency: "direct main"
description:
name: google_fonts
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.0"
graphs: graphs:
dependency: transitive dependency: transitive
description: description:

View file

@ -2,7 +2,7 @@ name: immich_mobile
description: Immich - selfhosted backup media file on mobile phone description: Immich - selfhosted backup media file on mobile phone
publish_to: "none" publish_to: "none"
version: 1.5.0+8 version: 1.5.1+9
environment: environment:
sdk: ">=2.15.1 <3.0.0" sdk: ">=2.15.1 <3.0.0"
@ -18,7 +18,7 @@ dependencies:
hive_flutter: hive_flutter:
dio: ^4.0.4 dio: ^4.0.4
cached_network_image: ^3.2.0 cached_network_image: ^3.2.0
google_fonts: ^2.2.0 # google_fonts: ^2.2.0
percent_indicator: ^3.4.0 percent_indicator: ^3.4.0
intl: ^0.17.0 intl: ^0.17.0
auto_route: ^3.2.2 auto_route: ^3.2.2
@ -50,6 +50,15 @@ flutter:
uses-material-design: true uses-material-design: true
assets: assets:
- assets/ - assets/
fonts:
- family: WorkSans
fonts:
- asset: fonts/WorkSans.ttf
- asset: fonts/WorkSans-Italic.ttf
style: italic
- family: SnowburstOne
fonts:
- asset: fonts/SnowburstOne.ttf
flutter_icons: flutter_icons:
image_path_android: "assets/immich-logo-no-outline.png" image_path_android: "assets/immich-logo-no-outline.png"

View file

@ -1,6 +1,6 @@
{ {
"name": "immich", "name": "immich",
"version": "1.3.2", "version": "1.5.1",
"description": "", "description": "",
"author": "", "author": "",
"private": true, "private": true,

View file

@ -4,6 +4,6 @@
export const serverVersion = { export const serverVersion = {
major: 1, major: 1,
minor: 5, minor: 5,
patch: 0, patch: 1,
build: 8, build: 9,
}; };