Skip to content

Remove KAPT#16018

Merged
tobiasKaminsky merged 2 commits intomasterfrom
removeKAPT
Apr 15, 2026
Merged

Remove KAPT#16018
tobiasKaminsky merged 2 commits intomasterfrom
removeKAPT

Conversation

@tobiasKaminsky
Copy link
Copy Markdown
Member

We use KAPT only for creating language for MarkwonGrammarLocator.
I now replaced it with pre-built version.

This saves on my machen 20s per each full run.

  • Tests written, or not not needed

false,
"property",
grammar("inside",
token("string", pattern(compile("(#\\s*include\\s*)(?:<.+?>|(\"|')(?:\\\\?.)+?\\2)"), true)),

Check failure

Code scanning / CodeQL

Inefficient regular expression High

This part of the regular expression may cause exponential backtracking on strings starting with '#include"' and containing many repetitions of '\a'.
token(
"template-string",
pattern(
compile("`(?:\\\\[\\s\\S]|\\$\\{[^}]+\\}|[^\\\\`])*`"),

Check failure

Code scanning / CodeQL

Inefficient regular expression High

This part of the regular expression may cause exponential backtracking on strings starting with '`' and containing many repetitions of '${[}'.
GrammarUtils.require(prism4j, "clike"),
"swift",
token("string", pattern(
compile("(\"|')(\\\\(?:\\((?:[^()]|\\([^)]+\\))+\\)|\\r\\n|[\\s\\S])|(?!\\1)[^\\\\\\r\\n])*\\1"),

Check failure

Code scanning / CodeQL

Inefficient regular expression High

This part of the regular expression may cause exponential backtracking on strings starting with '"\' and containing many repetitions of '(')\'.
Copy link
Copy Markdown
Member

@AndyScherzinger AndyScherzinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added files currently ship the template SPDX header. Should update the copyright line on them.

@tobiasKaminsky
Copy link
Copy Markdown
Member Author

Added files currently ship the template SPDX header. Should update the copyright line on them.

Done. Changed to their license as stated here: https://github.com/noties/Prism4j/blob/master/README.md#license

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 5, 2026

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/16018.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

@alperozturk96
Copy link
Copy Markdown
Collaborator

This solves: #13050. @tobiasKaminsky Awesome 🚀

@alperozturk96
Copy link
Copy Markdown
Collaborator

alperozturk96 commented Feb 4, 2026

@tobiasKaminsky Could you rebase to latest master, this is good improvement after this we can use builtInKotlin.

Since KAPT does not support builtInKotlin for now.

Reference: #16346

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
@github-actions
Copy link
Copy Markdown

Codacy

SpotBugs

CategoryBaseNew
Bad practice3535
Correctness6969
Dodgy code226226
Experimental11
Internationalization77
Malicious code vulnerability22
Multithreaded correctness3434
Performance4242
Security1616
Total432432

@github-actions
Copy link
Copy Markdown

APK file: https://github.com/nextcloud/android/actions/runs/24448091583/artifacts/6447854438
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.
qrcode (please click on link to get QR code displayed)

@github-actions
Copy link
Copy Markdown

blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.

@tobiasKaminsky tobiasKaminsky merged commit 329e4ff into master Apr 15, 2026
15 of 20 checks passed
@tobiasKaminsky tobiasKaminsky deleted the removeKAPT branch April 15, 2026 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants