Oof, that's unfortunate. I might see if I can get an Android dev 
environment going and tackle it, after a bit of a break first.

On Tuesday, May 13, 2025 at 2:06:34 AM UTC-7 Peter Bienstman wrote:

> I'm sorry to say that plugins on Android are not supported, especially 
> since Google closed off Mnemosyne's data directory for outside programs. 
> The code to import the backup could be modified to accommodate this, but it 
> would be an ugly hack, and unfortunately, I'm not really 
> developing Mnemosyne further anymore.
>
> Still, the code is there, so if somebody wants to take over and implement 
> this, that's entirely possible.
>
> Kind regards,
>
> Peter
>
> On Tue, May 13, 2025 at 9:30 AM Phillip Peach <[email protected]> wrote:
>
>> Hi All,
>>
>> What's the proper way to get a plugin installed in the Android app?
>>
>> I'm writing some custom card type plugin. (I'll probably throw them up on 
>> github at some point, although they'll be tied pretty tightly to how I've 
>> been setting up my cards manually so I don't know how much value anyone 
>> else would get from them.)
>>
>> I was finally happy with my plugin on desktop, so I created a test card 
>> and synced to the android app where I do most of my reviewing.
>>
>> First attempt to sync gets a "RuntimeError: Missing plugins for card 
>> types."
>>
>> The next full sync got a crash:
>> File "MNEMOSYNE_ANDROID\mnemosyne\libmnemosyne\component.py", line 136, 
>> in card_type_with_id KeyError: '<the id of my new card type>'
>> [image: Screenshot_20250513_000945_Mnemosyne.png]
>>
>> Which seems to show my plugin did not carry over on the sync or isn't 
>> enabled on the Android App.
>>
>> In addition to sync I also tried doing an export on the app, manually 
>> copying the plugin folder from Windows to the backup folder on Android and 
>> then reimporting. That got some really crazy errors including a supposed 
>> indent error on my code with a line # that didn't match anything, which 
>> messed with the app enough that the app UI was missing the white Q/A 
>> fields. I managed to reverse that so my app is usable for tomorrow's review.
>>
>> At this point I'm at a bit of a loss on how to proceed. Any directions / 
>> advice?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "mnemosyne-proj-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To view this discussion visit 
>> https://groups.google.com/d/msgid/mnemosyne-proj-users/7e8cb251-ae6f-4b5e-8e0e-d175100e7028n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/mnemosyne-proj-users/7e8cb251-ae6f-4b5e-8e0e-d175100e7028n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/mnemosyne-proj-users/08fbde28-f54c-4b67-83d9-23030f2ce779n%40googlegroups.com.

Reply via email to