- Add FeedParser.kt with automatic feed type detection - Add RSSParser.kt for RSS 2.0 feeds - Add AtomParser.kt for Atom 1.0 feeds - Add comprehensive unit tests for both parsers - Support iTunes namespace and enclosures - Fix pre-existing compilation issues in the codebase - Update build.gradle.kts with proper dependencies and AGP 8.5.0
14 lines
290 B
Kotlin
14 lines
290 B
Kotlin
package com.rssuper.parsing
|
|
|
|
import com.rssuper.models.Feed
|
|
|
|
data class ParseResult(
|
|
val feedType: FeedType,
|
|
val feed: Feed
|
|
)
|
|
|
|
sealed class FeedParsingError : Exception() {
|
|
data object UnsupportedFeedType : FeedParsingError()
|
|
data object MalformedXml : FeedParsingError()
|
|
}
|