mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-18 04:27:02 +05:30
model: remove Room annotations and unused dependencies
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
aa7a732cce
commit
3693bc39f4
2 changed files with 0 additions and 8 deletions
|
@ -3,8 +3,6 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api "androidx.room:room-runtime:$room_version"
|
|
||||||
kapt "com.squareup.moshi:moshi-kotlin-codegen:$moshi_version"
|
kapt "com.squareup.moshi:moshi-kotlin-codegen:$moshi_version"
|
||||||
implementation "com.squareup.moshi:moshi:$moshi_version"
|
implementation "com.squareup.moshi:moshi:$moshi_version"
|
||||||
implementation "com.squareup.moshi:moshi-kotlin:$moshi_version"
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,17 +1,11 @@
|
||||||
package dev.msfjarvis.lobsters.model
|
package dev.msfjarvis.lobsters.model
|
||||||
|
|
||||||
import androidx.room.Entity
|
|
||||||
import androidx.room.PrimaryKey
|
|
||||||
import com.squareup.moshi.Json
|
import com.squareup.moshi.Json
|
||||||
import com.squareup.moshi.JsonClass
|
import com.squareup.moshi.JsonClass
|
||||||
|
|
||||||
@Entity(
|
|
||||||
tableName = "lobsters_posts"
|
|
||||||
)
|
|
||||||
@JsonClass(generateAdapter = true)
|
@JsonClass(generateAdapter = true)
|
||||||
class LobstersPost(
|
class LobstersPost(
|
||||||
@Json(name = "short_id")
|
@Json(name = "short_id")
|
||||||
@PrimaryKey
|
|
||||||
val shortId: String,
|
val shortId: String,
|
||||||
@Json(name = "short_id_url")
|
@Json(name = "short_id_url")
|
||||||
val shortIdUrl: String,
|
val shortIdUrl: String,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue