Skip to content

Commit 2253a33

Browse files
committed
hotfix: r8 rule caused doc and image failed to extract
1 parent 816f393 commit 2253a33

4 files changed

Lines changed: 20 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.0.3] - 2025-10-09
9+
10+
### Fixed
11+
12+
- Unable to summarize documents and images
13+
814
## [1.0.2] - 2025-10-08
915

1016
### Fixed

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ android {
1818
applicationId = "me.nanova.summaryexpressive"
1919
minSdk = 33
2020
targetSdk = 36
21-
versionCode = 39
22-
versionName = "1.0.2"
21+
versionCode = 40
22+
versionName = "1.0.3"
2323

2424
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
2525
}

app/proguard-rules.pro

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
2121
#-renamesourcefileattribute SourceFile
22-
-keepattributes Signature
22+
-keepattributes Signature,*Annotation*
2323

2424
-keep class ai.koog.** { *; }
2525

@@ -42,3 +42,12 @@
4242
-dontwarn java.lang.management.**
4343
-dontwarn com.fasterxml.jackson.core.JsonFactory
4444
-dontwarn com.fasterxml.jackson.core.JsonGenerator
45+
46+
# Keep rules for KotlinX Serialization
47+
-keepclassmembers class ** {
48+
@kotlinx.serialization.Serializable *;
49+
}
50+
-keep class **$$serializer { *; }
51+
52+
# Keep specific data models to be safe, though the above rules should cover them.
53+
-keep class me.nanova.summaryexpressive.model.** { *; }
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
package me.nanova.summaryexpressive.model
22

3-
import ai.koog.agents.core.tools.ToolResult
43
import kotlinx.serialization.Serializable
54

65
@Serializable
76
data class ExtractedContent(
87
val title: String = "Unknown",
98
val author: String = "Unknown",
109
val content: String,
11-
val error: Boolean = false
12-
) : ToolResult {
13-
override fun toStringDefault(): String = "title: $title, author: $author, content: $content"
14-
}
10+
val error: Boolean = false,
11+
)

0 commit comments

Comments
 (0)