8000 Updated readme and changelog · SnipMeDev/Highlights@2e90b14 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2e90b14

Browse files
committed
Updated readme and changelog
1 parent 8752f97 commit 2e90b14

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
### Added
44
- serialization for public models
55
- XCFramework output
6+
- `getHighlightsAsync()` with handy `DefaultHighlightsResultListener` adapter
7+
- `getByName()` function for `SyntaxThemes`
8+
9+
### Changed
10+
- Kotlin version to 2.0.20
11+
- direct snapshot field access to `getSnapshot()` function
612

713
## [0.9.3]
814

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ highlights.getHighlightsAsync(
5757
// onStart
5858
// onError
5959
// onCancel
60-
override fun onComplete(highlights: List<CodeHighlight>) {
60+
override fun onSuccess(result: List<CodeHighlight>) {
6161
emitResult(highlights)
6262
}
6363
}

sample/src/main/kotlin/Main.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ fun runAsync(
109109
// onStart
110110
// onError
111111
// onCancel
112-
override fun onComplete(highlights: List<CodeHighlight>) {
113-
emitResult(highlights)
112+
override fun onSuccess(result: List<CodeHighlight>) {
113+
emitResult(result)
114114
}
115115
}
116116
)

0 commit comments

Comments
 (0)
0