<div dir="ltr">Hi, Halla!<div><br></div><div>I have made a roadmap for integration of the SonarPen SDK into Krita:</div><div><a href="https://phabricator.kde.org/T17515">https://phabricator.kde.org/T17515</a><br></div><div><br></div><div>The first two things that we should do before we can start the porting work is:</div><div><br></div><div>1) T<span style="color:rgb(0,0,0);font-family:"Segoe UI","Segoe UI Emoji","Segoe UI Symbol",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px">alk to sysadmins for a common location for Krita build tools and utilities. Basically, where should we put this repository with the SDK? Are SonarPen people going to maintain it? Should they publish it under KDE's gitlab or official gitlab/github?</span></div><div><span style="color:rgb(0,0,0);font-family:"Segoe UI","Segoe UI Emoji","Segoe UI Symbol",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:"Segoe UI","Segoe UI Emoji","Segoe UI Symbol",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px">2) We need to ask the wider KDE community to review the SDK's code security-wise (to avoid cases like the one that happened to libxz). This library is going to be loaded in every single instance of Krita running on any Android device. It doesn't matter if the device has SonarPen or not.</span></div><div><span style="color:rgb(0,0,0);font-family:"Segoe UI","Segoe UI Emoji","Segoe UI Symbol",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:"Segoe UI","Segoe UI Emoji","Segoe UI Symbol",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px">PS:</span></div><div><span style="color:rgb(0,0,0);font-family:"Segoe UI","Segoe UI Emoji","Segoe UI Symbol",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px">About the safe assert error reported by SonarPen: it should be fixed in `krita/5.2` branch!</span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 7, 2024 at 9:03 AM Halla Rempt <<a href="mailto:halla@valdyas.org">halla@valdyas.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
As discussed during the meeting, I've asked for permission to forward this to the mailing list so we all have the relevant information for the sonarpen :-)<br>
<br>
Halla<br>
<br>
----------  Forwarded Message  ----------<br>
<br>
Subject: [Krita Artists] [PM] RE: SonarPen is working in Krita 5.2.2 on Android phone and Tablet<br>
Date: zondag 21 juli 2024, 04:41:47 CEST<br>
From: elton via Krita Artists <<a href="mailto:noreply@krita-artists.org" target="_blank">noreply@krita-artists.org</a>><br>
To: <a href="mailto:halla@valdyas.org" target="_blank">halla@valdyas.org</a><br>
<br>
<br>
<br>
<br>
We have completely rewritten the SDK in C++ code and it is not longer a wrapper of the java AAR file. The source are here: [DEV GREENBULB / SonarPen SDK C++ · GitLab (<a href="http://kde.org" rel="noreferrer" target="_blank">kde.org</a>)](<a href="https://invent.kde.org/greenblub/sonarpen-sdk-cpp" rel="noreferrer" target="_blank">https://invent.kde.org/greenblub/sonarpen-sdk-cpp</a>)<br>
<br>
We modified the QT library to make use of the C++ SDK. We are able to use them to build a version of Krita v5.2.2 (we tried v5.2.3 but it is gives error message to several of our test devices. )  the v5.2.2 works very well and quick on all our devices. Here are all the related projects: [DEV GREENBULB · GitLab (<a href="http://kde.org" rel="noreferrer" target="_blank">kde.org</a>)](<a href="https://invent.kde.org/users/greenblub/projects" rel="noreferrer" target="_blank">https://invent.kde.org/users/greenblub/projects</a>)<br>
<br>
this the apk that we built: <br>
<a href="https://www.dropbox.com/scl/fi/re6hcsc87nptqjr9ejxvz/krita-arm64-v8a-5.2.2-release-sonarpen-sdk-cpp-2024-07-17-1.apk?rlkey=lsw6stp08ygm8c4al0sgx497u&dl=0" rel="noreferrer" target="_blank">https://www.dropbox.com/scl/fi/re6hcsc87nptqjr9ejxvz/krita-arm64-v8a-5.2.2-release-sonarpen-sdk-cpp-2024-07-17-1.apk?rlkey=lsw6stp08ygm8c4al0sgx497u&dl=0</a><br>
<br>
Please be notice, the right now when Krita lost focus and regain focus, the pressure detection is off. User must manually replug the SonarPen to get the SDK works again. That's because QT is not related to the state of the app. My engineer advice to have Krita's onPause and onResume to stop and start the SonarPen SDK.<br>
<br>
Error message on Krita 5.2.3<br>
![450095171_8180824445300874_660215432378582904_n|300x400](upload://de0Rgrmq6nxUSQnAVAu23DVWFhZ.jpeg)<br>
<br>
Feel free to contact me if you have any problem.<br>
<br>
<br>
<br>
<br>
<br>
---<br>
[Visit Message](<a href="https://krita-artists.org/t/re-sonarpen-is-working-in-krita-5-2-2-on-android-phone-and-tablet/91948/13" rel="noreferrer" target="_blank">https://krita-artists.org/t/re-sonarpen-is-working-in-krita-5-2-2-on-android-phone-and-tablet/91948/13</a>) to respond to [elton](<a href="https://krita-artists.org/u/elton" rel="noreferrer" target="_blank">https://krita-artists.org/u/elton</a>).<br>
<br>
To unsubscribe from these emails, [click here](<a href="https://krita-artists.org/email/unsubscribe/9266d66b83ee6aa99b52a25f3d0280d3573a8491963c8e20882e0564d88a8cdc" rel="noreferrer" target="_blank">https://krita-artists.org/email/unsubscribe/9266d66b83ee6aa99b52a25f3d0280d3573a8491963c8e20882e0564d88a8cdc</a>).<br>
<br>
-----------------------------------------</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Dmitry Kazakov</div>