- Add FeedItem, Feed, FeedSubscription models with Moshi JSON support - Add SearchResult, SearchFilters models with sealed classes for enums - Add NotificationPreferences, ReadingPreferences models - Add Room Entity annotations for database readiness - Add TypeConverters for Date and List<String> serialization - Add Parcelize for passing models between Activities/Fragments - Write comprehensive unit tests for serialization/deserialization - Write tests for copy(), equals/hashCode, and toString functionality
52 lines
1.3 KiB
Kotlin
52 lines
1.3 KiB
Kotlin
plugins {
|
|
id("com.android.library")
|
|
id("org.jetbrains.kotlin.android")
|
|
id("kotlin-parcelize")
|
|
id("kotlin-kapt")
|
|
}
|
|
|
|
android {
|
|
namespace = "com.rssuper"
|
|
compileSdk = 34
|
|
|
|
defaultConfig {
|
|
minSdk = 24
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// AndroidX
|
|
implementation("androidx.core:core-ktx:1.12.0")
|
|
implementation("androidx.room:room-runtime:2.6.1")
|
|
implementation("androidx.room:room-ktx:2.6.1")
|
|
kapt("androidx.room:room-compiler:2.6.1")
|
|
|
|
// Moshi for JSON serialization
|
|
implementation("com.squareup.moshi:moshi-kotlin:1.15.1")
|
|
kapt("com.squareup.moshi:moshi-kotlin-codegen:1.15.1")
|
|
implementation("com.squareup.moshi:moshi-kotlin-reflect:1.15.1")
|
|
|
|
// Testing
|
|
testImplementation("junit:junit:4.13.2")
|
|
testImplementation("com.squareup.moshi:moshi-kotlin:1.15.1")
|
|
testImplementation("com.squareup.moshi:moshi-kotlin-reflect:1.15.1")
|
|
testImplementation("org.mockito:mockito-core:5.7.0")
|
|
testImplementation("org.mockito:mockito-inline:5.2.0")
|
|
}
|