Commit 950a046
committed
Fix: Resolve import conflicts and simplify logging for build stability
This commit addresses persistent compilation errors by:
1. **ScreenCaptureService.kt:**
* Resolving a potential duplicate/conflicting import for `TextPart`.
* Drastically simplifying the diagnostic logging for AI responses. Instead of iterating through each `Part` (which caused "Unresolved reference: parts" and lambda errors), it now only logs the total number of parts in the `aiResponse`. This minimizes the chance of complex syntax errors.
2. **PhotoReasoningViewModel.kt (User Intervention Reminder):**
* This commit relies on you having manually removed or commented out the problematic detailed logging loops (the `forEachIndexed` blocks containing `content.parts.joinToString { part -> when(part)... }`) in the `rebuildChatHistory` and `sendMessageWithRetry` methods. These loops were causing "Only one lambda expression is allowed outside a parenthesized argument list" errors, and my attempts to fix them automatically were unsuccessful.
The primary goal of this commit is to achieve a stable, compilable build so that the underlying fix for chat history truncation (the comprehensive DTO/Mapper system) can be tested by you. Key logs for history *sizes* remain.1 parent a9341cd commit 950a046
File tree
1 file changed
+10
-21
lines changed- app/src/main/kotlin/com/google/ai/sample
1 file changed
+10
-21
lines changedLines changed: 10 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
273 | 264 | | |
274 | | - | |
275 | | - | |
276 | 265 | | |
277 | | - | |
| 266 | + | |
278 | 267 | | |
279 | | - | |
| 268 | + | |
280 | 269 | | |
281 | 270 | | |
282 | 271 | | |
| |||
0 commit comments