Migrate "room" from "kapt" to "ksp" (#3777)
- Add ksp plugin - Switch room to use ksp instead of kapt - `ArrayList` -> `List` in a few places to fix errors about unbound generics
This commit is contained in:
parent
1f7a5f626d
commit
25376170c2
7 changed files with 12 additions and 13 deletions
|
|
@ -89,7 +89,7 @@ data class ConversationStatusEntity(
|
|||
val bookmarked: Boolean,
|
||||
val sensitive: Boolean,
|
||||
val spoilerText: String,
|
||||
val attachments: ArrayList<Attachment>,
|
||||
val attachments: List<Attachment>,
|
||||
val mentions: List<Status.Mention>,
|
||||
val tags: List<HashTag>?,
|
||||
val showingHiddenContent: Boolean,
|
||||
|
|
|
|||
|
|
@ -102,8 +102,8 @@ class Converters @Inject constructor(
|
|||
}
|
||||
|
||||
@TypeConverter
|
||||
fun jsonToAttachmentList(attachmentListJson: String?): ArrayList<Attachment>? {
|
||||
return gson.fromJson(attachmentListJson, object : TypeToken<ArrayList<Attachment>>() {}.type)
|
||||
fun jsonToAttachmentList(attachmentListJson: String?): List<Attachment>? {
|
||||
return gson.fromJson(attachmentListJson, object : TypeToken<List<Attachment>>() {}.type)
|
||||
}
|
||||
|
||||
@TypeConverter
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@
|
|||
package com.keylesspalace.tusky.entity
|
||||
|
||||
import com.google.gson.annotations.SerializedName
|
||||
import java.util.ArrayList
|
||||
import java.util.Date
|
||||
|
||||
data class DeletedStatus(
|
||||
|
|
@ -25,7 +24,7 @@ data class DeletedStatus(
|
|||
@SerializedName("spoiler_text") val spoilerText: String,
|
||||
val visibility: Status.Visibility,
|
||||
val sensitive: Boolean,
|
||||
@SerializedName("media_attachments") val attachments: ArrayList<Attachment>?,
|
||||
@SerializedName("media_attachments") val attachments: List<Attachment>?,
|
||||
val poll: Poll?,
|
||||
@SerializedName("created_at") val createdAt: Date,
|
||||
val language: String?
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ import android.text.SpannableStringBuilder
|
|||
import android.text.style.URLSpan
|
||||
import com.google.gson.annotations.SerializedName
|
||||
import com.keylesspalace.tusky.util.parseAsMastodonHtml
|
||||
import java.util.ArrayList
|
||||
import java.util.Date
|
||||
|
||||
data class Status(
|
||||
|
|
@ -42,7 +41,7 @@ data class Status(
|
|||
val sensitive: Boolean,
|
||||
@SerializedName("spoiler_text") val spoilerText: String,
|
||||
val visibility: Visibility,
|
||||
@SerializedName("media_attachments") val attachments: ArrayList<Attachment>,
|
||||
@SerializedName("media_attachments") val attachments: List<Attachment>,
|
||||
val mentions: List<Mention>,
|
||||
val tags: List<HashTag>?,
|
||||
val application: Application?,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue