Skip to content

Commit

Permalink
Merge branch 'saber-notes:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
JonaFleischmann committed Feb 28, 2024
2 parents 50ab56c + 8b1088c commit 84d3ad8
Show file tree
Hide file tree
Showing 44 changed files with 143 additions and 88 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,8 @@ If you like Saber, please consider supporting it by:
[google_play]: https://play.google.com/store/apps/details?id=com.adilhanney.saber
[snap]: https://snapcraft.io/saber
[app_store]: https://apps.apple.com/us/app/saber/id1671523739
[download_windows]: https://github.com/saber-notes/saber/releases/download/v0.20.2/SaberInstaller_v0.20.2.exe
[download_appimage]: https://github.com/saber-notes/saber/releases/download/v0.20.2/Saber-0.20.2-x86_64.AppImage
[download_windows]: https://github.com/saber-notes/saber/releases/download/v0.20.3/SaberInstaller_v0.20.3.exe
[download_appimage]: https://github.com/saber-notes/saber/releases/download/v0.20.3/Saber-0.20.3-x86_64.AppImage

[nextcloud]: https://nc.saber.adil.hanney.org/

Expand Down
9 changes: 9 additions & 0 deletions flatpak/com.adilhanney.saber.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,15 @@
</screenshots>

<releases>
<release version="0.20.3" type="development" date="2024-02-25">
<description>
<ul>
<li>Fixed PDF exports failing on some notes</li>
<li>Reduced the blurring effect on large pencil sizes</li>
<li>Fixed the "resync everything" button uploading empty files</li>
</ul>
</description>
</release>
<release version="0.20.2" type="development" date="2024-02-17">
<description>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion installers/desktop_inno_script.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Saber"
#define MyAppVersion "0.20.2"
#define MyAppVersion "0.20.3"
#define MyAppPublisher "Adil Hanney"
#define MyAppURL "https://github.com/saber-notes/saber"
#define MyAppExeName "saber.exe"
Expand Down
17 changes: 10 additions & 7 deletions lib/components/canvas/_stroke.dart
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,14 @@ class Stroke {
penType: json['ty'] ?? (Pen).toString(),
)..points.addAll(points);
}
// json keys should not be the same as the ones in the StrokeProperties class
Map<String, dynamic> toJson() {
// these json keys should not be the same as the ones in [StrokeOptions.toJson]
return {
'shape': null,
'p': points.map((PointVector point) => point.toBsonBinary()).toList(),
'p': points
.where((point) => point.isFinite)
.map((PointVector point) => point.toBsonBinary())
.toList(),
'i': pageIndex,
'ty': penType,
'pe': pressureEnabled,
Expand Down Expand Up @@ -261,11 +264,11 @@ class Stroke {
'${page.size.height - point.dy}';
}

if (polygon.isEmpty) {
return '';
} else {
return "M${polygon.map((point) => toSvgPoint(point)).join("L")}";
}
// Remove NaN points, and convert to SVG coordinates
final svgPoints =
polygon.where((offset) => offset.isFinite).map(toSvgPoint);

return svgPoints.isNotEmpty ? 'M${svgPoints.join('L')}' : '';
}

double get maxY {
Expand Down
4 changes: 2 additions & 2 deletions lib/data/version.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// Run `./scripts/apply_version.sh --help` for more information.

/// The current app version as an ordinal number.
const int buildNumber = 20020;
const int buildNumber = 20030;

/// The current app version as a string.
const String buildName = '0.20.2';
const String buildName = '0.20.3';

/// The year in which the current version was released.
const int buildYear = 2024;
10 changes: 4 additions & 6 deletions macos/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@
BCB018F9E1111B14A600EE69 /* Pods-RunnerTests.release.xcconfig */,
F9485297BD27574A19ED2337 /* Pods-RunnerTests.profile.xcconfig */,
);
name = Pods;
path = Pods;
sourceTree = "<group>";
};
Expand Down Expand Up @@ -259,7 +258,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0920;
LastUpgradeCheck = 1430;
LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
331C80D4294CF70F00263BE5 = {
Expand All @@ -269,7 +268,6 @@
33CC10EC2044A3C60003C045 = {
CreatedOnToolsVersion = 9.2;
LastSwiftMigration = 1100;
ProvisioningStyle = Automatic;
SystemCapabilities = {
com.apple.Sandbox = {
enabled = 1;
Expand Down Expand Up @@ -568,7 +566,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = 3DB8QX4Z23;
Expand Down Expand Up @@ -697,7 +695,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = 3DB8QX4Z23;
Expand All @@ -720,7 +718,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements;
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = 3DB8QX4Z23;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
LastUpgradeVersion = "1510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
3 changes: 3 additions & 0 deletions metadata/ar/changelogs/20030.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
• فشل تصدير ملفات PDF الثابتة في بعض الملاحظات
• تقليل تأثير التشويش على أحجام أقلام الرصاص الكبيرة
• تم إصلاح زر "إعادة مزامنة كل شيء" لتحميل الملفات الفارغة
1 change: 1 addition & 0 deletions metadata/ar/changelogs/200303.txt
3 changes: 3 additions & 0 deletions metadata/cs/changelogs/20030.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
• Opraveno selhání exportu PDF u některých poznámek
• Snížení efektu rozmazání u velkých velikostí tužky
• Opraveno tlačítko „znovu synchronizovat vše“ pro nahrávání prázdných souborů
1 change: 1 addition & 0 deletions metadata/cs/changelogs/200303.txt
3 changes: 3 additions & 0 deletions metadata/de/changelogs/20030.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
• Fehler beim PDF-Export bei einigen Notizen behoben
• Der Unschärfeeffekt bei großen Bleistiftgrößen wurde reduziert
• Die Schaltfläche „Alles neu synchronisieren“ beim Hochladen leerer Dateien wurde behoben
1 change: 1 addition & 0 deletions metadata/de/changelogs/200303.txt
3 changes: 3 additions & 0 deletions metadata/en-US/changelogs/20030.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
• Fixed PDF exports failing on some notes
• Reduced the blurring effect on large pencil sizes
• Fixed the "resync everything" button uploading empty files
1 change: 1 addition & 0 deletions metadata/en-US/changelogs/200303.txt
3 changes: 3 additions & 0 deletions metadata/es/changelogs/20030.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
• Se corrigió que las exportaciones de PDF fallaran en algunas notas.
• Se redujo el efecto borroso en lápices de gran tamaño.
• Se corrigió el botón "resincronizar todo" que cargaba archivos vacíos
1 change: 1 addition & 0 deletions metadata/es/changelogs/200303.txt
3 changes: 3 additions & 0 deletions metadata/fa/changelogs/20030.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
• صادرات PDF ثابت شکست در برخی از یادداشت ها
• اثر تاری را در اندازه های بزرگ مداد کاهش داد
• دکمه "همگام سازی مجدد همه چیز" را در آپلود فایل های خالی برطرف کرد
1 change: 1 addition & 0 deletions metadata/fa/changelogs/200303.txt
3 changes: 3 additions & 0 deletions metadata/fr/changelogs/20030.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
• Correction de l'échec des exportations PDF sur certaines notes
• Réduction de l'effet de flou sur les grands crayons
• Correction du bouton "Tout resynchroniser" lors du téléchargement de fichiers vides
1 change: 1 addition & 0 deletions metadata/fr/changelogs/200303.txt
3 changes: 3 additions & 0 deletions metadata/he/changelogs/20030.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
• ייצוא PDF תוקן שנכשל בחלק מההערות
• הפחית את אפקט הטשטוש בגדלים של עיפרון גדולים
• תוקן את כפתור "סנכרן הכל מחדש" בהעלאת קבצים ריקים
1 change: 1 addition & 0 deletions metadata/he/changelogs/200303.txt
3 changes: 3 additions & 0 deletions metadata/hu/changelogs/20030.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
• Javítva a PDF-exportálás sikertelensége egyes megjegyzéseknél
• Csökkentette az elmosódást nagy ceruzaméreteknél
• Javítva a "minden újraszinkronizálása" gomb üres fájlok feltöltésekor
1 change: 1 addition & 0 deletions metadata/hu/changelogs/200303.txt
3 changes: 3 additions & 0 deletions metadata/it/changelogs/20030.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
• Risolto il problema con le esportazioni PDF che non riuscivano su alcune note
• Ridotto l'effetto sfocato sulle matite di grandi dimensioni
• Risolto il problema con il pulsante "risincronizza tutto" che caricava file vuoti
1 change: 1 addition & 0 deletions metadata/it/changelogs/200303.txt
3 changes: 3 additions & 0 deletions metadata/ja/changelogs/20030.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
• 一部のノートで PDF エクスポートが失敗する問題を修正
• 大きな鉛筆サイズのぼやけ効果を軽減しました。
• 空のファイルをアップロードする「すべてを再同期」ボタンを修正しました
1 change: 1 addition & 0 deletions metadata/ja/changelogs/200303.txt
3 changes: 3 additions & 0 deletions metadata/pt-BR/changelogs/20030.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
• Corrigidas falhas nas exportações de PDF em algumas notas
• Redução do efeito de desfoque em lápis grandes
• Corrigido o botão "ressincronizar tudo" ao enviar arquivos vazios
1 change: 1 addition & 0 deletions metadata/pt-BR/changelogs/200303.txt
3 changes: 3 additions & 0 deletions metadata/ru/changelogs/20030.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
• Исправлена ​​ошибка экспорта PDF в некоторых заметках.
• Уменьшен эффект размытия при использовании карандашей большого размера.
• Исправлена ​​кнопка «Повторно синхронизировать все», загружающая пустые файлы.
1 change: 1 addition & 0 deletions metadata/ru/changelogs/200303.txt
3 changes: 3 additions & 0 deletions metadata/tr/changelogs/20030.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
• Bazı notlarda PDF dışa aktarımlarının başarısız olması düzeltildi
• Büyük kalem boyutlarında bulanıklık etkisi azaltıldı
• "Her şeyi yeniden senkronize et" düğmesinin boş dosyaları yüklemesi düzeltildi
1 change: 1 addition & 0 deletions metadata/tr/changelogs/200303.txt
3 changes: 3 additions & 0 deletions metadata/zh-Hans-CN/changelogs/20030.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
• 修复了某些笔记上的 PDF 导出失败的问题
• 减少了大尺寸铅笔的模糊效果
• 修复了上传空文件的“重新同步所有内容”按钮
1 change: 1 addition & 0 deletions metadata/zh-Hans-CN/changelogs/200303.txt
3 changes: 3 additions & 0 deletions metadata/zh-Hant-TW/changelogs/20030.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
• 修正了某些筆記上的 PDF 匯出失敗的問題
• 減少了大尺寸鉛筆的模糊效果
• 修正了上傳空檔案的「重新同步所有內容」按鈕
1 change: 1 addition & 0 deletions metadata/zh-Hant-TW/changelogs/200303.txt
Loading

0 comments on commit 84d3ad8

Please sign in to comment.