Skip to content

Conversation

@CaptainDario
Copy link

@CaptainDario CaptainDario commented Mar 9, 2024

Ankidroid does not support using implementation 'com.github.ankidroid:Anki-Android:api-v1.1.0' anymore, resolving this fails. See this issue ankidroid/Anki-Android#15052

Therefore, this PR updates the ankidroid package to v2.17.4 and updates the Kotlin code to match this new version. Now this plugin also compiles mixed with other code that targets kotlin 1.9.

Additionally, I removed the askForPermission call from createAnkiIsolate. Asking immediately for permission makes it basically impossible to start one isolate at the start of the app and communicate with it when necessary because the user is asked to grant access to anki without an obvious reason. Therefore documentation to indicate that has also been added.

Let me know if there are any issues with this PR.

@CaptainDario
Copy link
Author

Regarding your note

Btw, if anyone knows how to give the isolate a name please help

This is an open issue in the flutter_isolate package rmawatson/flutter_isolate#108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant