Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit e652ac3

Browse files
authored
docs: add note about loading native library
1 parent fb827ce commit e652ac3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ implementation 'com.itsaky.androidide.treesitter:android-tree-sitter:<version>'
1818
implementation 'com.itsaky.androidide.treesitter:tree-sitter-<language>:<version>'
1919
```
2020

21+
Before using tree sitter, load the native library when appropriate (e.g. in the `onCreate()` method of your `Application` class, or in your activity) :
22+
23+
```java
24+
TreeSitter.loadLibrary();
25+
```
26+
2127
The following grammars have been published to Maven central :
2228

2329
- Java

0 commit comments

Comments
 (0)