Skip to content

Fix hook imports to align with Kolibri PR #12879#265

Merged
rtibbles merged 1 commit into
developfrom
fix/align-hooks-with-kolibri-12879
Apr 10, 2026
Merged

Fix hook imports to align with Kolibri PR #12879#265
rtibbles merged 1 commit into
developfrom
fix/align-hooks-with-kolibri-12879

Conversation

@rtibbles
Copy link
Copy Markdown
Member

Summary

Fixes import paths in kolibri_plugin.py to match the hook locations in Kolibri PR learningequality/kolibri#12879:

  • ShareFileHook: kolibri.core.device.hookskolibri.core.content.hooks
  • StorageHookJobHook in kolibri.core.tasks.hooks
  • share_file signature updated to match new API (filename, message)

Also bumps android_installer_version to 0.1.9.

References

Reviewer guidance

Build an APK against the hooked_on_plugins branch of Kolibri and verify the app launches without ImportError crashes.

AI usage

Used Claude Code to smoke test an APK on an emulator, diagnose the startup crash from logcat, cross-reference the hook import paths against learningequality/kolibri#12879, and make the fixes.

- ShareFileHook moved from kolibri.core.device.hooks to kolibri.core.content.hooks
- StorageHook renamed to JobHook in kolibri.core.tasks.hooks
- Updated share_file signature to match new API (filename, message)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rtibbles rtibbles marked this pull request as ready for review April 10, 2026 02:51
@rtibbles rtibbles merged commit 1db7bb8 into develop Apr 10, 2026
5 checks passed
@rtibbles rtibbles deleted the fix/align-hooks-with-kolibri-12879 branch April 10, 2026 03:16
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