Skip to content

Commit

Permalink
v1.6.0 (#159)
Browse files Browse the repository at this point in the history
* fix: do not publish on github as draft

* [150] Show titles only (#158)

* feat: add setting to show only the notes titles

* fix: screenshots env parameter

* fix: ascending sort when taping the tile

* fix: remove "fix ascending sort when taping the tile" from changelogs

* [72] Add F-Droid badge (#163)

* docs: update badges and add F-Droid badge

* docs: add conventional commits badge

* fix: typo in README.md

* [162] Make the search view black in black mode (#164)

* hotfix: only set refresh rate in Android 6 or later

* [141] Choose auto backup folder (#169)

* feat: allow to choose the auto backup directory using SAF

* fix: update info page

* fix: methods order

* [141] fix: fork shared_storage to add custom fixes

* [168] Separate auto export settings (#170)

* [168] feat: separate auto export settings in multiple tiles

* [168] fix: SECURITY.md

* [173] feat: allow to disable only showing the title in the search view (#176)

* [174] feat: allow to focus title when creating a new note (#177)

* [168] Fix auto export (#178)

* [166] fix: auto export frequency preference type

* [166] fix: auto export first time

* [168] fix: auto export on default path

* [168] fix: remove print

* [166] Use type safe routing (#175)

* [166] fix: back action on dialogs

* [166] fix: remove buggy back button interceptors

* [166] feat: use generated type-safe routing

* [166] fix: drawer index

* [166] fix: dialogs

* [166] fix: sort button

* [166] fix: remove print

* [166] fix: settings app bar

* [166] fix: enableOnBackInvokedCallback

* [166] fix: await sheet

* [166] fix: editor page transition

* [165] feat: allow to disable note content preview subdued text (#181)

* [167] feat: allow to set text scaling (#180)

* [60] Add integration tests (#155)

* tests: setup patrol

* fix: notes service get all

* tests: add tests for the app launch and the notes page

* fix: fix ascending sort when taping the tile

* tests: add tests for the app bar of the notes page

* [60] fix: rebase

* [60] fix: tests

* [182] Prepare v1.6.0 (#183)

* [182] docs: add all missing docs

* [182] chore: move translations files

* [182] chore: prepare v1.6.0

* [182] chore: update dependencies

* [182] chore: update localizations

* [182] feat: add Crowdin to the settings

* chore: update changelogs
  • Loading branch information
maelchiotti authored Sep 12, 2024
1 parent 892d56d commit fc1ff36
Show file tree
Hide file tree
Showing 150 changed files with 4,605 additions and 1,937 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ jobs:
- name: Publish to GitHub releases
uses: softprops/action-gh-release@v2
with:
draft: true
make_latest: true
name: v${{ needs.get_version.outputs.version }}
body: ${{ steps.extract_changelog.outputs.output-text }}
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,7 @@ lib/l10n/untranslated.txt
# fastlane
fastlane/localmaterialnotes_fastlane-supply_key.json
fastlane/README.md
fastlane/report.xml
fastlane/report.xml

# Tests
integration_test/test_bundle.dart
1 change: 1 addition & 0 deletions .patrol.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
INTEGRATION_TEST=true
51 changes: 35 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,24 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 1.6.0 - 2024-09-06

### Added

- Release on F-Droid
- Setting to choose the auto backup directory
- Setting to only show the titles of the notes (can be disabled in the search view)
- Setting to focus the title instead of the content when creating a new note
- Setting to disable the subdued color of the notes content preview
- Setting to change the text scaling
- Chinese simplified localization

### Fixed

- Search view is not black in black theme mode
- Failure to set the refresh rate on devices running Android below version 6
- Failure to get the write permission when writing export files

## 1.5.2 - 2024-08-16

### Added
Expand All @@ -12,9 +30,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),

### Fixed

- Auto export settings tile not updating after disabling auto export
- Auto export settings tiles not updating after disabling auto export
- Notes sorted by their created time instead of their edited time
- Toggling the sort by ascending order by taping on the list tile instead of the checkbox not working
- Focus on the note content not requested when the title is validated
- Typos

Expand Down Expand Up @@ -46,7 +63,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),

### Fixed

- Notes tiles: use rounded corners when background is not shown, use correct background color in list view
- Incorrect corner radius and background color of the notes tiles
- Keyboard opening when toggling a checkbox
- Keyboard popping back up after using the back gesture
- App closing when going back while the selection mode is active instead of exiting it
Expand Down Expand Up @@ -80,7 +97,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),

### Added

- Release to IzzyOnDroid
- Release on IzzyOnDroid
- Grid view
- Advanced text formatting
- Undo/redo while editing
Expand All @@ -100,11 +117,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),

### Fixed

- Hide note preview if empty
- Providers not updating correctly
- Note preview shown even if empty
- List of notes not updating correctly
- Notes not sorted after being updated
- Support RTL for paddings
- Many small issues
- RTL not supported for paddings

## 1.2.0 - 2024-04-15

Expand All @@ -128,11 +144,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),

- App crashing when using the quick action to add a note if the app was closed, or opened but not on the notes list
- Focus being reset in the note content text field
- Remove the drawer on the editor page
- Exit selection mode when adding a note
- Drawer openable on the editor page
- Selection mode note exited when adding a note
- Tiles background color not scrolling with the tile when scrolling the notes list in selection mode
- FAB padding
- Spelling

## 1.1.1 - 2024-03-03

Expand All @@ -141,14 +156,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
- Export notes as Markdown
- Show a separator between the notes (toggleable)

### Changed

- Automatically sort in descending order when sorting by date, and in ascending order when sorting by title (the order can still be manually changed afterwards)

### Removed

- Remove the app lock feature (most recent Android devices have a more stable, built-in identical functionality)

### Fixed

- Disable the black theme setting tile while in light theme
- Automatically sort in descending order when sorting by date, and in ascending order when sorting by title (the order can still be manually changed afterwards)
- Black theme setting tile not disabled while in light theme

## 1.1.0 - 2024-02-18

Expand All @@ -165,8 +183,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),

### Fixed

- Localize the welcome note
- Going back from the editor after adding a note from the quick action when the editor was already opened on an other note correctly goes back to the notes list
- Welcome note not localized
- Going back from the editor after adding a note from the quick action when the editor was already opened on an other does not go back to the notes list

## 1.0.1 - 2024-02-10

Expand All @@ -176,7 +194,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),

### Fixed

- System navigation bar transparency and the padding at the bottom of the settings page
- System navigation bar transparency
- Padding at the bottom of the settings page

## 1.0.0 - 2024-02-07

Expand Down
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

All localizations are hosted on [Crowdin](https://crowdin.com/project/localmaterialnotes).

![Localization and proofreading progression](https://badges.awesome-crowdin.com/translation-13392640-684950.png)

### Improve an already existing localization

Logged in with your Crowdin account, open the [Crowdin project](https://crowdin.com/project/localmaterialnotes), select the language you want to improve and use the "Join" button.
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
<div align="center">

![Platforms](https://img.shields.io/badge/Platforms-Android-blue)
![Platforms](https://img.shields.io/badge/Platforms-Android-green)
[![Style](https://img.shields.io/badge/Style-lint-blue)](https://pub.dev/packages/lint)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196)](https://conventionalcommits.org)

[![License](https://img.shields.io/github/license/maelchiotti/LocalMaterialNotes)](https://github.com/maelchiotti/LocalMaterialNotes/blob/main/LICENSE)
[![Releases](https://img.shields.io/github/v/release/maelchiotti/LocalMaterialNotes)](https://github.com/maelchiotti/LocalMaterialNotes/releases)
[![Issues](https://img.shields.io/github/issues/maelchiotti/LocalMaterialNotes)](https://github.com/maelchiotti/LocalMaterialNotes/issues)

[<img alt="Get it on Google Play" src="https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png" width="200px">](https://play.google.com/store/apps/details?id=com.maelchiotti.localmaterialnotes)
[<img alt="Get it on IzzyOnDroid" src="docs/badges/izzy_on_droid.png" width="200px">](https://apt.izzysoft.de/packages/com.maelchiotti.localmaterialnotes)
[<img alt="Get it on Google Play" src="docs/badges/google_play.png" width="200px">](https://play.google.com/store/apps/details?id=com.maelchiotti.localmaterialnotes)
[<img alt="Get it on IzzyOnDroid" src="docs/badges/izzyondroid.png" width="200px">](https://apt.izzysoft.de/packages/com.maelchiotti.localmaterialnotes)
[<img alt="Get it on F-Droid" src="docs/badges/fdroid.png" width="200px">](https://f-droid.org/fr/packages/com.maelchiotti.localmaterialnotes)
<br />
[<img alt="Get it on Obtainium" src="docs/badges/obtainium.png" width="200px">](https://apps.obtainium.imranr.dev/redirect?r=obtainium://add/https://github.com/maelchiotti/LocalMaterialNotes)
[<img alt="Get it on GitHub" src="docs/badges/github.png" width="200px">](https://github.com/maelchiotti/LocalMaterialNotes/releases/latest)

Expand Down Expand Up @@ -72,6 +75,7 @@ Simple, local, material design notes.

All the supported languages are listed here alphabetically. You can see more details on the [Crowdin project](https://crowdin.com/project/localmaterialnotes). To improve a language or add support for a new one, please see [CONTRIBUTING.md](CONTRIBUTING.md#localization).

![Chinese Simplified](https://img.shields.io/badge/dynamic/json?color=blue&label=Chinese%20Simplified&style=for-the-badge&logo=crowdin&query=%24.progress[?(@.data.languageId==%27zh-CN%27)].data.translationProgress&url=https%3A%2F%2Fbadges.awesome-crowdin.com%2Fstats-13392640-684950.json)
![English](https://img.shields.io/badge/dynamic/json?color=blue&label=English&style=for-the-badge&logo=crowdin&query=%24.progress[?(@.data.languageId==%27en%27)].data.approvalProgress&url=https%3A%2F%2Fbadges.awesome-crowdin.com%2Fstats-13392640-684950.json)
![French](https://img.shields.io/badge/dynamic/json?color=blue&label=French&style=for-the-badge&logo=crowdin&query=%24.progress[?(@.data.languageId==%27fr%27)].data.approvalProgress&url=https%3A%2F%2Fbadges.awesome-crowdin.com%2Fstats-13392640-684950.json)
![Portuguese](https://img.shields.io/badge/dynamic/json?color=blue&label=Portuguese&style=for-the-badge&logo=crowdin&query=%24.progress[?(@.data.languageId==%27pt-PT%27)].data.approvalProgress&url=https%3A%2F%2Fbadges.awesome-crowdin.com%2Fstats-13392640-684950.json)
Expand All @@ -89,7 +93,7 @@ All the supported languages are listed here alphabetically. You can see more det
### Localization

- All of the [Crowdin project members](https://crowdin.com/project/localmaterialnotes/reports/top-members).
- [newmanls](https://github.com/newmanls) for the spanish localization
- [newmanls](https://github.com/newmanls) for the spanish localization.
- [xe1st](https://github.com/xe1st) for the turkish localization.

### Assets
Expand Down
23 changes: 20 additions & 3 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,31 @@

## Checklist

- [ ] Upgrade Flutter
### Upgrades, versioning and code generation

- [ ] Upgrade Flutter and Dart versions
- [ ] Bump application version
- [ ] Bump dependencies versions
- [ ] Re-generate generated files

### Changelogs

- [ ] Update [CHANGELOG.md](CHANGELOG.md)
- [ ] Update fastlane changelogs

### Descriptions

- [ ] Update the [README.md](README.md) description
- [ ] Update the [README.md](README.md) supported languages
- [ ] Update fastlane descriptions
- [ ] Update fastlane changelogs

### Localizations

- [ ] Update the localizations from [Crowdin](https://crowdin.com/project/localmaterialnotes)
- [ ] Update the [README.md](README.md) supported languages
- [ ] Update the [localizations completion](lib/l10n/localization_completion.dart)
- [ ] Update the [list of hardcoded localizations](lib/utils/hardcoded_localizations_utils.dart)

### Screenshots

- [ ] Update [`screenshotNotes`](lib/common/constants/notes.dart)
- [ ] Update fastlane screenshots
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ You should always update to the latest version to receive the most recent securi

## Reporting a Vulnerability

Any vulnerability can be reported in the [Security Advisories](https://github.com/maelchiotti/LocalMaterialNotes/security/advisories) section.
Any vulnerability can be reported in the [Security Advisories](https://github.com/maelchiotti/LocalMaterialNotes/security/advisories) section.
1 change: 1 addition & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ analyzer:

linter:
rules:
- public_member_api_docs
- always_put_control_body_on_new_line
- curly_braces_in_flow_control_structures
12 changes: 12 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ android {
targetSdkVersion 34
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "pl.leancode.patrol.PatrolJUnitRunner"
testInstrumentationRunnerArguments clearPackageData: "true"

}

signingConfigs {
Expand All @@ -88,6 +91,14 @@ android {
release {
signingConfig signingConfigs.release
}

debug {
minifyEnabled false
}
}

testOptions {
execution "ANDROIDX_TEST_ORCHESTRATOR"
}
}

Expand All @@ -97,4 +108,5 @@ flutter {

dependencies {
implementation 'com.android.support:multidex:2.0.1'
androidTestUtil 'androidx.test:orchestrator:1.4.2'
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
package com.maelchiotti.localmaterialnotes;

import androidx.test.platform.app.InstrumentationRegistry;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;

import pl.leancode.patrol.PatrolJUnitRunner;

@RunWith(Parameterized.class)
public class MainActivityTest {
@Parameters(name = "{0}")
public static Object[] testCases() {
PatrolJUnitRunner instrumentation = (PatrolJUnitRunner) InstrumentationRegistry.getInstrumentation();
// replace "MainActivity.class" with "io.flutter.embedding.android.FlutterActivity.class"
// if in AndroidManifest.xml in manifest/application/activity you have
// android:name="io.flutter.embedding.android.FlutterActivity"
instrumentation.setUp(MainActivity.class);
instrumentation.waitForPatrolAppService();
return instrumentation.listDartTests();
}

public MainActivityTest(String dartTestName) {
this.dartTestName = dartTestName;
}

private final String dartTestName;

@Test
public void runDartTest() {
PatrolJUnitRunner instrumentation = (PatrolJUnitRunner) InstrumentationRegistry.getInstrumentation();
instrumentation.runDartTest(dartTestName);
}
}
1 change: 1 addition & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTask"
android:enableOnBackInvokedCallback="true"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
Expand Down
Binary file removed assets/github/social_preview.png
Binary file not shown.
Binary file removed assets/github/social_preview.psd
Binary file not shown.
4 changes: 4 additions & 0 deletions devtools_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
description: This file stores settings for Dart & Flutter DevTools.
documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states
extensions:
- patrol: true
Binary file added docs/badges/fdroid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/badges/fdroid.psd
Binary file not shown.
Binary file modified docs/badges/github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/badges/github.psd
Binary file not shown.
Binary file modified docs/badges/google_play.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/badges/google_play.psd
Binary file not shown.
Binary file removed docs/badges/izzy_on_droid.png
Binary file not shown.
Binary file removed docs/badges/izzy_on_droid.psd
Binary file not shown.
Binary file added docs/badges/izzyondroid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/badges/izzyondroid.psd
Binary file not shown.
Binary file modified docs/badges/obtainium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/badges/obtainium.psd
Binary file not shown.
1 change: 1 addition & 0 deletions fastlane/metadata/android/changelogs_max_length.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
500 chars
1 change: 0 additions & 1 deletion fastlane/metadata/android/en-US/changelogs/120.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ ADDED
FIXED
- Auto export settings tile not updating after disabling auto export
- Notes sorted by their created time instead of their edited time
- Toggling the sort by ascending order by taping on the list tile instead of the checkbox not working
- Focus on the note content not requested when the title is validated
- Typos
13 changes: 13 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/130.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ADDED
- Release on F-Droid
- Choose the auto backup directory
- Choose to only show the titles of the notes (can be disabled in the search view)
- Choose to focus title instead of content when creating new note
- Choose to disable subdued color of notes content preview
- Choose to change the text scaling
- Chinese simplified localization

FIXED
- Search view not black in black theme mode
- Failure to set refresh rate below Android 6
- Failure to get the write permission when writing export files
1 change: 0 additions & 1 deletion fastlane/metadata/android/fr-FR/changelogs/120.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ AJOUTÉ
CORRIGÉ
- La tuile des paramètres d'export automatique ne se mettait pas à jour après avoir désactivé l'export automatique
- Notes triées en fonction de leur date de création au lieu de leur date d'édition
- Le basculement du tri par ordre croissant en tapant sur la tuile au lieu de la case à cocher ne fonctionne pas
- Le focus sur le contenu de la note n'est pas demandée lorsque le titre est validé
- Fautes d'orthographe
13 changes: 13 additions & 0 deletions fastlane/metadata/android/fr-FR/changelogs/130.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
AJOUTÉ
- Publication sur F-Droid
- Choisir répertoire sauvegarde automatique
- Choisir afficher que titres des notes (peut être désactivé dans la recherche)
- Choisir de focus le titre au lieu du contenu lors d'une nouvelle note
- Désactiver couleur atténuée de l'aperçu du contenu des notes
- Modifier l'échelle du texte
- Traduction en chinois simplifié

CORRIGÉ
- Recherche pas noire en thème noir
- Échec réglage fréquence de rafraîchissement sous Android 6
- Échec lors de l'écriture des exports
1 change: 1 addition & 0 deletions fastlane/metadata/android/zh-CN/full_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p><b>Material Notes</b> 是基于文本的笔记应用程序,旨在简单。它包含 Material 设计。 它在本地存储笔记,并且没有任何互联网权限,因此您是唯一可以访问笔记的人。</p><p><b>做笔记</b></p><ul><li>撰写文本笔记(标题和内容)</li><li>利用高级格式选项,包括清单</li><li>编辑时撤销和恢复更改</li><li>使用主屏幕上的快建操作快速添加笔记</li></ul><p><b>整理</b></p><ul><li>搜索您的笔记</li><li>按日期或标题、升序或降序对笔记进行排序</li><li>以列表或网格视图显示笔记</li><li>置顶您的笔记</li><li>从回收站中还原已删除的笔记</li></ul><p><b>分享和备份</b></p><ul><li>分享其他应用程序中的文本,将其直接添加到笔记中</li><li>以文本形式分享笔记</li><li>手动或自动将笔记导出为 JSON,然后再重新导入</li><li>将笔记导出为 Markdown</li></ul><p><b>保护</b></p><ul><li>不必担心您的数据如何处理:它无法离开您的设备 因为应用程序没有任何互联网权限</li><li>加密您的 JSON 导出</li></ul><p><b>定制</b></p><ul><li>选择您的语言</li><li>选择您的主题(浅色、深色或黑色)</li><li>选择是否希望主题是动态的(使用背景颜色)</li><li>选择是要启用高级格式、仅启用清单还是保持笔记基本</li></ul>
Loading

0 comments on commit fc1ff36

Please sign in to comment.