Skip to content

Commit

Permalink
v1.5.2 (#152)
Browse files Browse the repository at this point in the history
* hotfix: sort notes by edited time instead of created time

* hotfix: change layout button icon on toggle

* hotfix: request editor focus when submitting title

* Use environment parameters for screenshot data (#151)

* [118] Add Dart doc (#153)

* [76] Release with CI (#156)

* Prepare v1.5.2 (#157)
  • Loading branch information
maelchiotti authored Aug 16, 2024
1 parent 96dd5a0 commit 892d56d
Show file tree
Hide file tree
Showing 128 changed files with 2,419 additions and 857 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Build

on: pull_request

permissions:
contents: write

jobs:
build_android:
name: Android
Expand Down Expand Up @@ -30,4 +33,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: LocalMaterialNotes
path: build/app/outputs/flutter-apk/app-release.apk
path: build/app/outputs/flutter-apk/app-release.apk
26 changes: 11 additions & 15 deletions .github/workflows/dart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
- name: Checkout
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version-file: pubspec.yaml
- run: |
flutter pub get
dart analyze --fatal-infos
Expand All @@ -21,18 +24,11 @@ jobs:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
- name: Checkout
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: dart format -l 120 --set-exit-if-changed ./lib ./test

# test:
# name: Test
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: subosito/flutter-action@v2
# with:
# channel: 'stable'
# - run: flutter test
flutter-version-file: pubspec.yaml
- run: dart format -l 120 --set-exit-if-changed .
121 changes: 121 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
name: Release

on:
push:
branches:
- main

permissions:
contents: write

jobs:
get_version:
name: Get the app version
environment: release
runs-on: ubuntu-latest
outputs:
version: ${{ steps.echo_version.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get version
id: get_version
uses: mikefarah/yq@master
with:
cmd: yq -r '.version' 'pubspec.yaml' | cut -d '+' -f 1
- name: Echo version
id: echo_version
run: echo "version=${{ steps.get_version.outputs.result }}" >> "$GITHUB_OUTPUT"

release_github:
name: Release on GitHub
environment: release
needs: [ get_version ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version-file: pubspec.yaml
- name: Add keystore
run: echo "${{ secrets.ANDROID_KEYSTORE }}" | base64 -d > android/localmaterialnotes_keystore.jks
- name: Add key properties
run: echo "${{ secrets.ANDROID_KEY_PROPERTIES }}" > android/key.properties
- name: Build app (fat APK)
run: flutter build apk --release
- name: Build app (per ABIs)
run: flutter build apk --release --split-per-abi
- name: Create a folder to store the APKs to release
run: mkdir release
- name: Move and rename APKs
run: |
mv build/app/outputs/flutter-apk/app-release.apk release/localmaterialnotes_v${{ needs.get_version.outputs.version }}.apk
mv build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk release/localmaterialnotes_armeabi-v7a_v${{ needs.get_version.outputs.version }}.apk
mv build/app/outputs/flutter-apk/app-arm64-v8a-release.apk release/localmaterialnotes_arm64-v8a_v${{ needs.get_version.outputs.version }}.apk
mv build/app/outputs/flutter-apk/app-x86_64-release.apk release/localmaterialnotes_x86_64_v${{ needs.get_version.outputs.version }}.apk
- name: Extract changelog
id: extract_changelog
uses: dahlia/submark@main
with:
input-file: CHANGELOG.md
heading-level: 2
heading-title-regex: ^${{ needs.get_version.outputs.version }}
omit-heading: true
- name: Create release tag
uses: actions/github-script@v5
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/v${{ needs.get_version.outputs.version }}',
sha: context.sha
})
- 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 }}
tag_name: v${{ needs.get_version.outputs.version }}
files: release/*

release_play_store:
name: Release on the Play Store
environment: release
needs: [ get_version ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version-file: pubspec.yaml
- name: Add keystore
run: echo "${{ secrets.ANDROID_KEYSTORE }}" | base64 -d > android/localmaterialnotes_keystore.jks
- name: Add key properties
run: echo "${{ secrets.ANDROID_KEY_PROPERTIES }}" > android/key.properties
- name: Add fastlane supply key
run: echo "${{ secrets.FASTLANE_SUPPLY_KEY }}" | base64 -d > fastlane/localmaterialnotes_fastlane-supply_key.json
- name: Run fastlane
run: bundle exec fastlane deploy_production
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.3.1
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ 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.5.2 - 2024-08-16

### Added

- Portuguese localization

### 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

## 1.5.1 - 2024-08-07

### Fixed
Expand Down
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ GEM

PLATFORMS
x64-mingw-ucrt
x86_64-linux

DEPENDENCIES
fastlane
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ All the supported languages are listed here alphabetically. You can see more det

![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)
![Russian](https://img.shields.io/badge/dynamic/json?color=blue&label=Russian&style=for-the-badge&logo=crowdin&query=%24.progress[?(@.data.languageId==%27ru%27)].data.translationProgress&url=https%3A%2F%2Fbadges.awesome-crowdin.com%2Fstats-13392640-684950.json)
![Spanish](https://img.shields.io/badge/dynamic/json?color=blue&label=Spanish&style=for-the-badge&logo=crowdin&query=%24.progress[?(@.data.languageId==%27es-ES%27)].data.approvalProgress&url=https%3A%2F%2Fbadges.awesome-crowdin.com%2Fstats-13392640-684950.json)
![Turkish](https://img.shields.io/badge/dynamic/json?color=blue&label=Turkish&style=for-the-badge&logo=crowdin&query=%24.progress[?(@.data.languageId==%27tr%27)].data.approvalProgress&url=https%3A%2F%2Fbadges.awesome-crowdin.com%2Fstats-13392640-684950.json)

Expand Down
6 changes: 4 additions & 2 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
- [ ] Upgrade Flutter
- [ ] Bump application version
- [ ] Bump dependencies versions
- [ ] Re-generate generated files
- [ ] Update [CHANGELOG.md](CHANGELOG.md)
- [ ] Update [README.md](README.md)
- [ ] Update the [README.md](README.md) description
- [ ] Update the [README.md](README.md) supported languages
- [ ] Update fastlane descriptions
- [ ] Update fastlane changelogs
- [ ] Update [screenshots.json](docs/data/screenshots.json)
- [ ] Update [`screenshotNotes`](lib/common/constants/notes.dart)
- [ ] Update fastlane screenshots
9 changes: 9 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Security Policy

## Supported Versions

You should always update to the latest version to receive the most recent security updates.

## Reporting a Vulnerability

Any vulnerability can be reported in the [Security Advisories](https://github.com/maelchiotti/LocalMaterialNotes/security/advisories) section.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if (flutterVersionName == null) {
}

// Overwrite the version code
ext.abiCodes = ['arm64-v8a': 2, 'armeabi-v7a': 1, x86_64: 3]
ext.abiCodes = ['armeabi-v7a': 1, 'arm64-v8a': 2, 'x86_64': 3]
android.applicationVariants.all { variant ->
variant.outputs.each { output ->
def baseAbiVersionCode = project.ext.abiCodes.get(output.getFilter(com.android.build.OutputFile.ABI))
Expand Down
62 changes: 0 additions & 62 deletions docs/data/screenshots.json

This file was deleted.

4 changes: 2 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ platform :android do
supply(
track: 'production',
package_name: 'com.maelchiotti.localmaterialnotes',
aab: 'build\app\outputs\bundle\release\app-release.aab',
aab: 'build/app/outputs/bundle/release/app-release.aab',
skip_upload_apk: true
)
end
Expand All @@ -27,7 +27,7 @@ platform :android do
supply(
track: 'internal',
package_name: 'com.maelchiotti.localmaterialnotes',
aab: 'build\app\outputs\bundle\release\app-release.aab',
aab: 'build/app/outputs/bundle/release/app-release.aab',
skip_upload_apk: true
)
end
Expand Down
9 changes: 9 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/120.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ADDED
- Portuguese localization

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
9 changes: 9 additions & 0 deletions fastlane/metadata/android/fr-FR/changelogs/120.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
AJOUTÉ
- Localisation en portugais

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
1 change: 1 addition & 0 deletions fastlane/metadata/android/pt-PT/full_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p><b>Material Notes</b> é um aplicativo de anotações baseado em texto, voltado para a simplicidade. Ele abraça o Material Design. Ele armazena as notas localmente e não tem nenhuma permissão de internet, então você é o único que pode acessar as notas.</p><p><b>Faça anotações</b></p><ul><li>Escreva notas de texto (título e conteúdo)</li><li>Aproveite as opções avançadas de formatação, incluindo listas de verificação</li><li>Desfaça e refaça suas alterações durante a edição</li><li>Use a ação rápida na tela inicial para adicionar uma nota rapidamente</li></ul><p><b>Organize</b></p><ul><li>Pesquise em suas anotações</li><li>Classifique suas notas por data ou título, em ordem crescente ou decrescente</li><li>Exiba suas notas em uma lista ou visualização em grade</li><li>Fixe suas anotações</li><li>Recupere suas notas excluídas da lixeira</li></ul><p><b>Compartilhar e fazer backup</b></p><ul><li>Compartilhe texto de outros aplicativos para adicioná-lo diretamente a uma nota</li><li>Compartilhe suas anotações como texto</li><li>Exporte suas notas como JSON, manual ou automaticamente, e importe-as de volta</li><li>Exporte suas notas como Markdown</li></ul><p><b>Proteção</b></p><ul><li>Nunca se preocupe com a forma como seus dados são tratados: eles não podem sair do seu dispositivo já que o aplicativo não tem nenhuma permissão de internet</li><li>Criptografe suas exportações JSON</li></ul><p><b>Personalização</b></p><ul><li>Escolha seu idioma</li><li>Escolha o seu tema (claro, escuro ou preto)</li><li>Escolha se deseja que seu tema seja dinâmico (use cores do plano de fundo)</li><li>Escolha se deseja ativar a formatação avançada, apenas as listas de verificação ou manter suas anotações básicas</li></ul>
Loading

0 comments on commit 892d56d

Please sign in to comment.