Skip to content

Commit 62bbf71

Browse files
authored
Merge branch 'main' into main
2 parents 14db532 + 2baa6e5 commit 62bbf71

File tree

8 files changed

+28
-210
lines changed

8 files changed

+28
-210
lines changed

lib/pages/editor/editor.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ class EditorState extends State<Editor> {
11241124
page.backgroundImage = PdfEditorImage(
11251125
id: coreInfo.nextImageId++,
11261126
pdfBytes: pdfBytes,
1127-
pdfFile: null,
1127+
pdfFile: pdfFile,
11281128
pdfPage: currentPdfPage,
11291129
pageIndex: coreInfo.pages.length,
11301130
pageSize: pageSize,

packages/onyxsdk_pen/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 1.2.2
2+
3+
- Improved pub.dev scores
4+
5+
## 1.2.1
6+
7+
- Updated the Onyx SDK
8+
19
## 1.2.0
210

311
- Added an optional `init` method to improve initial performance on non-Onyx Android devices. See the README for more information.

packages/onyxsdk_pen/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ android {
5656
}
5757

5858
dependencies {
59-
implementation('com.onyx.android.sdk:onyxsdk-device:1.2.21')
60-
implementation('com.onyx.android.sdk:onyxsdk-pen:1.4.4')
59+
implementation('com.onyx.android.sdk:onyxsdk-device:1.2.27')
60+
implementation('com.onyx.android.sdk:onyxsdk-pen:1.4.8')
6161
}
6262
}

packages/onyxsdk_pen/example/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,5 @@ app.*.map.json
4242
/android/app/debug
4343
/android/app/profile
4444
/android/app/release
45+
46+
pubspec.lock

packages/onyxsdk_pen/example/pubspec.lock

Lines changed: 0 additions & 204 deletions
This file was deleted.

packages/onyxsdk_pen/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: onyxsdk_pen
22
description: This plugin integrates the Onyx Pen SDK into Flutter to improve e-ink responsiveness in drawing apps.
3-
version: 1.2.0
3+
version: 1.2.2
44
homepage: https://github.com/saber-notes/saber/tree/main/packages/onyxsdk_pen
55

66
topics:

packages/onyxsdk_pen_dummy/pubspec.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
name: onyxsdk_pen
1+
# This name should be replaced with `onyxsdk_pen` by the `patches/remove_proprietary_dependencies.sh` script.
2+
# This is because the Dart analyzer gets confused because there are two pubspec.yaml files with the name `onyxsdk_pen`.
3+
name: onyxsdk_pen_dummy
24
description: This plugin integrates the Onyx Pen SDK into Flutter to improve e-ink responsiveness in drawing apps.
3-
version: 1.2.0
5+
version: 1.2.2
46
homepage: https://github.com/saber-notes/saber/tree/main/packages/onyxsdk_pen
57
publish_to: 'none'
68

patches/remove_proprietary_dependencies.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ else
1010
sed -i -e 's!/onyxsdk_pen!/onyxsdk_pen_dummy!' pubspec.yaml
1111
fi
1212

13+
# find "name: onyxsdk_pen_dummy" and replace with "name: onyxsdk_pen"
14+
echo -n "Patching onyxsdk_pen_dummy to have name onyxsdk_pen: "
15+
# check if packages/onyxsdk_pen_dummy/pubspec.yaml contains name: onyxsdk_pen_dummy
16+
if grep -q "name: onyxsdk_pen_dummy" packages/onyxsdk_pen_dummy/pubspec.yaml; then
17+
echo "found"
18+
sed -i -e 's!name: onyxsdk_pen_dummy!name: onyxsdk_pen!' packages/onyxsdk_pen_dummy/pubspec.yaml
19+
else
20+
echo "already done"
21+
fi
22+
1323
# remove Onyx maven repo
1424
echo -n "Removing Onyx,jitpack maven repo: "
1525
# check if android/build.gradle contains "repo.boox.com"

0 commit comments

Comments
 (0)