Skip to content

Commit 2baa6e5

Browse files
committed
chore(onyxsdk_pen): improve pub.dev score
Dart analyzer gets confused because there are two pubspec.yaml files with the name `onyxsdk_pen`.
1 parent 7b7f8d7 commit 2baa6e5

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

packages/onyxsdk_pen/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.2.2
2+
3+
- Improved pub.dev scores
4+
15
## 1.2.1
26

37
- Updated the Onyx SDK

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.1
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)