Skip to content

Commit

Permalink
Merge pull request #4 from manuelvargastapia/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
elmanolete authored Dec 11, 2020
2 parents 13369f6 + 3e52d0e commit 9869af4
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 6 deletions.
9 changes: 9 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ android {
signingConfig signingConfigs.debug
}
}

splits {
abi {
enable true
reset()
include "x86_64", "arm64-v8a", "armeabi-v7a"
universalApk true
}
}
}

flutter {
Expand Down
Binary file added assets/fonts/Lato-Bold.ttf
Binary file not shown.
Binary file added assets/fonts/Lato-Italic.ttf
Binary file not shown.
Binary file added assets/fonts/Lato-Regular.ttf
Binary file not shown.
Binary file removed assets/fonts/Roboto-Bold.ttf
Binary file not shown.
Binary file removed assets/fonts/Roboto-Italic.ttf
Binary file not shown.
Binary file removed assets/fonts/Roboto-Regular.ttf
Binary file not shown.
8 changes: 7 additions & 1 deletion lib/blocs/download_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,13 @@ class DownloadBloc extends Bloc<DownloadEvent, DownloadState> {
final author = book.author != null ? " - " + book.author : "";
final publisher = book.publisher != null ? " - " + book.publisher : "";
final year = book.year != null ? " - " + book.year.toString() : "";
return "$title$author$publisher$year".replaceAll(RegExp(r'\/'), ' ');

// Needed to allow devices recognize the files in Downloads folder
final fileExtension =
book.fileExtension != null ? "." + book.fileExtension : "";

return "$title$author$publisher$year$fileExtension"
.replaceAll(RegExp(r'\/'), ' ');
}

@override
Expand Down
2 changes: 1 addition & 1 deletion lib/global/theme/themes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ final _primarySwatchDark = _createMaterialColor(Colors.blueAccent);
final _secondarySwatch = _createMaterialColor(Colors.deepOrange);
const _iconThemeData = const IconThemeData(color: Colors.white);

const String _fontFamily = 'Roboto';
const String _fontFamily = 'Lato';
const PageTransitionsTheme _transition = const PageTransitionsTheme(
builders: {
TargetPlatform.android: FadeTransitionBuilder(),
Expand Down
8 changes: 4 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ flutter:
- assets/images/app_icon.png

fonts:
- family: Roboto
- family: Lato
fonts:
- asset: assets/fonts/Roboto-Bold.ttf
- asset: assets/fonts/Lato-Bold.ttf
weight: 700
- asset: assets/fonts/Roboto-Italic.ttf
- asset: assets/fonts/Lato-Italic.ttf
style: italic
- asset: assets/fonts/Roboto-Regular.ttf
- asset: assets/fonts/Lato-Regular.ttf

flutter_intl:
main_locale: en_US
Expand Down

0 comments on commit 9869af4

Please sign in to comment.