Compare commits

..

7 Commits

Author SHA1 Message Date
ricoberger
ff52516324 Prepare v1.2.1 Release 2023-11-30 18:03:33 +01:00
Rico Berger
abd3c24f68 [core] Remove Blank in Item Preview Description (#86)
This commit removes all blank lines in the item preview description, so
that we do not render a blank line as the last line. This was done to
improve the style of the item previews, which looked ugly when the last
line was a blank line.
2023-11-29 21:47:53 +01:00
Rico Berger
04ef618295 [core] Add Right Click Support for Item Actions (#85)
Until now it was only possible to show the actions for an item by
pressing longer on the item. Now a user can also right click on the item
to display the actions which feels a bit more natural on desktop
devices.
2023-11-29 21:14:27 +01:00
Rico Berger
a58c93be8a [podcast] Stop Audio Playback on Windows and Linux (#84)
On Windows and Linux it could happen that the audio playback for a
podcast wasn't stopped when the item details view for a podcast item was
closed.

This commit "fixes" the problem, by pausing the audio player, before the
widget is disposed.

This commit also fixes the condition when the background audio services
should be initialized in the `main.dart` file. Instead of the macOS
check, we checked for iOS twice.
2023-11-29 21:06:06 +01:00
Rico Berger
5a8d6b34c1 [medium] Extend Filter Words List (#83) 2023-11-29 20:09:34 +01:00
ricoberger
9233e4d373 [core] Fix 2023-11-26 20:07:18 +01:00
Rico Berger
6e50af16a7 [core] Fix build.gradle File for Android Release (#82)
The change introduced in #71 so that we can run the Android build in a
GitHub action, broke the `flutter build appbundle` command to build the
Android version for the Google Play store. This commit should fix this,
so that we can build the Android version in a GitHub Action and for
Google Play.
2023-11-26 19:40:54 +01:00
8 changed files with 41 additions and 7 deletions

View File

@@ -71,7 +71,7 @@ android {
buildTypes {
release {
if (project.hasProperty("keyStoreFile")) {
if (keystorePropertiesFile.exists()) {
signingConfig signingConfigs.release
} else {
// For testing purposes we sign with dummy credentials if no key properties are given.

View File

@@ -57,7 +57,7 @@ void main() async {
/// We can not initialize the [just_audio_background] package on Windows and
/// Linux, because then the returned duration in the `_player.durationStream`
/// isn't working correctly in the [ItemAudioPlayer] widget.
if (kIsWeb || Platform.isAndroid || Platform.isIOS || Platform.isIOS) {
if (kIsWeb || Platform.isAndroid || Platform.isIOS || Platform.isMacOS) {
await JustAudioBackground.init(
androidNotificationChannelId: 'com.ryanheise.bg_demo.channel.audio',
androidNotificationChannelName: 'Audio playback',

View File

@@ -65,6 +65,7 @@ class _ItemAudioPlayerState extends State<ItemAudioPlayer> {
@override
void dispose() {
_player.pause();
_player.dispose();
super.dispose();
}

View File

@@ -70,7 +70,7 @@ class _ItemActionsState extends State<ItemActions> {
});
}
/// [_showActionsMenuLarge] shows a popup menu with all available aactions for
/// [_showActionsMenuLarge] shows a popup menu with all available actions for
/// an item. This means the user can mark an item as read or unread or a user
/// can add or remove a bookmark for an item.
void _showActionsMenuLarge(BuildContext context) async {
@@ -143,6 +143,11 @@ class _ItemActionsState extends State<ItemActions> {
}
}
/// [_showActionsMenuSmall] shows a modal bottom sheet with all available
/// actions for an item. This means the user can mark an item as read or
/// unread or a user can add or remove a bookmark for an item. The actions are
/// the same as we show on large screens via [_showActionsMenuLarge], but the
/// modal bottom sheet is optiomized for small screens.
void _showActionsMenuSmall(BuildContext mainContext) async {
HapticFeedback.heavyImpact();
@@ -326,12 +331,16 @@ class _ItemActionsState extends State<ItemActions> {
/// On large screens we show an actions menu via `_showActionsMenuLarge`,
/// which is rendered directly at the point where the user pressed on the
/// item.
/// The menu can be opened by a long press or by a secondary tap (right
/// click) on the item.
return MouseRegion(
cursor: SystemMouseCursors.click,
child: GestureDetector(
onTap: widget.onTap,
onTapDown: (details) => _getTapPositionLarge(details),
onLongPress: () => _showActionsMenuLarge(context),
onSecondaryTapDown: (details) => _getTapPositionLarge(details),
onSecondaryTap: () => _showActionsMenuLarge(context),
child: Container(
width: double.infinity,
decoration: const BoxDecoration(

View File

@@ -81,6 +81,10 @@ class ItemDescription extends StatelessWidget {
}
/// [_buildPlain] renders the provided [content] as plain text.
///
/// To not have some trailing newlines, the [content] is trimmed and splitted
/// on newline characters, so that we can filter out empty lines, before the
/// the content is rendered.
Widget _buildPlain(String content) {
if (content == '') {
return Container();
@@ -91,7 +95,7 @@ class ItemDescription extends StatelessWidget {
bottom: Constants.spacingExtraSmall,
),
child: Text(
content.trim(),
content.trim().split('\n').where((line) => line != '').join('\n'),
maxLines: 5,
style: const TextStyle(
overflow: TextOverflow.ellipsis,

View File

@@ -50,6 +50,25 @@
</categories>
<releases>
<release version="v1.2.1" date="2023-11-30">
<description>
<p>Fixed</p>
<ul>
<li>#84: [podcast] Stop Audio Playback on Windows and Linux @ricoberger</li>
<li>#82: [core] Fix build.gradle File for Android Release @ricoberger</li>
</ul>
<p>Changed</p>
<ul>
<li>#86: [core] Remove Blank Line in Item Preview Description @ricoberger</li>
<li>#85: [core] Add Right Click Support for Item Actions @ricoberger</li>
<li>#83: [medium] Extend Filter Words List @ricoberger</li>
</ul>
</description>
<url>https://github.com/feeddeck/feeddeck/releases/tag/v1.2.1</url>
</release>
<release version="v1.2.0" date="2023-11-26">
<description>
<p>Added</p>
@@ -64,13 +83,13 @@
</ul>
<p>Fixed</p>
<ul>
<li>#75: [core] Fix getMedia Function @ricoberger</li>
<li>#73: [core] Fix Decoding of Special Characters @ricoberger</li>
<li>#64: [github] Fix Icons in Item Preview @ricoberger</li>
<li>#58: [core] Add Missing Divider to Video Quality Selection @ricoberger</li>
<li>#57: [core] Fix Modal Bottom Sheet Size for Images @ricoberger</li>
<li>#55: [github] Fix Notification Links for PRs @ricoberger</li>
<ul>
</ul>
<p>Changed</p>

View File

@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.2.0+8
version: 1.2.1+9
environment:
sdk: '>=3.1.3 <4.0.0'
@@ -171,7 +171,7 @@ msix_config:
publisher_display_name: Rico Berger
identity_name: 26077RicoBerger.FeedDeck
publisher: CN=7740451A-C179-450A-B346-7231CA231332
msix_version: 1.2.0.0
msix_version: 1.2.1.0
logo_path: templates/app-icon/windows.png
languages: en-us
capabilities: internetClient

View File

@@ -219,6 +219,7 @@ const skipEntry = (
'fałszywych',
'pieniędzy',
'whatsapp',
'money',
];
const title = entry.title.value.toLowerCase();
let score = 0;