Skip to content

Use compatible APIs to adapt to the new version of Acode#11

Open
blanhhy wants to merge 1 commit intocoswat:1xfrom
blanhhy:1x
Open

Use compatible APIs to adapt to the new version of Acode#11
blanhhy wants to merge 1 commit intocoswat:1xfrom
blanhhy:1x

Conversation

@blanhhy
Copy link
Copy Markdown

@blanhhy blanhhy commented Apr 4, 2026

According to Acode Docs, these APIs have been removed:

  • editor.getSession()
  • editor.getSelectedText()

And here are temporary compatibility APIs:

  • editor.session
  • editor.getCopyText()

@coswat
Copy link
Copy Markdown
Owner

coswat commented Apr 5, 2026

Did you test this code with the latest Acode application available on Google Playstore?

@blanhhy
Copy link
Copy Markdown
Author

blanhhy commented Apr 5, 2026

Did you test this code with the latest Acode application available on Google Playstore?

@coswat I only tested for the fdroid version on Play Store because my normal version has already been updated to nightly releases.

The result is that it functions correctly, no errors found in Acode.log as well.

Screenshot_2026-04-05-17-32-47-05_e3c1f266f17b29c7b40472751f031275
Screenshot_2026-04-05-17-33-05-19_e3c1f266f17b29c7b40472751f031275

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.

2 participants